:root {
  --sakura-50: #fff7f9;
  --sakura-100: #ffeef3;
  --sakura-200: #ffd9e3;
  --sakura-300: #f7a8b8;
  --sakura-400: #ef8ba1;
  --sakura-500: #e06c88;
  --sakura-600: #c76b82;
  --sakura-700: #a44f66;
  --ink-900: #2b2226;
  --ink-800: #3b3035;
  --ink-700: #4d4046;
  --ink-600: #6b5b62;
  --ink-500: #8a7a81;
  --ink-400: #a99aa0;
  --paper: #fffafc;
  --paper-2: #ffffff;
  --paper-3: #fdf1f4;
  --line: rgba(199, 107, 130, 0.18);
  --line-strong: rgba(199, 107, 130, 0.32);
  --shadow-sm: 0 2px 8px rgba(164, 79, 102, 0.08);
  --shadow-md: 0 10px 30px rgba(164, 79, 102, 0.12);
  --shadow-lg: 0 24px 60px rgba(164, 79, 102, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --maxw: 1180px;
  --header-h: 132px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --sakura-50: #1c1519;
  --sakura-100: #241a20;
  --sakura-200: #33232c;
  --sakura-300: #f7a8b8;
  --sakura-400: #f2b3c2;
  --sakura-500: #ef8ba1;
  --sakura-600: #f0a4b6;
  --sakura-700: #f7c2cf;
  --ink-900: #f6eef1;
  --ink-800: #ebdfe4;
  --ink-700: #d9c8cf;
  --ink-600: #bda9b1;
  --ink-500: #9c8891;
  --ink-400: #7d6a73;
  --paper: #161014;
  --paper-2: #1d1519;
  --paper-3: #221820;
  --line: rgba(247, 168, 184, 0.16);
  --line-strong: rgba(247, 168, 184, 0.3);
  --shadow-sm: 0 2px 8px 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);
  --glass-bg: rgba(34, 24, 32, 0.6);
  --glass-border: rgba(247, 168, 184, 0.18);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-800);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 8% -10%, rgba(247, 168, 184, 0.22), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(255, 217, 227, 0.35), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(247, 168, 184, 0.14), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

html[data-theme="dark"] body {
  background-image:
    radial-gradient(1200px 600px at 8% -10%, rgba(247, 168, 184, 0.1), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(224, 108, 136, 0.12), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(247, 168, 184, 0.08), transparent 60%);
}

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

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

a:hover,
a:focus-visible {
  color: var(--sakura-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink-900);
  line-height: 1.35;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }

strong { color: var(--ink-900); font-weight: 700; }

time {
  color: var(--ink-500);
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
}

blockquote {
  margin: 0 0 1.2em;
  padding: 1.1em 1.4em;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--sakura-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--ink-700);
  font-style: italic;
}

blockquote p:last-child { margin-bottom: 0; }

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

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 0.78rem;
  color: var(--ink-500);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.02em;
}

#site-header nav[aria-label="主导航"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; color: var(--sakura-600); }

.logo svg {
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(224, 108, 136, 0.35);
  transition: transform 0.5s var(--ease);
}

.logo:hover svg { transform: rotate(12deg) scale(1.06); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.nav-links li { margin: 0; }

.nav-links a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-700);
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--sakura-100);
  color: var(--sakura-700);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.site-search input[type="search"] {
  width: 168px;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--ink-800);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: width 0.35s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search input[type="search"]::placeholder { color: var(--ink-400); }

.site-search input[type="search"]:focus {
  width: 210px;
  outline: none;
  border-color: var(--sakura-400);
  box-shadow: 0 0 0 3px rgba(247, 168, 184, 0.25);
}

.site-search button,
#theme-toggle,
#menu-toggle {
  padding: 7px 15px;
  font-family: inherit;
  font-size: 0.86rem;
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-600));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(224, 108, 136, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(224, 108, 136, 0.42);
  filter: brightness(1.05);
}

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

#theme-toggle {
  background: linear-gradient(135deg, var(--sakura-200), var(--sakura-400));
  color: var(--ink-900);
}

#menu-toggle { display: none; }

/* ============ Main layout ============ */
main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

main > section {
  position: relative;
  margin: 0 0 40px;
  padding: 36px clamp(20px, 4vw, 48px);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  animation: rise 0.8s var(--ease) both;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(247, 168, 184, 0.55), transparent 40%, rgba(255, 217, 227, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

main > section > h2:first-child {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

main > section > h2:first-child::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sakura-400), var(--sakura-200));
}

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

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto 18px;
  padding: 0 4px;
  font-size: 0.85rem;
  color: var(--ink-500);
}

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

.breadcrumb li { margin: 0; }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-400);
}

.breadcrumb a { color: var(--ink-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--sakura-600); text-decoration: underline; }

