:root {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #1a1a2e;
  --text-soft: #4a4a5e;
  --text-muted: #7a7a8c;
  --primary: #e94560;
  --primary-dark: #c9304a;
  --accent: #f5c518;
  --accent-soft: #ffe58a;
  --navy: #1a1a2e;
  --navy-soft: #26264a;
  --border: rgba(26, 26, 46, 0.1);
  --border-strong: rgba(26, 26, 46, 0.18);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 42%, #6a2c4a 78%, #e94560 100%);
  --grad-accent: linear-gradient(135deg, #e94560 0%, #f5c518 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(246, 247, 251, 0.7));
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0e0e1a;
  --bg-soft: #16162a;
  --bg-elevated: rgba(28, 28, 50, 0.72);
  --text: #eef0f8;
  --text-soft: #b9bccc;
  --text-muted: #8a8da3;
  --primary: #ff5c78;
  --primary-dark: #e94560;
  --accent: #f5c518;
  --accent-soft: #8a7420;
  --navy: #0a0a14;
  --navy-soft: #16162a;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --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 48px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #0a0a14 0%, #1e1e3f 42%, #4a1f38 78%, #ff5c78 100%);
  --grad-card: linear-gradient(160deg, rgba(38, 38, 68, 0.9), rgba(22, 22, 42, 0.7));
  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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(233, 69, 96, 0.12), transparent 60%),
    radial-gradient(50vw 50vw at -10% 20%, rgba(245, 197, 24, 0.1), transparent 60%),
    radial-gradient(40vw 40vw at 50% 110%, rgba(45, 45, 94, 0.12), transparent 60%);
  pointer-events: none;
}

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

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

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

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

h1 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
  color: var(--text-soft);
}

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

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

code {
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 0.9em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: var(--border);
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

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

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
}

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

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

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.08);
}

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

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

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
}

.search-form input {
  width: 160px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

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

.search-form button {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.35);
}

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

.theme-toggle:hover,
.menu-toggle:hover {
  transform: rotate(12deg) scale(1.08);
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
}

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

.hero-slider {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(245, 197, 24, 0.22), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(233, 69, 96, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.slide {
  position: relative;
  z-index: 1;
  display: none;
  padding: clamp(28px, 5vw, 64px);
  max-width: 760px;
  animation: slideIn 0.7s var(--ease) both;
}

.slide.active {
  display: block;
}

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

.slide h1,
.slide h2 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.5em;
}

.slide h1 {
  background: linear-gradient(120deg, #ffffff 30%, #ffe58a 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.85;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
  will-change: transform;
}

.btn.primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.45);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(233, 69, 96, 0.55);
  color: #fff;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.slider-dots {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}

.dot.active {
  width: 34px;
  border-radius: 999px;
  background: var(--accent);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -44px;
  padding: 0 clamp(16px, 4vw, 40px);
  position: relative;
  z-index: 4;
}

.stat {
  padding: 22px 16px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stat .num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

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

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--max-w);
  margin: 28px auto 0;
  padding: 0 24px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

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

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

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

/* ============ Anchor Nav ============ */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  margin-top: 18px;
  background: var(--bg-elevated);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.anchor-nav ul {
  display: flex;
  gap: 6px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 24px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.anchor-nav ul::-webkit-scrollbar {
  display: none;
}

.anchor-nav li {
  margin: 0;
  flex-shrink: 0;
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.08);
  border-color: rgba(233, 69, 96, 0.25);
}

/* ============ Sections ============ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px;
  scroll-margin-top: calc(var(--header-h) + 60px);
}

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

.section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-accent);
}

.section > h2::before {
  content: "";
  position: absolute;
  left: 72px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.section h3 {
  margin-top: 1.6em;
  color: var(--text);
}

.section h3:first-of-type {
  margin-top: 0.6em;
}

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

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

.section > * {
  animation: fadeUp 0.8s var(--ease) both;
}

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

/* ============ Timeline ============ */
.timeline {
  position: relative;
  margin-top: 28px;
  padding-left: 28px;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 22px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.15);
  transition: transform 0.3s var(--ease);
}

.timeline-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.35);
}

