:root {
  --bg: #f6f4ef;
  --bg-alt: #ffffff;
  --bg-soft: #efeae1;
  --text: #23262b;
  --text-soft: #5a6068;
  --text-mute: #8a9099;
  --brand: #1a1a2e;
  --brand-2: #243b53;
  --gold: #c99a4b;
  --gold-soft: #e8c07d;
  --teal: #4f8f84;
  --line: rgba(26, 26, 46, 0.12);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 10px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #10121a;
  --bg-alt: #171a24;
  --bg-soft: #1c202c;
  --text: #e9ecf2;
  --text-soft: #b3bac6;
  --text-mute: #8b93a3;
  --brand: #e8c07d;
  --brand-2: #7fb3a8;
  --gold: #e8c07d;
  --gold-soft: #f0d3a0;
  --teal: #7fb3a8;
  --line: rgba(232, 236, 242, 0.14);
  --glass: rgba(23, 26, 36, 0.62);
  --glass-border: rgba(232, 236, 242, 0.14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 192, 125, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(127, 179, 168, 0.14), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--brand-2);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.08rem, 1.8vw, 1.28rem); }

p { margin: 0 0 1em; color: var(--text-soft); }

ul, ol { color: var(--text-soft); }

::selection {
  background: var(--gold-soft);
  color: #1a1a2e;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ 头部 ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(26, 26, 46, 0.04);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: 1px;
  white-space: nowrap;
}

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

.logo svg {
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.28);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 6px 20px rgba(232, 192, 125, 0.45);
}

#main-nav {
  flex: 1 1 auto;
}

#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main-nav a {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover {
  color: var(--text);
  background: rgba(232, 192, 125, 0.14);
  transform: translateY(-1px);
}

#main-nav a:hover::after {
  width: 46%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 192, 125, 0.18);
}

.site-search input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  padding: 6px 8px 6px 0;
  width: 170px;
  outline: none;
  font-family: inherit;
}

.site-search input::placeholder {
  color: var(--text-mute);
}

.site-search button,
#theme-toggle,
#menu-toggle {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--teal));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  white-space: nowrap;
}

.site-search button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36, 59, 83, 0.28);
  filter: brightness(1.06);
}

.site-search button:active,
#theme-toggle:active,
#menu-toggle:active {
  transform: translateY(0);
}

#theme-toggle {
  background: linear-gradient(135deg, var(--gold), var(--teal));
}

#menu-toggle {
  display: none;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

/* ============ 面包屑 ============ */
.breadcrumb {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 0 20px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb [aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}

/* ============ Banner ============ */
.banner {
  position: relative;
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 0 20px;
}

.banner-track {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  background: var(--brand);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), visibility 0.8s;
  display: flex;
  align-items: center;
}

.banner-slide:first-child {
  position: relative;
}

.banner-slide[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(16, 18, 26, 0.82) 0%, rgba(16, 18, 26, 0.5) 45%, rgba(16, 18, 26, 0.08) 100%);
  z-index: 1;
}

.banner-copy {
  position: relative;
  z-index: 3;
  padding: clamp(28px, 5vw, 64px);
  max-width: 620px;
  color: #f4f1ea;
}

.banner-copy h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  margin: 0 0 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
}

.banner-copy p {
  color: rgba(244, 241, 234, 0.86);
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
  margin-bottom: 24px;
  max-width: 520px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a2e;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 26px rgba(232, 192, 125, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn:hover {
  color: #1a1a2e;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(232, 192, 125, 0.5);
  filter: brightness(1.05);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.banner-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--line);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), width 0.3s var(--ease);
}

.banner-dots button[aria-selected="true"] {
  width: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.banner-dots button:hover {
  transform: scale(1.15);
}

/* ============ 通用区块 ============ */
main {
  display: block;
}

.intro,
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.intro {
  margin-top: 48px;
  text-align: center;
}

.intro h1 {
  margin: 0 auto 22px;
  max-width: 900px;
  position: relative;
  padding-bottom: 20px;
}

.intro h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.intro .lead {
  font-size: clamp(0.96rem, 1.5vw, 1.06rem);
  color: var(--text-soft);
  max-width: 880px;
  margin: 0 auto 18px;
  text-align: left;
}

.intro p:not(.lead) {
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.section {
  margin-top: 56px;
  padding-top: 8px;
}

.section > h2 {
  position: relative;
  margin: 0 0 26px;
  padding-left: 18px;
}

.section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}

.section h3 {
  margin: 30px 0 10px;
  color: var(--text);
}

.section h3::before {
  content: "◆";
  color: var(--gold);
  font-size: 0.7em;
  margin-right: 8px;
  vertical-align: 2px;
}

.section p {
  max-width: 940px;
}

/* 卡片化区块 */
.section {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 42px);
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 192, 125, 0.35);
}

