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

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-500: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-800: #1e3a8a;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo:hover { color: var(--primary); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  padding: 8px 18px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
  position: relative;
}
.nav a:hover { color: var(--primary); background: var(--primary-50); }
.nav a.active { color: var(--primary); background: var(--primary-50); font-weight: 600; }
.nav .nav-contact-btn {
  margin-left: 8px;
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.nav .nav-contact-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29,78,216,0.3);
}

/* ========== Hero ========== */
.hero {
  background:
    linear-gradient(135deg, rgba(239,246,255,0.96), rgba(248,250,252,0.98)),
    linear-gradient(45deg, #eff6ff, #ffffff);
  padding: 82px 0 42px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 54px;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(37,99,235,0.2);
}
.hero h1 {
  font-size: 50px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.hero h1 .highlight { 
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 0 34px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(29,78,216,0.35);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.btn-primary-lg:hover { 
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-2px); 
  box-shadow: 0 8px 30px rgba(29,78,216,0.45); 
  color: #fff;
}
.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: rgba(255,255,255,0.8);
  color: var(--primary);
  border: 2px solid rgba(37,99,235,0.3);
  border-radius: var(--radius-full);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline-lg:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 52px;
  margin-top: 48px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(148,163,184,0.22);
}
.hero-stat { text-align: center; position: relative; }
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(37,99,235,0.15);
}
.hero-stat .num { 
  font-size: 36px; 
  font-weight: 800; 
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .label { font-size: 15px; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }
.hero-trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}
.hero-panel {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 55px rgba(30,64,175,0.13);
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 13px;
}
.hero-panel-head strong { color: #2563eb; }
.hero-domain-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  margin-bottom: 16px;
}
.domain-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16,185,129,0.12);
}
.hero-domain-card strong { display: block; color: #1f2937; font-size: 20px; }
.hero-domain-card small { display: block; color: #6b7280; margin-top: 4px; }
.domain-score {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
}
.hero-factor-list {
  display: grid;
  gap: 10px;
}
.hero-factor-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.hero-factor-list span { color: #6b7280; font-size: 13px; }
.hero-factor-list strong { color: #1f2937; font-size: 13px; text-align: right; }
.hero-panel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 18px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}
.hero-panel-link:hover { background: #1d4ed8; color: #fff; }

/* ========== Domain Types / Value Factors ========== */
.domain-types { background: #fff; }
.domain-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.domain-type-card {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.domain-type-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 24px rgba(15,23,42,0.07);
  transform: translateY(-2px);
}
.domain-type-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}
.domain-type-card h3 {
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 9px;
}
.domain-type-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}
.value-factors { background: #f8fafc; }
.value-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: start;
}
.value-layout .section-title,
.value-layout .section-subtitle {
  text-align: left;
  margin-left: 0;
}
.value-checklist {
  display: grid;
  gap: 12px;
}
.value-checklist div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.value-checklist strong { color: #1f2937; }
.value-checklist span { color: #6b7280; font-size: 14px; line-height: 1.6; }

/* ========== Registrar Channels ========== */
.registrar-section {
  background: #fff;
}
.registrar-marquee {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 4px 0;
  isolation: isolate;
}
.registrar-marquee::before,
.registrar-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 2;
  pointer-events: none;
}
.registrar-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%);
}
.registrar-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0) 100%);
}
.registrar-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}
.registrar-track-left {
  animation: registrarSlideLeft 58s linear infinite;
}
.registrar-track-right {
  animation: registrarSlideRight 64s linear infinite;
}
.registrar-marquee:hover .registrar-track {
  animation-play-state: paused;
}
.registrar-logo-card {
  flex: 0 0 300px;
  height: 132px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 24px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  contain: layout paint;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.registrar-logo-card.has-label {
  grid-template-rows: auto auto;
  align-content: center;
}
.registrar-logo-media {
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.registrar-logo-card.logo-only .registrar-logo-media {
  height: 98px;
}
.registrar-logo-card.has-label .registrar-logo-media {
  height: auto;
}
.registrar-logo-card.registrar-gname {
  gap: 5px;
}
.registrar-logo-card.registrar-gname .registrar-logo-name {
  color: #344054;
  font-weight: 750;
  line-height: 1;
}
.registrar-logo-card img {
  display: block;
  width: min(var(--logo-width, 228px), calc(100% - 8px));
  height: min(var(--logo-height, 76px), 96px);
  object-fit: contain;
  object-position: center;
}
.registrar-logo-name {
  display: block;
  width: 100%;
  color: #475569;
  font-size: var(--label-size, 16px);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
@keyframes registrarSlideLeft {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(calc(-50% - 11px),0,0); }
}
@keyframes registrarSlideRight {
  from { transform: translate3d(calc(-50% - 11px),0,0); }
  to { transform: translate3d(0,0,0); }
}
.registrar-note {
  margin: 22px auto 0;
  max-width: 780px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .registrar-track-left,
  .registrar-track-right {
    animation: none;
  }
  .registrar-marquee {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

/* ========== Section ========== */
.section { padding: 88px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.section-subtitle { color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ========== Process ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 24px 28px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin-top: 18px;
}
.process-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.35s;
}
.process-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-lg); 
  border-color: var(--primary-200);
}
.process-card:hover::before { opacity: 1; }
.process-card .icon {
  font-size: 44px;
  margin-bottom: 18px;
  display: block;
  transition: transform 0.3s;
}
.process-card:hover .icon { transform: scale(1.1); }
.process-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.process-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.process-card .step-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(29,78,216,0.35);
  z-index: 10;
}

/* ========== Advantages ========== */
.advantages { background: var(--bg-white); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.adv-card {
  display: flex;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-white);
}
.adv-card:hover { 
  border-color: var(--primary-200); 
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.adv-card .icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  border: 1px solid var(--primary-200);
}
.adv-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.adv-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ========== Submit Form Section ========== */
.form-section {
  background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.form-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.form-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}
.form-section .container { position: relative; z-index: 1; }
.form-section .section-title { color: #fff; }
.form-section .section-subtitle { color: rgba(255,255,255,0.8); }
.form-section .section-badge { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2);
}
.form-wrap h3 { color: var(--text); font-size: 24px; font-weight: 700; margin-bottom: 8px; text-align: center; letter-spacing: -0.3px; }
.form-wrap .form-sub { color: var(--text-secondary); font-size: 14px; text-align: center; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s;
  background: var(--bg);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(29,78,216,0.25);
}
.btn-submit:hover { 
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  box-shadow: 0 6px 20px rgba(29,78,216,0.4);
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ========== Contact Info Section ========== */
.contact-section { background: var(--bg-white); position: relative; }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}
.contact-info { 
  background: linear-gradient(160deg, #1e3a8a, #1d4ed8);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -50px; right: -50px;
}
.contact-info h3 { font-size: 22px; font-weight: 700; position: relative; z-index: 1; }
.contact-item { 
  display: flex; align-items: flex-start; gap: 14px;
  position: relative; z-index: 1;
}
.contact-copy {
  width: calc(100% + 16px);
  margin: -6px -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background .18s ease, transform .18s ease;
}
.contact-copy:hover {
  background: rgba(255,255,255,0.10);
}
.contact-copy:active {
  transform: translateY(1px);
}
.contact-copy:focus-visible {
  outline: 2px solid rgba(255,255,255,0.78);
  outline-offset: 3px;
}
.contact-item .ci-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item .ci-text { font-size: 15px; line-height: 1.7; }
.contact-item .ci-text strong { display: block; font-size: 16px; margin-bottom: 2px; }
.copy-hint {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 1px 8px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
  white-space: nowrap;
}
.contact-copy:hover .copy-hint {
  color: #fff;
  border-color: rgba(255,255,255,0.42);
}

.contact-qr {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.contact-qr h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.contact-qr .qr-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.contact-qr img { 
  width: 200px; height: 200px; 
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  object-fit: contain;
}
.contact-qr .qr-placeholder {
  width: 200px; height: 200px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-light);
}

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item:hover { border-color: var(--primary-200); }
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-size: 16px;
  transition: color 0.2s;
}
.faq-item.open .faq-q { color: var(--primary); }
.faq-q .faq-arrow { 
  font-size: 20px; color: var(--primary); 
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary-50);
}
.faq-item.open .faq-q .faq-arrow { transform: rotate(180deg); background: var(--primary); color: #fff; }
.faq-a {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ========== Articles ========== */
.articles { background: var(--bg); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}
.article-card .cover {
  height: 190px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  overflow: hidden;
}
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 22px; }
.article-card .body .tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.article-card .body .tags span {
  background: var(--primary-50);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.article-card .body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.45; }
.article-card .body h3 a { color: var(--text); }
.article-card .body h3 a:hover { color: var(--primary); }
.article-card .body .summary { 
  color: var(--text-secondary); font-size: 14px; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.6;
}
.article-card .body .meta { font-size: 13px; color: var(--text-light); display: flex; justify-content: space-between; }
.view-all { text-align: center; margin-top: 44px; }
.view-all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
}
.view-all a:hover { background: var(--primary); color: #fff; }

/* ========== Article Detail ========== */
.article-detail { padding: 56px 0; }
.article-detail .inner { max-width: 800px; margin: 0 auto; }
.article-detail h1 { font-size: 34px; font-weight: 800; margin-bottom: 16px; line-height: 1.3; letter-spacing: -0.5px; }
.article-detail .meta { color: var(--text-light); font-size: 14px; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-detail .content { font-size: 16px; line-height: 1.85; color: var(--text); }
.article-detail .content h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; }
.article-detail .content h3 { font-size: 21px; font-weight: 600; margin: 28px 0 12px; }
.article-detail .content p { margin-bottom: 18px; }
.article-detail .content ul, .article-detail .content ol { margin-bottom: 18px; padding-left: 24px; }
.article-detail .content li { margin-bottom: 8px; }
.article-detail .content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--primary-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--text-secondary);
}
.article-detail .content img { border-radius: var(--radius-lg); margin: 20px 0; }
.article-detail .content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
}
.article-detail .content code { font-size: 14px; background: var(--primary-50); padding: 2px 6px; border-radius: 4px; }
.article-detail .content pre code { background: none; padding: 0; }
.article-detail .content a { text-decoration: underline; text-underline-offset: 2px; }
.article-detail .tags { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); }
.article-detail .tags span { background: var(--primary-50); color: var(--primary); padding: 4px 16px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500; }

