/* ============================================================
   63棋牌官网版游戏中心 — 全站共享样式 /assets/site.css
   ============================================================ */

/* ---------- 0. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- 1. 变量 ---------- */
:root {
  --c-deep-blue: #0A1E3F;
  --c-gold: #D4AF37;
  --c-warm-paper: #F5EFE6;
  --c-ink: #1A1A2E;
  --c-violet: #5A4FCF;
  --c-deep-purple: #3B2A6D;
  --c-ash: #F8F9FA;
  --c-soft-gold: #C9A96E;
  --c-blue-ink: #0B2D4E;

  --font-title: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --header-w: 300px;
  --radius: 8px;
  --radius-lg: 14px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C9A96E 100%);
  --glass-bg: rgba(248, 249, 250, 0.82);
  --shadow-panel: 0 12px 36px rgba(10, 30, 63, 0.12);
  --shadow-gold: 0 6px 20px rgba(212, 175, 55, 0.28);
  --board-pattern:
    linear-gradient(45deg, rgba(212, 175, 55, 0.07) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(212, 175, 55, 0.07) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.07) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.07) 75%);
  --board-size: 28px 28px;
}

/* ---------- 2. 基础排版 ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-ink);
  background-color: var(--c-warm-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-deep-blue);
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--c-deep-blue);
  text-decoration: none;
  transition: color var(--transition), box-shadow var(--transition);
}

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

ul, ol {
  padding-left: 1.4em;
}

ul {
  list-style: square;
}

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

[id] {
  scroll-margin-top: 100px;
}

/* ---------- 3. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -72px;
  left: 12px;
  z-index: 2000;
  display: inline-block;
  padding: 10px 22px;
  background: var(--gold-gradient);
  color: var(--c-deep-blue);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-gold);
  transition: top 0.25s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: none;
}

/* ---------- 4. 阅读进度条 ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1600;
  width: 100%;
  height: 3px;
  background: rgba(212, 175, 55, 0.12);
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-gradient);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
  transition: width 60ms linear;
}

/* ---------- 5. 头部：移动端顶部栏 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1400;
  width: 100%;
  background: linear-gradient(165deg, var(--c-deep-blue) 0%, var(--c-blue-ink) 90%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: var(--c-deep-blue);
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: var(--shadow-gold);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 13px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  pointer-events: none;
}

.brand-mark:hover {
  transform: translateY(-2px) scale(1.03);
  color: var(--c-deep-blue);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
}

.brand-text {
  min-width: 0;
}

.brand-identity {
  display: inline-block;
}

.brand-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-soft-gold);
  margin-bottom: 1px;
}

.brand-name {
  display: block;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  white-space: nowrap;
}

.brand-identity:hover .brand-name {
  color: var(--c-gold);
}

.brand-motto {
  display: none;
  color: rgba(245, 239, 230, 0.55);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.06);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.nav-toggle:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--c-gold);
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  box-shadow: 0 6px 0 var(--c-gold), 0 -6px 0 var(--c-gold);
}

.nav-toggle-label {
  font-size: 10px;
  color: var(--c-gold);
  letter-spacing: 0.18em;
}

.site-nav {
  display: none;
  width: 100%;
  background: var(--c-blue-ink);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.site-nav[data-open] {
  display: block;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list a {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: rgba(245, 239, 230, 0.78);
  border-bottom: 1px solid rgba(245, 239, 230, 0.07);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}

.nav-list a:last-child {
  border-bottom: none;
}

.nav-list a:hover {
  color: var(--c-gold);
  background: rgba(212, 175, 55, 0.06);
  padding-left: 30px;
}

.nav-list a[aria-current="page"] {
  color: var(--c-gold);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), transparent);
}

.nav-list a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  vertical-align: 2px;
}

.header-aside {
  display: none;
}

/* ---------- 6. 主内容区（移动端清除固定头部） ---------- */
#main-content {
  display: block;
  position: relative;
  min-height: 60vh;
  padding: 96px 20px 48px;
}

#main-content:focus {
  outline: none;
}

.content-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4px;
}

