/* 基礎變數 */
:root { --c-bg:#f3f7fb; --c-paper:#ffffff; --c-ink:#12233f; --c-muted:#60718b; --c-line:#d9e4f1; --c-blue:#1e66d0; --c-navy:#123a78; --c-teal:#16887f; --c-rose:#c7365f; --c-gold:#cf8617; --c-green:#138a57; --g-hero:linear-gradient(90deg,rgba(246,249,253,.98) 0%,rgba(246,249,253,.88) 42%,rgba(246,249,253,.22) 100%); --g-soft:linear-gradient(135deg,#eef7ff 0%,#f7fbff 55%,#fff7ed 100%); --shadow:0 18px 42px rgba(18,35,70,.11); }
/* 全域排版 */
body.content-page { margin:0; min-height:100vh; background:var(--c-bg); color:var(--c-ink); font-family:Arial,"Microsoft JhengHei","PingFang TC",sans-serif; }
.fw-black { font-weight:900; }
.site-header { background:rgba(255,255,255,.9); border-bottom:1px solid rgba(217,228,241,.9); backdrop-filter:blur(12px); }
.site-header .navbar { min-height:70px; }
.site-header .navbar-brand { color:var(--c-navy); }
.site-header .nav-link { color:#1d3768; font-weight:800; }
.site-header .nav-link.active,.site-header .nav-link:hover { color:var(--c-blue); }
.member-pill { border:1px solid rgba(30,102,208,.18); border-radius:999px; background:#f5f9ff; }
.site-footer { margin-top:50px; padding:30px 0; border-top:1px solid var(--c-line); background:linear-gradient(180deg,#fff 0%,#f8fbff 100%); color:var(--c-muted); }
.site-footer-inner { width:min(1180px,calc(100% - 32px)); margin:0 auto; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; justify-content:space-between; gap:18px 28px; }
.site-footer-copy { min-width:0; }
.site-footer-head { display:flex; align-items:center; gap:12px; }
.site-footer-mascot { width:64px; height:64px; flex:0 0 auto; object-fit:contain; filter:drop-shadow(0 10px 18px rgba(18,35,70,.12)); }
.site-footer-brand { display:inline-flex; align-items:center; color:var(--c-navy); font-size:18px; font-weight:900; }
.site-footer-tagline { display:block; margin-top:4px; line-height:1.6; }
.site-footer strong { color:var(--c-navy); }
.footer-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px 14px; }
.footer-links a { color:var(--c-navy); font-weight:800; text-decoration:none; padding:6px 0; }
.visitor-stats { display:flex; flex-wrap:wrap; gap:8px; color:var(--c-muted); font-size:13px; }
.visitor-stats .visitor-stat { min-height:32px; display:inline-flex; gap:5px; align-items:center; color:inherit; text-decoration:none; border:1px solid var(--c-line); border-radius:999px; background:rgba(255,255,255,.82); padding:5px 10px; box-shadow:0 6px 18px rgba(18,35,70,.06); }
.visitor-stats a.visitor-stat:hover,.footer-links a:hover { color:var(--c-blue); }
.visitor-stat-primary { border-color:rgba(30,102,208,.22) !important; background:#eef6ff !important; }
.visitor-stat-label { min-height:32px; display:inline-flex; align-items:center; color:var(--c-navy); font-weight:900; }
.visitor-stats strong { color:var(--c-navy); }
@media (max-width:720px) { .site-footer-inner { grid-template-columns:1fr; } .footer-links { justify-content:flex-start; } .site-footer-mascot { width:56px; height:56px; } }
.eyebrow { margin:0 0 8px; color:var(--c-teal); font-size:13px; font-weight:900; text-transform:uppercase; letter-spacing:0; }
.section-title { color:#10285b; font-size:clamp(28px,4vw,44px); line-height:1.16; font-weight:900; }
.lead-copy,.article-copy p,.guide-card p,.faq-answer,.toc-panel a,.device-note { color:var(--c-muted); line-height:1.72; }
/* Hero */
.content-hero { min-height:520px; display:flex; align-items:center; position:relative; overflow:hidden; background:var(--g-soft); padding:96px 0 126px; }
.content-hero.has-image { background:var(--g-hero),var(--hero-image) center right/cover no-repeat; }
.content-hero.hero-china { --hero-image:url("../img/blog-china-esim-guide-ai.png"); }
.content-hero.hero-vietnam { --hero-image:url("../img/blog-vietnam-esim-guide-ai.png"); }
.content-hero.hero-japan { --hero-image:url("../img/blog-japan-esim-guide-ai.png"); }
.content-hero.hero-korea { --hero-image:url("../img/blog-korea-esim-guide-ai.png"); }
.content-hero.hero-check-esim { --hero-image:url("../img/waysim-esim-guide/check-iphone-samsung-eid.png"); }
.content-hero::after { content:""; position:absolute; inset:auto 0 0; height:90px; background:linear-gradient(180deg,rgba(243,247,251,0),var(--c-bg)); pointer-events:none; }
.content-hero .container { position:relative; z-index:1; }
.content-hero h1 { max-width:850px; color:#0d2f68; font-size:clamp(42px,6vw,76px); line-height:1.04; font-weight:900; overflow-wrap:anywhere; }
.content-hero .lead-copy { max-width:760px; margin-top:18px; color:#1d355e; font-size:clamp(18px,2vw,22px); }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.hero-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.hero-actions .btn { white-space:normal; }
.hero-chips span { min-height:34px; display:inline-flex; align-items:center; gap:7px; border:1px solid rgba(30,102,208,.18); border-radius:999px; background:rgba(255,255,255,.86); color:var(--c-navy); padding:7px 12px; font-size:13px; font-weight:900; white-space:normal; }
/* 主要區塊 */
.content-main { margin-top:-54px; position:relative; z-index:2; }
.content-card { border:1px solid var(--c-line); border-radius:8px; background:var(--c-paper); padding:clamp(22px,4vw,34px); box-shadow:0 10px 26px rgba(18,35,70,.08); }
.section-block { margin-top:24px; }
.toc-panel { position:sticky; top:92px; display:grid; gap:8px; border:1px solid var(--c-line); border-radius:8px; background:#fff; padding:14px; }
.toc-panel strong { color:#10285b; font-size:18px; }
.toc-panel a { display:flex; align-items:center; min-height:36px; border-radius:8px; padding:7px 9px; text-decoration:none; font-weight:800; }
.toc-panel a:hover,.toc-panel a.is-active { background:#eef7ff; color:var(--c-blue); }
.article-copy h2 { color:#10285b; font-size:clamp(27px,3.6vw,40px); font-weight:900; line-height:1.2; margin:0 0 14px; }
.article-copy h3 { color:#10285b; font-size:22px; font-weight:900; margin:22px 0 10px; }
.article-copy p { margin:0 0 15px; }
.article-copy ul { margin:0 0 18px; padding-left:20px; color:var(--c-muted); line-height:1.75; }
.article-copy li + li { margin-top:5px; }
.section-title a,.faq-heading-link { color:inherit; text-decoration:none; }
.section-title a:hover,.faq-heading-link:hover { color:var(--c-blue); }
.article-media-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.article-media-card { overflow:hidden; display:grid; grid-template-rows:auto min-content; border:1px solid var(--c-line); border-radius:8px; background:#fff; }
.article-media-card img { width:100%; height:clamp(280px,44vw,520px); display:block; object-fit:contain; object-position:center; background:#f8fbff; }
.setup-media-grid .article-media-card img { height:clamp(360px,58vw,680px); }
.guide-figure img { width:100%; max-height:620px; display:block; object-fit:contain; object-position:center; background:#f8fbff; }
.article-media-card figcaption,.guide-figure figcaption { padding:10px 12px; color:var(--c-muted); font-size:13px; line-height:1.5; }
.guide-figure { margin:18px 0; overflow:hidden; border:1px solid var(--c-line); border-radius:8px; background:#fff; }
/* 卡片與列表 */
.guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.guide-card { min-height:178px; display:grid; gap:9px; align-content:start; border:1px solid var(--c-line); border-radius:8px; background:#fbfdff; padding:18px; text-decoration:none; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.guide-card:hover { transform:translateY(-2px); border-color:rgba(30,102,208,.36); box-shadow:0 14px 28px rgba(18,35,70,.1); }
.guide-card i { color:var(--c-blue); font-size:26px; }
.guide-card strong { color:#10285b; font-size:21px; line-height:1.24; }
.blog-card { overflow:hidden; border:1px solid var(--c-line); border-radius:8px; background:#fff; text-decoration:none; box-shadow:0 10px 24px rgba(18,35,70,.07); }
.blog-card img { width:100%; aspect-ratio:16/9; display:block; object-fit:cover; }
.blog-card div { display:grid; gap:8px; padding:18px; }
.blog-card span { color:var(--c-teal); font-size:13px; font-weight:900; }
.blog-card strong { color:#10285b; font-size:23px; line-height:1.25; }
.blog-card p { color:var(--c-muted); line-height:1.6; margin:0; }
.fact-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid var(--c-line); border-radius:8px; background:var(--c-line); box-shadow:var(--shadow); }
.fact-strip div { min-height:118px; display:grid; gap:6px; align-content:center; background:#fff; padding:18px; }
.fact-strip span { color:var(--c-muted); font-size:13px; font-weight:900; }
.fact-strip strong { color:#10285b; font-size:clamp(20px,2.4vw,30px); line-height:1.12; }
.answer-brief { display:grid; gap:14px; border-color:rgba(30,102,208,.2); background:linear-gradient(135deg,#ffffff 0%,#f5faff 62%,#fff8ec 100%); }
.answer-brief .section-title { margin:0; }
.answer-brief-summary { margin:0; color:#1d355e; font-size:clamp(18px,2vw,22px); line-height:1.7; font-weight:800; }
.answer-brief-list { display:grid; gap:8px; margin:0; padding-left:20px; color:var(--c-muted); line-height:1.7; }
.answer-brief-list li::marker { color:var(--c-blue); }
.answer-entity-row { display:flex; flex-wrap:wrap; gap:8px; }
.answer-entity-row span { min-height:32px; display:inline-flex; align-items:center; border:1px solid rgba(30,102,208,.18); border-radius:999px; background:rgba(255,255,255,.86); color:var(--c-navy); padding:6px 11px; font-size:13px; font-weight:900; }
.compare-table,.device-table { overflow:hidden; border:1px solid var(--c-line); border-radius:8px; background:#fff; }
.compare-table table,.device-table table { width:100%; margin:0; border-collapse:collapse; }
.compare-table th,.compare-table td,.device-table th,.device-table td { border-bottom:1px solid var(--c-line); padding:14px; vertical-align:top; line-height:1.55; }
.compare-table th,.device-table th { color:#10285b; background:#f5f9ff; font-weight:900; }
.compare-table td,.device-table td { color:var(--c-muted); }
.compare-table tr:last-child td,.device-table tr:last-child td { border-bottom:0; }
.device-tools { display:grid; grid-template-columns:minmax(220px,1fr) auto; gap:10px; margin-bottom:14px; }
.device-tools input { min-height:46px; border:1px solid var(--c-line); border-radius:8px; padding:0 13px; }
.device-tools button { min-height:46px; }
.faq-item { border:1px solid var(--c-line); border-radius:8px; background:#fff; overflow:hidden; }
.faq-item + .faq-item { margin-top:10px; }
.faq-question { width:100%; min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; background:#fff; color:#10285b; padding:14px 16px; text-align:left; font-weight:900; }
.faq-question { text-decoration:none; }
.faq-question i { color:var(--c-blue); transition:transform .16s ease; }
.faq-item.is-open .faq-question i { transform:rotate(180deg); }
.faq-answer { display:none; border-top:1px solid var(--c-line); padding:14px 16px; background:#fbfdff; }
.faq-item.is-open .faq-answer { display:block; }
.cta-band { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; border:1px solid rgba(30,102,208,.18); border-radius:8px; background:linear-gradient(135deg,#eff7ff 0%,#fff 58%,#fff8eb 100%); padding:22px; }
.cta-band h2 { margin:0; color:#10285b; font-size:clamp(24px,3vw,36px); font-weight:900; }
.cta-band p { margin:6px 0 0; color:var(--c-muted); line-height:1.6; }
.back-to-top { position:fixed; right:18px; bottom:18px; z-index:10; width:44px; height:44px; display:none; align-items:center; justify-content:center; border:0; border-radius:999px; background:var(--c-blue); color:#fff; box-shadow:var(--shadow); }
.back-to-top.is-show { display:inline-flex; }
/* 響應式 */
@media (max-width:991.98px) { .content-hero { min-height:auto; padding:92px 0 112px; } .content-hero.has-image { background:linear-gradient(180deg,rgba(246,249,253,.97) 0%,rgba(246,249,253,.86) 48%,rgba(246,249,253,.18) 100%),var(--hero-image) center right/cover no-repeat; } .toc-panel { position:static; margin-bottom:16px; } .guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .fact-strip { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:575.98px) { .content-hero { min-height:auto; align-items:flex-start; padding:84px 0 92px; } .content-hero h1 { font-size:clamp(36px,11vw,52px); line-height:1.08; } .content-hero .lead-copy { font-size:17px; } .hero-actions { display:grid; grid-template-columns:1fr; } .hero-actions .btn { width:100%; } .hero-chips span { width:100%; justify-content:flex-start; border-radius:8px; } .content-main { margin-top:-30px; } .guide-grid,.fact-strip,.device-tools { grid-template-columns:1fr; } .compare-table,.device-table { overflow-x:auto; } .compare-table table,.device-table table { min-width:680px; } }
@media (max-width:575.98px) { .article-media-grid { grid-template-columns:1fr; } }
