/* ============================================================
   零欧元创. 智慧社区 门户 · 极简 / 高级蓝（与官网同一设计系统）
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f8ff;
  --ink: #0a1838;          /* 深海军蓝，用于大标题 */
  --text: #16243f;
  --text-soft: #5c6b8a;
  --primary: #2563ff;      /* 主蓝 */
  --primary-2: #1e40af;    /* 深蓝 */
  --primary-3: #38bdf8;    /* 天蓝点缀 */
  --primary-soft: #eaf1ff;
  --border: #e7edf8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(30, 64, 175, 0.06);
  --shadow: 0 12px 32px rgba(30, 64, 175, 0.08);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 18px; letter-spacing: -0.2px; }
.brand-logo { height: 30px; width: auto; border-radius: 0; flex-shrink: 0; }
.brand-logo--invert { filter: brightness(0) invert(1); }
.brand-logo svg { width: 18px; height: 18px; }
.brand-name { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 9px; color: var(--text);
  font-weight: 500; font-size: 15px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border);
  background: #fff; border-radius: 10px; color: var(--ink); cursor: pointer;
}

/* ===================== 按钮 ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; }
.btn-primary { background: var(--primary); color: #fff; padding: 11px 22px; font-size: 15px; }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid rgba(37,99,255,0.35); padding: 10px 20px; font-size: 15px; }
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-1px); }

/* ===================== Hero / 介绍 ===================== */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(880px 480px at 10% -8%, rgba(37,99,255,0.12), transparent 60%),
    radial-gradient(760px 460px at 96% 4%, rgba(56,189,248,0.14), transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 72%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30,64,175,0.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 82%);
  pointer-events: none;
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .38; pointer-events: none; z-index: 0; }
.orb-1 { width: 330px; height: 330px; background: rgba(37,99,255,0.34); top: -70px; right: 6%; }
.orb-2 { width: 260px; height: 260px; background: rgba(56,189,248,0.30); bottom: -50px; left: 3%; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: 50px; line-height: 1.12; margin-bottom: 20px; letter-spacing: -1px;
  color: var(--ink); font-weight: 800;
}
.hero h1 .hl { color: var(--primary); }
.lead { font-size: 19px; color: var(--text-soft); margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual .mockup {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 24px; box-shadow: var(--shadow-sm);
  height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 18px; text-align: center; padding: 24px;
}
.mockup small { font-size: 13px; opacity: .7; margin-top: 10px; }
.hero-visual .hero-image {
  display: block; width: 100%; max-width: 480px; height: auto;
  border-radius: 20px; box-shadow: var(--shadow);
  object-fit: cover;
}

/* ===================== 通用区块 ===================== */
.section { padding: 48px 0 80px; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.section-title { font-size: 34px; color: var(--ink); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.section-desc { color: var(--text-soft); font-size: 17px; }

/* ===================== 特性网格 ===================== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 24px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(37,99,255,0.35); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 14.5px; }

/* ===================== 双端 App 下载卡片 ===================== */
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: row; gap: 28px; align-items: flex-start;
}
.app-card-qr { flex-shrink: 0; }
.qr-box { text-align: center; color: var(--text-soft); width: 138px; height: 138px; }
.qr-placeholder {
  width: 138px; height: 138px; margin: 0 auto 8px; border: 1px dashed var(--border);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-soft); background: var(--bg-alt);
}
.qr-box small { font-size: 12px; }
.app-card-body { flex: 1 1 auto; min-width: 0; }
.app-card-title { font-size: 22px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.app-card-intro { color: var(--text-soft); font-size: 15px; margin-bottom: 18px; }
.apk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--primary); color: #fff; border-radius: 12px; padding: 14px 26px;
  font-weight: 600; font-size: 15px; width: 100%;
  transition: background .2s, transform .2s var(--ease);
}
.apk-btn svg { width: 18px; height: 18px; }
.apk-btn:hover { background: var(--primary-2); transform: translateY(-2px); }
.app-card-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.app-card-actions .apk-btn,
.app-card-actions .ios-btn { flex: 1 1 180px; }
.ios-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--primary); color: #fff; border-radius: 12px; padding: 14px 26px;
  font-weight: 600; font-size: 15px;
  transition: background .2s, transform .2s var(--ease);
}
.ios-btn svg { width: 18px; height: 18px; }
.ios-btn:hover { background: var(--primary-2); transform: translateY(-2px); }
.apk-btn.is-disabled,
.ios-btn.is-disabled {
  background: var(--bg-alt);
  color: var(--text-soft);
  cursor: not-allowed;
  pointer-events: none;
}
.apk-btn.is-disabled:hover,
.ios-btn.is-disabled:hover { background: var(--bg-alt); transform: none; }

/* ===================== 端点地址 ===================== */
.ep-group { margin-bottom: 40px; }
.ep-group:last-child { margin-bottom: 0; }
.ep-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.ep-group-head h3 { font-size: 22px; color: var(--ink); font-weight: 700; }
.ep-group-note { font-size: 14px; color: var(--text-soft); margin-left: auto; }
.endpoint-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.endpoint-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.endpoint-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(37,99,255,0.4); }
.ep-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ep-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.ep-icon svg { width: 22px; height: 22px; }
.ep-head h3 { font-size: 17px; color: var(--ink); font-weight: 700; }
.ep-desc { color: var(--text-soft); font-size: 14px; margin-bottom: 16px; }
.ep-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ep-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text-soft); background: var(--bg-alt); padding: 6px 10px; border-radius: 8px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-btns { display: flex; gap: 8px; }
.copy-btn { background: #fff; border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.go-btn { background: var(--primary); color: #fff; border-radius: 9px; padding: 7px 16px; font-weight: 600; font-size: 13px; transition: background .2s; }
.go-btn:hover { background: var(--primary-2); }

/* ===================== 页脚 ===================== */
.site-footer { background: #0a1838; color: #aebdda; padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.footer-about { font-size: 14px; color: #93a4c6; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; color: #93a4c6; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-empty { display: block; font-size: 14px; color: #6f80a3; padding: 5px 0; }
.footer-partner { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,0.12); }
.footer-partner .fp-label { font-size: 12px; color: #7e8fae; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.footer-partner a {
  display: inline-flex; align-items: center; gap: 6px; color: #cfe0ff;
  background: rgba(37,99,255,0.15); border: 1px solid rgba(56,189,248,0.3);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background .25s, transform .2s;
}
.footer-partner a:hover { background: rgba(37,99,255,0.28); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; font-size: 13px; color: #7e8fae; }

/* ===================== Toast ===================== */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; z-index: 100;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ===================== 响应式 ===================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .endpoint-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { width: 100%; justify-content: space-between; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 38px 0 56px; }
  .hero { padding: 60px 0 72px; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 27px; }
  .app-cards { grid-template-columns: 1fr; }
  .app-card { flex-direction: column; align-items: stretch; gap: 20px; }
  .app-card-qr { align-self: center; }
}

/* ===================== 扁平线性图标 ===================== */
.brand-logo svg { width: 18px; height: 18px; }
.feature-icon svg, .ep-icon svg { stroke: var(--primary); }
.nav-toggle svg { width: 24px; height: 24px; }
