/* 微生活在线 · 官网样式
 * 视觉规范取自策划案:PLANNING.md §11.15.1「海洋蓝 #7C5CF0 + 清新科技感」
 * 视觉形象 = 用户自己的 2D 卡通数字人(注意:龙虾是内部机制术语,不是视觉形态)
 */
:root {
  --brand: #7C5CF0;          /* 品牌紫（2026-10-25 起替代原海洋蓝） */
  --brand-deep: #6A45E8;
  --brand-pink: #FF77A0;
  --grad: linear-gradient(96deg, #FF77A0 0%, #B18CFF 52%, #8F6BFF 100%);
  --brand-soft: #F3EEFF;
  --ink: #1C1A24;
  --ink-2: #4A4557;
  --muted: #8B859C;
  --line: #EDE7F9;
  --bg: #F7F5FC;
  --card: #FFFFFF;
  --warn: #E5484D;
  --ok: #12A150;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(28, 26, 36, .04), 0 10px 26px -16px rgba(124, 92, 240, .28);
  --shadow-lg: 0 20px 50px -24px rgba(124, 92, 240, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 76px 0; }
section:nth-of-type(even) { background: #fff; }
.sec-head { max-width: 780px; margin-bottom: 40px; }
.sec-no {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
  letter-spacing: .5px;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 30px; letter-spacing: .3px; }
h3 { font-size: 18px; }
.lead { color: var(--ink-2); font-size: 17px; }
.muted { color: var(--muted); }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 22px;
  font-size: 14px; font-weight: 700; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.985); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(255,119,160,.85); }
.btn-primary:hover { box-shadow: 0 14px 28px -14px rgba(124,92,240,.75); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; background: linear-gradient(180deg, #F2ECFF 0%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; letter-spacing: .5px; }
.hero .tagline { font-size: 19px; color: var(--ink-2); margin: 0 0 22px; }
.hero .quote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; color: var(--ink-2);
  font-size: 16px; margin: 0 0 26px;
}
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { filter: drop-shadow(0 20px 40px rgba(124,92,240,.18)); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card .icon { width: 44px; height: 44px; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 对比表 ---------- */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.cmp thead th { background: #F7F5FC; color: var(--ink-2); font-size: 14px; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td:first-child { color: var(--muted); }
.cmp td:last-child { color: var(--ink); font-weight: 600; }

/* ---------- 台阶/进度 ---------- */
.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
}
.step .no {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800;
}
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step .gate { font-size: 12px; color: var(--brand-deep); background: var(--brand-soft);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.step .gate.warn { color: #B4232A; background: #FDECEC; }

/* ---------- 等级/徽章 ---------- */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.level { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px; }
.level .lv { font-weight: 800; color: var(--brand); }
.level .nm { font-size: 15px; margin: 6px 0 4px; }
.level .rg { font-size: 12px; color: var(--muted); }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.tbl th { background: #F7F5FC; color: var(--ink-2); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 24px; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl-item h3 { margin-bottom: 6px; }
.tl-item ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- 价格 ---------- */
.price { position: relative; }
.price .amt { font-size: 26px; font-weight: 800; color: var(--brand); }
.price .amt small { font-size: 13px; color: var(--muted); font-weight: 400; }
.price .tag { position: absolute; top: 16px; right: 16px; font-size: 12px; color: var(--brand-deep);
  background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }

/* ---------- 守护/红线 ---------- */
.guard { background: linear-gradient(180deg, #fff 0%, #F7F5FC 100%); }
.shield-list { display: grid; gap: 12px; }
.shield-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--warn); border-radius: 12px; padding: 14px 18px; }
.shield-item .t { font-weight: 700; margin-right: 8px; }
.shield-item .d { color: var(--muted); font-size: 14px; }

/* ---------- 技术架构 ---------- */
.arch { display: grid; gap: 12px; }
.arch-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.arch-row .lbl { font-weight: 700; color: var(--brand-deep); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--brand-soft); color: var(--brand-deep); border-radius: 8px; padding: 5px 10px; font-size: 13px; }

/* ---------- 页脚 ---------- */
footer { background: #171227; color: #B9AECF; padding: 48px 0 32px; }
footer a { color: #E6DEFF; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.foot-grid p, .foot-grid li { font-size: 14px; margin: 6px 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.copyright { border-top: 1px solid #2A2440; margin-top: 32px; padding-top: 20px; font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 后台维护入口 ---------- */
.admin-entry { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #3A3057;
  background: #221B38; color: #E6DEFF !important; border-radius: 10px; padding: 9px 16px; font-size: 14px; }
.admin-entry:hover { background: #2C2247; text-decoration: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; }
  .step .gate { grid-column: 2; justify-self: start; }
  h2 { font-size: 25px; }
  .hero h1 { font-size: 31px; }
}
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
