/* ============================================
   HKDSE 香港DSE升学指导 — Premium Design System
   Brand Colors:
   - Primary (Tram Green):  #2A7048
   - Secondary (Harbour Blue): #538CBF
   - Accent (Bauhinia Red): #D92525
   ============================================ */

/* === Design Tokens === */
:root {
  /* Brand */
  --primary: #2A7048;
  --primary-light: #3A8F5E;
  --primary-dark: #1E5535;
  --primary-bg: #EDF5F0;
  --primary-bg-alt: #E0F0E6;
  --secondary: #538CBF;
  --secondary-light: #7AAAD4;
  --secondary-dark: #3A6FA0;
  --secondary-bg: #EBF2F9;
  --accent: #D92525;
  --accent-light: #E85050;
  --accent-bg: #FDECEC;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #F1F4F6;
  --gray-200: #E2E8ED;
  --gray-300: #C9D3DC;
  --gray-400: #9BAAB8;
  --gray-500: #6B7F8E;
  --gray-600: #4A5C6A;
  --gray-700: #344450;
  --gray-800: #1E2A34;
  --gray-900: #0F1920;

  /* Semantic */
  --text-primary: #1E2A34;
  --text-secondary: #4A5C6A;
  --text-muted: #6B7F8E;
  --text-inverse: #FFFFFF;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFB;
  --bg-tertiary: #F1F4F6;

  /* Shadows — layered for depth */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow-primary: 0 0 20px rgba(42,112,72,0.25);
  --shadow-glow-secondary: 0 0 20px rgba(83,140,191,0.25);
  --shadow-glow-accent: 0 0 20px rgba(217,37,37,0.25);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Typography — Major Third (1.25) */
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.563rem;
  --text-3xl: 1.953rem;
  --text-4xl: 2.441rem;
  --text-5xl: 3.052rem;
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.7;
  --leading-relaxed: 1.8;

  /* Spacing */
  --section-py: 96px;
  --container-width: 1200px;
  --header-height: 72px;

  /* Font */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul, ol {
  list-style: none;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

/* === Accessibility === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

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

/* === Utility Classes === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section-sm {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.section-title p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-top: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(42,112,72,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,112,72,0.35);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(83,140,191,0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(83,140,191,0.35);
  color: var(--white);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(217,37,37,0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,37,37,0.35);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(42,112,72,0.3);
}

.btn-ghost {
  color: var(--primary);
  background: var(--primary-bg);
}

.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

.btn-lg {
  padding: 17px 38px;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 9px 20px;
  font-size: var(--text-xs);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-100);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.card-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

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

.card-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.card-meta svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(42,112,72,0.3);
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero Section === */
.hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 96px;
  background: linear-gradient(160deg, var(--primary-bg) 0%, var(--white) 35%, var(--secondary-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(42,112,72,0.06) 0%, transparent 65%);
  border-radius: 50%;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(83,140,191,0.06) 0%, transparent 65%);
  border-radius: 50%;
  animation: hero-glow 8s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: var(--leading-tight);
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-200);
}

.hero-stat {
  flex: 0 0 auto;
}

.hero-stat .number {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat .label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

.hero-visual {
  flex: 1;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 520px;
  height: 420px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-2xl);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.2;
  color: var(--primary);
}

/* Floating cards on hero */
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.6);
  animation: float 4s var(--ease-out) infinite;
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-card svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.float-card .fc-number {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.float-card .fc-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.float-card:nth-child(2) { animation-delay: -1.3s; }
.float-card:nth-child(3) { animation-delay: -2.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* === Page Header (for inner pages) === */
.page-header {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 48px;
  background: linear-gradient(160deg, var(--primary-bg) 0%, var(--white) 50%, var(--secondary-bg) 100%);
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.page-header .desc {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto 16px;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

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

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

.page-header .breadcrumb .separator {
  color: var(--gray-300);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
  color: var(--gray-300);
}

/* === Grid System === */
.grid {
  display: grid;
  gap: 24px;
}

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

/* === Tags / Badges === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tag-primary {
  background: var(--primary-bg);
  color: var(--primary);
}

.tag-secondary {
  background: var(--secondary-bg);
  color: var(--secondary);
}

.tag-accent {
  background: var(--accent-bg);
  color: var(--accent);
}

.tag svg {
  width: 12px;
  height: 12px;
}

/* === Filter Tabs === */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--gray-100);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.filter-tab:hover {
  color: var(--primary);
  background: var(--primary-bg);
  border-color: rgba(42,112,72,0.15);
}

.filter-tab.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 12px rgba(42,112,72,0.3);
}

/* === Forms === */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42,112,72,0.08);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input.error {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217,37,37,0.08);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--accent);
  margin-top: 6px;
}

textarea.form-input {
  min-height: 130px;
  resize: vertical;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7F8E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 6px;
}

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-bg);
}

.pagination .active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(42,112,72,0.3);
}

.pagination svg {
  width: 16px;
  height: 16px;
}

/* === Footer === */
.footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 18px;
}

.footer-brand .logo span {
  -webkit-text-fill-color: white;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--gray-400);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

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

