/* ============================================
   飞书下载站 — 全站共享样式 (浅色主题)
   ============================================ */

:root {
  --bg: #f7f5f1;
  --white: #ffffff;
  --warm: #faf8f5;
  --surface: #ffffff;
  --surface-hover: #fafafa;
  --accent: #3370ff;
  --accent-hover: #245bdb;
  --accent-light: #5a92ff;
  --accent-soft: rgba(51, 112, 255, 0.06);
  --accent-border: rgba(51, 112, 255, 0.12);
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, 0.08);
  --orange: #ea580c;
  --orange-soft: rgba(234, 88, 12, 0.06);
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.06);
  --heading: #111827;
  --body: #374151;
  --muted: #9ca3af;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-accent: 0 8px 30px rgba(51, 112, 255, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.85;
  overflow-x: hidden;
}

.wrapper { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* ---- 导航 ---- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
}

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--heading);
}

.nav-brand .logo-icon {
  width: 30px; height: 30px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; color: #fff;
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: var(--heading); }

.nav-download-btn {
  background: var(--accent) !important; color: #fff !important;
  padding: 7px 18px; border-radius: 8px; font-weight: 600; font-size: 13px;
  transition: all 0.25s;
}
.nav-download-btn:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px); box-shadow: var(--shadow-accent);
}

/* ---- 文章页导航（简化） ---- */
.article-nav { height: 56px; }
.article-nav .nav-inner { justify-content: space-between; }
.nav-back { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.nav-back:hover { color: var(--heading); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(170deg, #f8f6f2 0%, #eef4fb 50%, #f5f0fa 100%);
  padding: 90px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(51,112,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 5px 14px; border-radius: 100px;
  font-size: 13px; color: var(--accent); font-weight: 500;
  margin-bottom: 28px; animation: fadeUp 0.6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px); font-weight: 900; color: var(--heading);
  line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero h1 .highlight { color: var(--accent); }

.hero-sub {
  font-size: 17px; color: var(--body); max-width: 580px;
  margin: 0 auto 44px; line-height: 1.8;
  animation: fadeUp 0.6s ease 0.2s both;
}

.download-group {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px; animation: fadeUp 0.6s ease 0.3s both;
}

.dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 600;
  transition: all 0.3s ease; cursor: pointer; border: none; font-family: inherit;
}
.dl-btn-primary { background: var(--accent); color: #fff; }
.dl-btn-primary:hover {
  background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: var(--shadow-accent); color: #fff;
}
.dl-btn-secondary {
  background: var(--white); color: var(--heading);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.dl-btn-secondary:hover {
  border-color: rgba(0,0,0,0.15); transform: translateY(-2px);
  box-shadow: var(--shadow-md); color: var(--heading);
}
.dl-btn .icon { font-size: 18px; line-height: 1; }

.hero-meta { font-size: 13px; color: var(--muted); animation: fadeUp 0.6s ease 0.4s both; }
.hero-meta span { margin: 0 6px; }

/* ---- Section ---- */
.section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 600; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--heading);
  margin-bottom: 12px; letter-spacing: -0.015em;
}
.section-desc { font-size: 16px; color: var(--body); max-width: 540px; margin-bottom: 44px; }

/* ---- Cards ---- */
.platform-card, .feature-item, .step-card, .article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: all 0.35s ease; position: relative; overflow: hidden;
}
.platform-card:hover, .feature-item:hover, .step-card:hover, .article-card:hover {
  border-color: var(--accent-border); transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.platform-card { padding: 28px 24px; }
.platform-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0);
  transition: transform 0.35s ease; transform-origin: left;
}
.platform-card:hover::after { transform: scaleX(1); }

