/* ==========================================================================
   龙驰创界 · 云机真机出租官网
   ========================================================================== */
:root {
  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --brand-l: #eff4ff;
  --cyan: #22d3ee;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6ebf4;
  --bg: #f6f8fc;
  --white: #fff;
  --dark: #0a1122;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 8px 24px -12px rgba(16, 32, 64, .14);
  --shadow-lg: 0 18px 50px -22px rgba(16, 32, 64, .35);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- 顶栏 ---------------- */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hd-in { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; height: 66px; display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .2px; white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .8);
}
.logo-sub { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: 6px; flex: 1; }
.nav a { padding: 8px 13px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; transition: .16s; }
.nav a:hover { background: var(--brand-l); color: var(--brand); }
.nav a.on { color: var(--brand); font-weight: 600; }
.hd-act { display: flex; align-items: center; gap: 10px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; transition: .16s; white-space: nowrap;
  background: var(--white); color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #3b82f6); color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .9); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(37, 99, 235, .95); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-l); }
.btn-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-dark:hover { background: rgba(255, 255, 255, .18); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--brand); cursor: pointer; padding: 0; font-size: 14px; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 78% -10%, #1e3a8a 0%, transparent 60%), linear-gradient(160deg, #0a1122 0%, #0d1a38 55%, #0a1122 100%); color: #fff; }
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 340px at 22% 30%, #000 0%, transparent 78%);
}
.hero-in { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 78px 22px 84px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 54px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .35); color: #a5f3fc; font-size: 13px; margin-bottom: 22px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }
.hero h1 { font-size: 44px; line-height: 1.22; margin: 0 0 18px; letter-spacing: -.5px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 16.5px; color: #a8b6d1; margin: 0 0 30px; max-width: 520px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13px; color: #7d8cae; }
.hero-card { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .13); border-radius: 18px; padding: 22px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.hero-card h3 { margin: 0 0 16px; font-size: 15px; color: #cbd5e1; font-weight: 600; letter-spacing: .3px; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255, 255, 255, .13); font-size: 14px; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: #8fa0c0; }
.spec-row span:last-child { color: #fff; font-weight: 600; }
.bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #22d3ee, #2563eb); }

/* ---------------- 数据条 ---------------- */
.stripe { background: var(--white); border-bottom: 1px solid var(--line); }
.stripe-in { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.5px; background: linear-gradient(120deg, var(--brand), #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------------- 区块 ---------------- */
section.blk { padding: 74px 0; }
section.blk.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blk-hd { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.blk-hd .kicker { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; color: var(--brand); text-transform: uppercase; }
.blk-hd h2 { font-size: 31px; margin: 10px 0 12px; letter-spacing: -.5px; }
.blk-hd p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------------- 套餐卡片 ---------------- */
.seg { display: inline-flex; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; gap: 3px; }
.seg button { padding: 8px 22px; border-radius: 8px; border: none; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); transition: .15s; }
.seg button.on { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .9); }
.seg-wrap { text-align: center; margin-bottom: 34px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.plan:hover { transform: translateY(-4px); border-color: #c7d7f7; box-shadow: var(--shadow-lg); }
.plan.hot { border-color: var(--brand); box-shadow: 0 22px 50px -26px rgba(37, 99, 235, .7); }
.plan-tag { position: absolute; top: -11px; right: 20px; padding: 3px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), #3b82f6); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.price b { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.price .cur { font-size: 18px; font-weight: 700; }
.price .unit { color: var(--muted); font-size: 13.5px; }
.price-note { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; min-height: 20px; }
.specs { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.specs li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
.specs li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--brand-l) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat; }

/* ---------------- 优势 / 场景 ---------------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: .18s; }
section.blk.alt .feat { background: var(--bg); }
.feat:hover { background: var(--white); box-shadow: var(--shadow); transform: translateY(-3px); }
.feat .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); margin-bottom: 14px; }
.feat .ico svg { width: 21px; height: 21px; }
.feat h4 { margin: 0 0 7px; font-size: 16px; }
.feat p { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.65; }

/* ---------------- 流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--brand);
  display: block; margin-bottom: 10px;
}
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 13.6px; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 17px 22px; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 21px; color: var(--brand); font-weight: 400; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .ans { padding: 0 22px 18px; color: var(--muted); font-size: 14.4px; }

/* ---------------- 表单 / 卡片 ---------------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; outline: none; transition: .16s; font-size: 14.5px;
}
.input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.input { resize: vertical; min-height: 84px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline { display: flex; gap: 10px; align-items: flex-start; }
.inline .input { flex: 1; }

/* ---------------- 表格 ---------------- */
.tbl-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.tbl th { text-align: left; padding: 13px 16px; background: #f8fafd; color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 14px 16px; border-bottom: 1px solid #f1f5fa; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tr:hover td { background: #fafcff; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--ink-2); }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid currentColor; }

/* ---------------- 提示 ---------------- */
.toast-wrap { position: fixed; top: 82px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 20px; border-radius: 11px; background: #101827; color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 90vw; animation: tin .22s ease; }
.toast.ok { background: #0f5132; }
.toast.err { background: #7f1d1d; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.msg { padding: 11px 14px; border-radius: 10px; font-size: 13.6px; margin-bottom: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.msg.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.msg.info { background: var(--brand-l); color: var(--brand-d); border: 1px solid #c7d7f7; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; opacity: .35; margin-bottom: 12px; }

/* ---------------- 页脚 ---------------- */
.ft { background: #0a1122; color: #93a3bd; padding: 56px 0 26px; font-size: 14px; }
.ft-in { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.ft h4 { color: #fff; font-size: 14.5px; margin: 0 0 14px; font-weight: 600; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin-bottom: 9px; }
.ft a:hover { color: #fff; }
.ft .brand-line { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.ft-bottom { max-width: var(--maxw); margin: 40px auto 0; padding: 20px 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #6b7c99; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- 通用 ---------------- */
.center-narrow { max-width: 440px; margin: 0 auto; }
.page-hd { padding: 34px 0 24px; }
.page-hd h1 { font-size: 26px; margin: 0 0 6px; }
.page-hd p { color: var(--muted); margin: 0; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { background: none; border: none; padding: 0 0 13px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.spacer { height: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.loading { text-align: center; padding: 46px; color: var(--muted); }
.sum-card { background: linear-gradient(150deg, #f8fbff, #eef4ff); border: 1px solid #dbe6fb; border-radius: var(--radius); padding: 22px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; }
.sum-row.total { border-top: 1px dashed #c7d7f7; margin-top: 8px; padding-top: 14px; font-size: 15px; }
.sum-row.total b { font-size: 26px; color: var(--brand); font-weight: 800; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.kpi span { font-size: 13px; color: var(--muted); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .plans, .grid3 { grid-template-columns: repeat(2, 1fr); }
  .grid4, .steps, .kpi { grid-template-columns: repeat(2, 1fr); }
  .ft-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding: 52px 22px 60px; }
  .hero h1 { font-size: 32px; }
  .stripe-in { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .blk-hd h2 { font-size: 25px; }
  section.blk { padding: 52px 0; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .plans, .grid3, .grid4, .steps, .kpi { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: 1fr; gap: 26px; }
  .hd-act .btn-ghost { display: none; }
  .panel { padding: 22px; }
}
