:root {
  --bg: #f7f8fb;
  --bg-soft: #eef1f8;
  --fg: #1a1a2e;
  --muted: #5a5f73;
  --brand: #e94560;
  --brand-2: #0f3460;
  --brand-3: #16213e;
  --card: #ffffff;
  --line: #e3e6ef;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 4px 14px rgba(15, 52, 96, 0.06);
  --shadow-md: 0 12px 34px rgba(15, 52, 96, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 52, 96, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 64px;
  --grad-hero: linear-gradient(125deg, #1a1a2e 0%, #16213e 46%, #0f3460 78%, #1f4d8a 100%);
  --grad-brand: linear-gradient(135deg, #e94560 0%, #ff7a59 100%);
  --grad-soft: linear-gradient(160deg, rgba(233, 69, 96, 0.1), rgba(15, 52, 96, 0.08));
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 88% -10%, rgba(233, 69, 96, 0.1), transparent 60%),
    radial-gradient(55vw 55vw at -10% 20%, rgba(15, 52, 96, 0.1), transparent 62%);
}

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

a:hover {
  color: #c9304a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

ul {
  list-style: none;
}

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  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-2);
  flex-shrink: 0;
}

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

.logo svg {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.35);
  transition: transform 0.4s var(--ease);
}

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

nav.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav.main-nav a {
  position: relative;
  display: inline-block;
  color: var(--fg);
  font-size: 15px;
  padding: 4px 0;
}

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

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

nav.main-nav a:hover::after {
  transform: scaleX(1);
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: rgba(233, 69, 96, 0.55);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
  transform: translateY(-1px);
}

.search-box input {
  width: 130px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
}

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

.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.search-box button:hover {
  background: rgba(233, 69, 96, 0.12);
  transform: scale(1.08);
}

#themeToggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

#themeToggle:hover {
  transform: rotate(18deg) scale(1.08);
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

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

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

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

.breadcrumb span {
  color: var(--brand);
  font-weight: 600;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.4), transparent 62%);
  filter: blur(10px);
  z-index: -1;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -12%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(31, 77, 138, 0.55), transparent 64%);
  filter: blur(12px);
  z-index: -1;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 28px, 0) scale(1.12);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 span {
  background: linear-gradient(100deg, #ff8ba0 0%, #ffb199 55%, #ffd6a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p {
  color: #c9cfe0;
  font-size: 15.5px;
  margin-bottom: 14px;
  max-width: 62ch;
}

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

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

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

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

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

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 36px rgba(233, 69, 96, 0.5);
}

.btn-ghost {
  border-color: rgba(255, 139, 160, 0.7);
  color: #ffb3c1;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 139, 160, 0.14);
  color: #fff;
  border-color: #ff8ba0;
  box-shadow: 0 10px 26px rgba(255, 139, 160, 0.22);
}

.hero-visual {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.36);
}

.hero-visual h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff8ba0;
  margin-bottom: 14px;
}

.hero-list {
  display: grid;
  gap: 10px;
}

.hero-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  font-size: 14px;
  color: #d5dae8;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-list li:hover {
  color: #fff;
  transform: translateX(4px);
}

.hero-list li b {
  color: #fff;
  font-variant-numeric: tabular-nums;
  padding: 1px 10px;
  border-radius: var(--radius-pill);
  background: rgba(233, 69, 96, 0.28);
  border: 1px solid rgba(255, 139, 160, 0.32);
  font-size: 13px;
}

/* ============ Sections ============ */
section {
  padding: 60px 0;
  position: relative;
}

section:nth-of-type(even) {
  background: var(--card);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.section-head h2 {
  position: relative;
  display: inline-block;
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  transform: translateX(-50%);
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
}

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

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

.card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

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

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

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

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(233, 69, 96, 0.16);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card:hover .icon {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(255, 122, 89, 0.14));
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
  margin-top: 40px;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

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

.stat:hover {
  transform: translateY(-4px);
  background: var(--card);
}

.stat b {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.stat span {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ============ Articles ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

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

.article-item h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--brand-2);
  margin-bottom: 8px;
  transition: color 0.3s var(--ease);
}

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

.article-item .meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.article-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.article-item a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.article-item a:hover {
  gap: 8px;
  text-decoration: none;
}

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

.faq-item:hover {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-item.open {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  border: none;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.04);
}

.faq-q::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.1);
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-item.open .faq-q::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--grad-brand);
  color: #fff;
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  animation: fadeSlide 0.35s var(--ease);
}

.faq-item.open .faq-a {
  display: block;
}

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

/* ============ HowTo ============ */
.howto-step {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.howto-step:hover {
  transform: translateX(4px);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-md);
}

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.35);
  transition: transform 0.35s var(--ease);
}

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

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

.howto-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ============ Cases & Reviews ============ */
.case-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.case-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

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

.case-card:hover::after {
  opacity: 1;
}

.case-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-2);
  line-height: 1.55;
  margin-bottom: 8px;
}

.case-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.case-card .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.2);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.review-card {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.review-card::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 16px;
  font-size: 54px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(233, 69, 96, 0.18);
  pointer-events: none;
}

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

.review-card p {
  position: relative;
  font-size: 14.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.9;
  margin-bottom: 14px;
}

.review-card .who {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-2);
}

