:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-lighter: #c4b5fd;
  --primary-dark: #5b21b6;
  --accent: #ec4899;
  --accent-light: #f9a8d4;
  --bg: #faf8ff;
  --bg-alt: #f3efff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.65);
  --surface-glass-border: rgba(255, 255, 255, 0.5);
  --text: #1e1b2e;
  --text-soft: #4b4660;
  --text-muted: #6b6580;
  --border: rgba(124, 58, 237, 0.14);
  --border-strong: rgba(124, 58, 237, 0.28);
  --shadow-sm: 0 2px 8px rgba(76, 29, 149, 0.07);
  --shadow-md: 0 8px 28px rgba(76, 29, 149, 0.1);
  --shadow-lg: 0 18px 50px rgba(76, 29, 149, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #7c3aed 0%, #9333ea 42%, #db2777 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  --grad-btn: linear-gradient(135deg, #7c3aed, #db2777);
  color-scheme: light;
}

html[data-theme="dark"] {
  --primary: #a78bfa;
  --primary-light: #c4b5fd;
  --primary-lighter: #ddd6fe;
  --primary-dark: #7c3aed;
  --accent: #f472b6;
  --accent-light: #fbcfe8;
  --bg: #0d0b16;
  --bg-alt: #151122;
  --surface: #1a1528;
  --surface-glass: rgba(30, 24, 46, 0.6);
  --surface-glass-border: rgba(167, 139, 250, 0.18);
  --text: #f1edff;
  --text-soft: #c8c0e0;
  --text-muted: #9d94b8;
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.32);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.62);
  --grad-hero: linear-gradient(135deg, #4c1d95 0%, #6d28d9 45%, #9d174d 100%);
  --grad-soft: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(244, 114, 182, 0.12));
  --grad-btn: linear-gradient(135deg, #8b5cf6, #ec4899);
  color-scheme: dark;
}

*,
*::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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 88% -8%, rgba(124, 58, 237, 0.12), transparent 70%),
    radial-gradient(720px 420px at -6% 12%, rgba(236, 72, 153, 0.1), transparent 70%);
  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(--primary);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  line-height: 1.32;
  margin: 0 0 0.7em;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
}

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

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--primary);
}

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

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--grad-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

blockquote p {
  margin: 0 0 0.7em;
  font-style: italic;
}

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

:focus-visible {
  outline: 3px solid var(--primary-light);
  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;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.12rem;
  flex-shrink: 0;
}

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

.brand-logo {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
}

.brand-text {
  letter-spacing: 0.02em;
}

.main-nav {
  flex: 1;
  min-width: 0;
}

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

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

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

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-btn);
  font-family: inherit;
  transition: filter 0.25s var(--ease);
}

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

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

.menu-toggle {
  display: none;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 0;
}

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

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--primary-light);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--primary);
}

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

.hero-slides {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
  min-height: 340px;
}

.hero-slides::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 320px at 82% 8%, rgba(255, 255, 255, 0.28), transparent 68%),
    radial-gradient(420px 260px at 8% 92%, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-slides::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 26px) scale(1.06); }
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: clamp(28px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
  color: #fff;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero-slide h1,
.hero-slide h2 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  max-width: 22em;
}

.hero-lead,
.hero-slide p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  max-width: 62em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    background 0.28s var(--ease), color 0.28s var(--ease);
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-3px);
  color: var(--accent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  transform: translateY(-3px);
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-dots button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
}

.hero-dots button[aria-selected="true"] {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}

/* ===== Stats ===== */
.stats {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius);
  padding: 22px 16px;
  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-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.15;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== Sections ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 20px 8px;
}

.section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: var(--grad-btn);
}

.section-media {
  margin: 0 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.section-media:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.section-media figcaption {
  padding: 12px 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.5;
}

.timeline li {
  position: relative;
  padding: 10px 0 10px 34px;
  margin: 0;
  transition: transform 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 20px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.timeline li:hover {
  transform: translateX(4px);
}

/* ===== Author box ===== */
.author-box {
  background: var(--grad-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.author-box p:last-child {
  margin-bottom: 0;
}

/* ===== Feature list ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 16px;
  top: 15px;
  color: var(--primary);
  font-size: 1rem;
}

.feature-list li:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* ===== App list ===== */
.app-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.app-list li {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.app-list li:hover {
  transform: translateY(-3px);
  background: var(--grad-soft);
  color: var(--primary);
}

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

.news-list li {
  margin: 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.news-list time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

/* ===== Articles ===== */
.article-card {
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.article-card h3 {
  margin-bottom: 6px;
  transition: color 0.25s var(--ease);
}

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

.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-card > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  transition: background 0.25s var(--ease), gap 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

.article-card > a:hover {
  background: rgba(124, 58, 237, 0.18);
  transform: translateX(2px);
}

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

/* ===== FAQ ===== */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  margin: 0;
  font-size: 1rem;
}

.faq-q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-weight: 800;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.faq-q:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.faq-q[aria-expanded="true"] {
  color: var(--primary);
}

.faq-q[aria-expanded="true"]::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
  padding: 0 20px;
}

.faq-a.is-open {
  max-height: 600px;
  padding: 0 20px 18px;
}

.faq-a p {
  margin: 0;
  font-size: 0.93rem;
}

/* ===== Contact ===== */
.contact-info {
  font-style: normal;
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.contact-info p {
  margin-bottom: 0.6em;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

/* ===== Sitemap & Links ===== */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  transform: translateY(-3px);
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 60px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 20px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-inner h2 {
  font-size: 1.02rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-inner p {
  font-size: 0.88rem;
  margin-bottom: 0.6em;
}

.copyright {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 30px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s var(--ease), filter 0.25s var(--ease);
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  filter: brightness(1.1);
  transform: translateY(-4px);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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) {
  .main-nav ul {
    gap: 0;
  }
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
  .site-search input {
    width: 140px;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--surface-glass-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s var(--ease);
  }
  .main-nav.is-open {
    max-height: 460px;
    overflow-y: auto;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 12px 16px 18px;
    gap: 2px;
  }
  .main-nav a {
    padding: 12px 14px;
    font-size: 0.96rem;
    border-radius: var(--radius-sm);
  }
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }
  .site-search {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .app-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }
  .brand-text {
    font-size: 1rem;
  }
  .breadcrumb,
  .section,
  .stats {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero {
    padding: 0 14px;
  }
  .hero-slides {
    min-height: 420px;
  }
  .hero-slide {
    padding: 26px 22px 64px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .section {
    padding-top: 42px;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .app-list {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 34px;
  }
  .article-card {
    padding: 20px 18px;
  }
  .contact-info,
  .author-box {
    padding: 18px 16px;
  }
  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .hero-slides {
    min-height: 470px;
  }
  .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
  .stat-item {
    padding: 18px 10px;
  }
}

@media print {
  .site-header,
  .hero-dots,
  .back-to-top,
  .theme-toggle,
  .menu-toggle,
  .site-search {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
</｜｜DSML｜｜ parameter>
</result>