/* ==========================================================================
   腾讯文档官网 — 高效办公工具
   主色：teal 青绿系（参考模板2-06 仪表盘架构，主色差异化）
   ========================================================================== */

:root {
  --primary: #1b6af5;
  --primary-dark: #1554c6;
  --primary-darker: #10439e;
  --primary-light: #e8f0fe;
  --primary-border: #c9dafb;
  --accent: #4f83f0;
  --accent-light: #eef3fe;
  --bg: #f6f8f7;
  --card: #ffffff;
  --border: #dde4ea;
  --title: #1a202c;
  --body: #334155;
  --muted: #5a6c7d;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 30px rgba(27,106,245,.12);
  --maxw: 1300px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--body); font-size: 16px; line-height: 1.7;
}
a { color: var(--primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-darker); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 5%; }

/* ---------- 顶部公告条 ---------- */
.top-bar {
  background: var(--primary-darker); color: #e8f0fe; padding: 6px 5%;
  text-align: center; font-size: 12px;
}
.top-bar a { color: #fff; font-weight: 600; }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--title); }
.logo img, .f-logo img { flex: none; }
.logo em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 7px 14px; border-radius: 8px; color: var(--body); font-size: 14px; font-weight: 500; }
.nav-links a:hover { background: var(--primary-light); color: var(--primary-darker); }
.nav-links a.active { color: var(--primary-dark); background: var(--primary-light); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-login { color: var(--body); font-size: 14px; font-weight: 500; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(27,106,245,.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: var(--primary-border); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-darker); }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--primary-darker); font-weight: 700; }
.btn-white:hover { background: var(--primary-light); color: var(--primary-darker); }

/* ---------- 仪表盘 Hero ---------- */
.dashboard-wrap { padding: 40px 5%; max-width: var(--maxw); margin: 0 auto; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 40px; }
.dash-left { display: flex; flex-direction: column; gap: 24px; }
.hero-card {
  background: linear-gradient(135deg, #1554c6, #1b6af5);
  border-radius: var(--radius); padding: 48px 40px; color: #fff;
}
.hero-card .hc-badge {
  display: inline-block; background: rgba(255,255,255,.16); padding: 4px 14px;
  border-radius: 50px; font-size: 12px; margin-bottom: 16px;
}
.hero-card h1 { font-size: 38px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.hero-card .hc-sub { opacity: .9; font-size: 16px; margin-bottom: 28px; line-height: 1.7; max-width: 560px; }
.hero-card .hc-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card .hc-btns a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 28px; border-radius: 8px; }
.hc-btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.55); color: #fff; }
.hc-btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.hc-note { margin-top: 20px; font-size: 12px; opacity: .85; display: flex; gap: 16px; flex-wrap: wrap; }
.hc-note span::before { content: "✓"; margin-right: 5px; font-weight: 700; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
  background: var(--card); padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat-card .sc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.stat-card .sc-val { font-size: 26px; font-weight: 800; color: var(--title); }
.stat-card .sc-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.dash-right { display: flex; flex-direction: column; gap: 24px; }
.side-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.side-card h3 { font-size: 17px; margin-bottom: 14px; color: var(--title); display: flex; align-items: center; gap: 8px; }
.tip-list { list-style: none; }
.tip-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.tip-list li:last-child { border-bottom: none; }
.tip-num { background: var(--primary); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* ---------- 通用 section ---------- */
.section { padding: 60px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: 28px; font-weight: 800; color: var(--title); }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.sec-head.left { text-align: left; margin-left: 0; }

/* ---------- 功能卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; transition: all .22s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-border); }
.feature-card .ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.feature-card h3 { font-size: 16px; color: var(--title); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 文档类型矩阵 ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; transition: all .22s;
}
.type-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-border); }
.type-item .ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.type-item h3 { font-size: 15px; color: var(--title); }
.type-item p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: flex; gap: 16px; }
.step .idx { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 17px; color: var(--title); }
.step p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- 场景卡 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.scene-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; align-items: flex-start; }
.scene-card .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.scene-card h3 { font-size: 16px; color: var(--title); }
.scene-card p { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ---------- 下载矩阵 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; transition: all .22s;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-border); }
.dl-card .ic { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.dl-card h3 { font-size: 17px; color: var(--title); }
.dl-card p { font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.dl-card .badge { display: inline-block; font-size: 12px; color: var(--primary-dark); background: var(--primary-light); padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; }

/* ---------- 订阅套餐 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 30px;
  display: flex; flex-direction: column; position: relative; transition: all .22s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.hot { border-color: var(--primary); box-shadow: 0 8px 30px rgba(27,106,245,.14); }
.plan .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 20px; border-radius: 99px; }
.plan h3 { font-size: 18px; color: var(--title); }
.plan .price { margin: 16px 0 4px; font-size: 40px; font-weight: 900; color: var(--title); line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .price-unit { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.plan ul li { padding: 8px 0; font-size: 14px; color: var(--body); display: flex; gap: 9px; align-items: flex-start; border-bottom: 1px solid var(--border); }
.plan ul li:last-child { border-bottom: none; }
.plan ul li::before { content: "✓"; color: var(--primary); font-weight: 700; flex: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-item details summary { padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--title); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; }
.faq-item details[open] summary::after { content: "−"; }
.faq-item details .faq-a { padding: 0 22px 20px; font-size: 15px; color: var(--body); }

/* ---------- 正文 SEO 段 ---------- */
.seo-content { font-size: 15px; color: var(--body); text-align: justify; }
.seo-content p { margin-bottom: 14px; text-indent: 2em; }
.seo-content h2, .seo-content h3 { text-indent: 0; color: var(--title); margin: 22px 0 12px; }
.seo-content strong { color: var(--title); }

/* ---------- 文章页 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article-meta { color: var(--muted); font-size: 13px; margin: 14px 0 26px; display: flex; gap: 16px; flex-wrap: wrap; }
.article h2 { font-size: 22px; color: var(--title); margin: 28px 0 12px; }
.article h3 { font-size: 18px; color: var(--title); margin: 22px 0 10px; }
.article p { margin-bottom: 14px; text-align: justify; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--title); }
.article .tip { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 16px 18px; border-radius: 8px; margin: 18px 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { margin: 0 6px; color: var(--border); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg); color: var(--body); padding: 50px 5% 30px; margin-top: 60px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 24px; max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.footer-col .f-logo { display: flex; align-items: center; gap: 8px; color: var(--title); font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.footer-col p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-col h4 { color: var(--title); font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; padding: 5px 0; }
.footer-col a:hover { color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 90px 0 70px; }
.error-404 .code { font-size: 100px; font-weight: 800; color: var(--primary); line-height: 1; }
.error-404 h1 { font-size: 26px; color: var(--title); margin: 18px 0 10px; }
.error-404 p { color: var(--muted); margin-bottom: 28px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav { gap: 14px; flex-wrap: wrap; height: auto; padding: 12px 0; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 2px; }
  .nav-links a { white-space: nowrap; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-card h1 { font-size: 26px; }
  .hero-card { padding: 34px 24px; }
  .stat-row { grid-template-columns: 1fr; }
  .feature-grid, .type-grid { grid-template-columns: 1fr 1fr; }
  .dl-grid, .plan-grid, .steps { grid-template-columns: 1fr 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec-head h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .feature-grid, .type-grid, .dl-grid, .plan-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-card h1 { font-size: 24px; }
  .hc-btns { flex-direction: column; }
  .hc-btns a { width: 100%; text-align: center; }
  body { font-size: 15px; }
}
