:root{
  --film-black:#161513;
  --deep-navy:#1c2333;
  --deep-navy2:#141a28;
  --silver:#c9c6bf;
  --warm:#f7f5f0;
  --choice-yellow:#d9a441;
  --ai-cyan:#3ea8ad;
  --story-purple:#6b5a8e;
  --dim-red:#8a3b32;
  --text:#1e1c19;
  --muted:#5c5952;
  --border:#e4e1d9;
  --card:#ffffff;
  --bg:#f7f6f3;
}
*{box-sizing:border-box;}
body{margin:0;font-family:"PingFang SC","Microsoft YaHei","Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.75;font-size:16px;}
a{color:var(--deep-navy);text-decoration:none;}
a:hover{text-decoration:underline;}
img,svg{max-width:100%;display:block;}
.wrap{max-width:1200px;margin:0 auto;padding:0 22px;}

header.site-header{background:var(--film-black);border-bottom:1px solid #2a2825;position:sticky;top:0;z-index:60;}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 0;flex-wrap:wrap;gap:10px;}
.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:800;color:#fff;letter-spacing:.5px;}
.brand .mark{width:36px;height:36px;border-radius:6px;background:linear-gradient(135deg,var(--dim-red),var(--choice-yellow));display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:900;}
nav.mainnav ul{list-style:none;display:flex;gap:18px;margin:0;padding:0;flex-wrap:wrap;}
nav.mainnav a{font-size:13.5px;color:#c9c6bf;font-weight:600;}
nav.mainnav a.active,nav.mainnav a:hover{color:var(--choice-yellow);text-decoration:none;}
.header-cta{display:flex;gap:10px;}
.btn{display:inline-block;padding:9px 16px;border-radius:5px;font-size:13.5px;font-weight:700;}
.btn-primary{background:var(--dim-red);color:#fff;}
.btn-primary:hover{background:#a3453a;text-decoration:none;}
.btn-ghost{border:1px solid #3a3835;color:#e3e0d8;}
.btn-ghost:hover{border-color:var(--choice-yellow);text-decoration:none;}

.breadcrumb{font-size:12.5px;color:var(--muted);padding:12px 0;}
.breadcrumb a{color:var(--muted);}

.hero{background:linear-gradient(180deg,var(--deep-navy2),var(--deep-navy) 65%,#182034);color:#eceadf;padding:40px 0 30px;}
.hero h1{font-size:25px;margin:0 0 12px;color:#fff;}
.hero p.lead{font-size:15px;color:#b9b6ac;max-width:900px;margin:0;}
.hero .tagline{font-size:12.5px;letter-spacing:2px;color:var(--choice-yellow);text-transform:uppercase;margin-bottom:10px;font-weight:700;}

main{padding:32px 0 54px;}
section.block{margin-bottom:38px;}
section.block h2{font-size:20px;border-left:4px solid var(--dim-red);padding-left:10px;margin:0 0 14px;color:var(--deep-navy2);}
section.block h3{font-size:16.5px;margin:18px 0 8px;color:var(--deep-navy);}
section.block p{margin:0 0 12px;color:#2b2926;}

.grid{display:grid;gap:16px;}
.grid-2{grid-template-columns:1fr 1fr;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
@media(max-width:900px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr 1fr;}}
@media(max-width:640px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}nav.mainnav ul{gap:10px;}}

.card{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:16px;}
.card h4{margin:0 0 6px;font-size:15px;}
.card .meta{font-size:12px;color:var(--muted);margin-bottom:6px;}
.card p{font-size:13.5px;color:#4c4941;margin:0;}

.taglist{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0;}
.tag{font-size:12.5px;background:#efece4;color:var(--deep-navy2);border-radius:14px;padding:4px 10px;}

table.plain{width:100%;border-collapse:collapse;font-size:13.5px;}
table.plain th,table.plain td{border:1px solid var(--border);padding:8px 10px;text-align:left;}
table.plain th{background:#f0eee7;}

.faq dt{font-weight:700;margin-top:14px;color:var(--deep-navy2);}
.faq dd{margin:4px 0 0;color:#3d3a35;}

.related{background:#efece4;border-radius:8px;padding:16px 18px;}
.related ul{margin:8px 0 0;padding-left:18px;}

.col3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
@media(max-width:900px){.col3{grid-template-columns:1fr;}}
.col-head{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;font-weight:800;margin-bottom:10px;padding-bottom:6px;border-bottom:2px solid var(--border);}
.col-head.trend{color:var(--dim-red);border-color:var(--dim-red);}
.col-head.design{color:var(--choice-yellow);border-color:var(--choice-yellow);}
.col-head.ai{color:var(--story-purple);border-color:var(--story-purple);}
.col-head.tech{color:var(--ai-cyan);border-color:var(--ai-cyan);}

.problemgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
@media(max-width:768px){.problemgrid{grid-template-columns:1fr;}}
.problemcard{background:#fff;border:1px solid var(--border);border-left:4px solid var(--dim-red);border-radius:6px;padding:14px 16px;}
.problemcard .q{font-weight:700;font-size:14px;margin-bottom:6px;}
.problemcard .a{font-size:13.5px;color:var(--muted);}
.problemcard a{font-weight:600;}

footer.site-footer{background:var(--film-black);color:#c9c6bf;padding:36px 0 22px;margin-top:44px;}
footer.site-footer a{color:#c9c6bf;}
footer.site-footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;}
footer.site-footer h5{font-size:13.5px;margin:0 0 10px;color:#fff;}
footer.site-footer ul{list-style:none;margin:0;padding:0;font-size:12.5px;line-height:2;}
footer.site-footer .bottom{border-top:1px solid #2a2825;margin-top:20px;padding-top:14px;font-size:12px;color:#8f8c85;}
@media(max-width:900px){footer.site-footer .cols{grid-template-columns:1fr 1fr;}}

.article-body h2{font-size:19px;margin:26px 0 10px;color:var(--deep-navy2);}
.article-body h3{font-size:16px;margin:16px 0 8px;}
.article-body p{color:#2a2723;margin:0 0 13px;}
.article-body ul,.article-body ol{color:#2a2723;margin:0 0 13px;padding-left:20px;}
.article-body blockquote{border-left:3px solid var(--choice-yellow);margin:0 0 14px;padding:6px 16px;color:#4a463e;font-style:italic;background:#f4f1e9;}
.article-meta{font-size:12.5px;color:var(--muted);margin-bottom:18px;}
.notice{background:#fbf3e7;border:1px solid #e8c99a;color:#6b4a12;border-radius:6px;padding:12px 16px;font-size:13px;margin:0 0 20px;}
.notice.blue{background:#eceafa;border-color:#c7c0e6;color:#2c2650;}

figure.diagram{margin:0 0 20px;text-align:center;}
figure.diagram figcaption{font-size:12.5px;color:var(--muted);margin-top:8px;}

/* demo widget */
#demo-scene{max-width:100%;overflow-x:hidden;}
#demo-frame{background:var(--deep-navy2);color:#eceadf;border-radius:10px;padding:22px;margin-bottom:16px;min-height:150px;}
#demo-frame p{color:#e3e0d8;font-size:14.5px;margin:0 0 10px;}
.demo-choices{display:flex;flex-wrap:wrap;gap:10px;}
.demo-choices button{flex:1 1 160px;background:var(--choice-yellow);border:none;color:#2b2410;font-weight:700;padding:12px 14px;border-radius:6px;cursor:pointer;font-size:14px;min-width:120px;}
.demo-choices button:hover{background:#c4922f;}
#demo-restart{margin-top:14px;background:none;border:1px solid var(--border);padding:8px 16px;border-radius:6px;cursor:pointer;font-size:13px;}
