/* ===== 下载站全局样式 ===== */
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #DBEAFE;
  --purple: #8B5CF6;
  --purple-dark: #7C3AED;
  --purple-light: #EDE9FE;
  --green: #10B981;
  --green-dark: #059669;
  --green-light: #D1FAE5;
  --text-900: #0F172A;
  --text-700: #334155;
  --text-500: #64748B;
  --text-300: #CBD5E1;
  --bg-50: #F8FAFC;
  --bg-100: #F1F5F9;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 4px 14px rgba(15,23,42,.08);
  --shadow-lg: 0 10px 30px rgba(15,23,42,.12);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg-50);
  color: var(--text-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Logo & Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--bg-100);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff; font-weight: 800; font-size: 18px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
}
.logo-text { font-size: 17px; font-weight: 700; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-700); font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 2px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 18px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(59,130,246,.35); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: var(--white); color: var(--text-700);
  border: 1px solid var(--text-300);
}
.btn-ghost:hover { background: var(--bg-100); color: var(--primary); border-color: var(--primary-light); }
.btn-hint { font-size: 12px; opacity: .85; font-weight: 400; }

.purple-btn {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 4px 14px rgba(139,92,246,.3);
}
.purple-btn:hover { box-shadow: 0 8px 22px rgba(139,92,246,.35); }
.green-btn {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 4px 14px rgba(16,185,129,.3);
}
.green-btn:hover { box-shadow: 0 8px 22px rgba(16,185,129,.35); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -20%, rgba(139,92,246,.15), transparent 60%),
    radial-gradient(900px 360px at -10% 10%, rgba(59,130,246,.12), transparent 60%),
    linear-gradient(180deg, #EFF6FF 0%, var(--bg-50) 100%);
  padding: 80px 0 100px;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 46px; line-height: 1.15; font-weight: 800;
  background: linear-gradient(135deg, var(--text-900), #334155);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px; color: var(--text-500); line-height: 1.8;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 48px; }
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: 28px; font-weight: 800; color: var(--text-900); }
.hero-stats span { font-size: 13px; color: var(--text-500); }

.hero-qr-card {
  background: var(--white);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--bg-100);
}
.qr-title { font-size: 15px; font-weight: 700; color: var(--text-700); margin-bottom: 20px; }
.qr-wrapper, .qr-inline-box {
  width: 180px; height: 180px; margin: 0 auto;
  padding: 10px; background: #fff;
  border: 1px solid var(--bg-100);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.qr-wrapper canvas, .qr-wrapper img,
.qr-inline-box canvas, .qr-inline-box img {
  width: 100% !important; height: 100% !important; border-radius: 8px;
}
.qr-placeholder { color: var(--text-500); font-size: 12px; }
.qr-hint { margin-top: 16px; font-size: 12px; color: var(--text-500); }

/* ===== Section titles ===== */
.section-title {
  font-size: 32px; font-weight: 800; text-align: center;
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 15px; color: var(--text-500); text-align: center;
  margin-bottom: 48px;
}

/* ===== Product cards ===== */
.products { padding: 80px 0 60px; background: var(--bg-50); }

.product-card {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 36px;
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--bg-100);
  transition: all .3s ease;
  overflow: hidden;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.product-icon {
  width: 140px; height: 140px;
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.icon-live { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.icon-voice { background: linear-gradient(135deg, var(--purple-light), #DDD6FE); }
.icon-okr { background: linear-gradient(135deg, var(--green-light), #A7F3D0); }

.product-badge {
  position: absolute; top: -12px; right: -12px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff; padding: 6px 14px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(239,68,68,.3);
}
.badge-green { background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.badge-orange { background: linear-gradient(135deg, #F97316, #EA580C); box-shadow: 0 4px 12px rgba(249,115,22,.3); }

.product-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.product-head h3 { font-size: 24px; font-weight: 800; }
.version-tag {
  font-size: 12px; padding: 4px 10px;
  background: var(--bg-100); color: var(--text-500);
  border-radius: 100px; font-weight: 600;
}
.product-blue .product-head h3::before { content: "🔴 "; }
.product-purple .product-head h3::before { content: "🟣 "; }
.product-green .product-head h3::before { content: "🟢 "; }

.product-desc {
  font-size: 14px; color: var(--text-700);
  margin-bottom: 18px; line-height: 1.8;
}
.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li {
  font-size: 13.5px; color: var(--text-700);
  padding: 5px 0;
}
.product-download {
  display: flex; align-items: flex-start; gap: 32px;
  padding-top: 24px; border-top: 1px dashed var(--text-300);
}
.qr-inline {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}
.qr-inline-box { width: 110px; height: 110px; }
.qr-inline-text { display: flex; flex-direction: column; gap: 4px; }
.qr-main-label { font-size: 13px; font-weight: 700; color: var(--text-900); }
.qr-sub-label { font-size: 11.5px; color: var(--text-500); }

.download-btns { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ===== Docs (Tab 切换式使用文档) ===== */
.docs-section { padding: 80px 0; background: var(--white); }

/* Tab 导航条 */
.docs-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 36px;
  border-bottom: 2px solid var(--bg-100); padding-bottom: 0;
}
.docs-tab {
  padding: 12px 24px; border: none; cursor: pointer;
  background: transparent; color: var(--text-500);
  font-size: 14px; font-weight: 600; border-radius: 10px 10px 0 0;
  transition: all .2s; position: relative; bottom: -2px;
  border-bottom: 3px solid transparent;
}
.docs-tab:hover { color: var(--primary); background: var(--primary-light); }
.docs-tab.active {
  color: var(--primary-dark); border-bottom-color: var(--primary);
  background: var(--primary-light);
}

/* Tab 内容面板 */
.docs-panel { display: none; animation: fadeIn .3s ease; }
.docs-panel.active { display: block; }
.docs-content {
  max-width: 860px; margin: 0 auto;
  background: var(--bg-50); border-radius: 20px;
  padding: 40px; border: 1px solid var(--bg-100);
}
.docs-content h3 {
  font-size: 24px; font-weight: 800; margin-bottom: 12px;
  color: var(--text-900);
}
.docs-intro {
  font-size: 15px; color: var(--text-500); line-height: 1.8;
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-100);
}

/* 文档区块 */
.doc-block { margin-bottom: 36px; }
.doc-block h4 {
  font-size: 17px; font-weight: 700; color: var(--text-900);
  margin-bottom: 16px; padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.doc-text {
  font-size: 14px; color: var(--text-700); line-height: 1.8;
  margin-bottom: 16px;
}

/* 步骤指引 */
.doc-steps { display: flex; flex-direction: column; gap: 16px; }
.doc-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); padding: 16px 20px;
  border-radius: 12px; border: 1px solid var(--bg-100);
}
.step-num {
  flex-shrink: 0; width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 14px; font-weight: 700;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}
.doc-step div { font-size: 13.5px; color: var(--text-700); line-height: 1.7; }
.doc-step strong { color: var(--text-900); }

/* 图层说明 */
.doc-layers { display: flex; flex-direction: column; gap: 8px; }
.doc-layer {
  background: var(--white); padding: 12px 16px;
  border-radius: 10px; border: 1px solid var(--bg-100);
  font-size: 13.5px; color: var(--text-700);
}
.layer-tag {
  display: inline-block; padding: 2px 8px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 11px; font-weight: 700; border-radius: 6px;
  margin-right: 8px;
}

/* FAQ */
.doc-faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); padding: 16px 20px;
  border-radius: 12px; border: 1px solid var(--bg-100);
}
.faq-item strong {
  display: block; font-size: 14px; color: var(--text-900);
  margin-bottom: 6px;
}
.faq-item p {
  font-size: 13px; color: var(--text-500); line-height: 1.7;
}

/* 价格表格 */
.doc-table {
  display: flex; flex-direction: column; gap: 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--bg-100);
}
.doc-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  padding: 12px 16px; font-size: 13.5px; color: var(--text-700);
  background: var(--white);
}
.doc-row:not(:last-child) { border-bottom: 1px solid var(--bg-100); }
.doc-row-head {
  background: var(--text-900); color: #fff; font-weight: 700;
}
.doc-row-head div { color: #fff; }
.doc-note {
  font-size: 12px; color: var(--text-500);
  margin-top: 12px; padding: 8px 12px;
  background: var(--primary-light); border-radius: 8px;
}

/* 智能体卡片网格 */
.doc-grid-inline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.agent-card {
  background: var(--white); padding: 16px;
  border-radius: 12px; border: 1px solid var(--bg-100);
  font-size: 13px; color: var(--text-700); line-height: 1.7;
}
.agent-card strong { color: var(--text-900); font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
  .docs-content { padding: 24px 16px; }
  .docs-tabs { gap: 4px; }
  .docs-tab { padding: 10px 14px; font-size: 13px; }
  .doc-row { grid-template-columns: 1fr; gap: 4px; }
  .doc-row-head { display: none; }
  .doc-grid-inline { grid-template-columns: 1fr; }
}

/* ===== Contact ===== */
.contact-section { padding: 80px 0; background: var(--bg-100); }
.contact-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.contact-ways { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-700);
}
.ci-icon { font-size: 18px; }
.contact-qr {
  background: var(--white); padding: 24px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-sm);
}
.contact-qr .qr-inline-box { margin-bottom: 14px; }

/* ===== Footer ===== */
.footer {
  background: var(--text-900);
  color: #CBD5E1; padding: 64px 0 32px;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px;
  padding-bottom: 40px;
}
.footer-brand .logo-text { color: #fff; }
.footer-desc {
  margin-top: 18px; font-size: 13px;
  color: #94A3B8; line-height: 1.8;
  max-width: 360px;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 {
  color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px;
}
.footer-cols a {
  display: block; padding: 6px 0;
  font-size: 13px; color: #94A3B8;
  transition: color .2s;
}
.footer-cols a:hover { color: var(--primary); }
.footer-divider {
  border-top: 1px solid rgba(148,163,184,.15);
  margin: 24px 0;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.copyright { font-size: 13px; color: #94A3B8; }
.beian {
  font-size: 12px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.beian a {
  color: #94A3B8;
  transition: color .2s;
}
.beian a:hover { color: var(--primary); }

/* ===== Modal ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 480px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-icon { font-size: 40px; text-align: center; margin-bottom: 16px; }
.modal-box h3 { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.modal-box > p {
  font-size: 14px; color: var(--text-500); text-align: center;
  line-height: 1.7; margin-bottom: 20px;
}
.agree-check {
  background: var(--bg-50); padding: 16px; border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.agree-check label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-700); line-height: 1.7; cursor: pointer;
}
.agree-check a { color: var(--primary); }
.agree-check input { margin-top: 4px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-title { font-size: 36px; text-align: center; }
  .hero-subtitle, .hero-tag, .hero-actions, .hero-stats { text-align: center; justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 50px 0 60px; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .section-title { font-size: 26px; }
  .product-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .product-icon { width: 100px; height: 100px; font-size: 44px; border-radius: 22px; }
  .product-visual { order: -1; }
  .product-download { flex-direction: column; gap: 20px; align-items: center; }
  .download-btns { width: 100%; align-items: stretch; }
  .btn-lg { width: 100%; }
  .doc-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .contact-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .contact-qr { align-self: center; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 22px; }
  .products, .docs-section, .contact-section { padding: 50px 0; }
}