/* ========== Legal Page ========== */
.legal-page {
  padding: 58px 0;
  background: var(--bg);
}
.legal-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.legal-card h1 {
  margin: 16px 0 22px;
  color: var(--text);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
}
.legal-content {
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
}
.legal-content p {
  margin-bottom: 16px;
}
.legal-notice-list {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  background: #eff6ff;
  color: #1e3a8a;
}
.legal-notice-list p {
  margin-bottom: 10px;
}
.legal-notice-list p:last-child {
  margin-bottom: 0;
}
.legal-notice-list strong {
  color: #1d4ed8;
}

/* ========== Articles Page ========== */
.articles-page { padding: 56px 0; }
.articles-page h1 { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 44px; }

/* ========== Footer ========== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 44px 0 24px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.14), transparent 42%),
    linear-gradient(315deg, rgba(14,165,233,0.08), transparent 36%);
  pointer-events: none;
}
.footer .container {
  position: relative;
  z-index: 1;
}
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 14px;
}
.footer-cta-kicker {
  display: inline-block;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-cta h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1.45;
  max-width: 680px;
}
.footer-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37,99,235,0.26);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(var(--footer-link-columns, 3), minmax(130px, 0.72fr)) minmax(220px, 1fr);
  gap: 28px;
  margin-bottom: 30px;
  align-items: start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
}
.footer-brand-mark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
}
.footer-brand-block p {
  max-width: 470px;
  color: #cbd5e1;
}
.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.footer-badges span {
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(37,99,235,0.14);
  border: 1px solid rgba(147,197,253,0.18);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer a { color: #94a3b8; font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-link-column,
.footer-contact-block {
  min-width: 0;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-contact-list {
  display: grid;
  gap: 12px;
}
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.16);
  flex-shrink: 0;
}
.footer-contact-item strong {
  display: block;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}
.footer-contact-item span:last-child {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}
.footer-legal {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(148,163,184,0.14);
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
}
.footer-legal strong {
  color: #e5e7eb;
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(148,163,184,0.14);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.footer-bottom-meta a {
  color: #94a3b8;
}
.footer-bottom-meta a:hover {
  color: #e5e7eb;
}
.footer-bottom-meta em {
  font-style: normal;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}
.toast.success { background: linear-gradient(135deg, #059669, #10b981); }
.toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); }
@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ========== 404 ========== */
.page-404 { text-align: center; padding: 120px 0; }
.page-404 h1 { font-size: 100px; font-weight: 800; background: linear-gradient(135deg, #1d4ed8, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; }
.page-404 p { color: var(--text-secondary); margin-bottom: 36px; font-size: 17px; }

/* ========== Admin Login Refresh ========== */
.admin-login-body {
  min-height: 100vh;
  background: #f8fafc;
}
.admin-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
}
.admin-login-brand {
  background:
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(30,64,175,0.88)),
    linear-gradient(45deg, #0f172a, #2563eb);
  color: #fff;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.admin-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.admin-login-logo:hover { color: #fff; }
.admin-login-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.admin-login-logo-mark img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.admin-login-copy { max-width: 520px; }
.admin-login-copy .eyebrow {
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.admin-login-copy h1 {
  font-size: 38px;
  line-height: 1.22;
  margin-bottom: 18px;
  color: #fff;
}
.admin-login-copy p {
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.8;
}
.admin-login-points {
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.admin-login-points div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.admin-login-points strong { color: #fff; font-size: 14px; }
.admin-login-points span { color: #bfdbfe; font-size: 13px; text-align: right; }
.admin-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
}
.login-card-pro {
  width: min(100%, 430px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.10);
  padding: 36px;
}
.login-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid #bfdbfe;
}
.login-card-pro h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}
.login-card-sub {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 20px;
}
.login-form-pro { display: grid; gap: 18px; }
.login-form-pro label span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.login-input-wrap {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #9ca3af;
}
.login-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
  color: #2563eb;
}
.login-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: #1f2937;
}
.login-submit-pro {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.login-submit-pro:hover {
  background: #1d4ed8;
  box-shadow: 0 10px 18px rgba(37,99,235,0.22);
  transform: translateY(-1px);
}
.login-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f3f4f6;
  margin-top: 24px;
  padding-top: 18px;
  color: #9ca3af;
  font-size: 12px;
}

/* ========== Admin Styles ========== */
.admin-body { background: #f8fafc; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 244px;
  background: #0f172a;
  color: #fff;
  flex-shrink: 0;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-sidebar .brand { 
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar .brand a { color: #fff; display: flex; align-items: center; gap: 10px; }
.admin-sidebar .brand a:hover { color: #60a5fa; }
.admin-sidebar .brand strong { display: block; font-size: 16px; line-height: 1.2; }
.admin-sidebar .brand small { display: block; margin-top: 3px; color: #94a3b8; font-size: 12px; font-weight: 400; }
.admin-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.admin-sidebar nav { padding: 12px 0; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  font-weight: 500;
}
.admin-sidebar nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(255,255,255,0.2);
}
.admin-sidebar nav a.active {
  color: #fff;
  background: rgba(37,99,235,0.2);
  border-left-color: #3b82f6;
  font-weight: 600;
}
.admin-sidebar nav .nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 16px;
}
.admin-main { flex: 1; padding: 32px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.admin-header h1 { font-size: 24px; font-weight: 700; color: #1f2937; }
.admin-header-sub { color: #6b7280; font-size: 13px; margin-top: 6px; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; }
.admin-header .user-info { 
  display: flex; align-items: center; gap: 12px; 
  font-size: 14px; color: #374151;
  background: #fff; padding: 7px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}
.user-menu {
  position: relative;
}
.user-menu summary {
  list-style: none;
  cursor: pointer;
}
.user-menu summary::-webkit-details-marker {
  display: none;
}
.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 130px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.user-menu-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
}
.user-menu-panel a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.stat-icon-blue { background: #eff6ff; color: #2563eb; }
.stat-icon-green { background: #d1fae5; color: #059669; }
.stat-icon-amber { background: #fef3c7; color: #d97706; }
.stat-icon-red { background: #fee2e2; color: #dc2626; }
.stat-card .value { font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1; }
.value-success { color: #059669 !important; }
.value-warning { color: #d97706 !important; }
.value-danger { color: #dc2626 !important; }
.stat-card .label { font-size: 14px; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }
.stat-desc { color: #9ca3af; font-size: 12px; margin-top: 8px; }
.admin-dashboard-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.admin-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.admin-page-toolbar strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
  margin-bottom: 4px;
}
.admin-page-toolbar span {
  color: #6b7280;
  font-size: 13px;
}
.list-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: -4px 0 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.list-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.list-controls select {
  height: 34px;
  min-width: 108px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #fff;
  color: #1f2937;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 0 10px;
}
.list-controls span {
  color: #64748b;
  font-size: 13px;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.pagination-bar > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination-actions .disabled {
  pointer-events: none;
  opacity: 0.45;
}
.admin-action-list { display: grid; gap: 12px; }
.admin-action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #1f2937;
  background: #fff;
}
.admin-action-item:hover { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.admin-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-action-item strong { display: block; font-size: 14px; }
.admin-action-item small { display: block; margin-top: 3px; color: #6b7280; font-size: 12px; }
.admin-compact-form { max-width: 420px; }
.logs-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}
.logs-table td {
  vertical-align: top;
}
.logs-table th:first-child,
.logs-table td:first-child {
  padding-left: 30px;
  width: 210px;
}
.logs-table th:nth-child(2),
.logs-table td:nth-child(2) {
  width: 170px;
  padding-left: 8px;
}
.logs-table th:nth-child(3),
.logs-table td:nth-child(3) {
  padding-left: 28px;
}
.logs-table th:nth-child(4),
.logs-table td:nth-child(4) {
  width: 220px;
}
.logs-table th:nth-child(5),
.logs-table td:nth-child(5) {
  width: 120px;
}
.log-type {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.log-type-visit { background: #eff6ff; color: #1d4ed8; }
.log-type-lead { background: #f0fdf4; color: #15803d; }
.log-type-login,
.log-type-logout { background: #fff7ed; color: #c2410c; }
.log-type-config,
.log-type-article,
.log-type-account { background: #f5f3ff; color: #6d28d9; }
.log-title,
.log-ip {
  display: block;
  color: #1f2937;
  line-height: 1.45;
}
.log-detail,
.log-location,
.log-path {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.dashboard-customer-panel h2 a {
  text-decoration: none;
}
.customer-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.customer-kpi-item {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.customer-kpi-item:hover,
.customer-kpi-item.is-active {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,0.08);
}
.customer-kpi-item strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}
.customer-kpi-item span {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.customer-kpi-high { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.customer-kpi-second { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.customer-kpi-callback { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.customer-kpi-today { background: #fefce8; border-color: #fde68a; color: #a16207; }
.customer-kpi-total { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.customer-kpi-completed { background: #ecfdf5; border-color: #86efac; color: #047857; }
.customer-kpi-high.is-active { border-color: #fb923c; }
.customer-kpi-second.is-active { border-color: #60a5fa; }
.customer-kpi-callback.is-active { border-color: #34d399; }
.customer-kpi-today.is-active { border-color: #eab308; }
.customer-kpi-total.is-active { border-color: #64748b; }
.customer-kpi-completed.is-active { border-color: #22c55e; }
.dashboard-flow-item .admin-action-icon strong {
  font-size: 16px;
  line-height: 1;
}
.recent-lead-list {
  display: grid;
  gap: 10px;
}
.recent-lead-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1f2937;
}
.recent-lead-item[hidden] {
  display: none !important;
}
.recent-lead-item:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.recent-lead-item strong {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.recent-lead-item span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}
.lead-status-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.lead-status-pending { background: #fffbeb; color: #b45309; }
.lead-status-contacted { background: #eff6ff; color: #1d4ed8; }
.lead-status-completed { background: #f0fdf4; color: #15803d; }
.lead-status-rejected { background: #fff1f2; color: #be123c; }
.recent-lead-empty {
  padding: 28px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
}
.recent-lead-empty strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
}
.recent-lead-empty span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

/* Tables */
.table-wrap {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow-x: hidden;
  overflow-y: hidden;
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.submissions-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.submissions-table .col-select { width: 3.4%; }
.submissions-table .col-domain { width: 15%; }
.submissions-table .col-name { width: 7%; }
.submissions-table .col-phone { width: 10%; }
.submissions-table .col-wechat { width: 9%; }
.submissions-table .col-message { width: 15%; }
.submissions-table .col-profile { width: 28%; }
.submissions-table .col-status { width: 6.6%; }
.submissions-table .col-time { width: 7%; }
.submissions-table .selection-cell {
  width: 48px;
  min-width: 48px;
  text-align: center;
}
.submissions-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.table-wrap th {
  text-align: left;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0;
}
.table-wrap td {
  padding: 12px 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: var(--primary-50); }
.articles-table .article-title-head,
.articles-table .article-title-cell {
  padding-left: 8px;
}
.table-title {
  display: block;
  color: #1f2937;
  line-height: 1.45;
}
.table-sub {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 12px;
}
.muted-text {
  color: #94a3b8;
}
.copy-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334155;
  transition: color 0.18s;
}
.copy-chip:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.copy-chip-domain {
  color: #334155;
  font-weight: 560;
}
.copy-chip-domain strong {
  font-weight: 560;
}
.copy-chip-name {
  color: #334155;
}
.copy-chip-phone {
  color: #334155;
}
.copy-chip-wechat {
  color: #334155;
}
.domain-collapse {
  min-width: 0;
}
.domain-collapse summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}
.domain-collapse summary::-webkit-details-marker {
  display: none;
}
.domain-collapse summary::after {
  content: '展开';
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.domain-collapse[open] summary::after {
  content: '收起';
}
.domain-count {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}
.domain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
}
.domain-item-chip {
  max-width: 170px;
  font-weight: 560;
}
.submission-message-cell {
  width: auto;
  min-width: 0;
  max-width: none;
  vertical-align: middle;
}
.submission-message {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  line-height: 1.65;
  white-space: normal;
  word-break: break-word;
}
.submission-message-count {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
  text-align: right;
}
.articles-table .article-status-cell {
  width: 96px;
  min-width: 96px;
  white-space: nowrap;
}
.status-select {
  height: 32px;
  padding: 0 10px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.status-select option {
  background: #fff;
  color: #111827;
}
.status-select option:checked {
  background: #e5e7eb;
  color: #111827;
}
.status-select .status-option-pending,
.status-option-pending {
  color: #111827;
}
.status-select .status-option-contacted,
.status-option-contacted {
  color: #111827;
}
.status-select .status-option-completed,
.status-option-completed {
  color: #111827;
}
.status-select .status-option-rejected,
.status-option-rejected {
  color: #111827;
}
.status-select.status-pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}
.status-select.status-contacted {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.status-select.status-completed {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}
.status-select.status-rejected {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}
.status-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.lead-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.lead-summary-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
}
.lead-summary-card strong {
  display: block;
  color: #1d4ed8;
  font-size: 24px;
  line-height: 1.1;
}
.lead-summary-card span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
}
.lead-profile-cell {
  width: auto;
  min-width: 0;
  vertical-align: middle;
}
.lead-profile-card {
  padding: 10px;
  border: 1px solid #e5edf7;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.lead-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.lead-profile-grid label {
  display: grid;
  gap: 3px;
  color: #7c8ca3;
  font-size: 11px;
  font-weight: 650;
}
.lead-profile-grid label span {
  line-height: 1;
}
.lead-profile-grid select,
.lead-profile-note {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #fff;
  color: #1f2937;
  font-family: inherit;
  font-size: 12px;
}
.lead-profile-grid select {
  height: 28px;
  padding: 0 6px;
  font-weight: 650;
}
.lead-profile-note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: stretch;
  gap: 8px;
}
.lead-profile-note {
  min-height: 38px;
  height: 38px;
  resize: vertical;
  padding: 7px 9px;
  line-height: 1.35;
  margin-bottom: 0;
}
.submission-save {
  min-width: 0;
  width: 58px;
  height: 38px;
  padding-inline: 0;
  justify-content: center;
  align-self: stretch;
}
.empty-state {
  text-align: center;
  padding: 58px 24px;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
}
.empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}
.empty-state h3 {
  color: #1f2937;
  font-size: 18px;
  margin-bottom: 8px;
}
.empty-state p {
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  letter-spacing: 0;
}
.btn-primary { background: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(29,78,216,0.18); }
.btn-primary:hover { background: #1d4ed8; color: #fff; box-shadow: 0 4px 14px rgba(29,78,216,0.25); transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-delete-selected {
  color: #dc2626;
  border-color: #fecaca;
}
.btn-delete-selected:not(:disabled):hover {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fff1f2;
}
#selected-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
}
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-info { background: var(--primary-50); color: var(--primary); }
.badge-gray { background: #f1f5f9; color: #475569; }
.article-tags-cell {
  min-width: 340px;
}
.article-tag-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  gap: 10px;
  max-width: none;
  white-space: nowrap;
}
.article-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  line-height: 1.15;
  white-space: nowrap;
  min-width: 82px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 70px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge-published { background: #d1fae5; color: #047857; }
.status-badge-draft { background: #f1f5f9; color: #475569; }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
  flex: 0 0 auto;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  bottom: -150px; left: -100px;
}
.login-box {
  background: rgba(255,255,255,0.98);
  border-radius: var(--radius-xl);
  padding: 44px;
  width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}
.login-box h1 { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 6px; color: var(--text); }
.login-box .sub { text-align: center; color: var(--text-secondary); margin-bottom: 36px; font-size: 15px; }
.login-box .error { background: var(--danger-light); color: #991b1b; padding: 12px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14px; border: 1px solid #fecaca; }

/* Admin form sections */
.form-section-admin { background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.form-section-admin h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.field-counter {
  margin-top: 6px;
  text-align: right;
  color: #94a3b8;
  font-size: 12px;
}
.error-msg { background: var(--danger-light); color: #991b1b; padding: 14px 20px; border-radius: var(--radius-lg); margin-bottom: 24px; font-size: 14px; font-weight: 500; border: 1px solid #fecaca; }
.account-settings-grid { align-items: start; }
.config-workbench {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.config-tabs {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.config-tab {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  color: #475569;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.config-tab span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}
.config-tab small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
}
.config-tab:hover {
  background: #f8fafc;
  color: #1d4ed8;
}
.config-tab.active {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 3px 0 0 #2563eb;
}
.config-main-panel {
  min-width: 0;
}
.config-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
  backdrop-filter: blur(10px);
}
.config-topbar strong {
  display: block;
  color: #1f2937;
  font-size: 16px;
}
.config-topbar span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
}
.config-panel {
  display: none;
}
.config-panel.active {
  display: block;
}
.config-repeat-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.footer-columns-editor {
  display: grid;
  gap: 14px;
}
.footer-column-editor {
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}
.footer-column-links {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-link-editor {
  margin-bottom: 0;
}
.config-section-note {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}
.customer-info-guide {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.customer-info-item {
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}
.customer-info-item strong {
  display: block;
  color: #1d4ed8;
  font-size: 14px;
  margin-bottom: 6px;
}
.customer-info-item span {
  display: block;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}
.asset-preview {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #64748b;
  font-size: 13px;
}
.asset-preview img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #fff;
}

/* Editor */
.editor-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-height: 460px; }
.editor-wrap textarea {
  width: 100%;
  height: 100%;
  min-height: 460px;
  padding: 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  resize: none;
  background: #fafbfc;
  color: var(--text);
}
.editor-wrap textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.editor-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow-y: auto;
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
}
.editor-preview h2 { font-size: 22px; margin-bottom: 14px; }
.editor-preview h3 { font-size: 18px; margin: 18px 0 10px; }
.editor-preview p { margin-bottom: 14px; }
.editor-preview ul, .editor-preview ol { padding-left: 22px; margin-bottom: 14px; }
.editor-preview blockquote { border-left: 3px solid var(--primary); padding: 10px 16px; margin: 14px 0; background: var(--primary-50); border-radius: 0 var(--radius) var(--radius) 0; }
.editor-preview pre { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: var(--radius); font-size: 13px; overflow-x: auto; }

/* Success msg */
.success-msg { background: var(--success-light); color: #065f46; padding: 14px 20px; border-radius: var(--radius-lg); margin-bottom: 24px; font-size: 14px; font-weight: 500; border: 1px solid #a7f3d0; display: flex; align-items: center; gap: 8px; }

/* Test email btn */
.test-email-wrap { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.test-email-result { font-size: 13px; font-weight: 500; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .hero-panel { max-width: 620px; }
  .domain-type-grid { grid-template-columns: repeat(2, 1fr); }
  .value-layout { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 768px) {
  .hero { padding: 58px 0 28px; }
  .hero-grid { gap: 24px; }
  .admin-login-shell { grid-template-columns: 1fr; }
  .admin-login-brand { display: none; }
  .admin-login-panel { min-height: 100vh; padding: 24px; }
  .login-card-pro { padding: 26px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero-stats { flex-direction: column; gap: 28px; }
  .hero-stat:not(:last-child)::after { display: none; }
  .hero-panel { padding: 18px; border-radius: 14px; }
  .hero-factor-list div { flex-direction: column; gap: 4px; }
  .hero-factor-list strong { text-align: left; }
  .domain-type-grid { grid-template-columns: 1fr; }
  .value-checklist div { grid-template-columns: 1fr; gap: 6px; }
  .registrar-marquee::before,
  .registrar-marquee::after { width: 42px; }
  .registrar-logo-card { flex-basis: 270px; height: 122px; padding: 12px 20px; }
  .registrar-logo-media { height: 78px; }
  .registrar-logo-card.logo-only .registrar-logo-media { height: 88px; }
  .registrar-logo-card img { width: min(var(--logo-width, 218px), calc(100% - 8px)); height: min(var(--logo-height, 70px), 86px); }
  .process-grid, .adv-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 34px 0 22px; }
  .footer-cta { padding: 20px; }
  .footer-cta h3 { font-size: 18px; }
  .footer-cta-btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-legal { grid-template-columns: 1fr; gap: 6px; }
  .footer-bottom { flex-direction: column; }
  .contact-wrap { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-header { flex-direction: column; }
  .admin-header-actions { width: 100%; justify-content: space-between; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-summary-grid { grid-template-columns: 1fr; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .config-workbench { grid-template-columns: 1fr; }
  .config-tabs { position: static; grid-template-columns: repeat(2, 1fr); }
  .config-tab { min-height: 64px; }
  .config-topbar { position: static; align-items: flex-start; flex-direction: column; }
  .editor-wrap { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ========== Testimonials ========== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; transition: all 0.3s; }
.t-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary-200); }
.t-stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.t-text { color: var(--text); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.t-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.t-name { font-weight: 600; font-size: 14px; color: var(--text); }
.t-info { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ========== Form Notice ========== */
.form-notice { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--primary-50); border-radius: var(--radius); font-size: 13px; color: var(--primary); margin-bottom: 24px; border: 1px solid var(--primary-100); }

@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ========== Admin Sidebar Groups ========== */
.nav-group { margin-bottom: 8px; }
.nav-group-title {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px 6px;
  user-select: none;
}
.admin-sidebar nav > .nav-group:not(:first-child) {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 4px;
  padding-top: 4px;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 2px 12px;
  border-radius: var(--radius);
  color: #e2e8f0;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.admin-sidebar nav a.active svg { color: var(--primary-300); }

/* ========== Mobile polish ========== */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-inner {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .logo {
    width: 100%;
    font-size: 18px;
  }

  .logo img {
    width: 34px;
    height: 34px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .nav a {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .nav .nav-contact-btn {
    margin-left: 0;
  }

  .section {
    padding: 46px 0;
  }

  .section-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .form-wrap {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .form-wrap h3 {
    font-size: 22px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .contact-info,
  .contact-qr {
    padding: 28px 22px;
  }

  .contact-item {
    gap: 14px;
    align-items: flex-start;
  }

  .ci-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .ci-text span {
    word-break: break-all;
  }

  .admin-main {
    width: 100%;
    padding: 20px 14px 28px;
    overflow: visible;
  }

  .admin-header {
    gap: 14px;
    margin-bottom: 18px;
  }

  .admin-header h1 {
    font-size: 22px;
  }

  .admin-header-actions {
    flex-wrap: wrap;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 10px 12px;
    scrollbar-width: none;
  }

  .admin-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar nav .nav-group {
    display: contents;
  }

  .admin-sidebar nav .nav-group-title {
    display: none;
  }

  .admin-sidebar nav a {
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 12px;
    border-left: 0;
    border-radius: 10px;
    white-space: nowrap;
  }

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

  .stat-card,
  .customer-kpi-item {
    padding: 16px;
  }

  .admin-page-toolbar,
  .list-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-controls {
    gap: 10px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap th,
  .table-wrap td,
  .table-wrap tr {
    display: block;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 0;
    font-size: 14px;
  }

  .table-wrap td::before {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
  }

  .submissions-table td:nth-child(1)::before { content: '选择'; }
  .submissions-table td:nth-child(2)::before { content: '域名'; }
  .submissions-table td:nth-child(3)::before { content: '联系人'; }
  .submissions-table td:nth-child(4)::before { content: '手机号'; }
  .submissions-table td:nth-child(5)::before { content: '微信'; }
  .submissions-table td:nth-child(6)::before { content: '说明'; }
  .submissions-table td:nth-child(7)::before { content: '客户画像'; }
  .submissions-table td:nth-child(8)::before { content: '状态'; }
  .submissions-table td:nth-child(9)::before { content: '时间'; }

  .articles-table td:nth-child(1)::before { content: '状态'; }
  .articles-table td:nth-child(2)::before { content: '标题'; }
  .articles-table td:nth-child(3)::before { content: '标签'; }
  .articles-table td:nth-child(4)::before { content: '分类'; }
  .articles-table td:nth-child(5)::before { content: '更新'; }
  .articles-table td:nth-child(6)::before { content: '操作'; }

  .logs-table td:nth-child(1)::before { content: '时间'; }
  .logs-table td:nth-child(2)::before { content: '类型'; }
  .logs-table td:nth-child(3)::before { content: '操作内容'; }
  .logs-table td:nth-child(4)::before { content: 'IP / 归属地'; }
  .logs-table td:nth-child(5)::before { content: '操作人'; }

  .selection-cell {
    text-align: left !important;
  }

  .lead-profile-card {
    width: 100%;
  }

  .lead-profile-grid {
    grid-template-columns: 1fr;
  }

  .lead-profile-note-row {
    grid-template-columns: 1fr;
  }

  .status-select,
  .lead-profile-grid select,
  .lead-profile-note,
  .submission-message {
    width: 100%;
  }
}

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

  .hero {
    padding-top: 36px;
  }

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

  .btn,
  .btn-submit,
  .hero-buttons a {
    width: 100%;
  }

  .stats-grid,
  .customer-kpi-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap td {
    grid-template-columns: 1fr;
  }

  .table-wrap td::before {
    margin-bottom: -4px;
  }

  .config-tabs {
    grid-template-columns: 1fr;
  }
}
