/* ============================================================
   云启软件 · 官网设计系统 (Design System)
   说明：本文件为主站与各行业子站共用的样式系统。
   部署时如子域名为各自独立根目录，请将 assets/ 一并复制。
   ============================================================ */

:root {
  --brand: #4F46E5;
  --brand-600: #4338CA;
  --brand-500: #6366F1;
  --brand-300: #A5B4FC;
  --accent: #0EA5E9;
  --accent-2: #8B5CF6;

  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --line: #E2E8F0;
  --line-soft: #F1F5F9;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-dark: #0B1020;

  --ok: #16A34A;
  --warn: #D97706;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow: 0 10px 30px -12px rgba(15,23,42,.18);
  --shadow-lg: 0 24px 60px -20px rgba(79,70,229,.35);

  --maxw: 1180px;
  --nav-h: 68px;

  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.2; color: var(--ink-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-700); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-500); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: rgba(79,70,229,.08);
  padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill); font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-500), var(--accent-2)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink-900); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-700); font-weight: 550; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink-800); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px; z-index: -1;
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(55% 55% at 90% 10%, rgba(14,165,233,.16), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-500); max-width: 36em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--bg-soft); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-700); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px;
}
.hero-card h4 { margin-bottom: 14px; }
.mini-stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mini-stat:last-child { border-bottom: 0; }
.mini-stat .v { font-weight: 800; color: var(--brand); }
.feat-list { list-style: none; margin: 0; padding: 0; }
.feat-list li { padding: 11px 0; border-bottom: 1px dashed var(--line); color: var(--ink-700); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.feat-list li::before { content: "▸"; color: var(--brand); font-weight: 800; }
.feat-list li:last-child { border-bottom: 0; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-300); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(79,70,229,.1); color: var(--brand); font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.feature-link { color: var(--brand); font-weight: 650; font-size: .92rem; }

/* ---------- Product card (portal) ---------- */
.card .cat { font-size: .76rem; color: var(--ink-500); letter-spacing: .5px; }
.card .price { margin-top: 12px; font-weight: 800; color: var(--brand); font-size: 1.08rem; }
.card .price small { font-weight: 600; color: var(--ink-500); font-size: .78rem; margin-left: 4px; }
.card .buy { margin-top: 12px; }
.cat-grid .card { text-align: left; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-600); font-size: .94rem; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; }
.badge-intl { background: rgba(14,165,233,.12); color: #0369A1; }
.badge-cn { background: rgba(22,163,74,.12); color: #15803D; }
.badge-live { background: rgba(22,163,74,.14); color: #15803D; margin-right: 8px; }
.badge-soon { background: rgba(100,116,139,.14); color: #475569; margin-right: 8px; }

/* ---------- Software list cards (portal) ---------- */
.product-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.product-card .btn { margin-top: 16px; align-self: flex-start; }
.product-card.soon { opacity: .72; }
.product-card.soon:hover { transform: none; border-color: var(--line); }
.btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- Payment module ---------- */
.pay-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pay-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff;
  box-shadow: var(--shadow-sm);
}
.pay-card.intl { background: linear-gradient(180deg, #F0F9FF, #fff); }
.pay-card.cn { background: linear-gradient(180deg, #F0FDF4, #fff); }
.pay-card h3 { display: flex; align-items: center; gap: 10px; }
.pay-switch { display: inline-flex; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px; margin: 14px 0 18px; }
.pay-switch button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: var(--radius-pill);
  font-weight: 650; cursor: pointer; color: var(--ink-500); font-size: .9rem;
}
.pay-switch button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; cursor: pointer; transition: .15s; }
.pay-option:hover, .pay-option.sel { border-color: var(--brand); background: rgba(79,70,229,.04); }
.pay-logo { width: 54px; height: 34px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .82rem; }
.logo-pp { background: #FF6A00; }
.logo-aw { background: #0A2540; }
.logo-alipay { background: #1677FF; }
.pay-option .meta { flex: 1; }
.pay-option .meta b { display: block; color: var(--ink-900); }
.pay-option .meta span { font-size: .82rem; color: var(--ink-500); }
.pay-note { font-size: .82rem; color: var(--ink-500); margin-top: 10px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink-800); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.form-note { font-size: .82rem; color: var(--ink-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-2));
  color: #fff; border-radius: var(--radius-lg); padding: 46px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #CBD5E1; padding: 54px 0 30px; }
.footer a { color: #CBD5E1; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: var(--ink-400); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
/* 备案号展示条：工信部要求展示在首页底部并链接到工信部首页 */
.beian-bar { border-top: 1px solid rgba(255,255,255,.1); margin-top: 18px; padding-top: 16px; font-size: .85rem; color: #CBD5E1; }
.beian-bar a { color: #CBD5E1; text-decoration: none; border-bottom: 1px dashed rgba(203,213,225,.5); padding-bottom: 1px; }
.beian-bar a:hover { color: #fff; border-bottom-color: #fff; }
.beian-bar .beian-no { color: #fff; font-weight: 600; letter-spacing: .3px; }
.beian-bar .beian-tip { color: #FBBF24; margin-left: 8px; font-size: .8rem; }

/* ---------- Breadcrumb / sub nav ---------- */
.subnav { padding: 14px 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-500); }
.subnav a { color: var(--brand); }

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.stat { text-align: center; padding: 22px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat .lbl { font-size: .88rem; color: var(--ink-500); }

/* ---------- Tabs (product showcase) ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; color: var(--ink-700); }
.tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform:none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink-900); color: #fff; padding: 13px 20px; border-radius: var(--radius-pill);
  font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .3s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .pay-wrap, .grid-3, .grid-2, .footer-grid, .stat-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 16px; }
}

/* ---------- Language switch & site switch (top-right) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 3px;
}
.lang-btn {
  padding: 6px 12px; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 650;
  color: var(--ink-500); cursor: pointer; transition: .15s;
}
.lang-btn:hover { color: var(--brand); }
.lang-btn.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.lang-ico { font-size: 1rem; opacity: .65; padding: 0 2px; }
.lang-more {
  border: 0; background: transparent; color: var(--ink-500); font-family: inherit;
  font-size: .85rem; font-weight: 600; padding: 6px 8px; border-radius: var(--radius-pill);
  cursor: pointer; max-width: 120px;
}
.site-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--radius-pill); font-size: .88rem; font-weight: 650;
  border: 1px solid var(--brand-300); color: var(--brand); background: #fff; cursor: pointer; transition: .15s; white-space: nowrap;
}
.site-switch:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.logo-paddle { background: #FFD23F; color: #1A1A1A; }

/* 移动端：导航控件可换行，避免拥挤 */
@media (max-width: 900px) {
  .nav-cta { flex-wrap: wrap; justify-content: flex-end; }
}
