/* ============================================
   全站共享样式 /assets/site.css
   威尼斯人官网中文入口 · Site Kit
   ============================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --navy: #0A1128;
  --steel: #1B2A4A;
  --gold: #C5A059;
  --amber: #E3B877;
  --ivory: #F5F2E9;
  --mist: #D8DCE6;
  --crimson: #8C1D2F;
  --charcoal: #121212;
  --font-heading: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  --content-w: 1240px;
  --gap: 24px;
  --radius: 3px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.32), 0 10px 28px rgba(0,0,0,.2);
  --ease: cubic-bezier(.16,.84,.44,1);
  --t-fast: 200ms;
  --t-med: 320ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .6em;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ivory);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--amber);
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- 3. 无障碍与全局浮层 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  display: inline-block;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transform: translateY(-240%);
  transition: transform var(--t-med) var(--ease);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  box-shadow: 0 0 10px rgba(197,160,89,.5);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(10,17,40,.88);
  border: 1px solid rgba(197,160,89,.55);
  border-radius: 50%;
  color: var(--gold);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med), background var(--t-fast) var(--ease);
}

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

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

.back-top svg {
  width: 20px;
  height: 20px;
}

#main-content {
  flex: 1 0 auto;
  scroll-margin-top: 28px;
}

/* ---------- 4. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197,160,89,.08), transparent 65%),
    var(--navy);
  border-bottom: 1px solid rgba(216,220,230,.12);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,.5) 20%, rgba(197,160,89,.5) 80%, transparent);
}

.header-inner {
  position: relative;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
}

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

a.brand:hover .brand-name,
a.brand:hover .brand-slogan {
  color: var(--amber);
}

.brand-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 40%, rgba(197,160,89,.12), transparent 70%);
  border: 1px solid rgba(197,160,89,.6);
  border-radius: 50%;
}

.brand-emblem::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(197,160,89,.22);
  pointer-events: none;
}

.brand-emblem-svg {
  width: 28px;
  height: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--ivory);
}

.brand-slogan {
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .34em;
  color: var(--gold);
}

.masthead-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(360px, 72vw);
}

.masthead-rule::before,
.masthead-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,.8));
}

.masthead-rule::after {
  background: linear-gradient(90deg, rgba(197,160,89,.8), transparent);
}

.masthead-rule-diamond {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(197,160,89,.6);
}

.primary-nav {
  margin-top: 8px;
  border-top: 1px solid rgba(216,220,230,.08);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  position: relative;
  padding: 11px 18px 13px;
  color: var(--mist);
  font-size: .92rem;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  transform: scaleX(0);
  transform-origin: 50% 100%;
  transition: transform var(--t-med) var(--ease);
}

.nav-link:hover {
  color: var(--amber);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  margin-top: auto;
  background:
    linear-gradient(180deg, rgba(197,160,89,.05), transparent 140px),
    var(--charcoal);
  border-top: 1px solid rgba(197,160,89,.28);
  color: var(--mist);
}

.footer-inner {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 48px var(--gap) 28px;
  display: grid;
  grid-template-columns: 1.25fr .85fr 1.05fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ivory);
}

.footer-logo::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(197,160,89,.5);
}

.footer-logo-link {
  color: inherit;
  transition: color var(--t-fast) var(--ease);
}

.footer-logo-link:hover {
  color: var(--amber);
}

.footer-brand-desc {
  max-width: 40ch;
  margin: 0;
  font-size: .875rem;
  line-height: 1.75;
  color: var(--mist);
}

.footer-trust {
  margin: 4px 0 0;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--gold);
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(216,220,230,.7);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-heading {
  position: relative;
  margin: 0;
  padding-bottom: 8px;
  font-family: var(--font-heading);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ivory);
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-link {
  display: inline-block;
  font-size: .875rem;
  color: var(--mist);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.footer-link:hover {
  padding-left: 4px;
  color: var(--amber);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-contact-label {
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--gold);
}

.footer-contact-value {
  font-size: .875rem;
  color: var(--mist);
}

.footer-note {
  margin: 6px 0 0;
  font-size: .76rem;
  line-height: 1.65;
  color: rgba(216,220,230,.62);
}

.footer-bottom {
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(216,220,230,.1);
}

.footer-bottom-inner {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 18px var(--gap);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  font-size: .8rem;
  color: rgba(216,220,230,.62);
}

.footer-copy {
  margin: 0;
  letter-spacing: .04em;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.footer-legal a {
  color: rgba(216,220,230,.72);
  transition: color var(--t-fast) var(--ease);
}

.footer-legal a:hover {
  color: var(--amber);
}

.footer-legal-sep {
  color: rgba(197,160,89,.55);
}

.footer-icp {
  margin: 0;
  letter-spacing: .06em;
}

/* ---------- 6. 版面与章节 ---------- */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(27,42,74,.4), rgba(27,42,74,.12));
  border-top: 1px solid rgba(216,220,230,.06);
  border-bottom: 1px solid rgba(216,220,230,.06);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ivory);
}

