/*
Theme Name: Zhongyi Knowledge Archive
Theme URI: https://zhongyi.com.tw/
Author: Zhongyi
Description: 娛樂平台知識型資料庫，首頁可於外觀自訂調整，平台資料與文章可於後台維護。
Version: 1.0.8
Requires PHP: 7.4
Text Domain: zhongyi
*/
:root{--bg:#0b121c;--panel:#142131;--panel2:#192b3d;--text:#eef4f6;--muted:#a4b3c2;--accent:#b6dbcc;--line:#304253}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.8 system-ui,-apple-system,'Noto Sans TC',sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}.wrap{width:min(1160px,92%);margin:auto}.top{position:sticky;top:0;z-index:20;background:#0b121cf5;border-bottom:1px solid var(--line)}.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px}.brand{font-size:21px;font-weight:800;letter-spacing:.04em}.brand small{display:block;font-size:10px;letter-spacing:.18em;color:var(--accent)}.navlinks{display:flex;gap:24px;list-style:none;padding:0;margin:0;flex-wrap:wrap}.navlinks li{list-style:none}.navlinks a{font-size:14px;color:#d2dde5}.menu-toggle{display:none}.hero{padding:105px 0 90px;background:radial-gradient(circle at 75% 35%,#24434b 0,transparent 45%),linear-gradient(120deg,#101b29,#0b121c)}.eyebrow{color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.22em;text-transform:uppercase}.hero h1{font-size:clamp(42px,6vw,78px);line-height:1.22;letter-spacing:-.035em;margin:18px 0;max-width:850px}.hero p{max-width:670px;color:#c4d0db;font-size:18px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-block;padding:12px 22px;background:var(--accent);color:#10212b!important;font-weight:800;border-radius:5px}.btn.alt{background:transparent;color:var(--text)!important;border:1px solid var(--line)}section{padding:76px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-head h2{font-size:clamp(27px,4vw,42px);line-height:1.3;margin:10px 0}.section-head p{color:var(--muted);max-width:570px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{border:1px solid var(--line);background:var(--panel);padding:26px;border-radius:8px;min-width:0}.card:hover{border-color:#698e88}.card h3{font-size:22px;line-height:1.4;margin:12px 0}.card p{color:#b7c6d2}.tag{font-size:11px;letter-spacing:.1em;color:var(--accent);font-weight:800}.card .more{color:var(--accent);font-weight:700}.soft{background:#101c29}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.step{border-top:1px solid #6d9a92;padding:22px 4px}.step b{font-size:13px;color:var(--accent)}.step h3{margin:8px 0}.step p{color:var(--muted)}.faq details{background:var(--panel);border:1px solid var(--line);padding:18px 22px;margin-bottom:10px;border-radius:6px}.faq summary{cursor:pointer;font-weight:700}.faq p{color:var(--muted)}.notice{border-left:3px solid var(--accent);padding:20px 24px;background:#192c35;color:#d6e3e5}.footer{border-top:1px solid var(--line);padding:36px 0;color:var(--muted);font-size:13px}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.content{padding:65px 0;max-width:880px}.content h1{font-size:clamp(32px,5vw,54px);line-height:1.25}.content h2{margin-top:38px}.content p,.content li{color:#cad5df}.content a{text-decoration:underline;color:var(--accent)}.content img{max-width:100%;height:auto}.archive-head{padding:65px 0 30px}.archive-head h1{font-size:48px;margin:12px 0}.meta{color:var(--muted);font-size:13px}.edit-note{color:var(--accent);font-size:12px;margin-top:10px}.pagination{margin:30px 0}.pagination a,.pagination span{margin-right:12px}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}@media(max-width:800px){.menu-toggle{display:block;background:none;border:1px solid var(--line);color:white;padding:8px 12px}.navlinks{display:none;position:absolute;left:0;right:0;top:77px;background:#0e1a27;padding:20px 5%;flex-direction:column}.navlinks.open{display:flex}.grid,.steps{grid-template-columns:1fr}.hero{padding:70px 0}.section-head{display:block}.nav{min-height:76px}}
/* V1.0.1: compact mark beside existing title, never expand header */
.top .brand{display:inline-flex;align-items:center;gap:10px;min-width:0;flex:0 1 auto;line-height:1.3;text-decoration:none}
.top .brand-mark{display:block;width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;object-fit:contain;flex:none;border:0;box-shadow:none}
.top .brand-copy{display:flex;flex-direction:column;min-width:0}
.top .brand-name{display:block;font-size:20px;font-weight:800;white-space:nowrap}
.top .brand small{display:block;margin-top:5px;font-size:10px;white-space:nowrap}
@media(max-width:800px){.top .brand-mark{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important}.top .brand-name{font-size:16px}.top .brand small{font-size:8px;letter-spacing:.08em}.top .nav{gap:8px}}
@media(max-width:380px){.top .brand-name{font-size:14px}.top .brand small{font-size:7px}}

/* V1.0.2: balanced knowledge-site hero typography */
.hero h1{font-size:clamp(30px,3.6vw,49px);line-height:1.36;letter-spacing:-.025em;max-width:1000px;overflow-wrap:anywhere;margin:0 0 22px}
.hero p{max-width:790px;font-size:17px;line-height:1.95}
.hero{padding:78px 0 75px}
@media(max-width:800px){.hero h1{font-size:clamp(29px,6vw,39px);line-height:1.38}.hero p{font-size:16px}.hero{padding:58px 0 62px}}
@media(max-width:420px){.hero h1{font-size:29px}}

/* V1.0.3 long-form content readability */
.steps .step p{line-height:1.9;font-size:15px}.faq details p{line-height:1.95;font-size:15px;max-width:1000px}.notice{line-height:2;font-size:15px}.footer-inner{align-items:flex-start;gap:28px}.brand-copy small{font-size:10px;letter-spacing:.06em}

/* V1.0.4 — two-column FAQ, independently sized accordion cards */
#faq .faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start}
#faq .faq details{min-width:0;margin:0;padding:19px 22px;align-self:start}
#faq .faq summary{line-height:1.65;overflow-wrap:anywhere}
#faq .faq details p{margin:14px 0 0;line-height:1.9}
@media(max-width:700px){#faq .faq{grid-template-columns:minmax(0,1fr);gap:12px}}

/* V1.0.7: platform single featured image, centered and proportional */
body.single-platform .content > img.wp-post-image,
body.single-platform .content > .post-thumbnail img,
body.single-platform .content > .featured-image img,
body.single-platform .content > .entry-thumbnail img {
  display:block;
  width:auto !important;
  max-width:min(480px,100%) !important;
  height:auto !important;
  max-height:360px;
  object-fit:contain;
  margin:25px auto 35px !important;
  border-radius:12px;
}
@media(max-width:768px){
  body.single-platform .content > img.wp-post-image,
  body.single-platform .content > .post-thumbnail img,
  body.single-platform .content > .featured-image img,
  body.single-platform .content > .entry-thumbnail img {
    max-width:100% !important;
    max-height:280px;
    margin:18px auto 25px !important;
  }
}