.timeline-item:hover::before {
  transform: scale(1.2);
}

.timeline-item h3 {
  margin-top: 0;
  color: var(--primary);
}

.timeline-item p {
  margin-bottom: 0;
}

/* ============ Cards (cases / news / articles) ============ */
.case,
.news-item,
.article-card {
  position: relative;
  margin-bottom: 20px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.case::before,
.news-item::before,
.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.case:hover,
.news-item:hover,
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, 0.3);
}

.case:hover::before,
.news-item:hover::before,
.article-card:hover::before {
  transform: scaleX(1);
}

.case h3,
.news-item h3,
.article-card h3 {
  margin-top: 0;
}

.article-card h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

.article-card h3 a:hover {
  color: var(--primary);
  background-size: 100% 2px;
}

.meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.9em;
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.read-more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* ============ Reviews ============ */
#reviews blockquote {
  margin-bottom: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#reviews blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

.faq-list details {
  border-radius: var(--radius-md);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq-list details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.3);
}

.faq-list summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.1);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

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

.faq-list summary:hover {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.04);
}

.faq-list details > p {
  margin: 0;
  padding: 0 22px 20px;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ Guide ============ */
#guide ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#guide ol li {
  position: relative;
  counter-increment: step;
  padding: 16px 20px 16px 64px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#guide ol li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

#guide ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
}

.contact-item {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.3);
}

.contact-item h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--primary);
}

.contact-item p {
  margin: 0;
  font-size: 0.92rem;
  word-break: break-word;
}

/* ============ Sitemap ============ */
.sitemap-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  margin: 0;
}

.sitemap-list a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}

.sitemap-list a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 40px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid var(--border);
}

html[data-theme="dark"] .site-footer {
  background: #08080f;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.legal {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.legal p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.8;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  margin: 4px 0;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 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.06);
  box-shadow: 0 16px 36px rgba(233, 69, 96, 0.6);
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
  .search-form input {
    width: 120px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 16px 20px 28px;
    background: var(--bg-elevated);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .main-nav a::after {
    display: none;
  }
  .search-form input {
    width: 130px;
  }
  .hero-slider {
    min-height: 380px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -32px;
  }
  .anchor-nav {
    top: var(--header-h);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .header-inner {
    padding: 0 16px;
    gap: 8px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .search-form {
    display: none;
  }
  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .hero {
    padding: 0 16px;
    margin-top: 16px;
  }
  .hero-slider {
    min-height: auto;
    border-radius: var(--radius-lg);
  }
  .slide {
    padding: 32px 22px 88px;
  }
  .hero-actions {
    gap: 10px;
  }
  .btn {
    padding: 11px 22px;
    font-size: 0.9rem;
  }
  .slider-dots {
    left: 22px;
    right: auto;
    bottom: 28px;
  }
  .hero-stats {
    gap: 10px;
    padding: 0 8px;
    margin-top: -24px;
  }
  .stat {
    padding: 16px 10px;
    border-radius: var(--radius-md);
  }
  .stat .label {
    font-size: 0.76rem;
  }
  .breadcrumb,
  .anchor-nav ul {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section {
    padding: 36px 16px;
  }
  .section > h2::before {
    display: none;
  }
  .timeline {
    padding-left: 22px;
  }
  .timeline-item {
    padding: 16px 18px;
  }
  .timeline-item::before {
    left: -22px;
    width: 14px;
    height: 14px;
  }
  .case,
  .news-item,
  .article-card {
    padding: 20px 18px;
    border-radius: var(--radius-md);
  }
  .faq-list summary {
    padding: 15px 48px 15px 16px;
    font-size: 0.95rem;
  }
  .faq-list details > p {
    padding: 0 16px 16px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .sitemap-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    padding: 40px 16px 24px;
    gap: 24px;
  }
  .legal,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .sitemap-list {
    grid-template-columns: 1fr;
  }
}

/* ============ Motion & print ============ */
@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;
  }
}

@media print {
  .site-header,
  .anchor-nav,
  .back-to-top,
  .slider-dots,
  .hero-actions,
  .theme-toggle,
  .menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    padding: 16px 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}
</html>