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

:root {
  --bg: #f5f4ff;
  --surface: #ffffff;
  --surface2: #f8f7ff;
  --border: #e8e6f8;
  --text-primary: #0d0b1e;
  --text-secondary: #4b4875;
  --text-muted: #9895be;
  --accent: #6d28d9;
  --accent2: #4f46e5;
  --accent-light: #ede9ff;
  --accent-dim: #a78bfa;
  --grad: linear-gradient(135deg, #7c3aed, #4f46e5);
  --grad-hero: linear-gradient(160deg, #0f0c29 0%, #1a1060 45%, #0c1a4a 100%);
  --grad-soft: linear-gradient(135deg, #ede9ff, #e0e7ff);
  --r: 14px;
  --r-lg: 20px;
  --max-w: 1160px;
  --max-post: 800px;
  --sh: 0 2px 12px rgba(109,40,217,.07);
  --sh-lg: 0 8px 32px rgba(109,40,217,.13), 0 2px 8px rgba(109,40,217,.07);
}

body { font-family: -apple-system,'PingFang SC','Microsoft YaHei',sans-serif; background: var(--bg); color: var(--text-primary); line-height: 1.7; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header ── */
.site-header { background: rgba(255,255,255,.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 100%; padding: 0 3rem; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; background: var(--grad); border-radius: 9px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(109,40,217,.35); }
.logo-mark svg { width: 16px; height: 16px; fill: white; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: background .15s, color .15s; }
.site-nav a:hover, .site-nav a.active { background: var(--accent-light); color: var(--accent); }
.btn-email { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; height: 36px; background: var(--accent-light); color: var(--accent); border: 1.5px solid #c4b5fd; border-radius: 9px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, transform .1s; }
.btn-email:hover { background: #ddd6fe; transform: translateY(-1px); }

/* ── Hero ── */
.hero { background: var(--grad-hero); padding: 72px 2rem 80px; text-align: center; position: relative; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-1 { width: 500px; height: 500px; top: -180px; left: -100px; background: radial-gradient(circle, rgba(124,58,237,.28) 0%, transparent 70%); }
.hero-orb-2 { width: 400px; height: 400px; bottom: -120px; right: -80px; background: radial-gradient(circle, rgba(37,99,235,.28) 0%, transparent 70%); }
.hero-orb-3 { width: 600px; height: 200px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(ellipse, rgba(99,102,241,.15) 0%, transparent 70%); }
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 56px; background: var(--bg); clip-path: ellipse(58% 100% at 50% 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); font-size: 11px; font-weight: 600; letter-spacing: .07em; padding: 5px 16px; border-radius: 100px; margin-bottom: 32px; text-transform: uppercase; }
.hero-badge-dot { width: 6px; height: 6px; background: #a78bfa; border-radius: 50%; animation: pulse 2s ease infinite; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -1px; color: white; line-height: 1.18; margin-bottom: 20px; }
.grad-text { background: linear-gradient(90deg, #c4b5fd, #818cf8, #93c5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 16px; color: rgba(255,255,255,.55); line-height: 1.85; margin-bottom: 44px; letter-spacing: .01em; }
.hero-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 190px; height: 50px; border-radius: 13px; font-size: 15px; font-weight: 700; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.hbtn-ghost { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.22); color: rgba(255,255,255,.9); }
.hbtn-ghost:hover { background: rgba(255,255,255,.17); transform: translateY(-2px); }
.hbtn-primary { background: linear-gradient(135deg, #9333ea, #4f46e5); color: white; box-shadow: 0 6px 22px rgba(147,51,234,.5); border: 1px solid rgba(255,255,255,.12); }
.hbtn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(147,51,234,.65); }

/* ── Stats ── */
.stats-wrap { display: flex; justify-content: center; padding: 0 2rem; margin-top: -22px; position: relative; z-index: 2; }
.stats-bar { display: flex; align-items: center; background: white; border-radius: 18px; box-shadow: var(--sh-lg); border: 1px solid var(--border); padding: 0 8px; width: 100%; max-width: 480px; }
.stat-item { flex: 1; padding: 20px 12px; text-align: center; }
.stat-divider { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }
.stat-num { font-size: 24px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 5px; font-weight: 500; }
.online-dot { display: inline-block; width: 6px; height: 6px; background: #22c55e; border-radius: 50%; margin-right: 4px; vertical-align: middle; animation: pg 1.8s ease infinite; }
@keyframes pg { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.5)} 50%{box-shadow:0 0 0 4px rgba(34,197,94,0)} }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── Section label ── */
.section-label { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* ── Cat tabs ── */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 24px; }
.cat-tab { padding: 7px 18px; border: 1.5px solid var(--border); border-radius: 100px; background: white; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all .15s; white-space: nowrap; box-shadow: var(--sh); }
.cat-tab:hover { border-color: var(--accent-dim); color: var(--accent); background: var(--accent-light); transform: translateY(-1px); }
.cat-tab.active { background: var(--grad); border-color: transparent; color: white; box-shadow: 0 4px 14px rgba(109,40,217,.35); transform: translateY(-1px); }

/* ── Posts grid ── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; padding-bottom: 72px; }
.post-card { background: white; border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; box-shadow: var(--sh); }
.post-card:hover { border-color: var(--accent-dim); box-shadow: var(--sh-lg); transform: translateY(-5px); }
.post-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--grad-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.post-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.post-meta { display: flex; align-items: center; gap: 8px; }
.post-cat { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }
.cat-tutorial   { background: #ede9fe; color: #6d28d9; }
.cat-download   { background: #dbeafe; color: #1e40af; }
.cat-activation { background: #d1fae5; color: #065f46; }
.cat-faq        { background: #fce7f3; color: #9d174d; }
.post-date { font-size: 12px; color: var(--text-muted); margin-left: auto; font-weight: 500; }
.post-pinned { font-size: 11px; color: var(--accent); font-weight: 700; }
.post-title { font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.post-card:hover .post-title { color: var(--accent); }
.post-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--surface2); }
.read-more { font-size: 13px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.post-card:hover .read-more { gap: 10px; }
.read-more-arrow { width: 24px; height: 24px; border-radius: 6px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: background .15s, color .15s; }
.post-card:hover .read-more-arrow { background: var(--accent); color: white; }

/* ── Pinned ── */
.pinned-section { padding-top: 52px; margin-bottom: 8px; }

/* ── Article ── */
.article-wrap { max-width: var(--max-post); margin: 0 auto; padding: 48px 2rem 100px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .4; }
.article-header { margin-bottom: 32px; }
.article-cats { display: flex; gap: 8px; margin-bottom: 16px; }
.article-title { font-size: clamp(24px, 4vw, 38px); font-weight: 900; line-height: 1.22; margin-bottom: 16px; letter-spacing: -.5px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); font-weight: 500; padding: 13px 18px; background: var(--surface2); border-radius: 10px; border: 1px solid var(--border); }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 36px; aspect-ratio: 16/9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── CTA Box ── */
.cta-box { background: var(--grad); border-radius: var(--r-lg); padding: 28px 32px; margin: 40px 0; color: white; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: 0 8px 32px rgba(109,40,217,.3); position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px; background: rgba(255,255,255,.05); border-radius: 50%; }
.cta-box-icon { font-size: 40px; flex-shrink: 0; }
.cta-box-text { flex: 1; min-width: 200px; }
.cta-box-text strong { font-size: 17px; font-weight: 800; display: block; margin-bottom: 5px; }
.cta-box-text p { font-size: 13px; opacity: .78; margin: 0; }
.btn-cta-box { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; height: 46px; background: white; color: var(--accent); border-radius: 10px; font-size: 14px; font-weight: 800; white-space: nowrap; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.15); transition: transform .1s, box-shadow .15s; }
.btn-cta-box:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ── Article content ── */
.article-content { line-height: 1.9; font-size: 16px; color: var(--text-secondary); }
.article-content h2 { font-size: 22px; font-weight: 800; margin: 42px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); color: var(--text-primary); }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 30px 0 12px; color: var(--text-primary); }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 1.5rem; }
.article-content li { margin-bottom: 8px; }
.article-content code { font-family: "SF Mono",Consolas,monospace; background: var(--accent-light); color: var(--accent); border: 1px solid #ddd6fe; padding: 2px 7px; border-radius: 5px; font-size: 13.5px; }
.article-content pre { background: #0f0c29; color: #e0e7ff; border: 1px solid #1e1b4b; border-radius: var(--r); padding: 22px; margin-bottom: 20px; overflow-x: auto; }
.article-content pre code { background: none; border: none; color: inherit; padding: 0; }
.article-content blockquote { border-left: 4px solid var(--accent); background: var(--accent-light); padding: 16px 20px; margin-bottom: 18px; border-radius: 0 10px 10px 0; }
.article-content img { border-radius: 10px; margin: 18px 0; box-shadow: var(--sh); }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.article-content th { background: var(--grad-soft); padding: 11px 16px; text-align: left; font-weight: 700; color: var(--accent); border-bottom: 2px solid var(--border); }
.article-content td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--surface2); }

/* ── Tags ── */
.article-tags { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill { padding: 5px 14px; border-radius: 100px; background: white; border: 1.5px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-secondary); transition: all .15s; }
.tag-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px 0 70px; }
.page-link { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; border: 1.5px solid var(--border); background: white; color: var(--text-secondary); transition: all .15s; }
.page-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.page-link.current { background: var(--grad); border-color: transparent; color: white; box-shadow: 0 4px 14px rgba(109,40,217,.35); }
.page-link.disabled { opacity: .3; pointer-events: none; }

/* ── Float CTA ── */

@keyframes float-in { from{opacity:0;transform:translateY(28px) scale(.9)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* ── Footer ── */
.site-footer { background: var(--grad-hero); color: rgba(255,255,255,.38); text-align: center; padding: 36px 2rem; font-size: 13px; font-weight: 500; }
.site-footer a { color: rgba(255,255,255,.55); transition: color .15s; }
.site-footer a:hover { color: white; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero { padding: 56px 1.5rem 68px; }
  .stats-wrap { margin: -14px 1.5rem 0; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-box { flex-direction: column; text-align: center; padding: 24px 20px; }
  .article-wrap { padding: 32px 1.25rem 80px; }
  .header-inner { padding: 0 1.25rem; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 56px; margin-bottom: 20px; }
.empty-state h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.empty-btn {
  display: inline-flex; align-items: center;
  padding: 0 24px; height: 42px;
  background: var(--grad); color: white;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: opacity .15s, transform .1s;
}
.empty-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ── Mobile: 768px ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero { padding: 56px 1.5rem 68px; }
  .stats-wrap { margin: -14px 1.5rem 0; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-box { flex-direction: column; text-align: center; padding: 24px 20px; }
  .article-wrap { padding: 32px 1.25rem 80px; }
  .header-inner { padding: 0 1.25rem; }
}

/* ── Mobile: 480px ── */
@media (max-width: 480px) {
  .header-inner { padding: 0 1rem; height: 56px; gap: 0; }
  .site-logo { font-size: 14px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
  .btn-email { font-size: 11px; padding: 0 10px; height: 32px; gap: 5px; max-width: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hero { padding: 44px 1.25rem 60px; }
  .hero h1 { font-size: 26px; letter-spacing: -.5px; }
  .hero p { font-size: 14px; margin-bottom: 32px; }
  .hero-badge { font-size: 10px; padding: 4px 12px; margin-bottom: 20px; }
  .hero-btns { gap: 10px; flex-wrap: nowrap; }
  .hbtn { width: 46%; height: 46px; font-size: 13px; border-radius: 11px; }
  .stats-wrap { margin: -12px 1rem 0; }
  .stats-bar { max-width: 100%; }
  .stat-item { padding: 16px 8px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 10px; }
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex-shrink: 0; padding: 6px 14px; font-size: 12px; }
  .posts-grid { grid-template-columns: 1fr; gap: 14px; }
  .container { padding: 0 1rem; }
  .article-wrap { padding: 24px 1rem 80px; }
  .article-title { font-size: 22px; }
  .cta-box { padding: 20px 16px; gap: 14px; }
  .cta-box-icon { font-size: 32px; }
  .cta-box-text strong { font-size: 15px; }
  .btn-cta-box { width: 100%; justify-content: center; }

  /* Float CTA — 手机端圆角胶囊 */
  .float-cta {
    position: fixed !important;
    bottom: 20px !important;
    right: 14px !important;
    left: auto !important;
    padding: 0 16px 0 12px !important;
    height: 46px !important;
    border-radius: 23px !important;
    font-size: 13px !important;
    gap: 8px !important;
    flex-direction: row !important;
    width: auto !important;
  }
  .float-cta-dot { width: 7px; height: 7px; }
}

/* ── Float CTA 桌面端 ── */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  left: auto;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--grad);
  color: white;
  padding: 0 22px 0 18px;
  height: 50px;
  border-radius: 100px;
  box-shadow: 0 8px 28px rgba(109,40,217,.5);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  animation: float-in .6s cubic-bezier(.34,1.56,.64,1) 1s both;
}
.float-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(109,40,217,.6); }
.float-cta-dot { width: 8px; height: 8px; background: #86efac; border-radius: 50%; flex-shrink: 0; animation: pulse 1.8s ease infinite; }