.platform-card .card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px; background: var(--accent-soft);
}
.platform-card h3 { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.platform-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.platform-card .card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.platform-card .card-meta .tag { background: var(--green-soft); color: var(--green); padding: 2px 8px; border-radius: 100px; font-weight: 600; font-size: 11px; }

.feature-item { padding: 32px 26px; }
.feature-item .f-icon { font-size: 26px; margin-bottom: 16px; }
.feature-item h3 { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.step-card { padding: 28px 20px; }
.step-num { font-size: 48px; font-weight: 800; color: rgba(51,112,255,0.1); line-height: 1; margin-bottom: 14px; }
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---- Grid Layouts ---- */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---- 文章卡片 ---- */
.article-card { padding: 24px; cursor: pointer; display: block; }
.article-card .card-tag {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; margin-bottom: 12px;
}
.article-card .card-tag.blue { background: var(--accent-soft); color: var(--accent); }
.article-card .card-tag.orange { background: var(--orange-soft); color: var(--orange); }
.article-card .card-tag.purple { background: var(--purple-soft); color: var(--purple); }
.article-card .card-tag.green { background: var(--green-soft); color: var(--green); }

.article-card h3 { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 8px; line-height: 1.4; }
.article-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.article-card .card-date { font-size: 12px; color: var(--muted); }

/* ---- FAQ ---- */
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover, .faq-item.open { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%; background: none; border: none; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 15px; font-weight: 600; color: var(--heading);
  font-family: inherit; text-align: left; transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question .arrow { font-size: 16px; color: var(--muted); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer-inner { padding: 0 22px 18px; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---- SEO Content ---- */
.seo-content { padding: 56px 0; }
.seo-content h2 { font-size: 22px; font-weight: 700; color: var(--heading); margin-bottom: 14px; }
.seo-content p { font-size: 15px; color: var(--body); line-height: 1.9; margin-bottom: 16px; }
.seo-content ul { list-style: none; margin-bottom: 16px; }
.seo-content ul li { padding: 5px 0; font-size: 15px; color: var(--body); padding-left: 20px; position: relative; }
.seo-content ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---- CTA ---- */
.cta { padding: 72px 0; text-align: center; }
.cta-box {
  background: linear-gradient(135deg, #eef2ff, #f5f0ff, #fef3f2);
  border: 1px solid var(--accent-border); border-radius: var(--radius-lg);
  padding: 60px 40px; position: relative; overflow: hidden;
}
.cta-box h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--heading); margin-bottom: 12px; position: relative; }
.cta-box p { color: var(--body); margin-bottom: 32px; font-size: 16px; position: relative; }
.cta-box .dl-btn { position: relative; }

/* ---- Footer ---- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--warm); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-left { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--heading); }

/* ---- 面包屑 ---- */
.breadcrumb { max-width: 800px; margin: 0 auto; padding: 20px 24px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { margin: 0 6px; }

/* ---- 文章详情页 ---- */
.article-wrap { max-width: 800px; margin: 0 auto; padding: 28px 24px 80px; }
.article-tag { display: inline-block; padding: 3px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.article-tag.blue { background: var(--accent-soft); color: var(--accent); }
.article-tag.orange { background: var(--orange-soft); color: var(--orange); }
.article-tag.purple { background: var(--purple-soft); color: var(--purple); }
.article-tag.green { background: var(--green-soft); color: var(--green); }

.article-wrap h1 {
  font-size: clamp(28px, 4vw, 38px); font-weight: 900; color: var(--heading);
  line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 16px;
}

.article-meta {
  display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted);
  margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.article-meta .avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--accent); font-weight: 700;
}

.article-body h2 {
  font-size: 22px; font-weight: 800; color: var(--heading);
  margin: 44px 0 16px; padding-left: 14px; border-left: 3px solid var(--accent);
}
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--heading); margin: 32px 0 12px; }
.article-body p { font-size: 16px; margin-bottom: 16px; }
.article-body strong { color: var(--heading); font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; font-size: 16px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-hover); }

/* 文章内组件 */
.toc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 28px; margin: 28px 0; box-shadow: var(--shadow-sm);
}
.toc-title { font-size: 15px; font-weight: 700; color: var(--heading); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 2; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.step-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; margin: 20px 0;
  box-shadow: var(--shadow-sm); display: flex; gap: 20px;
}
.step-block .step-num-block {
  flex-shrink: 0; width: 44px; height: 44px; background: var(--accent); color: #fff;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.step-block h4 { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.step-block p { font-size: 14px; color: var(--body); margin-bottom: 0; }

.tip-box {
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 12px; padding: 20px 24px; margin: 24px 0; font-size: 15px;
}
.tip-box .tip-label { font-weight: 700; color: var(--accent); margin-bottom: 6px; font-size: 14px; }
.tip-box.warn { background: rgba(234,179,8,0.06); border-color: rgba(234,179,8,0.15); }
.tip-box.warn .tip-label { color: #ca8a04; }

.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
  margin: 24px 0; border: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--heading); color: #fff; padding: 14px 20px;
  font-size: 14px; font-weight: 600; text-align: left;
}
.compare-table thead th:first-child { width: 30%; }
.compare-table tbody td {
  background: var(--white); padding: 14px 20px; font-size: 14px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child { font-weight: 600; color: var(--heading); background: #fafafa; }
.compare-table .win { color: var(--green); font-weight: 600; }

.verdict-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; margin: 20px 0; box-shadow: var(--shadow-sm);
}
.verdict-card h4 { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.verdict-card p { font-size: 14px; color: var(--body); margin-bottom: 0; }

.inline-cta {
  background: linear-gradient(135deg, #eef2ff, #f5f0ff);
  border: 1px solid var(--accent-border); border-radius: 14px;
  padding: 28px; margin: 32px 0; text-align: center;
}
.inline-cta p { font-size: 16px; color: var(--heading); font-weight: 600; margin-bottom: 14px; }
.inline-cta .cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 11px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: all 0.25s;
}
.inline-cta .cta-btn:hover {
  background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(51,112,255,0.18); color: #fff;
}

.tag-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.tag-row a {
  background: var(--accent-soft); color: var(--accent);
  padding: 4px 12px; border-radius: 100px; font-size: 12px;
  font-weight: 500; transition: all 0.2s; text-decoration: none;
}
.tag-row a:hover { background: var(--accent); color: #fff; }

/* ---- Animations ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.hero h1 { animation: fadeUp 0.5s ease both; }
.article-wrap h1 { animation: fadeUp 0.5s ease both; }
.article-meta { animation: fadeUp 0.5s ease 0.1s both; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .platform-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 48px; }
  .download-group { flex-direction: column; align-items: center; }
  .dl-btn { width: 100%; max-width: 320px; justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .step-block { flex-direction: column; gap: 12px; }
  .article-meta { flex-wrap: wrap; }
  .compare-table { font-size: 13px; }
  .compare-table thead th, .compare-table tbody td { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .platform-grid, .steps-grid, .articles-grid { grid-template-columns: 1fr; }
}
