/* ============ WringCloud 企业版官网 - 精选样式 ============ */
:root {
  --brand: #2E6BFF;
  --brand-2: #1D4ED8;
  --brand-grad: linear-gradient(135deg, #2E6BFF 0%, #1D4ED8 100%);
  --bg-det: #0A0F1E;      /* 深空蓝黑：暗色主背景 */
  --bg-card: #101830;      /* 次级卡片 / 深色分区块 */
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e6ecf4;
  --line-det: rgba(255, 255, 255, .08);
  --bg: #f7f9fc;
  --card: #ffffff;
  --ok: #00C48C;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 18px 40px -12px rgba(10, 15, 30, 0.16);
  --shadow-sm: 0 6px 18px -8px rgba(10, 15, 30, 0.12);
  --nav-h: 76px;
  --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.topnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 15, 30, .9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topnav .inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: -0.2px; color: #fff;
}
.logo img { height: 52px; width: auto; }
.logo b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px; color: #aab6cd;
  font-size: 14.5px; font-weight: 500; transition: all .18s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; opacity: 1; }
.nav-links a.active { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .12); }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-user { font-size: 14px; color: #cbd5e1; }
/* 深色头部认证按钮 */
.nav-auth .btn {
  font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: 10px; padding: 10px 20px; letter-spacing: .2px;
}
.nav-auth .btn-primary {
  background: var(--brand);
  box-shadow: none;
}
.nav-auth .btn-primary:hover {
  filter: brightness(.95); box-shadow: none;
}
.nav-auth .btn-ghost {
  background: transparent; color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, .3);
}
.nav-auth .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.nav-auth .btn-mini { padding: 9px 16px; font-size: 13px; }
/* 登录态用户胶囊 */
.nav-user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 4px 14px 4px 5px; color: #e2e8f0; font-size: 13.5px;
}
.nav-user-chip .avatar {
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--brand);
  color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-user-chip em { font-style: normal; font-weight: 500; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-size: 15px; font-weight: 600;
  border-radius: 10px; padding: 11px 22px; transition: all .18s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #1D4ED8; box-shadow: none; opacity: 1; }
.btn-ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); opacity: 1; }
.btn-light { background: #fff; color: var(--brand); box-shadow: none; }
.btn-light:hover { opacity: 1; }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; opacity: 1; color: #fff; }
.btn-block { width: 100%; }
.btn-mini { padding: 7px 14px; font-size: 13px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(760px 380px at 50% -12%, rgba(46, 107, 255, .16), transparent 62%),
    linear-gradient(180deg, #0B1226 0%, #0d1526 100%);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .3px; color: #bfdbfe;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; letter-spacing: -1.5px; font-weight: 800;
}
.hero .grad {
  color: #7ea2ff;
}
.hero p { margin: 22px auto 0; max-width: 660px; color: #cbd5e1; font-size: 17px; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-visual {
  margin: 46px auto 0; max-width: 980px; position: relative; z-index: 1;
}
.browser {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35);
}
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; }
.browser .bar i:nth-child(1){ background:#f87171 } .browser .bar i:nth-child(2){ background:#fbbf24 } .browser .bar i:nth-child(3){ background:#34d399 }
.browser .bar .url { flex: 1; margin-left: 10px; text-align: left; background: #eef2f7; color: #64748b; font-size: 12px; padding: 3px 10px; border-radius: 6px; }

/* ===== 区块通用 ===== */
.section { padding: 78px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.sec-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; }
.sec-eyebrow::before, .sec-eyebrow::after { content: ""; display: inline-block; width: 16px; height: 1px; background: var(--brand); vertical-align: middle; margin: 0 8px; opacity: .5; }
.section-title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.6px; font-weight: 800; }
.section-sub { color: var(--ink-2); margin-top: 14px; font-size: 15px; }

/* 卡片 */
.cards { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: border-color .18s;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--brand); opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.card:hover::after { opacity: .4; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #eef2ff); color: var(--brand); margin-bottom: 14px;
}
.ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14px; }