/* ============ News ============ */
.news-list {
  display: grid;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 24px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.news-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: padding-left 0.3s var(--ease), background-color 0.3s var(--ease);
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list li:hover {
  padding-left: 10px;
}

.news-list li a {
  color: var(--fg);
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.news-list li a:hover {
  color: var(--brand);
  text-decoration: none;
}

.news-list li time {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

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

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

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

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-2);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.contact-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.8;
  word-break: break-word;
}

/* ============ Footer ============ */
.footer {
  position: relative;
  padding: 52px 0 26px;
  background: var(--brand-3);
  color: #c9cfe0;
  font-size: 14px;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.18), transparent 66%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 34px;
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer ul {
  display: grid;
  gap: 8px;
}

.footer a {
  color: #c9cfe0;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer a:hover {
  color: #ff8ba0;
  text-decoration: none;
  padding-left: 4px;
}

.footer p {
  color: #aab1c6;
  font-size: 13px;
  line-height: 1.85;
}

.footer #privacy,
.footer #disclaimer {
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a91a8;
  font-size: 13px;
  line-height: 1.9;
}

.footer #privacy h4,
.footer #disclaimer h4 {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 13px;
  color: #8a91a8;
  line-height: 1.9;
}

.footer-bottom p + p {
  margin-top: 6px;
}

/* ============ Back to top ============ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.back-top.show {
  display: flex;
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(233, 69, 96, 0.55);
}

.back-top:active {
  transform: scale(0.96);
}

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

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ Dark mode ============ */
body.dark-mode {
  --bg: #0e1220;
  --bg-soft: #131a2c;
  --fg: #e6e9f2;
  --muted: #9aa2b8;
  --card: #161c2e;
  --line: #252d44;
  --brand-2: #8fb4ff;
  --brand-3: #0a0e18;
  --glass: rgba(14, 18, 32, 0.78);
  --glass-line: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --grad-soft: linear-gradient(160deg, rgba(233, 69, 96, 0.16), rgba(143, 180, 255, 0.1));
}

body.dark-mode::before {
  background:
    radial-gradient(60vw 60vw at 88% -10%, rgba(233, 69, 96, 0.16), transparent 60%),
    radial-gradient(55vw 55vw at -10% 20%, rgba(143, 180, 255, 0.1), transparent 62%);
}

body.dark-mode header.site-header {
  background: var(--glass);
}

body.dark-mode .search-box {
  background: #131a2c;
}

body.dark-mode .search-box input {
  color: #e6e9f2;
}

body.dark-mode .hero {
  background: linear-gradient(125deg, #0b0f1c 0%, #131a30 48%, #1a2440 80%, #22365e 100%);
}

body.dark-mode .footer {
  background: #0a0e18;
}

body.dark-mode .card:hover,
body.dark-mode .article-item:hover,
body.dark-mode .case-card:hover,
body.dark-mode .review-card:hover,
body.dark-mode .contact-card:hover,
body.dark-mode .faq-item:hover {
  border-color: rgba(143, 180, 255, 0.35);
}

body.dark-mode .section-head h2 {
  color: #cfe0ff;
}

body.dark-mode .card h3,
body.dark-mode .article-item h3,
body.dark-mode .case-card h3,
body.dark-mode .contact-card h3,
body.dark-mode .howto-step h4,
body.dark-mode .review-card .who {
  color: #cfe0ff;
}

body.dark-mode .logo {
  color: #cfe0ff;
}

body.dark-mode .faq-q {
  color: var(--fg);
}

body.dark-mode .news-list li a {
  color: var(--fg);
}

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

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

  .hero-visual {
    max-width: 560px;
  }

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

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

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

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

  .grid-3,
  .grid-2,
  .article-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  nav.main-nav {
    display: none;
  }

  nav.main-nav.open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 16px 20px 20px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    animation: fadeSlide 0.3s var(--ease);
  }

  nav.main-nav.open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  nav.main-nav.open a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  nav.main-nav.open a:hover {
    background: rgba(233, 69, 96, 0.08);
  }

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

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

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

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .hero {
    padding: 40px 0 38px;
  }

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

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

  .hero-cta {
    gap: 10px;
    margin-top: 20px;
  }

  .btn {
    padding: 11px 20px;
    font-size: 14px;
  }

  .hero-visual {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .hero-list li {
    font-size: 13px;
  }

  .card {
    padding: 22px 18px;
  }

  .card h3 {
    font-size: 16.5px;
  }

  .article-item,
  .case-card,
  .review-card,
  .contact-card {
    padding: 20px 18px;
  }

  .news-list {
    padding: 4px 16px;
  }

  .news-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 14.5px;
  }

  .news-list li time {
    font-size: 12.5px;
  }

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

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

  .howto-step {
    padding: 12px 14px;
    gap: 12px;
  }

  .step-num {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .stats {
    padding: 20px 12px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 26px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .search-box {
    padding: 4px 6px 4px 12px;
  }

  .search-box input {
    width: 84px;
    font-size: 13px;
  }

  #themeToggle,
  .menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .logo {
    font-size: 18px;
  }

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

@media (max-width: 380px) {
  .search-box input {
    width: 64px;
  }

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

/* ============ 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-header,
  .back-top,
  #themeToggle,
  .menu-toggle,
  .search-box,
  .hero-cta {
    display: none !important;
  }

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

  .card,
  .article-item,
  .faq-item,
  .case-card,
  .review-card,
  .contact-card {
    box-shadow: none;
    break-inside: avoid;
  }
}