.footer-col ul li a {
  color: var(--gray-400);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--gray-400);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* === Floating CTA === */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.floating-btn svg {
  width: 22px;
  height: 22px;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.phone {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.floating-btn.wechat {
  background: linear-gradient(135deg, #07C160, #2BD174);
}

.floating-btn.top {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.floating-btn.top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn .tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--gray-800);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.floating-btn .tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--gray-800);
  border-right: none;
}

.floating-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* === Lead Form Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  /* overflow-y: auto; */
  transform: translateY(24px) scale(0.96);
  transition: all var(--transition);
  box-shadow: var(--shadow-2xl);
  position: relative;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.modal-header p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.modal form button[type="submit"] {
  width: 100%;
}

/* === Sidebar === */
.sidebar {
  width: 320px;
  flex-shrink: 0;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-xs);
}

.sidebar-widget h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-bg);
  letter-spacing: -0.01em;
}

/* === Content Layout === */
.content-layout {
  display: flex;
  gap: 40px;
}

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

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.06s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.18s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.30s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.36s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.42s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.48s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* === Counter Animation === */
.counter {
  display: inline-block;
}

/* === Feature Blocks === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  text-align: center;
  padding: 44px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

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

.feature-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(42,112,72,0.3);
}

.feature-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* === Comparison Table === */
.compare-table-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.compare-table thead th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.compare-table tbody tr {
  transition: background var(--transition-fast);
}

.compare-table tbody tr:hover {
  background: var(--primary-bg);
}

.compare-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.compare-table tbody tr:nth-child(even):hover {
  background: var(--primary-bg);
}

/* === Testimonial === */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-100);
  position: relative;
  transition: all var(--transition);
}

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

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.testimonial-quote {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: 24px;
  padding-top: 8px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--primary-bg);
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: -8px;
  left: -4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info .name {
  font-weight: 700;
  font-size: var(--text-sm);
}

.testimonial-info .role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 96px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 65%);
  border-radius: 50%;
}

.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

.cta-card {
  text-align: center;
}

.cta-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-icon svg {
  width: 32px;
  height: 32px;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
  transition: all var(--transition);
}

.timeline-item:hover::before {
  background: var(--primary);
  box-shadow: 0 0 0 6px var(--primary-bg);
}

.timeline-item .date {
  font-size: var(--text-xs);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-item h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* === Stats Bar === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 56px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 900;
  /* color: var(--primary); */
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: var(--text-sm);
  /* color: var(--text-muted); */
  font-weight: 500;
}

/* === Article Content === */
.article-content {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.article-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 32px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--primary-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

/* === Table of Contents === */
.toc {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--gray-100);
}

.toc h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.toc a:hover,
.toc a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-bg);
  margin-left: -12px;
  padding-left: 24px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 72px 24px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--gray-300);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* === Notification Toast === */
.notification {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
}

.notification.show {
  transform: translateX(0);
}

.notification svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.notification.success {
  background: var(--primary);
  color: var(--white);
}

.notification.error {
  background: var(--accent);
  color: var(--white);
}

.notification.info {
  background: var(--secondary);
  color: var(--white);
}

/* === Breadcrumb Enhanced === */
.breadcrumb-enhanced {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb-enhanced a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.breadcrumb-enhanced .sep {
  color: var(--gray-300);
}

.breadcrumb-enhanced .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* === Tool Card (for tools hub page) === */
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.tool-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tool-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--transition);
}

.tool-card-icon svg {
  width: 28px;
  height: 28px;
}

.tool-card:hover .tool-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(42,112,72,0.3);
}

.tool-card-body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 6px;
}

.tool-card-body p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* === Download Item === */
.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  margin-bottom: 12px;
}

.download-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.download-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.download-icon svg {
  width: 24px;
  height: 24px;
}

.download-info {
  flex: 1;
}

.download-info h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 4px;
}

.download-info .meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* === Case Card === */
.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.case-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-card-body {
  padding: 24px;
}

.case-card-body h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 8px;
}

.case-card-body p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: 16px;
}

.case-result {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.case-result-item {
  text-align: center;
  flex: 1;
}

.case-result-item .value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary);
}

.case-result-item .label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* === FAQ Accordion === */
.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--gray-200);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,112,72,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  gap: 16px;
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* === Responsive === */
@media (max-width: 1024px) {
  :root {
    --section-py: 72px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

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

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

  .content-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --section-py: 56px;
  }

  .section-title h2 {
    font-size: var(--text-2xl);
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero p {
    font-size: var(--text-base);
  }

  .hero-stats {
    gap: 20px 32px;
  }

  .hero-stat .number {
    font-size: var(--text-2xl);
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: var(--text-base);
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .feature-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .compare-table {
    font-size: var(--text-xs);
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
  }

  .page-header h1 {
    font-size: var(--text-2xl);
  }

  .cta-section {
    padding: 56px 0;
  }

  .cta-section h2 {
    font-size: var(--text-2xl);
  }

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

  .stat-number {
    font-size: var(--text-3xl);
  }

  .modal {
    padding: 28px;
    margin: 16px;
  }

  .floating-cta {
    right: 16px;
    bottom: 16px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .tool-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .download-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--text-2xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .filter-tab {
    flex-shrink: 0;
  }

  .case-result {
    flex-wrap: wrap;
  }
}

/* === Print === */
@media print {
  .header, .footer, .floating-cta, .modal-overlay, .notification {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .section {
    padding: 20px 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
