/*
Theme Name: YS TACKLE 2
Description: 雍升企業 天龍 TENRYU 台灣代理店網站
Version: 2.0.0
Text Domain: ystackle2
*/

:root{
  --ink:#15191d; --ink-2:#4a535b; --line:#e3e6e8; --paper:#ffffff; --paper-2:#f4f6f7;
  --ys:#189BD7; --ys-deep:#0d5f87; --tenryu:#c4161c;
  --wrap:1200px; --gut:clamp(16px,4vw,40px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Noto Sans TC",sans-serif;color:var(--ink);background:var(--paper);line-height:1.75;font-size:16px;-webkit-font-smoothing:antialiased}
body,p,h1,h2,h3,h4,li,dd,dt,figcaption,div,span,a{word-break:normal;line-break:strict;overflow-wrap:anywhere;text-wrap:pretty}
@supports (word-break:auto-phrase){body,p,h1,h2,h3,h4,li,dd,dt,figcaption,div,span,a{word-break:auto-phrase}}
.nw{white-space:nowrap}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gut)}
.en{font-family:"Oswald",sans-serif;letter-spacing:.08em;text-transform:uppercase}

/* draft ribbon */
.draft{background:#fff7d6;color:#6b5600;font-size:13px;text-align:center;padding:6px var(--gut)}

/* header */
header{position:absolute;top:0;left:0;right:0;z-index:20;color:#fff}
.hd{display:flex;align-items:center;justify-content:space-between;gap:24px;height:76px}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:34px;filter:brightness(0) invert(1)}
.brand b{font-family:"Oswald";font-weight:600;letter-spacing:.12em;font-size:19px;line-height:1}
.brand small{display:block;font-size:11px;letter-spacing:.2em;opacity:.85;margin-top:3px}
nav ul{display:flex;gap:28px;list-style:none;font-size:15px;font-weight:500}
nav a{padding:6px 0;border-bottom:2px solid transparent}
nav a:hover{border-color:#fff}
.hd-act{display:flex;gap:10px;align-items:center}
.btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:10px 20px;font-weight:500;font-size:15px;transition:.2s}
.btn-line{background:#06C755;color:#fff}
.btn-ghost{border:1px solid rgba(255,255,255,.7);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.sns{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.6);display:grid;place-items:center;color:#fff}
.sns:hover{background:rgba(255,255,255,.12)}
.hcart{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.6);display:grid;place-items:center}
.menu-btn{display:none}

/* hero */
.hero{position:relative;height:min(92vh,860px);min-height:560px;overflow:hidden;color:#fff;background:#0b2233}
.slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.6s ease;transform:scale(1.04)}
.slide.on{opacity:1;animation:drift 9s ease-out forwards}
@keyframes drift{to{transform:scale(1)}}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,18,28,.62) 0%,rgba(5,18,28,.28) 42%,rgba(5,18,28,0) 62%),linear-gradient(180deg,rgba(5,20,30,.45) 0%,rgba(5,20,30,0) 28%,rgba(5,20,30,0) 55%,rgba(5,20,30,.55) 100%)}
.hero-copy{position:absolute;left:0;right:0;bottom:clamp(48px,9vh,96px);z-index:5}
.tag{display:inline-flex;align-items:center;gap:10px;font-size:14px;letter-spacing:.12em;background:rgba(0,0,0,.35);backdrop-filter:blur(4px);padding:6px 14px;border-radius:4px}
.tag i{width:8px;height:8px;border-radius:50%;background:var(--tenryu);display:block}
.hero h1{font-family:"Noto Serif TC",serif;font-weight:700;font-size:clamp(34px,5.4vw,64px);line-height:1.3;margin:18px 0 14px;text-shadow:0 2px 24px rgba(0,0,0,.3)}
.hero p{max-width:34em;font-size:clamp(15px,1.5vw,18px);opacity:.95}
.hero .cta{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}
.btn-w{background:#fff;color:var(--ink)}
.dots{position:absolute;right:var(--gut);bottom:32px;z-index:6;display:flex;gap:8px}
.dots b{width:28px;height:3px;background:rgba(255,255,255,.4);display:block}
.dots b.on{background:#fff}

/* proof */
.proof{background:var(--ink);color:#fff}
.proof .wrap{display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;padding-top:22px;padding-bottom:22px}
.proof .yr{font-family:"Oswald";font-size:28px;color:#fff;line-height:1}
.proof .yr small{display:block;font-size:12px;letter-spacing:.2em;opacity:.6;margin-top:4px}
.proof p{font-size:15px;opacity:.92}
.proof a{font-size:13px;opacity:.75;border-bottom:1px solid rgba(255,255,255,.4);white-space:nowrap}

/* section heads */
section.blk{padding:clamp(64px,9vw,112px) 0}
.sh{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:36px}
.sh .en{font-size:14px;color:var(--ys-deep);display:block;margin-bottom:6px}
.sh h2{font-family:"Noto Serif TC",serif;font-size:clamp(26px,3vw,36px);line-height:1.35;display:inline-block;padding-bottom:10px;border-bottom:2px solid var(--ink)}
.sh .more{font-size:14px;color:var(--ink-2);white-space:nowrap}

/* categories */
.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cat{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:6px;color:#fff;background:#123}
.cat:first-child{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
.cat img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.cat:hover img{transform:scale(1.05)}
.cat::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.6))}
.cat div{position:absolute;left:18px;bottom:14px;z-index:2}
.cat .en{font-size:13px;opacity:.85}
.cat h3{font-size:20px;font-weight:700;line-height:1.3}
.cat:first-child h3{font-size:30px}
.cat.wide{grid-column:span 2;aspect-ratio:auto;height:220px}
.cat.gear{background:var(--paper-2);color:var(--ink)}
.cat.gear::after{display:none}
.cat.gear div{top:50%;transform:translateY(-50%);bottom:auto;left:28px}
.cat.gear h3{font-size:24px}
.cat .sub{font-size:14px;color:var(--ink-2);margin-top:6px}

/* featured */
.feat{background:var(--paper-2)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:#fff;border-radius:6px;overflow:hidden;border:1px solid var(--line);display:flex;flex-direction:column}
.card .ph{aspect-ratio:16/10;background:#eef1f3;display:grid;place-items:center;color:#56616a;font-size:13px}
.card .bd{padding:18px 18px 20px;display:flex;flex-direction:column;gap:6px;flex:1}
.card .en{font-size:12px;color:var(--tenryu)}
.card h3{font-size:18px;line-height:1.4}
.card .sp{font-size:13px;color:var(--ink-2)}
.card .pr{margin-top:auto;padding-top:10px;display:flex;justify-content:space-between;align-items:center;font-size:14px}
.card .pr b{font-family:"Oswald";font-size:18px;color:var(--ink-2)}
.card .pr span{color:var(--ys-deep);font-weight:500}

/* genuine */
.gen{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(32px,5vw,72px);align-items:center}
.gen .img{border-radius:6px;overflow:hidden;aspect-ratio:4/3}
.gen .img img{width:100%;height:100%;object-fit:cover}
.gen ol{list-style:none;display:grid;gap:22px;margin-top:8px}
.gen li{display:grid;grid-template-columns:48px 1fr;gap:16px}
.gen li b{font-family:"Oswald";font-size:30px;color:var(--ys);line-height:1}
.gen li h3{font-size:18px;margin-bottom:2px}
.gen li p{color:var(--ink-2);font-size:15px}

/* brand band */
.band{position:relative;color:#fff;min-height:440px;display:flex;align-items:center;background:url(img/hero12.jpg) center/cover}
.band::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,14,22,.78),rgba(6,14,22,.2))}
.band .wrap{position:relative;width:100%}
.band .since{font-family:"Oswald";letter-spacing:.3em;font-size:14px;color:#fff;opacity:.8}
.band h2{font-family:"Noto Serif TC",serif;font-size:clamp(28px,3.4vw,42px);line-height:1.4;margin:10px 0 16px}
.band p{max-width:30em;opacity:.9}
.band .btn{margin-top:24px}
.mark{display:inline-block;background:var(--tenryu);color:#fff;font-family:"Oswald";letter-spacing:.14em;font-size:13px;padding:3px 10px;border-radius:2px}

/* b2b */
.b2b-g{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.b2b{border:1px solid var(--line);border-radius:6px;padding:28px 26px;display:flex;flex-direction:column;gap:10px}
.b2b .en{font-size:13px;color:var(--ys-deep)}
.b2b h3{font-size:21px}
.b2b p{color:var(--ink-2);font-size:15px;flex:1}
.b2b-cta{margin-top:28px;display:flex;justify-content:center}
.b2b-one{flex-direction:row;align-items:center;gap:28px}
.b2b-one h3{flex:none}
.b2b-one p{flex:1}
.b2b-one .btn{flex:none}
.btn-ys{background:var(--ys-deep);color:#fff;padding:14px 32px;font-size:16px}

/* news */
.news{background:var(--paper-2)}
.nl{list-style:none;border-top:1px solid var(--line)}
.nl li{display:grid;grid-template-columns:96px 64px 1fr;gap:16px;align-items:center;padding:18px 4px;border-bottom:1px solid var(--line)}
.nl time{font-family:"Oswald";color:var(--ink-2);letter-spacing:.06em}
.nl .k{font-size:12px;border:1px solid var(--ink-2);color:var(--ink-2);border-radius:2px;text-align:center;padding:1px 0}

/* footer */
footer{background:#0e1317;color:#cfd5da;font-size:14px}
.ft{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding:56px 0 36px}
.ft img{height:40px;filter:brightness(0) invert(1);margin-bottom:14px}
.ft .fh{color:#fff;font-size:14px;margin-bottom:10px}
.ft ul{list-style:none;display:grid;gap:6px}
.ft a:hover{color:#fff}
.ft-sns{display:grid;gap:8px}
.ft-sns a{display:inline-flex;align-items:center;gap:8px}
.shopee{display:inline-block;margin-top:10px;font-size:13px;color:#9aa4ab;border-bottom:1px dotted #6c767d}
.copy{border-top:1px solid #222a30;padding:18px 0 28px;font-size:12px;color:#7d878f;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}


/* news */
.news-g{display:grid;grid-template-columns:1fr 320px;gap:clamp(24px,4vw,48px);align-items:start}
.nl li{align-items:start}
.nt{display:grid;gap:6px;min-width:0}
.nt>a{font-weight:500}
.nt>a:hover{color:var(--ys-deep)}
.nl .ex{font-size:14px;color:var(--ink-2);background:#fff;border-radius:4px;padding:10px 14px}
.nl .src{font-size:13px;color:var(--ink-2)}
.nl .src a{color:var(--ys-deep);border-bottom:1px solid currentColor}
.nl .k.tr{border-color:var(--tenryu);color:var(--tenryu)}
.tch{background:#fff;border:1px solid var(--line);border-radius:6px;padding:24px 22px;display:grid;gap:12px}
.tch h3{font-size:18px}
.tch p{font-size:14px;color:var(--ink-2);margin-bottom:4px}
.tch-a{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:6px;transition:.2s}
.tch-a:hover{border-color:var(--ink);}
.tch-a svg{flex:none;color:var(--tenryu)}
.tch-a>span{display:grid;line-height:1.4;min-width:0}
.tch-a b{font-size:15px}
.tch-a small{font-size:12px;color:var(--ink-2)}

/* responsive */
@media (max-width:1020px){
  .news-g{grid-template-columns:1fr}
  nav,.hd-act .btn-ghost{display:none}
  .menu-btn{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.6);border-radius:50%;color:#fff;background:none;font-size:18px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .ft{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .hd-act .btn-line{display:none}
  .cats{grid-template-columns:1fr 1fr}
  .cat:first-child{grid-column:span 2;grid-row:auto;aspect-ratio:16/10}
  .cat.wide{grid-column:span 1;height:auto;aspect-ratio:4/3}
  .gen{grid-template-columns:1fr}
  .b2b-g{grid-template-columns:1fr}
  .b2b-one{flex-direction:column;align-items:flex-start;gap:10px}
  .proof .wrap{grid-template-columns:1fr;gap:10px}
  .nl li{grid-template-columns:96px 56px 1fr;column-gap:12px;row-gap:6px}
  .nl li .nt{grid-column:1/-1}
  .nl li{justify-content:start}
  .sh{flex-direction:column;align-items:flex-start;gap:10px}
}
@media (max-width:480px){
  .hd-act .sns{display:none}
  .cards{grid-template-columns:1fr 1fr;gap:10px}
  .card .bd{padding:12px}
  .card h3{font-size:15px}
  .card .pr{flex-direction:column;align-items:flex-start;gap:2px}
  .cat .sub{display:none}
  .ft{grid-template-columns:1fr}
  .brand small{display:none}
}

/* ===== multi-page additions ===== */
body.solid header{position:relative;top:0;background:#0e1317}
nav a.on{border-color:#fff}
.mnav{display:none}
body.mopen .mnav{display:block;background:#0e1317;border-top:1px solid #222a30}
.mnav ul{list-style:none;padding:8px var(--gut) 16px}
.mnav a{display:block;padding:12px 0;color:#fff;border-bottom:1px solid #222a30;font-size:16px}
body.over.mopen header{background:#0e1317}

/* featured / series cards */
a.card{color:inherit;transition:box-shadow .2s,transform .2s}
a.card:hover{box-shadow:0 8px 24px rgba(10,20,30,.08);transform:translateY(-2px)}
.card .ph{aspect-ratio:16/10;background:#e9edf0;overflow:hidden;display:block}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .bd .en{color:var(--ys-deep);font-size:12px;letter-spacing:.04em;text-transform:none;font-family:"Noto Sans TC",sans-serif;font-weight:500}
.card .go{margin-top:auto;padding-top:8px;font-size:14px;color:var(--ys-deep);font-weight:500}
.more-link{display:inline-block;margin-top:22px;font-size:15px;color:var(--ys-deep);font-weight:500}

/* page hero */
.phero{position:relative;color:#fff;background-size:cover;background-position:center;padding:clamp(56px,9vw,104px) 0 clamp(40px,6vw,64px)}
.phero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,14,22,.72),rgba(6,14,22,.25))}
.phero .wrap{position:relative}
.phero h1{font-family:"Noto Serif TC",serif;font-size:clamp(30px,4vw,46px);line-height:1.3;margin:6px 0 10px}
.phero .en{font-family:"Oswald";letter-spacing:.14em;font-size:14px;opacity:.85}
.phero .lead{max-width:36em;opacity:.92}
.crumb{font-size:13px;opacity:.85;margin-bottom:18px}
.crumb a{border-bottom:1px solid rgba(255,255,255,.4)}

/* category tiles on products index */
.ctiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.ctile{position:relative;aspect-ratio:4/3;border-radius:6px;overflow:hidden;color:#fff}
.ctile img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.ctile:hover img{transform:scale(1.04)}
.ctile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(0,0,0,.62))}
.ctile div{position:absolute;left:20px;bottom:16px;z-index:2}
.ctile .en{font-family:"Oswald";letter-spacing:.1em;font-size:13px;opacity:.85;text-transform:uppercase}
.ctile h3{font-size:24px;line-height:1.3}
.ctile small{font-size:13px;opacity:.85}

.subnav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:36px}
.subnav a{border:1px solid var(--line);border-radius:999px;padding:6px 16px;font-size:14px;background:#fff}
.subnav a.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.gh{font-family:"Noto Serif TC",serif;font-size:22px;margin:40px 0 18px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.blk .gh:first-of-type{margin-top:0}
.cards+.gh{margin-top:48px}

/* series detail */
.shero{background:var(--paper-2);padding:28px 0 56px}
.shero .crumb{opacity:1;color:var(--ink-2)}
.shero .crumb a{border-color:var(--line)}
.sh-g{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(24px,4vw,56px);align-items:center}
.sh-img{background:#fff;border-radius:6px;overflow:hidden;border:1px solid var(--line)}
.sh-img img{width:100%;height:auto}
.sh-t .en{font-size:13px;color:var(--ys-deep);font-weight:500}
.sh-t h1{font-family:"Oswald";font-weight:600;font-size:clamp(30px,3.6vw,44px);line-height:1.15;letter-spacing:.02em;margin:6px 0 4px}
.ja-name{color:var(--ink-2);font-size:15px}
.newmark{display:inline-block;margin-top:10px;background:var(--tenryu);color:#fff;font-size:13px;padding:3px 10px;border-radius:2px}
.tagline{font-family:"Noto Serif TC",serif;font-size:20px;line-height:1.6;margin:16px 0}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.chips li{font-size:13px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px 12px}
.chips.tech li{border-color:var(--tenryu);color:var(--tenryu)}
.buy{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.buy .btn{padding:12px 26px}
.note{font-size:13px;color:var(--ink-2);margin-top:10px}
.sdetail .txt,.sdetail .feat-t{max-width:52em}
.sdetail .txt p{margin-bottom:10px;font-size:16px}
.sdetail h4{font-size:16px;margin:20px 0 6px}
.sdetail ul{padding-left:1.2em;margin-bottom:8px}
.sdetail li{margin-bottom:4px;color:var(--ink-2)}
.sdetail h3.sub{font-size:18px;margin:28px 0 8px}
.janote{display:inline-block;font-size:13px;background:#fff7d6;color:#6b5600;padding:4px 12px;border-radius:4px;margin-bottom:16px}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.gal figure{background:var(--paper-2);border-radius:6px;overflow:hidden}
.gal img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#fff}
.gal figcaption{font-size:13px;color:var(--ink-2);padding:8px 12px}
.gal.models{margin-top:18px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.gal.models img{object-fit:contain;aspect-ratio:3/1}
.yt{margin:36px 0 0;max-width:820px;aspect-ratio:16/9}
.yt iframe{width:100%;height:100%;border:0;border-radius:6px}
.tbl{overflow-x:auto;border:1px solid var(--line);border-radius:6px;-webkit-overflow-scrolling:touch}
.tbl table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}
.tbl th,.tbl td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left}
.tbl thead th{background:var(--ink);color:#fff;font-weight:500;font-size:13px;position:sticky;top:0}
.tbl tbody th{font-family:"Oswald";font-weight:500;letter-spacing:.02em;background:#fff;position:sticky;left:0}
.tbl tbody tr:nth-child(even) td,.tbl tbody tr:nth-child(even) th{background:var(--paper-2)}
.stk{font-style:normal;font-size:11px;color:var(--tenryu);border:1px solid var(--tenryu);border-radius:2px;padding:0 4px;margin-left:6px;font-family:"Noto Sans TC"}
.src{font-size:13px;color:var(--ink-2);margin-top:18px}
.src a{color:var(--ys-deep);border-bottom:1px solid currentColor}

/* text pages */
.prose{max-width:46em}
.prose h2{font-family:"Noto Serif TC",serif;font-size:24px;margin:44px 0 12px}
.prose h2:first-child{margin-top:0}
.prose p{margin-bottom:12px}
.prose ul,.prose ol{padding-left:1.3em;margin-bottom:12px}
.prose li{margin-bottom:6px}
.tbd{background:#fff7d6;color:#6b5600;padding:1px 6px;border-radius:3px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,56px);align-items:center;margin-bottom:56px}
.split img{width:100%;border-radius:6px;aspect-ratio:4/3;object-fit:cover}
.steps{list-style:none;counter-reset:st;display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:12px;padding:0!important;margin:16px 0 24px}
.steps li{counter-increment:st;background:var(--paper-2);border-radius:6px;padding:18px 18px 16px;margin:0}
.steps li::before{content:counter(st,decimal-leading-zero);display:block;font-family:"Oswald";font-size:24px;color:var(--ys);line-height:1;margin-bottom:8px}
.steps b{display:block;margin-bottom:4px}
.steps span{font-size:14px;color:var(--ink-2)}
.quote-ja{background:var(--paper-2);border-radius:6px;padding:14px 18px;margin:12px 0;font-size:15px}
.quote-ja small{display:block;color:var(--ink-2);font-size:13px;margin-top:6px}
.tech-g{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:16px 0}
.tech-c{border:1px solid var(--line);border-radius:6px;padding:22px}
.tech-c h3{font-size:18px;margin-bottom:8px}
.tech-c p{font-size:15px;color:var(--ink-2)}

/* forms */
form.pv{display:grid;gap:16px;max-width:640px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:clamp(20px,3vw,32px)}
form.pv label{display:grid;gap:6px;font-size:14px;font-weight:500}
form.pv input,form.pv select,form.pv textarea{font:inherit;font-size:16px;padding:10px 12px;border:1px solid #c9d0d5;border-radius:4px;background:#fff;width:100%}
form.pv textarea{min-height:120px}
form.pv .row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
form.pv .req{color:var(--tenryu)}
form.pv button{justify-self:start;border:0;cursor:pointer}
.pv-note{background:#fff7d6;color:#6b5600;padding:10px 14px;border-radius:4px;font-size:14px}
.cbox{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(24px,4vw,48px);align-items:start}
.cside{display:grid;gap:12px}
.cside .tch-a{background:#fff}

@media (max-width:1020px){
  .ctiles{grid-template-columns:1fr 1fr}
  .sh-g,.split,.cbox{grid-template-columns:1fr}
}
@media (max-width:760px){
  .tech-g{grid-template-columns:1fr}
  form.pv .row2{grid-template-columns:1fr}
}
@media (max-width:480px){
  .ctiles{grid-template-columns:1fr}
  .gal{grid-template-columns:1fr 1fr;gap:10px}
  .gal.models{grid-template-columns:1fr}
  .gal figcaption{font-size:12px;padding:6px 8px}
  .cards .card .ph{aspect-ratio:4/3}
}

/* even out line lengths so short blocks never end with a stranded line */
main :is(p,li,h1,h2,h3,h4,figcaption,span.go,.steps span){text-wrap:balance}
.noimg{display:grid;place-items:center;width:100%;height:100%;min-height:180px;color:#56616a;font-size:14px;background:#e9edf0}
@media (max-width:760px){.draft{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:22px;padding-top:6px;padding-bottom:6px}}

/* stock & price */
.instock{display:inline-block;font-style:normal;font-size:11px;font-weight:700;color:#fff;background:var(--tenryu);border-radius:2px;padding:1px 6px;margin-left:8px;vertical-align:1px;letter-spacing:.02em}
.tbl td.pr{font-family:"Oswald";font-size:15px}
.tbl td.pr b{font-weight:600}
.tbl td.ask{color:var(--ink-2);font-family:"Noto Sans TC"}
.tbl tr.hasstock th,.tbl tr.hasstock td{background:#fdf3f3!important}
.stockbox{background:#fff;border:1px solid var(--line);border-radius:6px;padding:14px 18px;margin-top:18px;max-width:420px}
.stockbox b{display:block;font-size:14px;margin-bottom:6px}
.stockbox ul{list-style:none}
.stockbox li{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-top:1px solid var(--line);font-size:15px}
.stockbox li span:first-child{font-family:"Oswald";letter-spacing:.02em}
.stockbox li span:last-child{font-family:"Oswald";font-weight:600}
.stockbox small{display:block;text-align:right;font-size:12px;color:var(--ink-2);margin-top:4px}
.stocktbl table{white-space:nowrap}
.stocktbl a{color:var(--ys-deep);border-bottom:1px solid currentColor}
.stocktbl tbody th{position:static}
/* WordPress prints width/height attributes on images; let CSS ratios win */
.gal img,.sh-img img,.split img{height:auto}
.card .ph img{height:100%}

/* cart / checkout */
.hcart{position:relative}
.cartn{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:9px;background:var(--tenryu);color:#fff;font-size:11px;font-style:normal;display:grid;place-items:center;padding:0 4px}
.stockbox li{align-items:center}
.stockbox .addcart{font-size:13px;font-weight:500;color:#fff;background:var(--ys-deep);border-radius:999px;padding:4px 12px;white-space:nowrap}
.stockbox li span:first-child{flex:1}
.stockbox small{text-align:left}
.wcpage .woocommerce{font-size:15px}
.wcpage .woocommerce table.shop_table{border-radius:6px;border-color:var(--line)}
.wcpage .woocommerce a.button,.wcpage .woocommerce button.button,.wcpage .woocommerce #place_order{background:var(--ys-deep)!important;color:#fff!important;border-radius:999px!important;padding:12px 26px!important;font-weight:500}
.wcpage .woocommerce form .form-row input.input-text,.wcpage .woocommerce form .form-row select,.wcpage .woocommerce form .form-row textarea{border:1px solid #c9d0d5;border-radius:4px;padding:10px 12px;font-size:16px}
.wcpage .woocommerce-info,.wcpage .woocommerce-message{border-top-color:var(--ys-deep)}
.ys-shipnote{background:#fff7d6;color:#6b5600;padding:10px 14px;border-radius:4px;font-size:14px;margin:12px 0}
.ys-actions{margin-top:24px;background:var(--paper-2);border-radius:6px;padding:18px 20px}
.ys-actions h3{font-size:17px;margin-bottom:8px}
.ys-act{display:grid;gap:8px;margin:10px 0}
.ys-act textarea{font:inherit;padding:8px 10px;border:1px solid #c9d0d5;border-radius:4px;min-height:70px}
.ys-act button{justify-self:start;border:0;cursor:pointer}
.ys-found{margin-top:24px}
.cominfo{display:grid;grid-template-columns:auto 1fr;gap:6px 18px;font-size:15px;background:var(--paper-2);border-radius:6px;padding:16px 20px;margin:12px 0}
.cominfo dt{color:var(--ink-2)}
.cominfo a{color:var(--ys-deep)}
@media (max-width:480px){.cominfo{grid-template-columns:1fr;gap:2px}.cominfo dt{margin-top:8px}}

/* WooCommerce sets img{height:auto}; keep logos at their intended size */
.brand img{height:34px!important;width:auto!important}
.brand span{flex:none;white-space:nowrap}
.ft img{height:40px!important;width:auto!important}

/* 中文按詞換行（ys-wordwrap 外掛產生 .w） */
.w{white-space:nowrap}
/* 文案排法 .poem：一行一個語意段落、不用逗號句號；放不下時行內換行並平衡兩行（品牌頁等短文用） */
p.poem{line-height:2;letter-spacing:.03em}
.prose p.poem{font-size:17px;margin:0 0 1.6em}
.poem .ln,.steps .ln{display:block;text-wrap:balance}
li.poem>b{display:block}
.prose li.poem{margin-bottom:.9em}
.phero p.lead.poem,.hero-copy p.poem,.band p.poem{line-height:1.8}
.b2b p.poem{line-height:1.9}
.tech-c p.poem{margin:0 0 1em;line-height:1.9}
.tech-c p.poem:last-child{margin-bottom:0}
/* 雜誌式：標題左欄、文案右欄（桌機）；避免短行文案全擠在左半邊 */
@media (min-width:861px){
  .prose.story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);column-gap:clamp(32px,5vw,72px);align-items:start}
  .prose.story>h2{grid-column:1;margin:0;padding-top:.2em}
  .prose.story>:not(h2){grid-column:2}
  .prose.story>h2:not(:first-child),.prose.story>h2:not(:first-child)+*{margin-top:64px}
  .prose.story>h2:last-child{grid-column:1/-1}
}
.tech-g+.prose.story{margin-top:72px}
/* 雜誌式頁面裡的步驟：改直式清單（編號｜標題｜說明），避免卡片 4+1 落單與窄卡斷詞 */
.prose.story>.steps{grid-template-columns:1fr;gap:10px}
.prose.story>.steps li{display:grid;grid-template-columns:34px 5.5em 1fr;column-gap:12px;align-items:baseline;padding:16px 18px}
.prose.story>.steps li::before{margin:0;font-size:22px}
.prose.story>.steps b{margin:0}
.prose.story>.steps+*{margin-top:28px}
@media (min-width:861px){.prose.story>.steps{grid-column:2;margin:0}}


/* 預訂申請 */
.pre{margin-top:clamp(32px,5vw,56px);scroll-margin-top:90px}
.tbl td.ask a{color:var(--ys-deep);border-bottom:1px solid currentColor}
.note a{color:var(--ys-deep);border-bottom:1px solid currentColor}
.pre-ok,.pre-err{max-width:640px;padding:12px 16px;border-radius:4px;font-size:15px;margin-bottom:14px}
.pre-ok{background:#e8f5ec;color:#1f5c33}
.pre-err{background:#fdecec;color:#8a1c1c}
