﻿:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --accent:#1d4ed8;
  --accent-2:#0ea5e9;
  --shadow:0 10px 30px rgba(15,23,42,.08);
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;border-radius:10px}
.logo{height:38px;width:auto;border-radius:6px}
.footer-brand .logo{height:44px;width:auto}
.page{max-width:1200px;margin:0 auto;padding:28px 20px 60px}

.topbar{position:sticky;top:0;background:#0f172a;border-bottom:1px solid rgba(255,255,255,.08);z-index:10}
.topbar-inner{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px}
.brand-text{display:flex;flex-direction:column;font-size:12px;color:rgba(255,255,255,.65)}
.brand strong{font-size:16px;color:#fff}
.nav{display:flex;gap:16px;flex-wrap:wrap}
.nav a{padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.1);color:#e2e8f0;font-size:13px;transition:all .2s}
.nav a:hover{background:var(--accent);color:#fff}

.hero{display:grid;grid-template-columns:2fr 1fr;gap:22px;margin:20px 0 30px}
.hero-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:var(--shadow)}
.hero-tag{display:inline-block;background:rgba(29,78,216,.1);color:var(--accent);padding:4px 10px;border-radius:999px;font-size:12px;margin-bottom:10px}
.hero-card h1{font-size:28px;line-height:1.25;margin-bottom:10px}
.hero-card p{color:var(--muted)}
.hero-meta{display:flex;gap:12px;color:var(--muted);font-size:12px;margin:12px 0}
.hero-actions{display:flex;gap:10px;margin-top:14px}
.btn{padding:10px 16px;border-radius:10px;border:1px solid var(--line);font-size:14px;font-weight:500;transition:all .2s}
.btn.primary{background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;border-color:transparent;box-shadow:0 4px 15px rgba(29,78,216,.2)}
.btn.primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(29,78,216,.3)}
.btn.ghost{background:#fff;border:1px solid var(--line)}
.btn.ghost:hover{background:var(--bg);border-color:var(--accent);color:var(--accent)}

.hero-reco{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.hero-reco h3{font-size:16px;margin-bottom:10px}
.reco-list{display:grid;gap:10px}
.reco-list a{display:flex;gap:10px;align-items:center}
.reco-list img{width:64px;height:48px;object-fit:cover;border-radius:8px}

.hero-right{display:grid;gap:16px}
.hot-list,.tag-cloud{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.hot-list h3,.tag-cloud h3{font-size:16px;margin-bottom:10px;font-weight:600}
.hot-list a{display:block;padding:8px 0;border-bottom:1px dashed var(--line);transition:color .2s;position:relative;padding-left:10px}
.hot-list a:before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:3px;background:var(--accent);border-radius:50%;opacity:0;transition:opacity .2s}
.hot-list a:hover{color:var(--accent)}
.hot-list a:hover:before{opacity:1}
.hot-list a:last-child{border-bottom:none}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tags span{background:#f1f5f9;padding:6px 10px;border-radius:999px;font-size:12px;color:#0f172a}

.section{margin-top:26px}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.section-head h2{font-size:20px;border-left:4px solid var(--accent);padding-left:12px;font-weight:600}
.section-head .more{font-size:13px;color:var(--accent);transition:all .2s}
.section-head .more:hover{color:#3b82f6;transform:translateX(3px)}

.grid-10{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:transform .2s ease, box-shadow .2s ease,border-color .2s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(15,23,42,.12);border-color:var(--accent)}
.card img{height:120px;object-fit:cover}
.card-body{padding:12px}
.card-body h3{font-size:14px;margin:6px 0;height:38px;overflow:hidden}
.card-body p{font-size:12px;color:var(--muted);height:34px;overflow:hidden}
.meta{display:flex;gap:8px;color:var(--muted);font-size:11px;flex-wrap:wrap}

.article-page{max-width:900px}
.article h1{font-size:28px;margin-bottom:6px}
.article-meta{color:var(--muted);font-size:12px;margin-bottom:12px;display:flex;gap:12px}
.article-cover{margin:10px 0 16px;border-radius:16px}
.article ul{padding-left:20px;margin:10px 0}
.article-nav{display:flex;justify-content:space-between;margin:24px 0}
.article-rel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.article-rel .rel-links{display:grid;gap:8px;margin-top:8px}

.mpdl-trust-bar{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;padding:20px;background:rgba(29,78,216,.05);border-radius:12px;margin-top:16px}
.mpdl-trust-item{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--accent);font-weight:500}
.mpdl-trust-item i{font-size:18px}
.mpdl-safety-note{font-size:12px;color:var(--muted);background:rgba(245,158,11,.08);padding:12px 16px;border-radius:8px;margin-top:16px;border-left:3px solid #f59e0b;display:flex;align-items:center;gap:10px}
.mpdl-safety-note i{color:#f59e0b;font-size:16px;flex-shrink:0}
.mpdl-card-badge{position:absolute;top:12px;right:12px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600}
.mpdl-card{position:relative}

.footer{background:#0f172a;color:#e2e8f0;margin-top:40px}

/* Footer Top - 内容区 */
.footer-top{border-bottom:1px solid rgba(255,255,255,.08)}
.footer-top-inner{max-width:1200px;margin:0 auto;padding:48px 24px 40px;display:grid;grid-template-columns:1fr 2fr;gap:48px;align-items:start}

/* Brand Section */
.footer-brand-section{display:flex;flex-direction:column;gap:16px}
.footer-logo-link{display:flex;align-items:center;gap:10px;margin-bottom:4px;text-decoration:none;transition:opacity .2s}
.footer-logo-link:hover{opacity:.8}
.logo{height:40px;width:auto}
.footer-brand-name{font-size:16px;font-weight:700;color:#fff}
.footer-brand-desc{font-size:13px;line-height:1.8;color:#94a3b8;max-width:280px}
.footer-badges{display:flex;flex-wrap:wrap;gap:8px}
.footer-badge{display:inline-block;font-size:12px;color:#94a3b8;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:6px 12px;border-radius:999px;transition:all .2s}
.footer-badge:hover{background:rgba(255,255,255,.08);color:#e2e8f0}

/* Nav Columns */
.footer-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.footer-col h4{font-size:12px;font-weight:700;color:#fff;margin-bottom:16px;letter-spacing:.05em;text-transform:uppercase}
.footer-col a{display:block;font-size:13px;color:#94a3b8;margin-bottom:10px;transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-col span{display:block;font-size:12px;color:#475569;margin-bottom:8px;line-height:1.6}

/* Footer Bottom - 版权栏 */
.footer-bottom{background:rgba(0,0,0,.2)}
.footer-bottom-inner{max-width:1200px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;color:#475569}
.footer-bottom-links{display:flex;gap:20px}
.footer-bottom-links a{color:#475569;transition:color .2s;text-decoration:none}
.footer-bottom-links a:hover{color:#94a3b8}

/* Responsive - 平板 */
@media (max-width:900px){
  .footer-top-inner{grid-template-columns:1fr;gap:32px;padding:40px 24px 32px}
  .footer-brand-desc{max-width:100%}
  .footer-cols{grid-template-columns:repeat(2,1fr);gap:24px}
}

/* Responsive - 手机 */
@media (max-width:640px){
  .footer-top-inner{padding:32px 16px 24px;gap:16px}
  .footer-cols{grid-template-columns:1fr;gap:0}
  .footer-col{padding-bottom:20px;border-bottom:1px solid rgba(255,255,255,.06)}
  .footer-col:last-child{border-bottom:none;padding-bottom:0}
  .footer-bottom-inner{flex-direction:column;text-align:center;gap:10px;padding:16px}
  .footer-bottom-links{justify-content:center}
}

@media (max-width:1100px){
  .grid-10{grid-template-columns:repeat(3,1fr)}
  .hero{grid-template-columns:1fr}
}
@media (max-width:720px){
  .topbar-inner{flex-direction:column;align-items:flex-start}
  .grid-10{grid-template-columns:repeat(2,1fr)}
  .hero-card h1{font-size:22px}
}

.feature-split{display:grid;grid-template-columns:2fr 1fr;gap:20px}
.feature-left,.feature-right{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}
.feature-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.feature-head span{color:var(--muted);font-size:12px}
.feature-cards{display:grid;gap:10px}
.feature-card{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;transition:.2s}
.feature-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.feature-card img{height:80px;object-fit:cover;border-radius:10px}
.feature-card strong{display:block;margin-bottom:4px}
.feature-card p{color:var(--muted);font-size:12px}
.editor-list a{display:block;padding:8px 0;border-bottom:1px dashed var(--line)}
.editor-list a:last-child{border-bottom:none}

.grid-10{gap:10px}
.card img{height:110px}
.card-body h3{height:34px;font-size:13px}
.card-body p{height:30px;font-size:11px}

.article-page{position:relative}
.article-toc{position:sticky;top:90px;float:right;width:220px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;margin:0 0 12px 20px}
.article-toc h4{font-size:13px;margin-bottom:8px}
.article-toc a{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.article-progress{position:fixed;top:0;left:0;height:3px;background:var(--accent);width:0;z-index:999}

@media (max-width:1100px){
  .feature-split{grid-template-columns:1fr}
  .article-toc{float:none;width:auto;position:relative;top:auto;margin:10px 0}
}
@media (max-width:720px){
  .feature-card{grid-template-columns:1fr}
}