.section-rule {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.layout-split {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.layout-sidebar {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- 7. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(197,160,89,.35);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}

.btn-ghost {
  border-color: rgba(216,220,230,.3);
  color: var(--mist);
}

.btn-ghost:hover {
  background: rgba(197,160,89,.06);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.6;
}

.tag-gold {
  background: rgba(197,160,89,.1);
  border-color: rgba(197,160,89,.5);
  color: var(--gold);
}

.tag-crimson {
  background: rgba(140,29,47,.28);
  border-color: rgba(140,29,47,.7);
  color: var(--ivory);
}

.tag-ivory {
  background: rgba(216,220,230,.06);
  border-color: rgba(216,220,230,.28);
  color: var(--ivory);
}

/* ---------- 8. 卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  background: var(--steel);
  border: 1px solid rgba(216,220,230,.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 78%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.card:hover {
  background: linear-gradient(180deg, rgba(27,42,74,.95), rgba(27,42,74,.75));
  border-color: rgba(197,160,89,.5);
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ivory);
}

.card-body {
  margin: 0;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 9. 时间轴 ---------- */
.timeline {
  position: relative;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(197,160,89,.12));
}

.timeline-item {
  position: relative;
  padding: 0 0 26px 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  z-index: 1;
  width: 9px;
  height: 9px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(197,160,89,.14);
}

.timeline-date {
  display: block;
  margin-bottom: 3px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
}

.timeline-title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ivory);
}

.timeline-body {
  margin: 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 10. 标签页 ---------- */
.tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid rgba(216,220,230,.16);
}

.tab-trigger {
  position: relative;
  margin-bottom: -1px;
  padding: 10px 20px 12px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--mist);
  font-size: .88rem;
  letter-spacing: .1em;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.tab-trigger:hover {
  color: var(--amber);
}

.tab-trigger[aria-selected="true"] {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.tab-panel {
  padding: 20px 2px 4px;
  font-size: .925rem;
  line-height: 1.75;
  color: var(--mist);
}

.tab-panel[hidden] {
  display: none;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 24px;
  font-size: .82rem;
  color: var(--mist);
}

.breadcrumb-link {
  color: var(--mist);
}

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

.breadcrumb-sep {
  color: rgba(216,220,230,.4);
}

.breadcrumb-current {
  color: var(--gold);
}

/* ---------- 12. 图片占位框 ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(227,184,119,.14), transparent 52%),
    linear-gradient(135deg, rgba(197,160,89,.18), transparent 58%),
    var(--steel);
  border: 1px solid rgba(197,160,89,.28);
  border-radius: var(--radius);
}

.image-frame::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -18%;
  width: 56%;
  height: 160%;
  background: linear-gradient(120deg, transparent 26%, rgba(227,184,119,.16) 50%, transparent 74%);
  transform: rotate(12deg);
  pointer-events: none;
}

.image-frame::after {
  content: attr(data-label);
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: .7rem;
  letter-spacing: .24em;
  color: var(--gold);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  pointer-events: none;
}

.image-frame--wide {
  aspect-ratio: 16 / 8;
}

.image-frame--tall {
  aspect-ratio: 3 / 4;
}

/* ---------- 13. 提示框 ---------- */
.notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: rgba(27,42,74,.55);
  border: 1px solid rgba(197,160,89,.35);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.7;
  color: var(--mist);
}

.notice-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--gold);
}

.notice-body {
  margin: 0;
}

/* ---------- 14. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  background: rgba(27,42,74,.35);
  border: 1px solid rgba(216,220,230,.14);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  color: var(--mist);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(216,220,230,.1);
}

.data-table th {
  background: var(--steel);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .1em;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(197,160,89,.05);
}

/* ---------- 15. 显现动画 ---------- */
[data-reveal] {
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

[data-reveal][data-reveal-hidden] {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0 !important;
  }

  [data-reveal][data-reveal-hidden] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 17. 响应式：平板与移动 ---------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  /* 移动导航 */
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 22px;
    right: 12px;
    z-index: 120;
    padding: 8px 10px;
    background: rgba(27,42,74,.65);
    border: 1px solid rgba(197,160,89,.4);
    border-radius: var(--radius);
    color: var(--ivory);
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  }

  .nav-toggle:hover {
    background: rgba(27,42,74,.9);
    border-color: var(--gold);
  }

  .nav-toggle-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
  }

  .nav-toggle-bar {
    display: block;
    height: 1.6px;
    background: var(--gold);
    border-radius: 1px;
    transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  }

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

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

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

  .nav-toggle-label {
    font-size: .74rem;
    letter-spacing: .24em;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    background: rgba(13,21,38,.98);
    border-top: 1px solid rgba(197,160,89,.5);
    border-bottom: 1px solid rgba(197,160,89,.22);
    box-shadow: 0 20px 36px rgba(0,0,0,.45);
  }

  .primary-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding: 6px 0;
  }

  .nav-item + .nav-item {
    border-top: 1px solid rgba(216,220,230,.07);
  }

  .nav-link {
    padding: 13px 26px;
    white-space: normal;
    border-left: 2px solid transparent;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(197,160,89,.14), transparent);
    border-left-color: var(--gold);
    color: var(--amber);
  }

  /* 页脚与版面 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout-split {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .layout-sidebar {
    position: static;
  }
}

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

@media (max-width: 480px) {
  .header-inner,
  .footer-inner,
  .footer-bottom-inner,
  .container {
    padding-inline: 16px;
  }

  .brand-emblem {
    width: 38px;
    height: 38px;
  }

  .brand-emblem-svg {
    width: 22px;
    height: 22px;
  }

  .brand-name {
    font-size: 1.06rem;
    letter-spacing: .05em;
  }

  .brand-slogan {
    font-size: .62rem;
    letter-spacing: .2em;
  }

  .nav-toggle {
    top: 18px;
    right: 6px;
  }

  .card {
    padding: 20px 18px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}