.intro {
  background: linear-gradient(160deg, rgba(232, 192, 125, 0.1), rgba(127, 179, 168, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 52px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ============ 列表 ============ */
.timeline,
.section ul,
.section ol {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}

.timeline li,
.section ul li,
.section ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.timeline li::before,
.section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: 0 0 0 3px rgba(232, 192, 125, 0.16);
}

.section ol {
  counter-reset: step;
}

.section ol li {
  counter-increment: step;
  padding-left: 40px;
  margin-bottom: 14px;
}

.section ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a2e;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 4px 12px rgba(232, 192, 125, 0.35);
}

.timeline li:hover,
.section ul li:hover,
.section ol li:hover {
  transform: translateX(4px);
  color: var(--text);
}

.timeline strong,
.section ul li strong,
.section ol li strong {
  color: var(--text);
}

.meta {
  font-size: 0.82rem;
  color: var(--text-mute);
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 16px;
  margin-top: 22px;
}

/* ============ 新闻 ============ */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.news-list li {
  padding: 14px 18px 14px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid transparent;
  color: var(--text-soft);
  position: relative;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  border-color: rgba(232, 192, 125, 0.4);
  box-shadow: var(--shadow-sm);
}

.news-list li:hover::before {
  opacity: 1;
}

.news-list time {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  color: var(--brand-2);
  background: rgba(127, 179, 168, 0.16);
  border-radius: 6px;
  padding: 2px 9px;
  margin-right: 10px;
  font-weight: 600;
}

/* ============ 文章卡片 ============ */
#articles {
  display: block;
}

.post {
  position: relative;
  margin: 22px 0 0;
  padding: 24px 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-alt), var(--bg-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

.post::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 192, 125, 0.45);
}

.post:hover::before {
  transform: scaleY(1);
}

.post h3 {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  transition: color 0.3s var(--ease);
}

.post:hover h3 {
  color: var(--gold);
}

.post-meta {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.post p:not(.post-meta) {
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.post > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-2);
  padding: 6px 0;
  position: relative;
}

.post > a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.post > a:hover {
  color: var(--gold);
}

.post > a:hover::after {
  transform: translateX(5px);
}

/* ============ FAQ ============ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-list details:hover {
  border-color: rgba(232, 192, 125, 0.45);
  box-shadow: var(--shadow-sm);
}

.faq-list details[open] {
  background: var(--bg-alt);
  border-color: rgba(232, 192, 125, 0.5);
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease);
  font-size: 0.95rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 400;
  color: #1a1a2e;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  transition: transform 0.35s var(--ease);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list summary:hover {
  color: var(--gold);
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  animation: fadeSlide 0.4s var(--ease);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 案例引用 ============ */
blockquote {
  margin: 16px 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 192, 125, 0.12), rgba(127, 179, 168, 0.1));
  border-left: 4px solid var(--gold);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 14px;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.4;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ============ 联系 & 地图 ============ */
.contact-info {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.contact-info li {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-soft);
  position: relative;
  padding-left: 40px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-info li::before {
  content: "◦";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

.contact-info li:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 192, 125, 0.5);
  box-shadow: var(--shadow-sm);
}

/* ============ 网站地图 & 友情链接 ============ */
.sitemap-list,
.friend-links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
  padding: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #1a1a2e;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232, 192, 125, 0.35);
}

/* ============ 更新说明 ============ */
.update-note {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 14px 22px;
  font-size: 0.8rem;
  color: var(--text-mute);
  text-align: center;
  border-top: 1px dashed var(--line);
}

