*,*::before,*::after{box-sizing:border-box}
:root{--site-width:1200px}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font-body);font-size:17px;line-height:1.7;color:#1f2933;background:#fff}
img,video,iframe{max-width:100%;height:auto}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:var(--font-heading);font-weight:700;line-height:1.25;color:#111827;margin:1.4em 0 .5em}
h1{font-size:1.9rem}h2{font-size:1.4rem}h3{font-size:1.15rem}
p{margin:.6em 0}
ul,ol{margin:.6em 0;padding-left:1.4em}

/* header */
.site-header{border-bottom:1px solid #e5e7eb;background:#fff;position:sticky;top:0;z-index:10}
.header-inner{max-width:var(--site-width);margin:0 auto;padding:.6rem 1rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:.5rem;font-family:var(--font-heading);font-weight:700;color:#111827;font-size:1.15rem}
.logo-mark{width:32px;height:32px;border-radius:8px;object-fit:cover;flex-shrink:0}
.logo-text{line-height:1.2}
.main-nav{flex:1}
.nav-toggle{display:none;background:none;border:1px solid #d1d5db;border-radius:6px;font-size:1.3rem;line-height:1;padding:.3rem .6rem;cursor:pointer}
.nav-list{list-style:none;display:flex;gap:1rem;margin:0;padding:0;flex-wrap:wrap}
.nav-list a{color:#374151;font-weight:500}
.nav-list a:hover{color:var(--accent)}
.search-box{position:relative}
.search-box input{border:1px solid #d1d5db;border-radius:6px;padding:.4rem .6rem;font-size:.95rem;width:150px}
.search-results{position:absolute;right:0;top:100%;background:#fff;border:1px solid #e5e7eb;border-radius:6px;list-style:none;margin:.2rem 0 0;padding:.3rem 0;min-width:220px;box-shadow:0 4px 12px rgba(0,0,0,.08);max-height:300px;overflow:auto}
.search-results a{display:block;padding:.3rem .6rem;color:#1f2933}
.search-results a:hover{background:var(--accent-light);text-decoration:none}

/* layout */
.page-main{max-width:var(--site-width);margin:0 auto;padding:1.5rem 1rem 3rem}
.prose{max-width:var(--content-width);margin:0 auto}
.article{max-width:var(--content-width);margin:0 auto}
.article .article-title{font-size:1.9rem;margin:.3em 0 .4em}
.breadcrumb{font-size:.9rem;color:#6b7280;margin-bottom:.6rem}
.breadcrumb a{color:#6b7280}
.breadcrumb span{color:#111827;font-weight:600}
.search-page{max-width:var(--content-width);margin:0 auto}
.search-page input{width:100%;border:1px solid #d1d5db;border-radius:6px;padding:.6rem .8rem;font-size:1rem;margin-bottom:1rem}
.search-page-results{list-style:none;margin:0;padding:0}
.search-page-results li{padding:.6rem 0;border-bottom:1px solid #e5e7eb}
.search-page-results a{color:#111827;font-weight:500}
.search-page-results .no-results{color:#6b7280}
.page-title{font-size:1.7rem}
.page-desc{color:#4b5563}

/* cards */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:1.25rem}
.post-card{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff;display:flex;flex-direction:column;color:#1f2933;transition:box-shadow .15s,border-color .15s}
.post-card:hover{border-color:var(--accent);box-shadow:0 6px 20px rgba(0,0,0,.09);text-decoration:none}
.post-thumb{display:block;background:var(--accent-light);aspect-ratio:16/9;overflow:hidden}
.post-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.post-body{display:flex;flex-direction:column;gap:.35rem;padding:.85rem 1rem 1rem}
.post-title{font-weight:600;line-height:1.35}
.post-meta{font-size:.82rem;color:#6b7280}

/* section head */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;border-bottom:2px solid var(--accent-light);padding-bottom:.4rem;margin-top:.5rem}
.section-title{font-size:1.35rem;margin:0}
.section-more{font-size:.9rem;font-weight:600}
.home-section{margin-bottom:2.5rem}
.home-column{margin-bottom:2.5rem}
.home-column h2{font-size:1.25rem;margin:0}
.home-column h2 a{color:#111827}

/* hero */
.hero{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;border-radius:10px;padding:3rem 2rem;margin-bottom:2.5rem}
.hero-inner{max-width:var(--content-width);margin:0 auto}
.hero-kicker{display:inline-block;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-light);margin-bottom:.6rem}
.hero h1{color:#fff;margin:.1em 0 .4em;font-size:2.3rem}
.hero-sub{color:var(--accent-light);font-size:1.15rem;margin:0 0 1.5rem}
.hero-cta{display:flex;gap:.75rem;flex-wrap:wrap}
.btn-primary{background:#fff;color:var(--accent-dark);font-weight:700;padding:.65rem 1.2rem;border-radius:6px;min-height:44px;display:inline-flex;align-items:center}
.btn-primary:hover{background:var(--accent-light);text-decoration:none}
.btn-ghost{border:1px solid rgba(255,255,255,.6);color:#fff;font-weight:600;padding:.65rem 1.2rem;border-radius:6px;min-height:44px;display:inline-flex;align-items:center}
.btn-ghost:hover{background:rgba(255,255,255,.12);text-decoration:none}

/* article page */
.byline{display:flex;align-items:center;gap:.7rem;margin:.8rem 0 1.2rem;font-size:.92rem;color:#4b5563}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-family:var(--font-heading);flex-shrink:0}
.avatar-lg{width:64px;height:64px;font-size:1.4rem}
.byline-text{display:flex;flex-direction:column;line-height:1.4}
.author-link{font-weight:600;color:#111827}
.byline-role,.byline-date,.byline-time{color:#6b7280;font-size:.85rem}
.article-body,.article p,.article ul,.article ol{max-width:100%}
.cover-figure{margin:1.2rem 0;border-radius:8px;overflow:hidden}
.cover-figure img{display:block;width:100%;border-radius:8px}

/* ad slots */
.ad-slot{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:6px;min-height:90px;display:flex;align-items:center;justify-content:center;margin:1rem 0;padding:.5rem}
.ad-label{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#9ca3af}

/* faq / references / series / related */
.faq details{border:1px solid #e5e7eb;border-radius:6px;margin:.6rem 0;padding:.6rem .8rem}
.faq summary{cursor:pointer;font-weight:600;color:#111827}
.references ul{font-size:.92rem}
.related{margin-top:2rem}
.related h2{font-size:1.2rem}
.related-grid{display:flex;flex-direction:column;gap:.6rem}
.related-card{display:flex;gap:.85rem;align-items:center;border:1px solid #e5e7eb;border-radius:8px;padding:.55rem;color:#1f2933}
.related-card:hover{border-color:var(--accent);text-decoration:none}
.related-thumb{flex-shrink:0;width:112px;height:63px;border-radius:6px;overflow:hidden;background:var(--accent-light)}
.related-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.related-body{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.related-title{font-weight:600;line-height:1.3}
.related-meta{font-size:.8rem;color:#6b7280}

/* 下一篇引导按钮（§6.1 次级 CTA，心跳动态 + 号召性文案） */
.next-cta{display:flex;align-items:center;gap:.9rem;margin-top:1.6rem;padding:.85rem 1rem;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#1f2933;transition:border-color .15s,box-shadow .15s}
.next-cta:hover{border-color:var(--accent);box-shadow:0 6px 20px rgba(0,0,0,.08);text-decoration:none}
.next-thumb{flex-shrink:0;width:96px;height:54px;border-radius:6px;overflow:hidden;background:var(--accent-light)}
.next-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.next-body{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1}
.next-kicker{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:700}
.next-title{font-weight:700;line-height:1.3;color:#111827}
.next-meta{font-size:.8rem;color:#6b7280}
.next-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:.35rem;background:var(--accent);color:#fff;font-weight:700;padding:.6rem 1rem;border-radius:8px;font-size:.95rem;animation:heartbeat 1.8s ease-in-out infinite}
.next-btn:hover{background:var(--accent-dark)}
.next-arrow{font-size:1.1rem}
@keyframes heartbeat{0%,100%{transform:scale(1);box-shadow:0 0 0 0 var(--accent)}50%{transform:scale(1.05);box-shadow:0 0 0 8px rgba(0,0,0,0)}}

/* monetize page CTA：统一「Continue」心跳大按钮（全宽同文章宽） */
.continue-btn{display:flex;align-items:center;justify-content:center;gap:.6rem;width:100%;min-height:56px;margin:1.5rem 0;background:var(--accent);color:#fff;font-weight:700;font-size:1.15rem;letter-spacing:.01em;border-radius:12px;text-decoration:none;animation:heartbeat 1.8s ease-in-out infinite}
.continue-btn:hover{background:var(--accent-dark)}
.continue-arrow{font-size:1.25rem}

/* author page */
.author-header{display:flex;gap:1rem;align-items:flex-start;margin:1rem 0 1.5rem}
.author-role{color:var(--accent);font-weight:600;margin:0}
.author-bio{color:#4b5563}

/* policy / contact */
.contact-form{display:flex;flex-direction:column;gap:.6rem;max-width:480px}
.contact-form input,.contact-form textarea{border:1px solid #d1d5db;border-radius:6px;padding:.6rem;font-size:1rem;font-family:inherit}
.contact-form button{background:var(--accent);color:#fff;border:none;border-radius:6px;padding:.7rem 1rem;font-size:1rem;cursor:pointer;min-height:44px}
.contact-form button:hover{background:var(--accent-dark)}

/* footer */
.site-footer{border-top:1px solid #e5e7eb;margin-top:3rem;background:#f9fafb}
.footer-inner{max-width:var(--site-width);margin:0 auto;padding:1.5rem 1rem;display:flex;flex-direction:column;gap:.6rem}
.footer-nav{display:flex;gap:1rem;flex-wrap:wrap}
.footer-nav a{color:#4b5563;font-size:.9rem}
.footer-disclaimer{font-size:.8rem;color:#9ca3af;margin:0}

/* table scroll */
table{display:block;overflow-x:auto;border-collapse:collapse;width:100%}
td,th{border:1px solid #e5e7eb;padding:.5rem .7rem;white-space:nowrap}

/* responsive: 平板/窄屏卡片两列（601-900px） */
@media(max-width:900px){
  .card-grid{grid-template-columns:repeat(2,1fr)}
}

/* responsive 600px */
@media(max-width:600px){
  body{font-size:16px}
  h1{font-size:1.6rem}
  .header-inner{padding:.5rem .75rem}
  .nav-toggle{display:inline-block}
  .nav-list{display:none;flex-direction:column;width:100%;gap:.2rem}
  .nav-list.open{display:flex}
  .search-box input{width:120px}
  .page-main{padding:1rem .75rem 2rem}
  .hero{padding:1.6rem 1rem}
  .hero h1{font-size:1.7rem}
  .hero-cta a{flex:1;justify-content:center}
  .card-grid{grid-template-columns:1fr}
  .related-thumb{width:84px;height:47px}
  .next-thumb{width:72px;height:40px}
  .next-cta{gap:.6rem;padding:.7rem .8rem;flex-wrap:wrap}
  .next-btn{width:100%;justify-content:center;margin-top:.25rem}
}

/* PC 宽屏自适应：内容区放宽，充分利用屏幕（1440px 起） */
@media(min-width:1440px){
  :root{--site-width:1320px}
}