/* ============ 咨询有道 · 用户端 Web ============ */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e7e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-deep: #0f1330;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px -12px rgba(30, 41, 59, .18);
  --shadow-lg: 0 24px 60px -20px rgba(49, 46, 129, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(99, 102, 241, .75); }
.btn-ghost { background: #eef2ff; color: var(--primary); }
.btn-ghost:hover { background: #e0e7ff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .2); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; }
.brand-text { font-size: 19px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: baseline; gap: 8px; }
.brand-text strong { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 1.5px; }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a {
  font-size: 15px; color: var(--ink-2); font-weight: 500; position: relative; padding: 6px 0;
  transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--violet)); border-radius: 2px;
  transition: width .25s;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a:hover::after { width: 100%; }
.header-cta { flex-shrink: 0; }
.nav-mobile-link { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(124, 58, 237, .14), transparent 60%),
    radial-gradient(760px 460px at 8% 6%, rgba(79, 70, 229, .14), transparent 60%),
    linear-gradient(180deg, #fafbff, #fff);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(rgba(79,70,229,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(14px); opacity: .5; animation: float 9s ease-in-out infinite; }
.orb-1 { width: 220px; height: 220px; right: 9%; top: 12%; background: radial-gradient(circle, #c4b5fd, transparent 70%); }
.orb-2 { width: 170px; height: 170px; left: 4%; top: 42%; background: radial-gradient(circle, #a5f3fc, transparent 70%); animation-delay: -3s; }
.orb-3 { width: 130px; height: 130px; right: 22%; bottom: 6%; background: radial-gradient(circle, #ddd6fe, transparent 70%); animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.hero-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--primary-dark);
  background: #eef2ff; border: 1px solid #e0e7ff; margin-bottom: 26px;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.18; font-weight: 800; letter-spacing: -.5px; }
.grad-text {
  background: linear-gradient(120deg, var(--primary) 10%, var(--violet) 55%, #c026d3 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); }
.br-pc { }

.hero-search {
  display: flex; align-items: center; gap: 8px; margin: 38px auto 0; max-width: 640px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  transition: box-shadow .25s, border-color .25s;
}
.hero-search:focus-within { border-color: #c7d2fe; box-shadow: 0 16px 40px -14px rgba(79, 70, 229, .45); }
.search-icon { color: #94a3b8; flex-shrink: 0; }
.hero-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 15.5px; font-family: inherit; color: var(--ink); height: 42px;
}
.hero-search input::placeholder { color: #9aa5b8; }
.hero-search .btn { height: 42px; padding: 0 26px; }

.hero-stats { display: flex; justify-content: center; gap: clamp(28px, 5vw, 64px); margin-top: 52px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat b { font-size: clamp(24px, 3vw, 32px); font-weight: 800; background: linear-gradient(120deg, var(--primary), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--primary); background: #eef2ff; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-tag.light { color: #c7d2fe; background: rgba(255,255,255,.1); }
.section-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.3px; }
.section-title.light { color: #fff; }
.section-desc { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

/* ---------- 模块区 ---------- */
.section-modules { background: var(--bg-soft); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.tab:hover { border-color: #c7d2fe; color: var(--primary); }
.tab.active {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(99, 102, 241, .8);
}
.result-count { font-size: 13.5px; color: var(--muted); }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.module-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  overflow: hidden; min-height: 188px;
}
.module-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #e0e3ff; }
.module-card:hover::before { transform: scaleX(1); }

.card-top { display: flex; align-items: center; gap: 14px; }
.module-logo {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  font-size: 22px; font-weight: 800; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 14px -8px rgba(15,23,42,.35);
}
.module-logo img { width: 100%; height: 100%; object-fit: cover; }
.lc-0 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.lc-1 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.lc-2 { background: linear-gradient(135deg, #10b981, #059669); }
.lc-3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.lc-4 { background: linear-gradient(135deg, #ec4899, #db2777); }
.lc-5 { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.lc-6 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.lc-7 { background: linear-gradient(135deg, #ef4444, #f97316); }

.card-name { font-size: 17.5px; font-weight: 700; }
.card-badge {
  display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 600;
  color: var(--primary); background: #eef2ff; border-radius: 6px; padding: 2px 9px;
}
.card-desc {
  margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.card-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600; color: var(--primary);
}
.card-arrow { transition: transform .25s ease; }
.module-card:hover .card-arrow { transform: translateX(5px); }
.card-domain { color: #9aa5b8; font-weight: 500; font-size: 12.5px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 骨架屏（预留与真实卡片相同的布局空间，避免 CLS） */
.skeleton-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.sk-top { display: flex; align-items: center; gap: 14px; }
.sk-logo { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 52px; }
.sk-top > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-line { height: 12px; border-radius: 6px; display: block; }
.sk-line.w90 { width: 90%; } .sk-line.w70 { width: 70%; }
.sk-line.w60 { width: 60%; height: 14px; } .sk-line.w40 { width: 40%; }
.sk-line.short { margin-top: 2px; }
.sk-logo, .sk-line {
  background: linear-gradient(90deg, #eef0f7 25%, #f7f8fc 37%, #eef0f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.load-more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 26px; }

/* 加载 / 空态 */
.loading-state, .empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); }
.spinner {
  display: inline-block; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #e0e3ff; border-top-color: var(--primary); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-illu { margin-bottom: 14px; display: flex; justify-content: center; }
.empty-state h3 { font-size: 17px; color: var(--ink-2); }
.empty-state p { margin: 6px 0 18px; font-size: 14px; }

/* ---------- 特性 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px;
  background: #fff; transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; margin-bottom: 16px;
}
.feature-icon svg { }
.fi-1 { background: #eef2ff; color: #4f46e5; }
.fi-2 { background: #fef3c7; color: #d97706; }
.fi-3 { background: #cffafe; color: #0891b2; }
.fi-4 { background: #fce7f3; color: #db2777; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------- 步骤（深色） ---------- */
.section-steps {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(6,182,212,.22), transparent 60%),
    var(--bg-deep);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 34px 28px; backdrop-filter: blur(6px);
}
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  box-shadow: 0 8px 20px -8px rgba(124,58,237,.9);
}
.step h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.step p { color: #b6bdd6; font-size: 14.5px; line-height: 1.75; }

/* ---------- CTA ---------- */
.cta-band { padding: 70px 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 46px 52px; border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, #4338ca, #7c3aed 55%, #9333ea);
  box-shadow: 0 30px 60px -24px rgba(79, 70, 229, .6);
}
.cta-inner h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.cta-inner p { margin-top: 8px; color: rgba(255,255,255,.85); font-size: 15px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0f26; color: #c3c9e0; padding: 44px 0 34px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { font-size: 13px; color: #8b93b4; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 14px; color: #b9c0da; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: 13px; color: #7680a3; text-align: right; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 60px 0 56px; }
  .section { padding: 60px 0; }
  .site-nav { display: none; }
  .nav-mobile-link { display: inline; }
  .module-grid, .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-search { padding-left: 16px; }
  .hero-search .btn { padding: 0 18px; }
  .cta-inner { padding: 34px 26px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-brand { flex-direction: column; }
  .copyright { text-align: center; }
}