/* ============ 页脚 ============ */
#site-footer {
  margin-top: 56px;
  background: linear-gradient(160deg, #1a1a2e, #243b53 60%, #16273b);
  color: rgba(244, 241, 234, 0.78);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 192, 125, 0.18), transparent 65%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 20px 30px;
  position: relative;
  z-index: 1;
}

.footer-inner p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: rgba(244, 241, 234, 0.72);
  line-height: 1.9;
}

.footer-inner p:first-child {
  color: #f4f1ea;
  font-weight: 600;
}

.footer-inner a {
  color: var(--gold-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-inner a:hover {
  color: #fff;
  border-bottom-color: var(--gold-soft);
}

/* ============ 返回顶部 ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 0;
  color: transparent;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.3s var(--ease);
}

#back-to-top::before {
  content: "↑";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ============ 滚动动画 ============ */
@media (prefers-reduced-motion: no-preference) {
  .intro,
  .section,
  .post,
  .news-list li,
  .faq-list details {
    animation: riseIn 0.7s var(--ease) both;
  }

  .section:nth-of-type(2n) { animation-delay: 0.04s; }
  .section:nth-of-type(3n) { animation-delay: 0.08s; }

  @keyframes riseIn {
    from {
      opacity: 0;
      transform: translateY(26px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @supports (animation-timeline: view()) {
    .section,
    .post {
      animation: none;
    }
    .section,
    .post,
    .news-list li {
      animation: viewRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes viewRise {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }
  #main-nav a {
    padding: 6px 9px;
    font-size: 0.86rem;
  }
  .site-search input {
    width: 130px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    flex-wrap: nowrap;
    padding: 0 14px;
  }

  #menu-toggle {
    display: inline-block;
    order: 3;
  }

  #main-nav {
    order: 5;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
    opacity: 0;
  }

  #main-nav.is-open {
    max-height: 620px;
    opacity: 1;
    overflow-y: auto;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 16px;
  }

  #main-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
  }

  #main-nav a::after {
    display: none;
  }

  .site-search {
    margin-left: auto;
  }

  .site-search input {
    width: 110px;
  }

  .site-search button {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  #theme-toggle {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .banner-track {
    min-height: 320px;
  }

  .banner-slide:not(:first-child) {
    position: absolute;
  }

  .banner-copy {
    padding: 26px 22px;
  }

  .banner-copy p {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 8px 14px;
    gap: 8px;
  }

  .logo {
    font-size: 1rem;
  }

  .logo svg {
    width: 34px;
    height: 34px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .site-search {
    flex: 1 1 auto;
  }

  .site-search input {
    width: 100%;
    min-width: 0;
  }

  .banner {
    padding: 0 14px;
    margin-top: 14px;
  }

  .banner-track {
    min-height: 300px;
    border-radius: var(--radius);
  }

  .banner-copy h2 {
    font-size: 1.35rem;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.86rem;
  }

  .intro,
  .section {
    margin-top: 34px;
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  .breadcrumb {
    padding: 0 14px;
    margin-top: 14px;
  }

  .section > h2 {
    padding-left: 14px;
    margin-bottom: 20px;
  }

  .section > h2::before {
    width: 4px;
  }

  .post {
    padding: 18px 18px 16px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .news-list time {
    display: block;
    width: fit-content;
    margin: 0 0 6px;
  }

  .news-list li {
    padding: 12px 14px;
  }

  .faq-list summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.9rem;
  }

  .faq-list details p {
    padding: 0 16px 16px;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .footer-inner {
    padding: 32px 16px 24px;
  }
}

@media (max-width: 400px) {
  .banner-copy h2 {
    font-size: 1.2rem;
  }
  .site-search button {
    padding: 7px 10px;
  }
  #theme-toggle,
  #menu-toggle {
    padding: 8px 10px;
  }
}

/* ============ 主题切换过渡 ============ */
body,
.section,
.post,
.news-list li,
.faq-list details,
.contact-info li,
blockquote,
.site-search,
.intro {
  transition-property: background-color, color, border-color, box-shadow, transform;
  transition-duration: 0.35s;
  transition-timing-function: var(--ease);
}

/* ============ 打印 ============ */
@media print {
  #site-header,
  .banner,
  #back-to-top,
  #site-footer,
  .banner-dots,
  .header-tools {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section,
  .intro,
  .post {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}
</style>