/* Hongtao Journal v2 — shared design system */
:root {
  --canvas:#f8f7f4; --surface:#fff; --ink:#17242c; --muted:#64737a;
  --accent:#b83f47; --accent-soft:#f9e9e8; --line:#e5e5e1;
  --night:#192a32; --content:1180px;
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { margin:0; min-width:320px; background:var(--canvas); color:var(--ink); font:15px/1.75 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; overflow-wrap:break-word; }
a { color:inherit; text-decoration:none; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:3px solid #dc8085; outline-offset:3px; }
img { display:block; max-width:100%; }
button,input { font:inherit; }
button { cursor:pointer; }
.wrap { width:min(100% - 48px,var(--content)); margin-inline:auto; }
.topbar { background:var(--night); color:#cbd7da; font-size:12px; letter-spacing:.07em; }
.topbar .wrap { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:34px; }
.header { position:sticky; top:0; z-index:50; border-bottom:1px solid var(--line); background:rgba(255,255,255,.97); backdrop-filter:blur(16px); }
.header-inner { display:flex; align-items:center; gap:clamp(18px,2vw,28px); min-height:76px; }
.logo { display:inline-flex; flex:0 0 auto; align-items:center; gap:11px; white-space:nowrap; }
.logo-mark { display:grid; place-items:center; width:41px; height:41px; border-radius:13px 13px 5px 13px; background:var(--accent); color:#fff; font:800 24px/1 Georgia,serif; }
.logo-text { display:block; font-size:23px; font-weight:800; line-height:1.25; letter-spacing:.08em; }
.logo-sub { display:block; font-size:9px; line-height:1.4; letter-spacing:.13em; color:#8c999f; }
.nav { display:flex; flex:1; align-items:center; justify-content:center; gap:clamp(10px,1.6vw,23px); min-width:0; }
.nav a { font-size:13px; font-weight:650; white-space:nowrap; transition:color .2s; }
.nav a:hover,.nav a.active { color:var(--accent); }
.search { display:flex; flex:0 1 185px; min-width:0; align-items:center; border:1px solid var(--line); border-radius:30px; background:#fafafa; }
.search input { width:100%; min-width:0; border:0; outline:0; background:transparent; padding:9px 0 9px 14px; font-size:12px; }
.search button { border:0; background:transparent; color:var(--accent); padding:8px 13px; }
.menu-toggle { display:none; border:0; background:transparent; padding:7px 10px; font-size:24px; color:var(--ink); }
.eyebrow { display:inline-block; color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.hero { padding:42px 0 37px; }
.hero-grid { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); grid-template-rows:minmax(560px,auto); gap:18px; margin-top:17px; }
.hero-copy { display:flex; flex-direction:column; justify-content:space-between; min-width:0; padding:clamp(27px,3.6vw,49px); background:#eeeae3; border-radius:18px; }
.pill { display:inline-flex; width:max-content; max-width:100%; background:#fff; border-radius:24px; padding:6px 15px; font-size:11px; color:#a83d45; font-weight:750; }
.hero-title { font:700 clamp(35px,4.15vw,58px)/1.27 Georgia,"Songti SC","SimSun",serif; margin:20px 0; letter-spacing:-.025em; }
.hero-title br { display:none; }
.hero-description { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden; max-width:520px; font-size:14px; line-height:1.95; color:#58666a; }
.button-link { display:inline-flex; align-items:center; justify-content:center; align-self:flex-start; gap:9px; border:1px solid var(--accent); border-radius:40px; padding:10px 22px; color:var(--accent); font-size:13px; font-weight:800; transition:background .2s,color .2s; }
.button-link:hover { background:var(--accent); color:#fff; }
.hero-visual,.hero-side a { position:relative; display:block; overflow:hidden; border-radius:18px; background:#c7cccb; }
.hero-visual { min-height:0; }
.hero-visual img,.hero-side img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.hero-visual:hover img,.hero-side a:hover img,.story:hover img { transform:scale(1.035); }
.hero-overlay { position:absolute; inset:auto 0 0; padding:70px 32px 29px; background:linear-gradient(transparent,rgba(8,16,20,.87)); color:#fff; }
.hero-overlay h2 { margin:3px 0 5px; font-size:27px; line-height:1.4; }
.hero-overlay span,.hero-overlay small { font-size:13px; }
.hero-side { display:grid; grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.hero-side a { height:150px; }
.hero-side a::after { content:""; position:absolute; inset:35% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.65)); }
.hero-side a span { position:absolute; z-index:1; bottom:14px; left:21px; color:#fff; font-weight:750; }
.section { padding:43px 0 54px; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:23px; }
.section-head h2 { margin:5px 0 0; font-size:clamp(23px,2.4vw,31px); line-height:1.35; }
.section-head p { margin:0; font-size:12px; color:var(--muted); }
.categories { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:26px; }
.categories a { padding:7px 16px; border:1px solid #dededa; background:var(--surface); border-radius:28px; font-size:12px; transition:all .2s; }
.categories a:hover,.categories a.selected { color:#fff; border-color:var(--night); background:var(--night); }
.stories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:31px 19px; }
.story { display:block; min-width:0; }
.story[hidden] { display:none!important; }
.story .photo { aspect-ratio:1.56; overflow:hidden; border-radius:11px; background:#d9d7d2; }
.story .photo img { width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.story .meta { margin:12px 0 5px; font-size:12px; font-weight:750; color:var(--accent); }
.story h3 { margin:0 0 5px; font-size:19px; line-height:1.45; }
.story p { margin:0; font-size:13px; line-height:1.8; color:var(--muted); }
.ribbon { margin:16px 0 10px; padding:37px 0; background:var(--night); color:#fff; }
.ribbon-inner { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.ribbon h2 { margin:0; font:700 clamp(25px,3vw,35px)/1.5 Georgia,"Songti SC",serif; }
.ribbon p { margin:0; font-size:14px; line-height:2; color:#c4d0d3; }
.feature-grid { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); gap:clamp(25px,4vw,60px); align-items:center; }
.feature-grid img { width:100%; height:340px; object-fit:cover; border-radius:14px; }
.feature-grid h3 { margin:12px 0; font-size:clamp(23px,2.6vw,31px); line-height:1.45; }
.feature-grid p { color:var(--muted); line-height:2; }
.journal { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.journal article { border-top:2px solid var(--night); padding:18px 6px 12px; }
.journal h3 { margin:13px 0; font-size:18px; line-height:1.55; }
.journal p { color:var(--muted); font-size:13px; }
.journal a { font-size:13px; color:var(--accent); font-weight:750; }
.footer { margin-top:44px; padding:45px 0 18px; background:var(--night); color:#d5dfe1; }
.footer-grid { display:grid; grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)); gap:40px; }
.footer h3 { margin:0 0 13px; font-size:16px; color:#fff; }
.footer p,.footer a { color:#b4c3c6; font-size:13px; }
.footer p { max-width:550px; }
.footer .links { display:grid; gap:7px; }
.foot-bottom { margin-top:30px; padding-top:16px; border-top:1px solid #3b4b52; font-size:12px; color:#9aabb0; }
.breadcrumb { padding:26px 0 24px; font-size:12px; color:var(--muted); }
.breadcrumb a:hover { color:var(--accent); }
.article-layout { display:grid; grid-template-columns:minmax(0,1fr) 270px; align-items:start; gap:42px; }
.article-layout > article { min-width:0; background:#fff; border:1px solid var(--line); border-radius:16px; padding:clamp(22px,3.7vw,45px); }
.article-head h1,.page-title { margin:12px 0 16px; font-size:clamp(29px,3.4vw,44px); line-height:1.38; }
.article-head .intro { font-size:17px; line-height:1.85; color:var(--muted); }
.article-cover { width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; border-radius:12px; margin:26px 0 35px; }
.prose { max-width:760px; }
.prose h2 { margin:35px 0 15px; padding-left:15px; border-left:4px solid var(--accent); font-size:22px; line-height:1.5; }
.prose h3 { font-size:18px; }
.prose p { margin:0 0 20px; font-size:15px; line-height:2.12; color:#3d4b52; }
.sidebar { position:sticky; top:100px; min-width:0; padding:24px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.sidebar h2 { margin:0 0 15px; font-size:17px; }
.sidebar a { display:block; padding:11px 0; border-bottom:1px solid #edf0ef; font-size:13px; line-height:1.6; }
.sidebar a:hover { color:var(--accent); }
.page-intro { max-width:750px; color:var(--muted); }
.empty { display:none; padding:28px; border:1px dashed #bcc6ca; border-radius:12px; color:var(--muted); }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media(max-width:1100px) {
  .header-inner { gap:14px; }
  .nav { gap:11px; }
  .nav a { font-size:12px; }
  .search { flex-basis:145px; }
  .hero-grid { grid-template-rows:minmax(560px,auto); }
}
@media(max-width:900px) {
  .header-inner { min-height:69px; flex-wrap:wrap; }
  .menu-toggle { display:block; margin-left:auto; }
  .nav { display:none; order:4; flex:1 0 100%; flex-direction:column; align-items:stretch; gap:0; padding:0 0 14px; }
  .nav.open { display:flex; }
  .nav a { padding:11px 5px; border-bottom:1px solid var(--line); font-size:14px; }
  .search { margin-left:auto; flex:0 1 225px; }
  .article-layout { grid-template-columns:minmax(0,1fr) 220px; gap:18px; }
  .sidebar { padding:18px; }
}
@media(max-width:680px) {
  .wrap { width:min(100% - 32px,var(--content)); }
  .topbar .wrap { min-height:30px; }
  .topbar .wrap span:last-child { display:none; }
  .header-inner { min-height:65px; }
  .logo-text { font-size:20px; }
  .logo-mark { width:37px; height:37px; }
  .search { display:none; }
  .hero { padding:25px 0 15px; }
  .hero-grid { grid-template-columns:1fr; grid-template-rows:auto; gap:12px; margin-top:14px; }
  .hero-copy { padding:26px; }
  .hero-title { font-size:clamp(32px,8vw,44px); margin:12px 0; }
  .hero-description { -webkit-line-clamp:unset; display:block; font-size:13px; }
  .hero-copy .button-link { margin-top:10px; }
  .hero-visual { height:310px; }
  .hero-side { gap:12px; }
  .hero-side a { height:125px; }
  .hero-side a span { font-size:12px; left:12px; bottom:10px; }
  .hero-overlay { padding:70px 22px 20px; }
  .hero-overlay h2 { font-size:23px; }
  .section { padding:32px 0 39px; }
  .section-head { align-items:start; flex-direction:column; gap:6px; }
  .stories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:23px 13px; }
  .story h3 { font-size:16px; }
  .story p { font-size:12px; }
  .ribbon-inner,.feature-grid,.article-layout,.footer-grid { grid-template-columns:1fr; }
  .ribbon-inner { gap:15px; }
  .feature-grid { gap:24px; }
  .feature-grid img { height:260px; }
  .journal { grid-template-columns:1fr; gap:6px; }
  .article-layout > article { padding:22px 18px; }
  .article-cover { aspect-ratio:3/2; }
  .sidebar { position:static; }
  .footer-grid { gap:22px; }
  .breadcrumb { padding:17px 0; }
}
@media(max-width:390px) {
  .stories { grid-template-columns:1fr; }
  .story .photo { aspect-ratio:1.6; }
  .hero-visual { height:270px; }
}
@media(prefers-reduced-motion:reduce) { html {scroll-behavior:auto} *,*::before,*::after { transition:none!important; } }
