/* ════════════════════════════════════════════════════════════════
   bid.sundatas.com · 产品首页（index.html）页面级样式
   设计令牌与导航壳见 common.css；此处覆盖首页的少数全局数值
   ════════════════════════════════════════════════════════════════ */

:root { --max-w: 1200px; }            /* 首页内容区宽度（手册页为 1280px） */
body { line-height: 1.6; }

/* ═══ 顶部导航（首页款式；壳 / 悬停 / 菜单按钮见 common.css） ═══ */
nav .inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo img { height: 32px; vertical-align: middle; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: all .25s; position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary); border-radius: 1px; transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--primary); color: #fff !important; padding: 8px 18px; border-radius: 20px; font-size: 13px !important; }
.nav-cta::after { display: none; }
@media (max-width: 768px) {
  .nav-links { position: fixed; top: 60px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--border); transform: translateY(-110%); transition: transform .3s; z-index: 99; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 6px 24px 12px; text-align: center; }
  .menu-toggle { display: block; }
}

/* ═══ Hero ═══ */
.hero { padding: 140px 24px 80px; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 24px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: var(--text-secondary); margin-bottom: 36px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 24px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat .num { font-size: 32px; font-weight: 800; color: var(--primary); }
.hero-stats .stat .lbl { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

section { padding: 80px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); margin-bottom: 12px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.5px; }
.section-head p { color: var(--text-secondary); font-size: 15px; }

/* ═══ Features ═══ */
.features { background: var(--bg-secondary); }
.features-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; }
.feat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: all .2s; }
.feat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.feat-card .feat-tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.feat-tag { font-size: 11px; padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.feat-tag.ai { background: var(--accent-light); color: var(--accent); }
.feat-tag.rag { background: var(--green-light); color: var(--green); }

/* ═══ Flow ═══ */
.flow-steps { max-width: var(--max-w); margin: 0 auto; display: flex; gap: 0; position: relative; }
.flow-steps::before { content: ''; position: absolute; top: 40px; left: 60px; right: 60px; height: 2px; background: var(--border); z-index: 0; }
.flow-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.flow-step .circle { width: 80px; height: 80px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; font-weight: 800; color: var(--primary); }
.flow-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.flow-step p { font-size: 12px; color: var(--text-secondary); }

/* ═══ Workflow Journey ═══ */
.journey { background: var(--bg-secondary); }
.journey-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.journey-step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.journey-step .step-num { position: absolute; top: -12px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.journey-step h4 { font-size: 15px; font-weight: 700; margin: 10px 0 6px; }
.journey-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.7; }

/* ═══ Modules ═══ */
.modules-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.module { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.module-header { padding: 18px 24px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.module-header small { font-weight: 400; font-size: 11px; opacity: .7; margin-left: auto; }
.module-body { padding: 0 24px 20px; }
.module-body ul { list-style: none; }
.module-body li { font-size: 13px; color: var(--text-secondary); padding: 4px 0; position: relative; padding-left: 16px; }
.module-body li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); font-size: 10px; top: 6px; }

/* ═══ Models ═══ */
.models { background: var(--bg-secondary); }
.model-table { max-width: var(--max-w); margin: 0 auto; overflow-x: auto; }
.model-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.model-table th { text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary); border-bottom: 2px solid var(--border); }
.model-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.model-table tbody tr:hover td { background: var(--primary-light); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.tag-ai { background: var(--accent-light); color: var(--accent); }
.tag-rag { background: var(--green-light); color: var(--green); }
.tag-cpu { background: var(--orange-light); color: var(--orange); }
.tag-cloud { background: #fce7f3; color: #ec4899; }

/* ═══ Agent Engine ═══ */
.agent-engine { background: var(--bg); }
.agent-flow { max-width: 800px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.agent-node { padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 14px; text-align: center; }
.agent-node.plan { background: var(--accent-light); color: var(--accent); }
.agent-node.exec { background: var(--primary-light); color: var(--primary); }
.agent-node.react { background: var(--green-light); color: var(--green); }
.agent-node.summ { background: var(--orange-light); color: var(--orange); }
.agent-arrow { font-size: 18px; color: var(--text-secondary); font-weight: 700; }

/* ═══ Deployment ═══ */
.deploy-cards { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 28px; }
.deploy-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 36px 32px; text-align: center; transition: all .2s; position: relative; }
.deploy-card:hover { box-shadow: var(--shadow-lg); }
.deploy-card.economy { border-color: var(--green); }
.deploy-card.performance { border-color: var(--red); }
.deploy-card .plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 16px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #fff; }
.deploy-card.economy .plan-badge { background: var(--green); }
.deploy-card.performance .plan-badge { background: var(--red); }
.deploy-card .plan-price { font-size: 32px; font-weight: 800; margin: 8px 0 4px; }
.deploy-card .plan-price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.deploy-card .plan-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.deploy-card .plan-specs { text-align: left; list-style: none; margin-bottom: 28px; }
.deploy-card .plan-specs li { font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.deploy-card .plan-specs li span:last-child { font-weight: 600; }
.deploy-card.economy .btn-primary { background: var(--green); box-shadow: 0 4px 14px rgba(5,150,105,.3); }
.deploy-card.economy .btn-primary:hover { background: #047857; }
.deploy-card.performance .btn-primary { background: var(--red); box-shadow: 0 4px 14px rgba(220,38,38,.3); }
.deploy-card.performance .btn-primary:hover { background: #b91c1c; }

/* ═══ SaaS 云版订阅 ═══ */
.saas { background: var(--bg-secondary); }
.saas-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.saas-card { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 18px 22px; display: flex; flex-direction: column; transition: all .2s; }
.saas-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.saas-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 12px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }
.saas-card.free .saas-badge { background: var(--green); }
.saas-card.procycle .saas-badge { background: var(--accent); }
.saas-name { font-size: 17px; font-weight: 800; text-align: center; }
.saas-cycle { text-align: center; font-size: 11px; color: var(--text-secondary); margin: 2px 0 12px; }
.saas-price { font-size: 29px; font-weight: 800; text-align: center; line-height: 1.1; }
.saas-price span { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.saas-price-sub { text-align: center; font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 5px; min-height: 17px; }
.saas-desc { text-align: center; font-size: 12px; color: var(--text-secondary); margin: 8px 0 14px; line-height: 1.6; }
.saas-card ul { list-style: none; flex: 1; margin-bottom: 16px; }
.saas-card li { font-size: 12.5px; line-height: 1.5; padding: 4.5px 0 4.5px 20px; position: relative; }
.saas-card li::before { content: '✓'; position: absolute; left: 0; top: 4.5px; color: var(--green); font-weight: 700; }
.saas-btn { display: block; text-align: center; padding: 9px 10px; border-radius: 20px; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--border); color: var(--text); transition: all .2s; }
.saas-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.saas-card.free .saas-btn { border-color: var(--green); color: var(--green); }
.saas-card.free .saas-btn:hover { background: var(--green-light); color: var(--green); }
.saas-card.procycle .saas-btn { border-color: var(--accent); color: var(--accent); }
.saas-card.procycle .saas-btn:hover { background: var(--accent-light); color: var(--accent); }
.saas-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); background: linear-gradient(180deg, var(--primary-light), var(--bg) 45%); }
.saas-card.featured .saas-badge { background: var(--primary); }
.saas-card.featured .saas-name { color: var(--primary); }
.saas-card.featured .saas-price-sub { color: var(--primary); }
.saas-card.featured .saas-btn { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.saas-card.featured .saas-btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.saas-foot { max-width: var(--max-w); margin: 26px auto 0; text-align: center; font-size: 12px; color: var(--text-secondary); line-height: 1.9; }
@media (max-width: 1100px) {
  .saas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .saas-card.featured { order: -1; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .saas-grid { grid-template-columns: 1fr; }
  .saas-card.featured { order: 0; }
}

/* ═══ CTA ═══ */
.cta { background: linear-gradient(135deg, var(--primary), var(--accent)); text-align: center; }
.cta h2 { color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 32px; }
.cta .btn { background: #fff; color: var(--primary); }

footer { background: var(--bg-dark); color: rgba(255,255,255,.6); padding: 48px 24px; text-align: center; font-size: 13px; }
footer a { color: rgba(255,255,255,.8); text-decoration: none; }
footer a:hover { color: #fff; }

.highlight-card { max-width: var(--max-w); margin: 0 auto 28px; background: var(--primary-light); border: 1px solid #93c5fd; border-radius: var(--radius); padding: 18px 24px; font-size: 13px; color: var(--primary-dark); line-height: 1.8; }

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .nav-links { display: none; }
  .flow-steps { flex-direction: column; gap: 32px; }
  .flow-steps::before { display: none; }
  .deploy-cards { grid-template-columns: 1fr; }
  .agent-flow { flex-direction: column; }
}
