/*
Theme Name: YE's 3C Child (極簡淨白)
Theme URI: https://yes3c.com.tw
Description: Astra 子主題 — 極簡淨白 (Apple-clean) 改版，依設計交接稿像素級還原。
Author: yes3c
Template: astra
Version: 1.0.0
Text Domain: yes3c-child
*/

/* ================= 設計 Token ================= */
:root{
  --ast-global-color-0:#0A84FF;--ast-global-color-1:#0069D9;--ast-global-color-2:#0B1220;
  --ast-global-color-3:#26333F;--ast-global-color-4:#FFFFFF;--ast-global-color-5:#F2F5F9;
  --ye-blue:#0A84FF;--ye-blue2:#5AC8FA;--ye-ink:#0B1220;--ye-text:#26333F;
  --ye-muted:#8A99AB;--ye-weak:#9CB0C6;--ye-nav:#3A485A;--ye-line:#EEF2F7;
  --ye-line2:#E4E9F0;--ye-soft:#F2F5F9;--ye-chipbg:#EAF3FF;--ye-ok:#16A34A;--ye-bad:#E0556E;
}
body,.ast-container,button,input,select,textarea,.entry-content{
  font-family:'Inter','PingFang TC','Noto Sans TC',-apple-system,"Microsoft JhengHei",sans-serif !important;
}
body{background:#fff;color:var(--ye-text);-webkit-font-smoothing:antialiased;}
.ye-ph{border-radius:16px;display:flex;align-items:center;justify-content:center;color:var(--ye-weak);font-size:13px;font-weight:600;background:linear-gradient(135deg,#E2ECF8,#F4F8FD);min-height:180px;}

/* ================= Header（沿用 Astra，美化 + Logo）================= */
.site-header,#masthead{position:sticky;top:0;z-index:99;}
.ast-primary-header-bar,.main-header-bar{
  background:rgba(255,255,255,.85)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--ye-line)!important;box-shadow:none!important;
}
.main-header-menu .menu-link,.ast-builder-menu .menu-link{font-size:15px!important;font-weight:600!important;color:var(--ye-nav)!important;}
.main-header-menu .menu-link:hover,.current-menu-item>.menu-link{color:var(--ye-blue)!important;}
/* Logo */
.site-branding .site-title,.ast-site-title-wrap .site-title{font-size:0!important;line-height:0!important;margin:0!important;}
.site-branding .site-title a,.ast-site-title-wrap .site-title a{display:inline-flex!important;align-items:center;gap:11px;text-decoration:none!important;}
.site-branding .site-title a::before,.ast-site-title-wrap .site-title a::before{
  content:"";width:40px;height:40px;flex-shrink:0;border-radius:11px;
  background:#0A84FF url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='34' cy='20' r='11' fill='white'/><path d='M30 40 C16 47 12 64 24 75 C20 64 27 55 40 53 C58 50 74 56 88 40 C76 47 64 45 55 47 C70 36 84 38 92 30 C78 28 66 31 56 38 C49 33 39 35 30 40 Z' fill='white'/></svg>") no-repeat center/26px 26px;
  box-shadow:0 4px 14px rgba(10,132,255,.32);
}
.site-branding .site-title a::after,.ast-site-title-wrap .site-title a::after{
  content:"YE's 3C";font-size:25px;font-weight:800;color:var(--ye-ink)!important;letter-spacing:-1px;white-space:nowrap;}

/* ================= 通用 ================= */
.ye-wrap{max-width:1240px;margin:0 auto;padding:40px 56px;}
.ye-chip{display:inline-flex;align-items:center;gap:6px;background:var(--ye-chipbg);color:var(--ye-blue);font-weight:700;font-size:13px;border-radius:999px;padding:6px 13px;text-decoration:none;}
.ye-h1{font-size:42px;font-weight:800;letter-spacing:-1.2px;line-height:1.16;margin:14px 0 18px;color:var(--ye-ink);}
.ye-h2{font-size:28px;font-weight:800;letter-spacing:-.5px;color:var(--ye-ink);margin:0;}
.ye-crumb{display:flex;align-items:center;gap:8px;color:var(--ye-weak);font-size:13px;font-weight:600;flex-wrap:wrap;}
.ye-crumb a{color:var(--ye-blue);text-decoration:none;}

/* ================= 卡片（共用 ye-card）================= */
.ye-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--ye-line);border-radius:16px;overflow:hidden;text-decoration:none;transition:transform .2s,border-color .2s;}
.ye-card:hover{transform:translateY(-2px);border-color:#D5E3F5;}
.ye-card-img{aspect-ratio:16/9;background:linear-gradient(135deg,#E2ECF8,#F4F8FD);overflow:hidden;}
.ye-card-img img{width:100%;height:100%;object-fit:cover;display:block;}
.ye-card-body{padding:16px 18px 18px;}
.ye-card-cat{font-size:12px;font-weight:700;color:var(--ye-blue);}
.ye-card-title{font-size:18px;font-weight:700;line-height:1.4;letter-spacing:-.3px;margin:7px 0 10px;color:var(--ye-ink);}
.ye-card-meta{display:flex;align-items:center;gap:10px;color:var(--ye-weak);font-size:12.5px;}
.ye-card-score{margin-left:auto;font-weight:800;color:var(--ye-blue);}

/* ================= 首頁 ================= */
.ye-eyebrow{font-size:13px;font-weight:700;letter-spacing:2px;color:var(--ye-blue);text-transform:uppercase;}
.ye-hero{display:grid;grid-template-columns:1.15fr .85fr;gap:36px;align-items:center;margin:10px 0 28px;}
.ye-hero-h1{font-size:46px;font-weight:800;letter-spacing:-1.5px;line-height:1.12;margin:14px 0 14px;}
.ye-hero-h1 a{color:var(--ye-ink);text-decoration:none;}
.ye-hero-sub{font-size:18px;color:#5A6A7C;line-height:1.6;margin:0 0 18px;}
.ye-hero-meta{display:flex;align-items:center;gap:14px;color:var(--ye-weak);font-size:14px;}
.ye-score-pill{background:var(--ye-ink);color:#fff;font-weight:800;border-radius:999px;padding:7px 14px;font-size:14px;}
.ye-hero-r{display:block;height:340px;border-radius:20px;overflow:hidden;background:linear-gradient(135deg,#E2ECF8,#F4F8FD);}
.ye-hero-r img{width:100%;height:100%;object-fit:cover;}
.ye-sec{margin:48px 0 0;}
.ye-sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;}
.ye-sec-head a{color:var(--ye-blue);font-weight:700;font-size:14px;text-decoration:none;}
.ye-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.ye-catgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.ye-catcard{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--ye-line);border-radius:14px;padding:20px 22px;text-decoration:none;transition:border-color .2s,transform .2s;}
.ye-catcard:hover{border-color:#D5E3F5;transform:translateY(-2px);}
.ye-catname{font-size:17px;font-weight:700;color:var(--ye-ink);}
.ye-catmore{font-size:13px;color:var(--ye-blue);font-weight:600;}

/* ================= 文章頁 ================= */
.ye-article{max-width:780px;}
.ye-lead{font-size:19px;color:#5A6A7C;line-height:1.6;margin:6px 0 0;}
.ye-byline{display:flex;align-items:center;gap:12px;margin:22px 0 0;color:var(--ye-muted);font-size:14px;}
.ye-av{width:38px;height:38px;border-radius:999px;background:linear-gradient(135deg,#0A84FF,#5AC8FA);flex-shrink:0;}
.ye-article-hero{margin:28px 0 8px;border-radius:20px;overflow:hidden;max-height:440px;}
.ye-article-hero img{width:100%;height:auto;display:block;}
.ye-body{font-size:17px;line-height:1.85;color:var(--ye-text);}
.ye-body p{margin:20px 0;}
.ye-body h2{font-size:26px;font-weight:800;letter-spacing:-.4px;margin:44px 0 6px;color:var(--ye-ink);}
.ye-body h3{font-size:20px;font-weight:800;margin:30px 0 4px;color:var(--ye-ink);}
.ye-body img{border-radius:16px;height:auto;}
.ye-body a{color:var(--ye-blue);text-decoration:none;border-bottom:1px solid rgba(10,132,255,.35);}
.ye-related{border-top:1px solid var(--ye-line);margin-top:48px;padding-top:30px;}
.ye-relgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:18px;}

/* 評測元件 */
.ye-scorebox{display:flex;align-items:center;gap:24px;background:#0B1220;color:#fff;border-radius:20px;padding:26px 30px;margin:34px 0;flex-wrap:wrap;}
.ye-scorebox .ye-big{font-size:54px;font-weight:800;line-height:1;}
.ye-scorebox .ye-lbl{font-size:13px;opacity:.7;margin-top:4px;}
.ye-bars{flex:1;min-width:240px;display:flex;flex-direction:column;gap:9px;}
.ye-bar{display:grid;grid-template-columns:72px 1fr 38px;align-items:center;gap:12px;font-size:13px;font-weight:600;color:rgba(255,255,255,.82);}
.ye-track{height:6px;background:rgba(255,255,255,.15);border-radius:99px;overflow:hidden;}
.ye-track i{display:block;height:100%;background:linear-gradient(90deg,#0A84FF,#5AC8FA);border-radius:99px;}
.ye-pc{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:30px 0;}
.ye-pcard{border:1px solid var(--ye-line);border-radius:16px;padding:22px;}
.ye-pcard h4{font-size:15px;font-weight:800;margin:0 0 12px;color:var(--ye-ink);}
.ye-pcard ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;}
.ye-pcard li{font-size:14.5px;color:#3A485A;display:flex;gap:9px;align-items:flex-start;line-height:1.5;}
.ye-pcard li::before{content:"";width:7px;height:7px;border-radius:999px;margin-top:7px;flex-shrink:0;background:var(--ye-ok);}
.ye-pcard.ye-con li::before{background:var(--ye-bad);}
.ye-spec{width:100%;border-collapse:collapse;margin:18px 0;font-size:15px;}
.ye-spec td{padding:13px 4px;border-bottom:1px solid var(--ye-line);}
.ye-spec td:first-child{color:var(--ye-muted);width:170px;font-weight:600;}
.ye-spec td:last-child{color:var(--ye-text);font-weight:600;}

/* ================= 分類頁 ================= */
.ye-chead{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:1px solid var(--ye-line);padding-bottom:26px;margin-bottom:28px;gap:20px;}
.ye-ctitle{font-size:40px;font-weight:800;letter-spacing:-1px;margin:8px 0 0;color:var(--ye-ink);}
.ye-cdesc{color:var(--ye-muted);font-size:15px;margin-top:8px;max-width:520px;line-height:1.6;}
.ye-ccount{color:var(--ye-muted);font-size:14px;font-weight:600;white-space:nowrap;}
.ye-clayout{display:grid;grid-template-columns:1fr 300px;gap:44px;}
.ye-cgrid{display:grid;grid-template-columns:1fr 1fr;gap:28px;}
.ye-side{display:flex;flex-direction:column;gap:24px;}
.ye-panel{border:1px solid var(--ye-line);border-radius:18px;padding:22px;}
.ye-panel h4{font-size:15px;font-weight:800;margin:0 0 16px;color:var(--ye-ink);}
.ye-pop{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #F4F7FA;align-items:flex-start;text-decoration:none;}
.ye-pop:last-child{border:0;}
.ye-pop .n{font-weight:800;color:var(--ye-blue);font-size:15px;flex-shrink:0;}
.ye-pop p{font-size:14px;font-weight:600;line-height:1.45;color:#27364B;margin:0;}
.ye-tagcloud{display:flex;flex-wrap:wrap;gap:8px;}
.ye-tagchip{font-size:12px;font-weight:600;color:var(--ye-nav);background:var(--ye-soft);border-radius:999px;padding:6px 12px;text-decoration:none;}
.ye-subcard{background:#0B1220;color:#fff;border-radius:18px;padding:24px;}
.ye-subcard h4{margin:0 0 6px;font-size:16px;font-weight:800;}
.ye-subcard p{margin:0;font-size:13px;opacity:.8;}
.ye-page{display:flex;justify-content:center;gap:8px;margin-top:40px;}
.ye-page .page-numbers{width:40px;height:40px;border-radius:10px;border:1px solid var(--ye-line2);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;color:var(--ye-nav);text-decoration:none;}
.ye-page .page-numbers.current{background:var(--ye-blue);color:#fff;border-color:var(--ye-blue);}

/* ================= Footer ================= */
.site-footer,.ast-small-footer{border-top:1px solid var(--ye-line)!important;background:#fff!important;color:var(--ye-weak)!important;}

/* ================= RWD ================= */
@media(max-width:921px){
  .ye-clayout{grid-template-columns:1fr;}
  .ye-hero{grid-template-columns:1fr;}
  .ye-hero-r{height:220px;}
}
@media(max-width:768px){
  .ye-wrap{padding:24px 18px;}
  .ye-grid3,.ye-relgrid,.ye-catgrid{grid-template-columns:1fr;}
  .ye-cgrid{grid-template-columns:1fr;}
  .ye-h1,.ye-hero-h1{font-size:27px;letter-spacing:-.8px;}
  .ye-ctitle{font-size:28px;}
  .ye-h2{font-size:21px;}
  .ye-pc{grid-template-columns:1fr;}
}
