/* 海边云 设计基础：官网（服务端渲染）和会员中心 / 后台（Vue）共用 */
:root {
  --brand: #0755d8;
  --brand-600: #0649b8;
  --brand-50: #eef4fe;
  --accent: #14b8d4;
  --accent-50: #e8f8fb;
  --ink: #14213d;
  --ink-2: #3a4763;
  --muted: #64708a;
  --line: #e5eaf2;
  --line-2: #d7deea;
  --bg: #ffffff;
  --soft: #f7f9fc;
  --ok: #10893e;
  --ok-50: #e9f7ee;
  --warn: #b25e09;
  --warn-50: #fff5e6;
  --danger: #c62828;
  --danger-50: #fdeeee;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.04), 0 4px 16px rgba(20, 33, 61, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c4c4; }
.btn-danger:hover { background: var(--danger-50); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }

/* 顶部导航 */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { color: var(--ink-2); padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--soft); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* 手机抽屉菜单 */
.drawer-mask { position: fixed; inset: 0; background: rgba(20,33,61,.38); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: #fff; z-index: 61; transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(20,33,61,.12); }
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-mask { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 30px; }
.drawer-close { width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.drawer nav { display: flex; flex-direction: column; padding: 12px; }
.drawer nav a { padding: 14px 12px; color: var(--ink); font-size: 16px; border-radius: 8px; font-weight: 500; }
.drawer nav a:hover { background: var(--soft); text-decoration: none; }
.drawer .drawer-actions { margin-top: auto; padding: 16px 20px 28px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.drawer .drawer-actions .btn { width: 100%; height: 44px; }

/* 区块 */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .04em; margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.7; }

/* 首屏 */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 380px at 85% 0%, rgba(20,184,212,.10), transparent 60%), radial-gradient(800px 360px at 0% 10%, rgba(7,85,216,.07), transparent 60%); pointer-events: none; }
.hero .grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 1.18; margin-bottom: 20px; }
.hero h1 .hl { color: var(--brand); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .notes { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13px; }
.hero .notes span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* 架构示意 */
.flow { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.flow-title { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; justify-content: space-between; }
.flow-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; }
.flow-node { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--soft); }
.flow-node b { display: block; font-size: 14px; }
.flow-node span { font-size: 12px; color: var(--muted); }
.flow-node.brand { background: var(--brand-50); border-color: #cfe0fb; }
.flow-link { height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); position: relative; }
.flow-link::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--accent); }
.flow-down { height: 34px; margin: 6px 0; display: flex; justify-content: center; }
.flow-down i { width: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 11px); }
.flow-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand); background: var(--brand-50); padding: 3px 10px; border-radius: 99px; }
.flow-foot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 12px; color: var(--muted); }
.flow-foot b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-size: 13px; font-weight: 700; color: var(--brand); font-family: var(--mono); margin-bottom: 12px; display: block; }
.feature-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-50); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-mark svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--ink-2); }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* 套餐 */
.plans { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.plan.rec { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan .badge-rec { position: absolute; top: -11px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.plan .name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.plan .desc { color: var(--muted); font-size: 13px; min-height: 22px; margin-bottom: 18px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price b { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .per { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.plan ul { margin-bottom: 24px; flex: 1; }
.plan .btn { width: 100%; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--soft); font-weight: 600; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t.dense th, table.t.dense td { padding: 9px 12px; }

/* 状态点 */
.dot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok::before { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.dot.warn::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.dot.bad::before { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.dot.maint::before { background: var(--accent); }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--ok-50); color: var(--ok); border-color: #c6ead3; }
.tag.warn { background: var(--warn-50); color: var(--warn); border-color: #f6dcb5; }
.tag.bad { background: var(--danger-50); color: var(--danger); border-color: #f3c9c9; }
.tag.brand { background: var(--brand-50); color: var(--brand); border-color: #cfe0fb; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 20px; }
.step:first-child { border-top-color: var(--brand); }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--brand); font-weight: 700; }
.step h3 { margin-top: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq .a { padding: 0 0 18px; color: var(--ink-2); }

/* 文档类页面 */
.page-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--soft), #fff); }
.page-hero h1 { font-size: 34px; }
.doc { max-width: 780px; padding: 40px 0 80px; }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc h3 { font-size: 17px; margin-top: 28px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.layout-side { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.side-nav { position: sticky; top: 88px; align-self: start; padding: 40px 0; }
.side-nav a { display: block; padding: 7px 10px; color: var(--ink-2); border-radius: 6px; font-size: 14px; }
.side-nav a.active, .side-nav a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.side-nav .grp { font-size: 12px; color: var(--muted); font-weight: 600; margin: 16px 10px 6px; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--soft); padding: 14px 18px; border-radius: 6px; margin: 18px 0; color: var(--ink-2); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 56px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font-size: 13px; color: var(--ink); margin-bottom: 12px; }
.site-footer a { display: block; color: var(--muted); padding: 4px 0; }
.site-footer a:hover { color: var(--ink); text-decoration: none; }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.site-footer .brand-logo img { height: 30px; }

/* 表单（共用） */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, textarea.input { width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7,85,216,.14); }
/* 下拉框：自绘箭头，右边留 16px */
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364708a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.hint { font-size: 12px; color: var(--muted); }
.err-text { font-size: 13px; color: var(--danger); }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; border: 1px solid var(--line); background: var(--soft); color: var(--ink-2); margin-bottom: 16px; }
.alert.ok { background: var(--ok-50); border-color: #c6ead3; color: #0b5d2b; }
.alert.warn { background: var(--warn-50); border-color: #f6dcb5; color: #7a4206; }
.alert.bad { background: var(--danger-50); border-color: #f3c9c9; color: #8f1d1d; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .menu-btn { display: inline-flex; }
  .plans { grid-template-columns: 1fr; }
  .cards, .cards-2, .steps { grid-template-columns: 1fr; }
  .layout-side { grid-template-columns: 1fr; gap: 0; }
  .side-nav { position: static; padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
  .side-nav .grp { width: 100%; margin: 8px 4px 2px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }
  .page-hero h1 { font-size: 28px; }
  .cards-4 { grid-template-columns: 1fr; }
  .flow { padding: 18px; }
  .flow-row { grid-template-columns: 1fr 28px 1fr; }
  .flow-foot { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
  .brand-logo img { height: 30px; }
}

/* 配图 */
.hero-img::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background: url(/img/hero.webp) no-repeat right center / cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); pointer-events: none; }
.hero-img .grid { z-index: 1; }
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-split .media { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); aspect-ratio: 3 / 2; }
.media-split .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-list { display: grid; gap: 18px; margin-top: 8px; }
.scene-list > div { border-left: 2px solid var(--line); padding-left: 16px; }
.scene-list > div:first-child { border-left-color: var(--brand); }
.scene-list h3 { margin-bottom: 4px; }
.scene-list p { margin: 0; }
.steps-v { display: grid; gap: 20px; margin-top: 8px; }
.steps-v .step h3 { margin: 4px 0; }
.steps-v .step p { margin: 0; }
@media (max-width: 1024px) {
  .hero-img::after { width: 100%; height: 55%; top: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 60%); }
}
@media (max-width: 860px) {
  .media-split { grid-template-columns: 1fr; gap: 28px; }
  .media-split.rev .media { order: -1; }
}
@media (max-width: 640px) {
  .hero-img::after { display: none; }
}
