:root {
  --brand: #2f5d62;
  --brand-2: #3f7d7a;
  --brand-3: #1f3f42;
  --accent: #e8d5a3;
  --accent-soft: #f4efe2;
  --bg: #fbfaf6;
  --bg-soft: #f2efe6;
  --bg-card: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --text: #23302f;
  --text-soft: #4d5c5a;
  --text-mute: #7a8785;
  --border: #dcd7c9;
  --border-soft: rgba(47, 93, 98, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(47, 93, 98, 0.06);
  --shadow: 0 8px 28px rgba(47, 93, 98, 0.1);
  --shadow-lg: 0 18px 48px rgba(47, 93, 98, 0.16);
  --grad-brand: linear-gradient(135deg, #2f5d62 0%, #3f7d7a 55%, #4e9a8f 100%);
  --grad-accent: linear-gradient(135deg, #e8d5a3 0%, #f4efe2 100%);
  --grad-hero: linear-gradient(135deg, rgba(47, 93, 98, 0.08) 0%, rgba(232, 213, 163, 0.16) 100%);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.dark-mode {
  --brand: #6fb3a8;
  --brand-2: #8fd0c4;
  --brand-3: #0f1a19;
  --accent: #e8d5a3;
  --accent-soft: #2a3a37;
  --bg: #101a18;
  --bg-soft: #16221f;
  --bg-card: rgba(29, 43, 41, 0.72);
  --glass: rgba(22, 34, 31, 0.55);
  --glass-strong: rgba(22, 34, 31, 0.82);
  --text: #e9efec;
  --text-soft: #b6c4c0;
  --text-mute: #8a9a96;
  --border: #2a3b38;
  --border-soft: rgba(143, 208, 196, 0.16);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --grad-brand: linear-gradient(135deg, #1f3f42 0%, #2f5d62 55%, #3f7d7a 100%);
  --grad-hero: linear-gradient(135deg, rgba(111, 179, 168, 0.1) 0%, rgba(232, 213, 163, 0.08) 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 213, 163, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(63, 125, 122, 0.16) 0%, transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(47, 93, 98, 0.1) 0%, transparent 55%);
  transition: opacity 0.4s var(--ease);
}

body.dark-mode::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 213, 163, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(111, 179, 168, 0.14) 0%, transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(63, 125, 122, 0.16) 0%, transparent 55%);
}

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

a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.dark-mode a {
  color: var(--accent);
}

body.dark-mode a:hover {
  color: #f7ecd0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.42;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin: 0 0 1rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 0 0 1.3rem;
  padding-bottom: 0.55rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
  opacity: 0.85;
}

h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  margin: 1.9rem 0 0.7rem;
}

h4 {
  font-size: 1.04rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--brand-2);
}

body.dark-mode h4 {
  color: var(--accent);
}

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

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

strong {
  color: var(--text);
}

::selection {
  background: var(--accent);
  color: var(--brand-3);
}

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

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-sticky {
  box-shadow: var(--shadow);
  background: var(--glass-strong);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--brand);
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.logo svg {
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

body.dark-mode .logo {
  color: var(--accent);
}

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

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-size: 0.92rem;
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--brand-2);
  text-decoration: none;
}

.main-nav a:hover::after {
  width: 100%;
}

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

.site-search {
  display: flex;
  align-items: stretch;
}

.site-search input {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.42rem 0.7rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.88rem;
  width: 180px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.3s var(--ease);
}

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

.site-search input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(63, 125, 122, 0.16);
}

.site-search button {
  border: 1px solid var(--brand);
  background: var(--grad-brand);
  color: #fff;
  padding: 0.42rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: 0.88rem;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.08);
}

.site-search button:active {
  transform: scale(0.97);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--brand-2);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  max-width: var(--max);
  margin: 1.6rem auto 0;
  padding: 2rem 1.2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--grad-hero), var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 213, 163, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: floatGlow 9s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-30px, 24px) scale(1.12);
  }
}

.hero-slides {
  position: relative;
  min-height: 270px;
  z-index: 1;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
  animation: slideFade 0.6s var(--ease) both;
}

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

.hero-slide h1,
.hero-slide h2 {
  border: none;
  padding: 0;
  display: block;
}

.hero-slide h1::after,
.hero-slide h2::after {
  display: none;
}

.hero-slide h1 {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.dark-mode .hero-slide h1 {
  background: linear-gradient(135deg, #e8d5a3 0%, #8fd0c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slide h2 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
}

.hero-slide p {
  font-size: 1rem;
  max-width: 56ch;
}

.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background: var(--grad-brand);
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(47, 93, 98, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(47, 93, 98, 0.34);
  filter: brightness(1.05);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  position: relative;
  z-index: 1;
}

.hero-controls > button {
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-family: inherit;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-controls > button:hover {
  background: var(--accent-soft);
  border-color: var(--brand-2);
  transform: translateY(-1px);
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--brand-2);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), width 0.3s var(--ease);
}

.hero-dots button:hover {
  transform: scale(1.25);
}

.hero-dots button.is-active {
  background: var(--grad-brand);
  width: 24px;
  border-radius: 999px;
}

.hero-figure {
  margin: 0;
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  opacity: 0;
  transform: translateY(18px);
}

.hero-figure.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-figure:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 24px 60px rgba(47, 93, 98, 0.24);
}

