/* Notion 工作台 - 深色科技风 */
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #242836;
  --border: #2e3345;
  --text: #e8eaef;
  --muted: #9aa0b4;
  --accent: #7c5cff;
  --accent2: #00d4aa;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #00d4aa 100%);
  --radius: 14px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}
a { color: var(--accent2); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15,17,23,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.logo-img { width: 36px; height: 36px; border-radius: 8px; }
.main-nav { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  padding: 8px 18px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .92rem;
}
.main-nav a:hover, .main-nav a.active { background: var(--surface2); color: var(--text); }

.breadcrumb { padding: 18px 0; font-size: .85rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  padding: 80px 0 72px;
  background: radial-gradient(ellipse at 70% 20%, rgba(124,92,255,.15) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(0,212,170,.08) 0%, transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: rgba(124,92,255,.15); color: #b8a4ff; font-size: .82rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 18px; }
.hero-lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 28px; }
.hero-lead strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; background: var(--gradient); color: #fff !important;
  font-size: 1.05rem; font-weight: 700; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(124,92,255,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,92,255,.45); opacity: 1; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border: 1px solid var(--border); border-radius: 12px; color: var(--text) !important;
}
.hero-visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.4); }

/* Dynamic tabs */
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.85rem; margin-bottom: 10px; }
.section-title p { color: var(--muted); }
.tab-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab-btn {
  padding: 10px 22px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); border-radius: 10px; cursor: pointer; font-size: .92rem; font-weight: 500;
  transition: all .25s;
}
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-panel { display: none; animation: fadeIn .4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.panel-grid img { border-radius: var(--radius); border: 1px solid var(--border); }
.panel-text h3 { font-size: 1.35rem; margin-bottom: 14px; color: var(--accent2); }
.panel-text p { color: var(--muted); margin-bottom: 12px; }
.panel-text ul { margin-left: 18px; color: var(--muted); }
.panel-text li { margin-bottom: 6px; }

/* Stats counter */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.stat-box { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card-body p { font-size: .92rem; color: var(--muted); }

/* News filter */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer; font-size: .85rem;
}
.filter-btn.active { background: var(--accent2); border-color: var(--accent2); color: #0f1117; font-weight: 600; }
.news-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px;
  padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 20px; transition: border-color .2s;
}
.news-card.hidden { display: none; }
.news-card:hover { border-color: var(--accent); }
.news-thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; }
.news-meta { display: flex; gap: 12px; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.news-tag { padding: 2px 10px; border-radius: 4px; background: rgba(124,92,255,.2); color: #b8a4ff; font-weight: 600; }
.news-card h2 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.4; }
.news-card h2 a { color: var(--text); }
.news-card h2 a:hover { color: var(--accent2); opacity: 1; }

/* Download */
.download-hero { text-align: center; padding: 72px 0 56px; }
.download-hero .btn-download { font-size: 1.2rem; padding: 18px 44px; }
.os-detect {
  margin-top: 16px; padding: 12px 20px; background: var(--surface2);
  border-radius: 10px; display: inline-block; font-size: .9rem; color: var(--accent2);
}
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.platform-card {
  text-align: center; padding: 28px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.platform-card:hover { border-color: var(--accent2); }
.platform-icon { font-size: 2.2rem; margin-bottom: 10px; }

/* Article */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-wrap h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.3; margin-bottom: 16px; }
.article-wrap h2 { font-size: 1.3rem; margin: 32px 0 14px; color: var(--accent2); }
.article-wrap p { margin-bottom: 16px; color: #c8ccd8; }
.article-wrap figure { margin: 28px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-wrap figcaption { font-size: .82rem; color: var(--muted); padding: 10px 0; text-align: center; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  padding: 22px 26px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text); }
.faq-item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-image { order: 1; }
.feature-image img { border-radius: var(--radius); border: 1px solid var(--border); }
.feature-text h2 { font-size: 1.5rem; margin-bottom: 14px; }
.feature-text p { color: var(--muted); margin-bottom: 12px; }
.feature-text ul { margin-left: 18px; color: var(--muted); }
.feature-text li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-col h4 { font-size: .9rem; margin-bottom: 14px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: .88rem; }
.footer-friends { border-top: 1px solid var(--border); padding: 22px 0; margin-bottom: 8px; }
.footer-friends h4 { font-size: .9rem; margin-bottom: 12px; color: var(--text); font-weight: 600; }
.friend-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; }
.friend-links a { color: var(--muted); font-size: .88rem; }
.friend-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: .84rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hero-grid, .panel-grid, .footer-grid, .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text, .feature-row.reverse .feature-image { order: unset; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .news-card { grid-template-columns: 1fr; }
}
