:root {
  --bg: #f7f8fc;
  --bg-2: #eef1f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1a1a2e;
  --text-2: #5a5f73;
  --muted: #8a8fa8;
  --brand: #ff6b6b;
  --brand-2: #4ecdc4;
  --brand-3: #ffd93d;
  --accent: #7b6cff;
  --line: rgba(26, 26, 46, 0.09);
  --line-strong: rgba(26, 26, 46, 0.16);
  --shadow-sm: 0 2px 10px rgba(26, 26, 46, 0.06);
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.16);
  --glass-blur: 16px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --header-h: 66px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0d0e1c;
  --bg-2: #15172a;
  --surface: rgba(28, 31, 52, 0.62);
  --surface-solid: #1a1d33;
  --text: #eef0f8;
  --text-2: #a7abbf;
  --muted: #7d8299;
  --brand: #ff7b7b;
  --brand-2: #5fd8d0;
  --brand-3: #ffd93d;
  --accent: #9a8dff;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60vw 60vw at 100% -10%, rgba(255, 107, 107, 0.12), transparent 60%),
    radial-gradient(50vw 50vw at -10% 20%, rgba(78, 205, 196, 0.12), transparent 60%),
    radial-gradient(40vw 40vw at 50% 120%, rgba(123, 108, 255, 0.1), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
}

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

button,
input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: rgba(255, 107, 107, 0.28);
  color: var(--text);
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--brand);
  white-space: nowrap;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
}

.logo svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}

.nav ul a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

.nav ul a:hover {
  color: var(--brand);
  background: rgba(255, 107, 107, 0.08);
}

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

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

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.14);
}

.search-box input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 150px;
  min-width: 0;
}

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

.search-box button {
  border: 0;
  background: linear-gradient(135deg, var(--brand), #ff8e8e);
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  align-self: stretch;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

.search-box button:hover {
  filter: brightness(1.06);
}

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

.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.3s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-theme:hover {
  transform: rotate(-18deg) scale(1.08);
  border-color: var(--brand);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.menu-toggle:hover {
  background: rgba(255, 107, 107, 0.1);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 64px 0 72px;
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(123, 108, 255, 0.55), transparent 55%),
    radial-gradient(70% 100% at 100% 10%, rgba(255, 107, 107, 0.5), transparent 55%),
    radial-gradient(60% 90% at 50% 120%, rgba(78, 205, 196, 0.45), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #2d2b55 55%, #3a2f63 100%);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(255, 217, 61, 0.18), transparent 70%) 20% 30% / 40% 40% no-repeat,
    radial-gradient(closest-side, rgba(255, 107, 107, 0.22), transparent 70%) 80% 70% / 45% 45% no-repeat,
    radial-gradient(closest-side, rgba(78, 205, 196, 0.18), transparent 70%) 60% 10% / 35% 35% no-repeat;
  filter: blur(20px);
  animation: heroFloat 18s ease-in-out infinite alternate;
}

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

@keyframes heroFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--brand-3);
  background: linear-gradient(120deg, #ffd93d 0%, #ffb347 50%, #ff6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 26px;
  max-width: 56ch;
  text-wrap: pretty;
}

.hero .cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero .cta .primary {
  background: linear-gradient(135deg, var(--brand), #ff9a6b);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 107, 107, 0.4);
}

.hero .cta .primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 107, 107, 0.55);
}

.hero .cta .ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero .cta .ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

/* ============ Slider ============ */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-solid);
  color: var(--text);
  min-height: 240px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.slide h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}

.slide p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
  margin: 0;
}

.slide .tag {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(123, 108, 255, 0.16));
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 107, 107, 0.24);
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.slider-dots span:hover {
  background: var(--muted);
}

.slider-dots span.active {
  width: 22px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ============ Stats ============ */
.stats {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat {
  padding: 14px 8px;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 107, 107, 0.06);
}

.stat b {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

/* ============ Section base ============ */
section.block {
  padding: 64px 0;
  position: relative;
}

section.block.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  text-align: center;
  margin-bottom: 40px;
}

.sec-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.sec-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
}

.sec-head p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;
  text-wrap: pretty;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}

.anchor-nav a {
  font-size: 13px;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.18);
}

/* ============ Grids ============ */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ============ Cards ============ */
.card {
  position: relative;
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), transparent 40%, rgba(123, 108, 255, 0.08));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 107, 107, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  transform: scaleX(1);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}

.card h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card h4::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 10px;
  text-wrap: pretty;
}

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

.card .ico {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  transition: transform 0.45s var(--ease);
}

.card:hover .ico {
  transform: rotate(-6deg) scale(1.08);
}