/* 行业条 */
.industries { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.ind { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 26px; font-size: 15px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }

/* ===== 定价 ===== */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  color: var(--ink); border-radius: 14px; padding: 28px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: border-color .18s;
}
.tier::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand); opacity: .45;
}
.tier:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.tier .p-name { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.tier .p-price { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 10px 0 2px; color: var(--ink); }
.tier .p-price small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tier .p-note { font-size: 13px; color: var(--ink-3); min-height: 20px; }
.tier ul { list-style: none; margin: 18px 0 24px; flex: 1; }
.tier li { font-size: 14px; color: var(--ink-2); padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.tier li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-top: -1px; }
.tier .btn { background: var(--brand); color: #fff; box-shadow: none; }
.tier .btn:hover { background: #1D4ED8; box-shadow: none; }
.pricing-note { text-align: center; color: #94a3b8; font-size: 13px; margin-top: 26px; }
.pricing-note a { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: border-color .18s; }
.step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--brand); opacity: 0; transition: opacity .3s; }
.step:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.step:hover::after { opacity: .4; }
.step .n { font-size: 13px; font-weight: 800; color: var(--brand); background: #eff6ff; display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14px; }

/* CTA 条：通栏纯蓝背景 */
.cta-band {
  margin: 0; padding: 60px 0; text-align: center;
  color: #fff; background: #2E6BFF;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.5px; }
.cta-band p { margin: 12px auto 26px; max-width: 560px; color: #e0e7ff; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 页脚 ===== */
html { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.footer {
  position: relative;
  margin-top: auto;
  color: #94a3b8;
  background: linear-gradient(180deg, #0A0F1E 0%, #060a14 100%);
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand); opacity: .5;
}
/* 底部版权栏 */
.f-bottom { position: relative; background: rgba(255, 255, 255, .02); }
.f-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 22px 0; font-size: 13px; color: #7d8aa3;
}

/* ===== 工具页 ===== */
/* 内页主体：100% 全宽背景，内容直接铺开 */
.page-main { background: #fff; padding: 48px 0 72px; }
.page-main .panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
.page-main .panel + .panel { margin-top: 40px; }
.page-main .kv { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 6px; }
.page-main .list-head { margin-bottom: 18px; }
.block-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--brand); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-tip { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; outline: none; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,107,255,.15); }
.field textarea { resize: vertical; min-height: 72px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-tip { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }

.tag { display: inline-block; font-size: 12px; padding: 3px 11px; border-radius: 999px; }
.tag-pending { background: #fef3c7; color: var(--warn); }
.tag-issued, .tag-success { background: #dcfce7; color: var(--ok); }
.tag-rejected { background: #fee2e2; color: var(--danger); }
.tag-approved { background: #dbeafe; color: var(--brand); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { color: var(--ink); }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; }
.license-box { background: #f1f5f9; border: 1px dashed var(--line); border-radius: 8px; padding: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; margin-top: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* hero 控制台 mock（浅色，对齐企业版实际 UI） */
.mock-dash { display: flex; text-align: left; background: #fff; }
.md-side { width: 168px; flex-shrink: 0; padding: 18px 16px; border-right: 1px solid #eef2f7; background: #fbfcfe; }
.md-logo { display: flex; align-items: center; gap: 8px; color: #1e293b; font-weight: 800; font-size: 14px; padding: 4px; margin-bottom: 18px; }
.md-logo svg { width: 18px; height: 18px; color: #3b82f6; }
.md-nav { display: grid; gap: 4px; }
.md-nav span { color: #64748b; font-size: 13px; padding: 7px 10px; border-radius: 8px; }
.md-nav span.on { color: #fff; background: #3b82f6; font-weight: 600; }
.md-main { flex: 1; padding: 18px 20px 16px; }
.md-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.md-head strong { color: #1e293b; font-size: 15px; }
.md-user { color: #64748b; font-size: 12px; }
.md-stat small { white-space: nowrap; }
.md-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.md-stat { position: relative; overflow: hidden; background: #ffffff; border: 1px solid #e8edf4; border-radius: 10px; padding: 12px 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.md-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #3b82f6; opacity: .5; }
.md-stat small { display: block; color: #94a3b8; font-size: 11px; margin-bottom: 6px; }
.md-stat b { color: #1e293b; font-size: 20px; letter-spacing: -.5px; }
.md-stat em { font-style: normal; font-size: 11px; color: #94a3b8; }
.md-list { display: grid; gap: 7px; }
.md-row { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 10px; background: #ffffff; border: 1px solid #eef2f7; border-radius: 9px; padding: 9px 12px; }
.md-row span { color: #334155; font-size: 13px; }
.md-row b { color: #94a3b8; font-size: 12px; font-weight: 500; }
.md-row small { color: #64748b; font-size: 12px; }
.md-row .st { width: 8px; height: 8px; border-radius: 50%; }
.st.ok { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.st.run { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.st.wait { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.md-foot { display: flex; justify-content: space-between; margin-top: 16px; color: #94a3b8; font-size: 12px; }
.md-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f7; }
.md-prog-bar { flex: 1; min-width: 0; height: 6px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.md-prog-bar i { display: block; height: 100%; border-radius: 999px; background: #3b82f6; }
.md-prog span { color: #94a3b8; font-size: 12px; white-space: nowrap; }
@media (max-width: 720px) {
  .md-side { display: none; }
  .md-stats { grid-template-columns: 1fr 1fr; }
  .mock-dash { min-width: 0; }
  .md-main { padding: 14px 14px 12px; min-width: 0; }
  .md-head { flex-wrap: wrap; gap: 4px; }
  .md-stat b { font-size: 18px; }
  .md-row { grid-template-columns: 12px 1fr auto; }
  .md-row span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .md-row b { display: none; }
  .md-row small { justify-self: end; }
  .md-foot { flex-wrap: wrap; gap: 4px 10px; }
}
/* ===== 登录/注册弹窗（同 frontend 风格）===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
  box-shadow: 0 30px 60px -18px rgba(15,23,42,.45); overflow: hidden; animation: modalIn .22s;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border: none; background: none; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; border-radius: 8px; }
.modal-close:hover { background: #f1f5f9; color: var(--ink); }
.modal-body { padding: 22px; }
.lm-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .modal-overlay { align-items: flex-end; } .modal { border-radius: 16px 16px 0 0; } }

.toast-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); animation: tb .2s; }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
@keyframes tb { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .pricing { grid-template-columns: 1fr 1fr; }
  .tier.popular { transform: none; }
}
@media (max-width: 860px) {
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 64px 0 48px; }
}

/* ===== 滚动入场动效（渐进增强，尊重减少动态偏好）===== */
body.js-anim .mv { opacity: 0; transform: translateY(10px); transition: opacity .5s ease-out, transform .5s ease-out; }
body.js-anim .mv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.js-anim .mv { opacity: 1; transform: none; transition: none; }
}