/* ---------- 7. 桌面端：侧边品牌轨道 ---------- */
@media (min-width: 1025px) {
  .site-header {
    display: flex;
    flex-direction: column;
    width: var(--header-w);
    height: 100vh;
    border-bottom: none;
    border-right: 1px solid rgba(212, 175, 55, 0.22);
    background:
      var(--board-pattern),
      linear-gradient(180deg, var(--c-deep-blue) 0%, var(--c-blue-ink) 55%, var(--c-deep-purple) 135%);
    background-size: var(--board-size), cover;
    background-repeat: repeat, no-repeat;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .site-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, var(--c-gold) 0%, rgba(212, 175, 55, 0.08) 55%, transparent 100%);
    pointer-events: none;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
    pointer-events: none;
  }

  .site-header::-webkit-scrollbar {
    width: 4px;
  }

  .site-header::-webkit-scrollbar-track {
    background: transparent;
  }

  .site-header::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 2px;
  }

  .header-inner {
    display: block;
    flex-shrink: 0;
    max-width: none;
    margin: 0;
    padding: 36px 30px 18px;
  }

  .brand-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    font-size: 24px;
    margin-bottom: 4px;
  }

  .brand-name {
    font-size: 20px;
    white-space: normal;
    letter-spacing: 0.02em;
  }

  .brand-motto {
    display: block;
    line-height: 1.7;
    max-width: 220px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    flex: 1 1 auto;
    background: transparent;
    border-bottom: none;
    padding: 12px 0 16px;
    overflow-y: auto;
  }

  .nav-list a {
    padding: 13px 14px;
    font-size: 15px;
    color: rgba(245, 239, 230, 0.68);
    border-bottom: none;
    border-left: 2px solid transparent;
    position: relative;
    letter-spacing: 0.12em;
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 6px;
    width: 0;
    height: 1px;
    background: var(--gold-gradient);
    transition: width 0.35s ease;
  }

  .nav-list a:hover {
    padding-left: 14px;
    color: var(--c-gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent 80%);
    border-left-color: var(--c-soft-gold);
  }

  .nav-list a:hover::after {
    width: 28px;
  }

  .nav-list a[aria-current="page"] {
    color: var(--c-gold);
    font-weight: 600;
    border-left-color: var(--c-gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent 85%);
  }

  .nav-list a[aria-current="page"]::before {
    display: none;
  }

  .header-aside {
    display: flex;
    flex-shrink: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 30px 26px;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
  }

  .header-contact {
    min-width: 0;
  }

  .header-contact-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.4);
    margin-bottom: 6px;
  }

  .header-contact-phone {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--c-gold);
    letter-spacing: 0.03em;
  }

  .header-contact-phone:hover {
    color: #FFFFFF;
  }

  .header-note {
    display: block;
    writing-mode: vertical-rl;
    height: 110px;
    font-size: 11px;
    letter-spacing: 0.28em;
    white-space: nowrap;
    line-height: 1.5;
    color: rgba(245, 239, 230, 0.32);
    border-right: 1px solid rgba(212, 175, 55, 0.22);
    padding-right: 8px;
  }

  #main-content {
    margin-left: var(--header-w);
    padding: 56px 48px 88px;
  }

  .reading-progress {
    left: var(--header-w);
    width: calc(100% - var(--header-w));
  }
}

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

  .brand-kicker {
    font-size: 9px;
  }

  #main-content {
    padding-top: 100px;
  }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, var(--c-deep-blue) 0%, var(--c-blue-ink) 55%, var(--c-deep-purple) 135%);
  color: rgba(245, 239, 230, 0.8);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold) 0%, transparent 40%, transparent 60%, rgba(212, 175, 55, 0.4) 100%);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.1);
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: var(--c-deep-blue);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: var(--shadow-gold);
}

.footer-brand-mark:hover {
  color: var(--c-deep-blue);
}

.footer-brand-text {
  min-width: 0;
}

.footer-brand-name {
  display: block;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-brand-motto {
  display: block;
  font-size: 12px;
  color: rgba(245, 239, 230, 0.5);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
  margin-bottom: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--c-gold);
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(245, 239, 230, 0.7);
}

.footer-links a:hover {
  color: var(--c-gold);
  padding-left: 6px;
}

.footer-contact-line {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(245, 239, 230, 0.7);
  margin-bottom: 4px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(245, 239, 230, 0.55);
  border-left: 2px solid rgba(212, 175, 55, 0.3);
  padding-left: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 239, 230, 0.1);
  font-size: 12px;
  color: rgba(245, 239, 230, 0.42);
}

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

.footer-support {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(245, 239, 230, 0.32);
}

@media (min-width: 1025px) {
  .site-footer {
    margin-left: var(--header-w);
  }
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- 9. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--c-deep-blue);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  color: var(--c-deep-blue);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--c-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--c-gold);
  border-color: var(--c-gold);
}

.btn-deep {
  background: var(--c-deep-blue);
  color: #FFFFFF;
}

.btn-deep:hover {
  background: var(--c-blue-ink);
  color: var(--c-gold);
}

.panel-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.panel-dark {
  background: linear-gradient(160deg, var(--c-deep-blue), var(--c-blue-ink));
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-lg);
  color: rgba(245, 239, 230, 0.75);
}

.board-bg {
  background-color: var(--c-warm-paper);
  background-image: var(--board-pattern);
  background-size: var(--board-size);
}

.img-frame {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-blue-ink) 0%, var(--c-deep-purple) 100%);
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.img-frame-16x9 {
  aspect-ratio: 16 / 9;
}

.img-frame-4x3 {
  aspect-ratio: 4 / 3;
}

.img-frame-1x1 {
  aspect-ratio: 1 / 1;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.page-head {
  position: relative;
  padding: 12px 0 32px;
}

.page-head::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold-gradient);
  margin-bottom: 22px;
  border-radius: 2px;
}

.page-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--c-soft-gold);
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.page-lead {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(26, 26, 46, 0.72);
  max-width: 720px;
  margin-bottom: 0;
}

.section-title {
  font-size: clamp(22px, 2.8vw, 30px);
  margin: 44px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--c-gold);
}

.note-vertical {
  display: inline-flex;
  align-items: center;
  height: 138px;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(26, 26, 46, 0.5);
  border-right: 1px solid var(--c-gold);
  padding-right: 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(26, 26, 46, 0.55);
}

.breadcrumbs a {
  color: rgba(26, 26, 46, 0.7);
}

.breadcrumbs a:hover {
  color: var(--c-soft-gold);
}

.breadcrumbs .breadcrumbs-current {
  color: var(--c-deep-blue);
  font-weight: 600;
}

.breadcrumbs-separator {
  color: rgba(26, 26, 46, 0.3);
}

.rule-gold {
  width: 64px;
  height: 3px;
  border: none;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 28px 0;
}

/* ---------- 10. 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 11. 响应式通用 ---------- */
@media (max-width: 900px) {
  .site-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 12. 动效偏好 ---------- */
@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;
  }

  .reading-progress span {
    transition: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