.hero-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.breadcrumb {
  max-width: var(--max);
  margin: 1.4rem auto 0;
  padding: 0 1.2rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border);
}

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

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

.anchor-nav {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 0.7rem 1.2rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.anchor-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.anchor-nav a {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.anchor-nav a:hover {
  background: var(--accent-soft);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}

.section {
  max-width: var(--max);
  margin: 2.8rem auto 0;
  padding: 0 1.2rem;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.section > h2 {
  margin-top: 0;
}

.section ul,
.section ol {
  padding-left: 1.4rem;
}

.section li {
  margin-bottom: 0.45rem;
}

.section li::marker {
  color: var(--brand-2);
}

.section address {
  font-style: normal;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.section address:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.section address p {
  margin: 0 0 0.45rem;
}

.section address p:last-child {
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.8rem 0 0;
}

.stat {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.75;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-2);
}

.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.dark-mode .stat-num {
  background: linear-gradient(135deg, #e8d5a3 0%, #8fd0c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.article-card {
  position: relative;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: opacity, transform;
}

.article-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.article-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-2);
  transform: translateY(-3px);
}

.article-card h3 {
  margin-top: 0;
  transition: color 0.25s var(--ease);
}

.article-card:hover h3 {
  color: var(--brand-2);
}

.article-card time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 0.4rem;
}

.article-card > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-2);
}

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

.article-card > a:hover::after {
  transform: translateX(4px);
}

blockquote {
  margin: 0 0 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

blockquote footer {
  font-size: 0.85rem;
  color: var(--text-mute);
}

details {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

details:hover {
  border-color: var(--brand-2);
}

details[open] {
  box-shadow: var(--shadow);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  padding-right: 1.6rem;
  position: relative;
  transition: color 0.25s var(--ease);
}

details summary:hover {
  color: var(--brand-2);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand-2);
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--brand-2);
  color: #fff;
}

details p {
  margin: 0.8rem 0 0;
  animation: slideFade 0.4s var(--ease) both;
}

.site-footer {
  position: relative;
  margin-top: 3.6rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2.4rem 1.2rem 1.6rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.7;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.site-footer h3 {
  font-size: 1rem;
  margin: 0 0 0.7rem;
  color: var(--text);
}

.site-footer h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 0.4rem;
  border-radius: 2px;
  background: var(--accent);
}

.site-footer p {
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
  color: var(--text-soft);
}

.site-footer > section {
  max-width: var(--max);
  margin: 1.4rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border);
}

.site-footer > section h3 {
  font-size: 0.95rem;
}

.site-footer > section p {
  font-size: 0.83rem;
  color: var(--text-mute);
}

.footer-copy {
  max-width: var(--max);
  margin: 1.8rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-mute);
  text-align: center;
}

#backToTop {
  position: fixed;
  right: 1.2rem;
  bottom: 1.4rem;
  z-index: 90;
  border: 1px solid var(--brand);
  background: var(--grad-brand);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), filter 0.25s var(--ease);
}

#backToTop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 0.8rem;
  }

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

  .hero {
    gap: 1.4rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.1rem;
  }

  .hero-figure {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-slides {
    min-height: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

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

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

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  .header-inner {
    padding: 0.6rem 0.9rem;
    gap: 0.6rem;
  }

  .logo {
    font-size: 1.05rem;
  }

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

  .header-tools {
    gap: 0.4rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    order: 5;
    border-top: 1px solid var(--border-soft);
    padding-top: 0.6rem;
    animation: slideFade 0.35s var(--ease) both;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.1rem;
  }

  .main-nav a {
    display: block;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid var(--border-soft);
  }

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

  .site-search input {
    width: 100px;
    font-size: 0.82rem;
  }

  .site-search button {
    padding: 0.42rem 0.6rem;
    font-size: 0.82rem;
  }

  .theme-toggle,
  .menu-toggle {
    padding: 0.42rem 0.6rem;
    font-size: 0.8rem;
  }

  .hero {
    margin-top: 1rem;
    border-radius: var(--radius);
  }

  .hero-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-slide p {
    font-size: 0.96rem;
  }

  .breadcrumb,
  .anchor-nav {
    margin-top: 0.9rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .section {
    margin-top: 2rem;
    padding: 0 0.9rem;
  }

  .stats {
    gap: 0.7rem;
  }

  .stat {
    padding: 0.9rem 0.6rem;
  }

  .stat-num {
    font-size: 1.55rem;
  }

  .article-card {
    padding: 1rem 1rem;
  }

  details {
    padding: 0.75rem 0.9rem;
  }

  .site-footer {
    padding: 1.8rem 0.9rem 1.2rem;
  }

  #backToTop {
    right: 0.8rem;
    bottom: 0.9rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .site-search {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero-controls > button {
    padding: 0.34rem 0.7rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .section,
  .article-card,
  .hero-figure {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .anchor-nav,
  .hero-controls,
  #backToTop,
  .site-search,
  .theme-toggle,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    opacity: 1;
    transform: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}