/* 开云体育APP官网 - 全局样式 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a5f2a;
  --primary-dark: #0f3d1a;
  --primary-light: #2d8a3e;
  --accent: #f5a623;
  --accent-hover: #e09510;
  --bg: #f8faf8;
  --bg-white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #e0e8e0;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 8px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* 顶部导航 */
.site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 44px; width: auto; border-radius: 4px; }
.logo-text { color: #fff; font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.logo-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

/* 汉堡菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: .85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* 主内容区 */
main { max-width: var(--max-width); margin: 0 auto; padding: 24px 20px 48px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  border-radius: 12px;
  padding: 48px 40px;
  color: #fff;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 16px; }
.hero p { font-size: 1.05rem; opacity: .92; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.hero-img { border-radius: 10px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.3); }

/* 章节标题 */
.section { margin-bottom: 48px; }
.section-title {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: .95rem; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card-img { height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 10px; }
.card-body p { font-size: .9rem; color: var(--text-muted); }

/* 特色列表 */
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.feature-item {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.feature-item h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.feature-item p { font-size: .88rem; color: var(--text-muted); }

/* 内容文章 */
.article-content { background: var(--bg-white); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.article-content h1 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 16px; }
.article-content h2 { font-size: 1.35rem; color: var(--primary); margin: 32px 0 14px; padding-top: 8px; border-top: 1px solid var(--border); }
.article-content h2:first-of-type { border-top: none; margin-top: 0; }
.article-content h3 { font-size: 1.1rem; color: var(--primary-dark); margin: 20px 0 10px; }
.article-content p { margin-bottom: 14px; color: var(--text); }
.article-content ul, .article-content ol { margin: 12px 0 16px 24px; }
.article-content li { margin-bottom: 8px; color: var(--text-muted); }
.article-content img { border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow); }

/* 两栏布局 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* 合作伙伴 */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.partner-item {
  background: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.partner-item img { max-height: 60px; margin: 0 auto 8px; object-fit: contain; }
.partner-item p { font-size: .78rem; color: var(--text-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.faq-item h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.faq-item p { font-size: .9rem; color: var(--text-muted); }

/* 内链区块 */
.internal-links {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-top: 40px;
}
.internal-links h2 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 16px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.link-grid a {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 6px;
  font-size: .88rem;
  border: 1px solid var(--border);
  transition: all .2s;
}
.link-grid a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 表单页面 */
.form-page { max-width: 560px; margin: 0 auto; }
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.form-card h1 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 8px; text-align: center; }
.form-card .form-desc { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: .9rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  font-family: var(--font);
  transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,42,.15); }
.form-submit { width: 100%; margin-top: 8px; }
.form-footer { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--text-muted); }
.form-img { border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); }
.seo-content { margin-top: 40px; }
.seo-content h2 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 12px; }
.seo-content p { font-size: .9rem; color: var(--text-muted); margin-bottom: 12px; }

/* 错误页面 */
.error-page {
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-title { font-size: 1.5rem; color: var(--primary-dark); margin: 16px 0 12px; }
.error-desc { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; }

/* 页脚 */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 40px 20px 24px;
  margin-top: 48px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand img { height: 40px; margin-bottom: 12px; border-radius: 4px; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .85rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* 下载区块 */
.download-section { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.download-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.download-card img { max-height: 200px; margin: 0 auto 16px; border-radius: var(--radius); }
.download-card h3 { color: var(--primary-dark); margin-bottom: 10px; }
.download-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }

/* 图文展示区块 */
.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.showcase-block.reverse { direction: rtl; }
.showcase-block.reverse > * { direction: ltr; }
.showcase-block img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.showcase-block h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 12px; }
.showcase-block p { font-size: .92rem; color: var(--text-muted); margin-bottom: 10px; }

/* 优惠活动网格 */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.promo-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-card img { width: 100%; height: 200px; object-fit: cover; }
.promo-card-body { padding: 18px 20px; }
.promo-card-body h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.promo-card-body p { font-size: .85rem; color: var(--text-muted); }

/* 游戏供应商 */
.supplier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.supplier-item {
  background: var(--bg-white);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.supplier-item img { max-height: 44px; max-width: 100%; object-fit: contain; }

/* 赞助时间线 */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.sponsor-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sponsor-card img { width: 100%; height: 200px; object-fit: cover; }
.sponsor-card-body { padding: 20px; }
.sponsor-card-body h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; }
.sponsor-card-body p { font-size: .88rem; color: var(--text-muted); }

/* 全宽图片展示 */
.full-img-block { margin-bottom: 28px; }
.full-img-block img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.full-img-block figcaption { font-size: .85rem; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* 响应式 */
@media (max-width: 768px) {
  .site-header { position: sticky; }
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    height: 64px;
    padding: 0 16px;
    gap: 0;
  }
  .logo-text { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--primary-dark);
    padding: 12px 16px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: .95rem;
  }
  .nav-cta { margin-top: 4px; }
}

@media (max-width: 900px) {
  .showcase-block { grid-template-columns: 1fr; padding: 24px; }
  .showcase-block.reverse { direction: ltr; }
  .hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .hero h1 { font-size: 1.6rem; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .article-content { padding: 24px 20px; }
  .form-card { padding: 24px 20px; }
}
.hero p a{
  color: #e09510;
}