/* ============ Hero ============ */
.hero {
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 56px) !important;
  background:
    linear-gradient(135deg, rgba(255, 217, 227, 0.85), rgba(247, 168, 184, 0.55) 45%, rgba(255, 247, 249, 0.9)),
    radial-gradient(700px 300px at 85% 10%, rgba(255, 255, 255, 0.7), transparent 70%) !important;
  border: 1px solid var(--glass-border) !important;
}

html[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(224, 108, 136, 0.28), rgba(164, 79, 102, 0.22) 45%, rgba(34, 24, 32, 0.9)),
    radial-gradient(700px 300px at 85% 10%, rgba(247, 168, 184, 0.18), transparent 70%) !important;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 65%);
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(18px) scale(1.05); }
}

.hero-carousel {
  position: relative;
  display: grid;
  min-height: 230px;
}

.hero-carousel .slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
  margin: 0;
}

.hero-carousel .slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
  z-index: 1;
}

.hero-carousel .slide h1,
.hero-carousel .slide h2 {
  max-width: 20em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .hero-carousel .slide h1,
html[data-theme="dark"] .hero-carousel .slide h2 {
  text-shadow: none;
}

.hero-carousel .slide p {
  max-width: 62ch;
  color: var(--ink-700);
  font-size: clamp(0.95rem, 1.4vw, 1.02rem);
}

.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-700));
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(164, 79, 102, 0.35);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.cta:hover,
.cta:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(164, 79, 102, 0.45);
  filter: brightness(1.06);
}

.carousel-dots {
  display: flex;
  gap: 9px;
  margin: 22px 0 4px;
}

.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(199, 107, 130, 0.35);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.carousel-dots .dot.active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sakura-500), var(--sakura-300));
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
}

.hero-stats > div {
  padding: 16px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

html[data-theme="dark"] .hero-stats > div {
  background: rgba(34, 24, 32, 0.55);
  border-color: var(--line);
}

.hero-stats > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hero-stats dt {
  font-size: 0.8rem;
  color: var(--ink-500);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 700;
  color: var(--sakura-700);
  font-variant-numeric: tabular-nums;
}

/* ============ Figures & media ============ */
figure {
  margin: 24px 0;
  padding: 14px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

figure svg {
  width: 100%;
  border-radius: var(--radius-md);
}

figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-500);
  text-align: center;
}

/* ============ Lists & timeline ============ */
#brand ul,
#products ul,
#solutions ul,
#howto ul {
  list-style: none;
  padding-left: 0;
}

#brand > ul li,
#products > ul li,
#solutions > ul li,
#howto > ul li {
  position: relative;
  padding-left: 26px;
}

#brand > ul li::before,
#products > ul li::before,
#solutions > ul li::before,
#howto > ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sakura-300), var(--sakura-500));
  box-shadow: 0 0 0 3px rgba(247, 168, 184, 0.2);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--sakura-300), var(--sakura-100));
  border-radius: 2px;
}

.timeline li {
  position: relative;
  padding: 0 0 22px 40px;
  margin: 0;
  color: var(--ink-700);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 3px solid var(--sakura-400);
  box-shadow: 0 0 0 4px rgba(247, 168, 184, 0.18);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.timeline li:hover::before {
  transform: scale(1.2);
  border-color: var(--sakura-600);
}

.timeline li strong {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 10px;
  font-size: 0.86rem;
  color: var(--sakura-700);
  background: var(--sakura-100);
  border-radius: 999px;
}

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

/* ============ Products / cards ============ */
#products h3,
#solutions h3,
#cases h3 {
  margin-top: 1.6em;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-strong);
}

#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type { margin-top: 0.8em; }

/* ============ News ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 14px 18px;
  margin-bottom: 10px;
  color: var(--ink-700);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  border-color: var(--sakura-300);
  box-shadow: var(--shadow-md);
}

.news-list time {
  flex-shrink: 0;
  padding: 1px 10px;
  font-size: 0.8rem;
  color: var(--sakura-700);
  background: var(--sakura-100);
  border-radius: 999px;
}

/* ============ Articles ============ */
#articles > article {
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  border-color: var(--sakura-300);
  box-shadow: var(--shadow-md);
}

#articles > article h3 {
  margin: 0 0 6px;
  border: none;
  padding: 0;
}

#articles > article h3 a {
  color: var(--ink-900);
  text-decoration: none;
  background-image: linear-gradient(var(--sakura-300), var(--sakura-300));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease), color 0.3s var(--ease);
}

#articles > article:hover h3 a {
  color: var(--sakura-700);
  background-size: 100% 2px;
}

#articles > article p {
  margin-bottom: 8px;
  color: var(--ink-600);
  font-size: 0.94rem;
}

#articles > article > a:last-child {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#articles > article > a:last-child::after {
  content: " →";
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

