/* ============================================================
   LouxiaOS 官网全新视觉（2026-08-26 网页版重构）
   现代 SaaS 风格 · 浅色基调 · 品牌紫渐变点缀
   ============================================================ */
:root {
  --brand: #6d28d9;        /* 品牌紫 */
  --brand-2: #8b5cf6;
  --brand-3: #a78bfa;
  --grad: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 55%, #a855f7 100%);
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --bg: #ffffff;
  --bg-soft: #f8f7fc;
  --line: #ece9f4;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(109, 40, 217, 0.08);
  --shadow-lg: 0 24px 60px rgba(109, 40, 217, 0.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.w { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .w { display: flex; align-items: center; height: 66px; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.nav-logo img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
/* 导航内按钮文字强制白色（防止 .nav-links a 颜色覆盖渐变按钮文字） */
.nav-links a.btn { color: #fff !important; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: transform .2s, box-shadow .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(109,40,217,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(109,40,217,.42); }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: #f5f0ff; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 12% 10%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(700px 500px at 88% 80%, rgba(168,85,247,.14), transparent 60%);
}
.hero .w { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 76px; padding-bottom: 90px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--brand);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(109,40,217,.08);
}
.hero-badge b { color: var(--ink); font-weight: 700; }
.hero h1 { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 20px 0 30px; font-size: 17px; color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 42px; }
.hero-stats div { font-size: 13px; color: var(--ink-3); }
.hero-stats strong { display: block; font-size: 24px; font-weight: 800; color: var(--ink); }

/* 浏览器 mockup */
.hero-right { position: relative; }
.browser {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; transform: rotate(-1deg);
  max-width: 560px; margin-left: auto;
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #faf9ff; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1){ background:#f87171; } .browser-dots i:nth-child(2){ background:#fbbf24; } .browser-dots i:nth-child(3){ background:#34d399; }
.browser-url { flex: 1; background: #f1eefb; border-radius: 8px; padding: 4px 12px; font-size: 12px; color: var(--ink-3); }
.browser-body { display: grid; grid-template-columns: 130px 1fr; min-height: 300px; }
.browser-side { background: #faf9ff; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.browser-side i { display: block; height: 22px; border-radius: 6px; background: #ece9f4; }
.browser-side i:first-child { background: var(--grad); }
.browser-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.browser-row { display: flex; gap: 10px; }
.browser-card { flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.browser-card b { display: block; width: 60%; height: 10px; border-radius: 5px; background: #ddd7f3; margin-bottom: 8px; }
.browser-card span { display: block; width: 90%; height: 8px; border-radius: 4px; background: #efecf8; margin-bottom: 6px; }
.browser-card span:last-child { width: 45%; background: var(--brand-3); }

/* 手机端 mockup（SVG 精致手机界面） */
.phone {
  position: absolute; right: -24px; bottom: -58px; width: 196px; height: 422px;
  border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px rgba(15,10,31,.5);
  transform: rotate(2.5deg); background: #fff; border: 5px solid #17102e;
  line-height: 1;
}
.phone svg { display: block; width: 100%; height: 100%; aspect-ratio: 210 / 460; }

/* ---------- 通用板块 ---------- */
.section { padding: 84px 0; }
.section .w > h2 { font-size: 34px; font-weight: 800; text-align: center; letter-spacing: -.3px; }
.section .sub { text-align: center; color: var(--ink-3); margin: 12px auto 46px; max-width: 620px; font-size: 15px; }
.sub em { color: var(--brand); font-style: normal; font-weight: 600; }

/* ---------- 功能卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: center; }
.f-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.f-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.f-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.f-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.f-card p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 圈子分销 ---------- */
.circle-sec { background: var(--grad); color: #fff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden; }
.circle-sec::after { content:""; position:absolute; width:360px;height:360px;border-radius:50%;background:rgba(255,255,255,.08); right:-80px; top:-120px; }
.circle-sec h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.circle-sec .cs-sub { color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 34px; }
.cs-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; position: relative; z-index: 1; }
.cs-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 22px; backdrop-filter: blur(6px); }
.cs-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.cs-card p { font-size: 13px; color: rgba(255,255,255,.8); }
.cs-cta { margin-top: 34px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand); padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: 0 10px 26px rgba(0,0,0,.18); transition: transform .2s; position: relative; z-index: 1; }
.cs-cta:hover { transform: translateY(-2px); }

/* ---------- 行业方案 ---------- */
.industry-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.itag { padding: 9px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; cursor: pointer; transition: all .2s; font-weight: 600; }
.itag.active, .itag:hover { background: var(--grad); color: #fff; border-color: transparent; }
.industry-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ipanel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.ipanel h4 { font-size: 17px; margin-bottom: 8px; }
.ipanel p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.ipanel .ip-pts { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ipanel .ip-pts li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .w { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 54px; padding-bottom: 54px; }
.cta-band h2 { font-size: 28px; font-weight: 800; }
.cta-band p { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-q { padding: 18px 22px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 20px; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; font-size: 14px; color: var(--ink-2); }
.faq-item.open .faq-a { display: block; }

/* ---------- 页脚 ---------- */
.footer { background: #0f0a1f; color: rgba(255,255,255,.75); padding: 54px 0 30px; }
.footer .w { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 700; }
.footer a { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .f-brand p { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 12px; line-height: 1.8; }
.footer .f-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.4); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* AI 客服气泡容器（新文案沿用原有结构，样式内联） */
.aichat-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 999; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero .w { grid-template-columns: 1fr; padding-top: 48px; }
  .hero h1 { font-size: 38px; }
  .grid-3, .grid-2, .industry-panels, .cs-cards { grid-template-columns: 1fr; }
  .circle-sec { padding: 36px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 24px; gap: 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
  .cta-band .w { flex-direction: column; text-align: center; }
  .footer .w { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}
