/* ============================================
   500彩票娱乐 · 全站共享样式
   路径：/assets/site.css
   ============================================ */

/* ---------- 1. 样式变量 ---------- */
:root {
  --navy: #0A1E3F;
  --navy-deep: #071531;
  --navy-soft: #12305F;
  --gold: #F5D166;
  --gold-deep: #C8860A;
  --gold-lite: #F7E7B4;
  --paper: #F8F0E3;
  --red: #D7263D;
  --blue-lite: #3A6BA0;
  --ink: #1F2430;
  --ink-soft: #5A6478;
  --silver: #C0C8D0;
  --grad-gold: linear-gradient(135deg, #F5D166 0%, #C8860A 100%);
  --shadow-card: 0 8px 24px rgba(10, 30, 63, 0.10);
  --shadow-hover: 0 16px 40px rgba(10, 30, 63, 0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --font-head: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --container-max: 1200px;
  --header-h: 80px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset 与基础排版 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue-lite);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-head);
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- 3. 工具类 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container,
.header-frame,
.footer-frame {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- 4. 文字组件 ---------- */
.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--navy);
}

.section-desc {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.divider-gold {
  display: block;
  height: 4px;
  width: 64px;
  margin: 24px 0;
  border: 0;
  border-radius: 4px;
  background: var(--grad-gold);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(200, 134, 10, 0.28);
}

.btn-gold:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200, 134, 10, 0.38);
}

.btn-outline {
  background: transparent;
  border-color: rgba(10, 30, 63, 0.3);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(10, 30, 63, 0.05);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(245, 209, 102, 0.55);
  color: var(--gold);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(245, 209, 102, 0.12);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ---------- 6. 栅格与区块 ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section {
  padding: 72px 0;
}

.panel {
  background: #FDF8EF;
  border: 1px solid rgba(192, 200, 208, 0.55);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* ---------- 7. 卡片与标签 ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(200, 134, 10, 0.14);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-deep);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  background: rgba(58, 107, 160, 0.12);
  color: var(--blue-lite);
}

.tag-gold {
  background: var(--gold-lite);
  color: var(--gold-deep);
}

.tag-red {
  background: rgba(215, 38, 61, 0.1);
  color: var(--red);
}

/* ---------- 8. 索引列表 ---------- */
.index-list {
  display: grid;
  gap: 10px;
}

.index-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid rgba(192, 200, 208, 0.5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.index-item:hover {
  transform: translateX(6px);
  border-color: rgba(200, 134, 10, 0.35);
  box-shadow: var(--shadow-hover);
}

.index-meta {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}

.index-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-desc {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 9. 数据数字 ---------- */
.data-num {
  display: inline-block;
  min-width: 34px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--gold-lite);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
}

.data-num--red {
  background: rgba(215, 38, 61, 0.12);
  color: var(--red);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--blue-lite);
}

.breadcrumb a:hover {
  color: var(--gold-deep);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 4px;
  color: var(--silver);
  font-weight: 700;
}

/* ---------- 11. 图片容器 ---------- */
.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border: 1px solid rgba(245, 209, 102, 0.16);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.image-frame:hover img {
  transform: scale(1.03);
}

.image-frame-placeholder {
  padding: 24px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-lite);
  text-align: center;
  opacity: 0.75;
}

/* ---------- 12. 背景与文字工具 ---------- */
.bg-navy {
  background: var(--navy);
  color: var(--silver);
}

.bg-navy .section-title { color: var(--paper); }
.bg-navy .section-desc { color: var(--silver); }
.bg-navy .section-kicker { color: var(--gold); }

.bg-paper {
  background: var(--paper);
  color: var(--ink);
}

.text-gold { color: var(--gold-deep); }
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }

/* ---------- 13. 主内容 ---------- */
#main-content {
  display: block;
  min-height: 60vh;
  padding-top: calc(var(--header-h) + 24px);
  outline: none;
}

/* ---------- 14. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(10, 30, 63, 0.35);
  transform: translateY(-150%);
  transition: transform 0.3s ease;
}

.skip-link:hover { color: var(--navy); }

.skip-link:focus { transform: translateY(0); }

/* ---------- 15. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 0;
  height: 3px;
  background: var(--grad-gold);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

/* ---------- 16. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 4px 28px rgba(7, 21, 49, 0.35);
}

.site-header::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 209, 102, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--grad-gold);
  z-index: 2;
}

.header-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* 品牌模块 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  text-decoration: none;
}

.brand:hover { color: var(--paper); }

.brand-mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--grad-gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(200, 134, 10, 0.35);
  transform: rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-desc {
  margin-top: 3px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-lite);
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(247, 231, 180, 0.3);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(245, 209, 102, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* 主导航 */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold-lite);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(245, 209, 102, 0.1);
}

.nav-link[aria-current="page"] {
  color: var(--navy);
  background: var(--grad-gold);
  font-weight: 700;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  opacity: 0.55;
}

.nav-link[aria-current="page"] .nav-index { opacity: 1; }

/* ---------- 17. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: var(--silver);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-gold);
  z-index: 2;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 209, 102, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.footer-frame {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.85fr 0.85fr;
  gap: 44px;
  margin-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-tagline {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.footer-trust {
  max-width: 34em;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(192, 200, 208, 0.72);
}

.footer-heading {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 209, 102, 0.22);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.footer-contact-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
}

.footer-contact-label {
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-lite);
}

.footer-contact-value {
  word-break: break-all;
}

.footer-contact .btn { margin-top: 18px; }

.footer-nav-list {
  display: grid;
  gap: 10px;
}

.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-nav-list a:hover::before { opacity: 1; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(192, 200, 208, 0.14);
  font-size: 13px;
  color: rgba(192, 200, 208, 0.68);
}

.footer-copyright,
.footer-icp {
  margin: 0;
}

.footer-watermark {
  position: absolute;
  right: 28px;
  bottom: -30px;
  z-index: 0;
  font-family: var(--font-head);
  font-size: 200px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 209, 102, 0.06);
  pointer-events: none;
  user-select: none;
}

/* ---------- 18. 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--navy);
  border: 1px solid rgba(245, 209, 102, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(7, 21, 49, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s ease, color 0.2s ease;
}

.back-to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ---------- 19. 响应式调整 ---------- */
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-watermark {
    font-size: 140px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    z-index: 99;
    padding: 14px;
    background: var(--navy-soft);
    border: 1px solid rgba(247, 231, 180, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(7, 21, 49, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(247, 231, 180, 0.1);
    border-radius: 0;
  }

  .nav-link:last-of-type {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .container,
  .header-frame,
  .footer-frame {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 48px 0;
  }

  .panel {
    padding: 22px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #main-content {
    padding-top: calc(72px + 16px);
  }

  .footer-frame {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 12px;
  }

  .brand-desc {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .brand {
    gap: 10px;
  }
}

/* ---------- 20. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .index-item:hover,
  .btn-gold:hover,
  .btn-outline:hover,
  .btn-ghost:hover,
  .image-frame:hover img {
    transform: none;
  }

  .skip-link {
    transition: none;
  }
}