#articles > article > a:last-child:hover::after { transform: translateX(4px); }

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--sakura-300);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  padding: 15px 46px 15px 20px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--sakura-500);
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover { background: var(--sakura-50); color: var(--sakura-700); }

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--ink-600);
  font-size: 0.95rem;
  animation: fadeIn 0.4s var(--ease);
}

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

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  padding: 18px 22px;
  margin-bottom: 24px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

#contact address p { margin-bottom: 6px; }
#contact address p:last-child { margin-bottom: 0; }
#contact address a { font-variant-numeric: tabular-nums; }

#contact form fieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#contact legend {
  padding: 0 10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sakura-700);
}

#contact label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-top: 8px;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink-800);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--sakura-400);
  box-shadow: 0 0 0 3px rgba(247, 168, 184, 0.22);
}

#contact textarea { resize: vertical; min-height: 96px; }

#contact button[type="submit"] {
  justify-self: start;
  margin-top: 14px;
  padding: 11px 34px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-700));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(164, 79, 102, 0.32);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

#contact button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(164, 79, 102, 0.42);
  filter: brightness(1.06);
}

/* ============ Team ============ */
#team ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#team ul li {
  margin: 0;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sakura-300);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--ink-600);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#team ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#team ul li strong { color: var(--ink-900); }

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 20px;
  padding: 48px 24px 30px;
  color: var(--ink-600);
  background:
    linear-gradient(180deg, rgba(255, 247, 249, 0.6), rgba(255, 238, 243, 0.95)),
    var(--paper-3);
  border-top: 1px solid var(--line);
}

html[data-theme="dark"] footer {
  background:
    linear-gradient(180deg, rgba(28, 21, 25, 0.6), rgba(22, 16, 20, 0.98)),
    var(--paper);
}

footer > nav[aria-label="页脚导航"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px 32px;
  max-width: var(--maxw);
  margin: 0 auto 36px;
}

footer > nav section h2 {
  font-size: 0.98rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  color: var(--ink-900);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.06em;
}

footer > nav section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer > nav section li { margin-bottom: 8px; }

footer > nav section a {
  font-size: 0.9rem;
  color: var(--ink-600);
  text-decoration: none;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

footer > nav section a:hover {
  color: var(--sakura-600);
  padding-left: 4px;
  text-decoration: none;
}

footer > section[aria-labelledby="legal-title"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 26px;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--ink-500);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

footer > section[aria-labelledby="legal-title"] h2 {
  font-size: 0.96rem;
  color: var(--ink-800);
  margin-bottom: 10px;
}

footer > section[aria-labelledby="legal-title"] p:last-child { margin-bottom: 0; }

.copyright {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding-top: 18px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--ink-400);
  border-top: 1px solid var(--line);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 52px;
  height: 52px;
  padding: 0;
  font-size: 0.7rem;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-600));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(164, 79, 102, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.35s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 34px rgba(164, 79, 102, 0.5);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav-links a { padding: 6px 8px; font-size: 0.86rem; }
  .site-search input[type="search"] { width: 140px; }
  .site-search input[type="search"]:focus { width: 170px; }
}

@media (max-width: 900px) {
  :root { --header-h: 116px; }
  .top-bar { font-size: 0.72rem; padding: 6px 18px; }
  #site-header nav[aria-label="主导航"] { padding: 8px 18px; gap: 10px 12px; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .site-search { margin-left: auto; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 108px; }
  body { font-size: 15px; }
  main { padding: 18px 14px 60px; }
  main > section {
    padding: 26px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 26px;
  }
  .top-bar { display: none; }
  #site-header nav[aria-label="主导航"] { padding: 10px 14px; gap: 8px; }
  .logo { font-size: 1.06rem; }
  .logo svg { width: 34px; height: 34px; }
  .site-search { flex: 1 1 auto; }
  .site-search input[type="search"],
  .site-search input[type="search"]:focus { width: 100%; }
  .site-search button { padding: 7px 12px; }
  #theme-toggle,
  #menu-toggle { padding: 7px 12px; font-size: 0.8rem; }
  .hero { padding: 24px 18px !important; }
  .hero-stats { gap: 10px; margin-top: 22px; }
  .hero-stats > div { padding: 12px 8px; }
  .hero-stats dt { font-size: 0.72rem; }
  .timeline li { padding-left: 34px; }
  .news-list li { padding: 12px 14px; }
  #articles > article { padding: 16px 16px; }
  #contact form fieldset { padding: 16px; }
  #contact button[type="submit"] { width: 100%; justify-self: stretch; }
  footer { padding: 36px 16px 24px; }
  footer > nav[aria-label="页脚导航"] { gap: 22px; }
  #back-to-top { right: 14px; bottom: 16px; width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-carousel { min-height: 300px; }
  #team ul { grid-template-columns: 1fr; }
}