:root { color-scheme: light; --bg:#f5f7fb; --card:#fff; --text:#1d2433; --muted:#687386; --primary:#2563eb; --line:#e5e9f2; }
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; background:var(--bg); color:var(--text); }
a { color:inherit; text-decoration:none; }
.hero { padding:28px clamp(18px, 5vw, 70px) 46px; background:linear-gradient(135deg,#172554,#2563eb); color:white; }
nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:46px; }
.brand { font-weight:800; letter-spacing:.06em; }
nav a:last-child { padding:8px 14px; border:1px solid rgba(255,255,255,.45); border-radius:999px; }
.hero h1 { font-size:clamp(34px, 7vw, 72px); margin:0 0 12px; }
.hero p { max-width:760px; margin:0; color:#dbeafe; font-size:18px; }
.layout { display:grid; grid-template-columns:minmax(0, 1fr) 320px; gap:24px; padding:28px clamp(18px, 5vw, 70px); }
.section-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
button, .button { border:0; background:var(--primary); color:white; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
button:hover, .button:hover { filter:brightness(.95); }
.posts { display:grid; gap:16px; }
.card, .post { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:22px; box-shadow:0 10px 30px rgba(15,23,42,.06); }
.post h3 { margin:0 0 8px; font-size:22px; }
.post p { color:var(--muted); line-height:1.75; }
.post footer { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:14px; }
.muted { color:var(--muted); }
.hidden { display:none; }
.content { line-height:1.85; white-space:pre-wrap; }
.empty { padding:30px; border:1px dashed #cbd5e1; border-radius:16px; color:var(--muted); text-align:center; }
.detail-hero { padding-bottom:38px; }
.breadcrumb { margin-bottom:16px !important; color:#bfdbfe !important; }
.breadcrumb a { text-decoration:underline; text-underline-offset:4px; }
.article-layout { padding:28px clamp(18px, 5vw, 70px); }
.article-card { max-width:920px; margin:0 auto; background:var(--card); border:1px solid var(--line); border-radius:22px; padding:clamp(22px, 4vw, 42px); box-shadow:0 10px 30px rgba(15,23,42,.06); }
.article-summary { color:var(--muted); font-size:18px; line-height:1.8; padding-bottom:18px; border-bottom:1px solid var(--line); }
.article-content { font-size:17px; }
.article-content h1, .article-content h2, .article-content h3 { margin-top:1.5em; }
@media (max-width: 860px) { .layout { grid-template-columns:1fr; } nav { margin-bottom:30px; } }

.article-content img { max-width:100%; height:auto; border-radius:14px; display:block; margin:16px auto; }
.article-content table { width:100%; border-collapse:collapse; margin:16px 0; overflow:auto; }
.article-content th, .article-content td { border:1px solid #d1d5db; padding:10px; }
.article-content blockquote { margin:18px 0; padding:12px 16px; border-left:4px solid #2563eb; background:#eff6ff; color:#374151; }
.article-content a { color:#2563eb; }
.article-content iframe, .article-content video { max-width:100%; }


.top-ad-wrap { padding:18px clamp(18px, 5vw, 70px) 0; }
.sidebar-stack { display:grid; gap:16px; align-content:start; }
.ad-slot { width:100%; margin:18px 0; }
.ad-slot.hidden { display:none !important; }
.ad-slot[data-ad-size="300x250"], .ad-slot[data-ad-size="336x280"] { max-width:336px; margin-left:auto; margin-right:auto; }
.ad-slot[data-ad-size="728x90"], .ad-slot[data-ad-size="970x250"] { max-width:970px; margin-left:auto; margin-right:auto; }
.ad-placeholder, .ad-internal { border:1px dashed #cbd5e1; border-radius:16px; padding:18px; background:#f8fafc; color:var(--muted); text-align:center; }
.ad-internal { text-align:left; border-style:solid; background:#fff; box-shadow:0 10px 30px rgba(15,23,42,.04); }
.ad-internal strong { color:var(--primary); }
.ad-internal p { margin:6px 0 0; line-height:1.7; }
.article-card > .ad-slot:first-child { margin-top:0; margin-bottom:22px; }
.article-card > .ad-slot:last-child { margin-top:24px; margin-bottom:0; }