/* ============ Article ============ */
.article {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

.article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(120px 120px at 100% 0%, rgba(78, 205, 196, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(78, 205, 196, 0.4);
}

.article:hover::before {
  opacity: 1;
}

.article .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.article .meta span {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(123, 108, 255, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.article .meta span:first-child {
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-weight: 400;
}

.article h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
  transition: color 0.25s var(--ease);
}

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

.article p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.9;
  flex: 1;
  margin-bottom: 0;
  text-wrap: pretty;
}

.article .more {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.article:hover .more {
  gap: 12px;
  color: var(--accent);
}

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

.faq-item:hover {
  border-color: rgba(255, 107, 107, 0.35);
}

.faq-item.open {
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  transition: color 0.25s var(--ease);
}

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

.faq-q .sign {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.12);
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-item.open .faq-q .sign {
  transform: rotate(45deg);
  background: var(--brand);
  color: #fff;
}

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

.faq-a p {
  font-size: 14px;
  color: var(--text-2);
  padding-bottom: 20px;
  line-height: 1.9;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  text-wrap: pretty;
}

.faq-item.open .faq-a {
  max-height: 500px;
}

/* ============ HowTo ============ */
.howto-step {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.howto-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(78, 205, 196, 0.4);
}

.howto-step .num {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.32);
  transition: transform 0.4s var(--ease);
}

.howto-step:hover .num {
  transform: scale(1.08) rotate(-6deg);
}

.howto-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.howto-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.9;
  text-wrap: pretty;
}

/* ============ Cases ============ */
.case {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case .card .quote {
  position: relative;
  font-style: italic;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.9;
  margin: 14px 0;
  padding-left: 18px;
  border-left: 3px solid rgba(255, 107, 107, 0.4);
}

.case .card .who {
  font-size: 13px;
  color: var(--brand);
  font-weight: 700;
}

/* ============ Timeline ============ */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--line-strong);
  max-width: 860px;
  margin: 0 auto;
}

.timeline .tl {
  position: relative;
  margin-bottom: 26px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.timeline .tl:last-child {
  margin-bottom: 0;
}

.timeline .tl::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.timeline .tl:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 107, 107, 0.35);
}

.timeline .tl:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.22);
}

.timeline .tl b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.timeline .tl p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.9;
}

/* ============ Notice ============ */
.notice {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.16), rgba(255, 179, 71, 0.1));
  border: 1px solid rgba(255, 200, 60, 0.4);
  border-radius: var(--radius);
  padding: 16px 22px;
  font-size: 14px;
  line-height: 1.9;
  color: #8a6d1f;
  margin-bottom: 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .notice {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.12), rgba(255, 179, 71, 0.08));
  border-color: rgba(255, 200, 60, 0.28);
  color: #e8cd7a;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-info .row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-info .row:hover {
  background: rgba(255, 107, 107, 0.06);
  transform: translateX(4px);
}

.contact-info .row svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--brand);
}

.contact-info .row b {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-info .row span {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  word-break: break-word;
}

/* ============ Sitemap lists inside cards ============ */
.card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.card ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card ul li a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  opacity: 0.7;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.card ul li a:hover {
  color: var(--brand);
  transform: translateX(3px);
}

.card ul li a:hover::before {
  background: var(--brand);
  transform: scale(1.3);
}

/* ============ Footer ============ */
footer.site {
  position: relative;
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(123, 108, 255, 0.22), transparent 60%),
    radial-gradient(60% 80% at 100% 20%, rgba(255, 107, 107, 0.18), transparent 60%),
    #12121f;
  color: #c9cbe0;
  padding: 56px 0 26px;
  font-size: 14px;
  line-height: 1.9;
  overflow: hidden;
}

footer.site::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--accent), var(--brand-2), var(--brand));
  background-size: 200% 100%;
  animation: footerLine 8s linear infinite;
}

@keyframes footerLine {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
  position: relative;
}

footer.site h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
}

footer.site h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

footer.site p {
  color: #a7abbf;
  font-size: 14px;
  line-height: 1.9;
}

footer.site ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer.site ul a {
  color: #a7abbf;
  font-size: 14px;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

footer.site ul a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

footer.site .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #8a8db0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============ To Top ============ */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  z-index: 90;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.45);
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(255, 107, 107, 0.6);
}

.to-top:active {
  transform: scale(0.94);
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.reveal.visible .card,
.reveal.visible .article,
.reveal.visible .howto-step {
  animation: cardIn 0.6s var(--ease) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .slider {
    min-height: 200px;
  }

  footer.site .cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

  section.block {
    padding: 48px 0;
  }

  .nav {
    gap: 12px;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 18px;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
  }

  .nav ul.open {
    display: flex;
    animation: menuDrop 0.3s var(--ease);
  }

  @keyframes menuDrop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .nav ul a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  .nav ul a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    order: -1;
  }

  .nav .tools {
    gap: 8px;
  }

  .search-box input {
    width: 100px;
  }

  .grid3,
  .grid2,
  .case,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 48px 0 56px;
  }

  .hero p {
    font-size: 15px;
  }

  .card,
  .article {
    padding: 22px;
  }

  .sec-head {
    margin-bottom: 30px;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline .tl::before {
    left: -31px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .logo {
    font-size: 17px;
  }

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

  .search-box input {
    width: 72px;
    padding: 8px 10px;
  }

  .search-box button {
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero .cta {
    gap: 10px;
  }

  .hero .cta a {
    flex: 1 1 auto;
    padding: 11px 18px;
    font-size: 14px;
  }

  .slide {
    padding: 22px;
  }

  .slide h3 {
    font-size: 17px;
  }

  .stat b {
    font-size: 26px;
  }

  .howto-step {
    flex-direction: row;
    padding: 16px;
    gap: 14px;
  }

  .howto-step .num {
    flex-basis: 34px;
    height: 34px;
    font-size: 14px;
  }

  .faq-q {
    padding: 16px;
    font-size: 15px;
  }

  .faq-a {
    padding: 0 16px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  footer.site {
    padding: 40px 0 22px;
  }

  footer.site .cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============ 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 {
  header.site,
  .to-top,
  .hero::before,
  .hero::after,
  footer.site::before {
    display: none !important;
  }

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

  .card,
  .article,
  .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }
}