:root {
  --blue-900: #102a43;
  --blue-800: #143f64;
  --blue-700: #146a9f;
  --blue-600: #1d9bd7;
  --blue-500: #31b8e9;
  --blue-100: #eaf8ff;
  --silver-50: #f7fbff;
  --silver-100: #ecf3fb;
  --silver-200: #dbe8f4;
  --silver-500: #748398;
  --gold-500: #d8a229;
  --gold-100: #fff6d9;
  --dark: #071827;
  --muted: #59677a;
  --line: rgba(28, 105, 151, .16);
  --white: #ffffff;
  --danger: #ca3d3d;
  --success: #16845a;
  --shadow: 0 20px 60px rgba(17, 76, 119, .14);
  --shadow-soft: 0 12px 32px rgba(17, 76, 119, .10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  background: linear-gradient(180deg, #f7fbff 0%, #eaf7ff 46%, #f7fbff 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; }
.small-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section.tight { padding: 54px 0; }
.section-title { max-width: 780px; margin-bottom: 34px; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--blue-700);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-500), var(--gold-500));
}
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--blue-900); }
h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: -0.06em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.045em; }
h3 { font-size: 22px; letter-spacing: -0.025em; }
p { margin: 0; }
.lead-text { color: var(--muted); font-size: 18px; }
.text-muted { color: var(--muted); }
.text-blue { color: var(--blue-700); }
.text-gold { color: var(--gold-500); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--blue-800);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}
.badge.gold { background: var(--gold-100); color: #9a6b00; border-color: rgba(216,162,41,.24); }
.badge.success { background: #e9fbf4; color: var(--success); border-color: rgba(22,132,90,.2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(247, 251, 255, .84);
  border-bottom: 1px solid rgba(20, 106, 159, .10);
}
.site-header.compact { position: relative; background: #f7fbff; }
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; color: var(--blue-900); letter-spacing: -.03em; }
.brand img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-soft); }
.brand span { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 6px; color: var(--blue-900); }
.nav-links a { padding: 10px 13px; border-radius: 999px; color: rgba(7,24,39,.78); font-weight: 750; }
.nav-links a:hover, .nav-links a.active { background: rgba(49,184,233,.12); color: var(--blue-700); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; border: 0; background: white; border-radius: 12px; padding: 10px; color: var(--blue-900); box-shadow: var(--shadow-soft); }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--blue-600), #57d4ff); box-shadow: 0 14px 30px rgba(29, 155, 215, .28); }
.btn-dark { color: white; background: var(--blue-900); box-shadow: 0 14px 30px rgba(16, 42, 67, .22); }
.btn-ghost { color: var(--blue-800); background: rgba(255,255,255,.78); border: 1px solid var(--line); }
.btn-gold { color: #3d2a00; background: linear-gradient(135deg, #ffe08a, var(--gold-500)); box-shadow: 0 14px 30px rgba(216, 162, 41, .22); }
.btn-small { padding: 8px 13px; min-height: 38px; font-size: 13px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 66px;
  background:
    radial-gradient(circle at 10% 20%, rgba(49, 184, 233, .18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(216, 162, 41, .16), transparent 24%),
    linear-gradient(140deg, #f7fbff 0%, #e8f6ff 50%, #f6fbff 100%);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero::before {
  width: 760px;
  height: 760px;
  right: -350px;
  top: -260px;
  background: radial-gradient(circle, rgba(49, 184, 233, .22), rgba(49,184,233,0) 66%);
}
.hero::after {
  width: 520px;
  height: 520px;
  left: -260px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(216, 162, 41, .15), rgba(216,162,41,0) 64%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 44px; align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy h1 span { display: block; background: linear-gradient(120deg, var(--blue-900), var(--blue-600) 55%, var(--gold-500)); -webkit-background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.trust-card { padding: 18px; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.trust-card strong { display: block; color: var(--blue-900); font-size: 20px; line-height: 1.2; }
.trust-card span { color: var(--muted); font-size: 13px; }
.hero-panel { position: relative; border-radius: 34px; padding: 24px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(49,184,233,.16), transparent 50%, rgba(216,162,41,.14)); pointer-events: none; }
.node-visual { position: relative; min-height: 430px; border-radius: 26px; background: linear-gradient(160deg, #f8fdff, #dff5ff); overflow: hidden; border: 1px solid rgba(20,106,159,.12); }
.node-visual .orbit { position: absolute; inset: 54px; border: 1px dashed rgba(20,106,159,.24); border-radius: 50%; animation: spin 36s linear infinite; }
.node-visual .orbit.two { inset: 96px; animation-duration: 52s; animation-direction: reverse; }
.core { position: absolute; width: 170px; height: 170px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 38px; background: linear-gradient(145deg, #59d4ff, #1d9bd7); box-shadow: 0 30px 80px rgba(29,155,215,.35); display: grid; place-items: center; color: white; font-weight: 950; font-size: 32px; letter-spacing: -.04em; }
.core::after { content: "CDN"; position: absolute; bottom: 36px; font-size: 13px; letter-spacing: .18em; opacity: .75; }
.node { position: absolute; padding: 12px 14px; background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); color: var(--blue-900); font-weight: 850; font-size: 13px; }
.node.a { left: 26px; top: 78px; }
.node.b { right: 32px; top: 108px; }
.node.c { left: 50px; bottom: 76px; }
.node.d { right: 52px; bottom: 54px; }
.metric-strip { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.86); border: 1px solid var(--line); }
.metric b { display: block; color: var(--blue-800); }
.metric span { font-size: 12px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

.card, .card-xl {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(20, 106, 159, .12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.card { padding: 26px; }
.card-xl { padding: 34px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.icon { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-100), white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue-700); font-weight: 950; margin-bottom: 18px; }
.icon.gold { color: #9a6b00; background: linear-gradient(135deg, var(--gold-100), white); }

.flow-section { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(234,248,255,.55)); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--line); background: white; box-shadow: var(--shadow-soft); }
.step::before { counter-increment: step; content: "0" counter(step); display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-600), #7bddff); color: white; font-weight: 950; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

.pricing-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { position: relative; padding: 28px; border-radius: 28px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden; }
.price-card.featured { border-color: rgba(216,162,41,.35); transform: translateY(-8px); box-shadow: var(--shadow); }
.price-card.featured::before { content: "推荐"; position: absolute; right: 22px; top: 22px; border-radius: 999px; padding: 6px 12px; color: #5d3d00; background: var(--gold-100); font-weight: 900; font-size: 12px; }
.price-card .price { display: flex; align-items: end; gap: 6px; margin: 18px 0; }
.price-card .price strong { font-size: 42px; line-height: 1; color: var(--blue-700); letter-spacing: -.05em; }
.price-card ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { color: var(--muted); display: flex; gap: 8px; }
.price-card li::before { content: "✓"; color: var(--success); font-weight: 950; }

.table-card { overflow: hidden; padding: 20px; }
.table-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: white; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid rgba(20,106,159,.11); }
th { background: linear-gradient(180deg, #e8f5ff, #dff1ff); color: var(--blue-700); font-weight: 900; }
td { color: #17293a; }
tr:last-child td { border-bottom: 0; }
.table-note { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.notice { padding: 14px 16px; border-radius: 16px; background: var(--gold-100); color: #8a6106; font-weight: 800; border: 1px solid rgba(216,162,41,.2); }

.cta-band { position: relative; overflow: hidden; border-radius: 34px; padding: 42px; background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: white; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -160px; top: -180px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 66%); }
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 12px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.lead-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.contact-card { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.contact-item b { display: block; color: var(--blue-900); }
.contact-item span { color: var(--muted); }
.lead-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 850; color: var(--blue-900); font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(20, 106, 159, .16);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  color: var(--dark);
  padding: 13px 14px;
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(49,184,233,.14); }
textarea { min-height: 120px; resize: vertical; }
.form-status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 14px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e9fbf4; color: var(--success); border: 1px solid rgba(22,132,90,.2); }
.form-status.error { background: #fff0f0; color: var(--danger); border: 1px solid rgba(202,61,61,.2); }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.article-card .article-meta, .article-meta { color: var(--muted); font-size: 13px; }
.article-card .read-more { margin-top: auto; color: var(--blue-700); font-weight: 900; }
.article-layout { padding: 64px 0; }
.article-page h1 { font-size: clamp(34px, 5vw, 58px); margin: 16px 0; }
.article-page .lead-text { margin: 20px 0 32px; }
.article-body { color: #22384d; }
.article-body h2 { font-size: 28px; margin: 32px 0 14px; }
.article-body h3 { margin: 24px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; color: #22384d; }
.article-source { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.article-source a { color: var(--blue-700); font-weight: 800; }
.breadcrumb { color: var(--blue-700); font-weight: 900; }

.policy-content { display: grid; gap: 20px; }
.policy-content h1 { font-size: clamp(34px, 5vw, 52px); }
.policy-content h2 { font-size: 28px; margin-top: 22px; }
.policy-content p, .policy-content li { color: #344b60; }
.policy-content ul { margin: 0; padding-left: 22px; }

.footer { padding: 46px 0; background: #071827; color: rgba(255,255,255,.74); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: center; }
.footer a { color: white; font-weight: 750; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; font-weight: 950; font-size: 22px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.admin-body { background: #f3f8fc; }
.admin-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.admin-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; align-self: start; min-height: 100vh; padding: 22px; background: #071827; color: white; }
.admin-sidebar .brand { color: white; margin-bottom: 28px; }
.admin-sidebar .brand img { width: 46px; height: 46px; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav a, .admin-nav button { display: flex; width: 100%; text-align: left; border: 0; align-items: center; padding: 12px 14px; border-radius: 14px; background: transparent; color: rgba(255,255,255,.78); font-weight: 850; cursor: pointer; }
.admin-nav a:hover, .admin-nav a.active, .admin-nav button:hover { background: rgba(255,255,255,.12); color: white; }
.admin-main { padding: 30px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.admin-top h1 { font-size: 34px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.admin-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-soft); }
.admin-card b { display: block; color: var(--blue-700); font-size: 34px; line-height: 1.1; }
.admin-card span { color: var(--muted); }
.admin-panel { background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft); padding: 24px; margin-top: 18px; }
.admin-panel h2 { font-size: 24px; margin-bottom: 16px; }
.admin-table { width: 100%; min-width: 900px; }
.admin-table th, .admin-table td { vertical-align: top; padding: 13px 14px; font-size: 14px; }
.admin-table td .muted { color: var(--muted); font-size: 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-form .full { grid-column: 1 / -1; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 30% 10%, rgba(49,184,233,.28), transparent 28%), linear-gradient(135deg, #f7fbff, #dff4ff); }
.login-card { width: min(460px, 100%); padding: 34px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.82); border-radius: 30px; box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 22px; }
.status-pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status-new { background: #e9f6ff; color: var(--blue-700); }
.status-contacted { background: #fff6d9; color: #8a6106; }
.status-qualified { background: #e9fbf4; color: var(--success); }
.status-won { background: #e6f8e9; color: #1d7c28; }
.status-lost, .status-invalid { background: #fff0f0; color: var(--danger); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; background: #fbfdff; }
.hidden { display: none !important; }

.telegram-support { position: fixed; z-index: 80; right: 22px; top: 58%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: 132px; padding: 16px 12px 14px; color: #111827; background: white; border: 1px solid rgba(30,158,217,.2); border-radius: 14px; box-shadow: 0 16px 38px rgba(15,73,105,.25); transition: transform .2s ease, box-shadow .2s ease; animation: support-float 3s ease-in-out infinite; }
.telegram-support:hover { color: #111827; transform: translateY(-50%) scale(1.04); box-shadow: 0 20px 44px rgba(15,73,105,.34); }
.telegram-support-icon { display: grid; place-items: center; flex: 0 0 82px; width: 82px; height: 82px; border-radius: 50%; background: #3d9bd8; }
.telegram-support-icon svg { width: 50px; height: 50px; fill: white; }
.telegram-support-copy { display: grid; text-align: center; line-height: 1.15; }
.telegram-support-copy b { color: #111827; font-size: 20px; white-space: nowrap; }
.telegram-support-copy small { margin-top: 5px; color: #6b7280; font-size: 11px; }
@keyframes support-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }

@media (max-width: 980px) {
  .hero-grid, .lead-layout, .cta-band, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .pricing-preview, .article-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-trust { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  .site-header.open .nav { align-items: flex-start; }
  .site-header.open .nav-links { display: grid; position: absolute; left: 20px; right: 20px; top: 76px; background: white; padding: 14px; border-radius: 20px; box-shadow: var(--shadow); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; min-height: auto; }
  .admin-nav { grid-template-columns: repeat(3, 1fr); }
  .admin-main { padding: 20px; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .shell, .small-shell { width: min(100% - 24px, var(--shell)); }
  .section { padding: 58px 0; }
  .hero { padding: 56px 0 42px; }
  .hero-panel { padding: 14px; border-radius: 24px; }
  .node-visual { min-height: 340px; }
  .core { width: 132px; height: 132px; border-radius: 30px; font-size: 26px; }
  .metric-strip { grid-template-columns: 1fr; position: static; padding: 220px 16px 16px; }
  .node { font-size: 12px; padding: 9px 11px; }
  .grid-3, .grid-2, .pricing-preview, .article-list, .steps, .lead-form, .admin-form, .admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .card-xl { padding: 22px; border-radius: 22px; }
  .cta-band { padding: 26px; border-radius: 24px; }
  .cta-actions { justify-content: flex-start; }
  .admin-nav { grid-template-columns: 1fr; }
  .admin-main { padding: 14px; }
  .telegram-support { right: 12px; top: auto; bottom: 82px; width: auto; padding: 7px; border-radius: 50%; }
  .telegram-support-icon { width: 50px; height: 50px; flex-basis: 50px; }
  .telegram-support-icon svg { width: 30px; height: 30px; }
  .telegram-support-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .telegram-support { animation: none; }
}
