@charset "UTF-8";

:root {
    --ink: #232b30;
    --muted: #687278;
    --blue: #31556b;
    --paper: #f6f5f1;
    --line: #dddeda;
    --accent: #dcb976;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.8 "Microsoft JhengHei", "PingFang TC", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select { border-radius: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b78536; outline-offset: 4px; }
.wrap { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 10px 20px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 10px; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; padding-block: 7px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand strong { display: flex; align-items: baseline; gap: 0; font-size: 34px; letter-spacing: 1px; line-height: 1.2; font-family: "Noto Serif TC", "PMingLiU", serif; }
.brand-dot { color: var(--blue); }
.brand small { display: block; font-size: 13px; letter-spacing: 1px; margin-top: 0; color: var(--muted); }
nav#site-nav { display: flex; gap: 27px; }
nav#site-nav a { font-size: 15px; padding: 12px 0; position: relative; white-space: nowrap; }
nav#site-nav a[aria-current]::after { content: ""; position: absolute; bottom: 3px; height: 2px; width: 100%; background: var(--blue); left: 0; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; font-size: 15px; }
.page-main { padding-top: 45px; padding-bottom: 90px; }
.eyebrow { font-size: 13px; letter-spacing: 1px; color: var(--blue); font-weight: 700; margin-bottom: 16px; }
.page-heading { padding: 15px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-heading h1 { font-family: "Noto Serif TC", "PMingLiU", serif; font-size: clamp(29px, 3.5vw, 44px); margin-bottom: 18px; }
.page-heading p { max-width: 780px; color: var(--muted); margin-bottom: 0; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; align-items: start; }
.content-layout > * { min-width: 0; }
.section-label { font-size: 18px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); padding: 13px 0; margin-bottom: 18px; }
.sidebar > section { margin-bottom: 35px; }
.small-note { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 12px 0; }
.ad-stack { display: grid; gap: 16px; }
.ad-card { display: block; position: relative; overflow: hidden; height: 208px; color: #fff; background: var(--blue); }
.ad-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.ad-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.1) 5%,rgba(16,26,32,.88) 100%); }
.ad-card:hover { color: #fff; }
.ad-card:hover img { transform: scale(1.04); }
.ad-label { position: absolute; top: 12px; left: 14px; z-index: 1; font-size: 13px; background: rgba(20,30,35,.7); padding: 2px 8px; }
.ad-copy { position: absolute; left: 20px; right: 20px; bottom: 17px; z-index: 1; }
.ad-copy strong { font-size: 23px; letter-spacing: 1px; display: block; }
.ad-copy > span { display: block; font-size: 13px; margin: 1px 0 7px; }
.ad-copy b { font-size: 13px; font-weight: 400; border-bottom: 1px solid #c7c7c7; padding-bottom: 3px; }
.popular { list-style: none; padding: 0; margin: 0; }
.popular li { border-bottom: 1px solid var(--line); }
.popular a { display: flex; gap: 15px; padding: 16px 0; }
.popular span { font: 25px/1.5 Georgia, serif; color: #a7adb0; }
.popular strong { font-size: 15px; font-weight: 500; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 4px 9px; background: var(--paper); color: var(--blue); font-size: 13px; border: 1px solid #e6e7e3; }
.tags a:hover { background: var(--blue); color: white; }
.phone-note { padding: 24px; background: var(--paper); border-left: 3px solid var(--blue); }
.phone-note > span { font-size: 14px; }
.phone-note > a { display: block; font: 700 24px/1.8 Georgia,serif; color: var(--blue); }
.phone-note p { font-size: 14px; margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 28px; }
.post-card { border-bottom: 1px solid var(--line); padding-bottom: 25px; }
.cover-link { display: block; overflow: hidden; background: var(--paper); }
.cover-link img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; transition: transform .45s; }
.cover-link:hover img { transform: scale(1.035); }
.post-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; font-size: 13px; color: var(--muted); margin: 18px 0 11px; }
.post-meta a { color: var(--blue); font-weight: 700; }
.post-card h2 { font-size: 22px; margin-bottom: 12px; font-family: "Noto Serif TC", "PMingLiU", serif; }
.post-card p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.read-link { font-size: 14px; display: inline-flex; gap: 22px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.cooperation { background: #eef2f3; padding: 28px; margin: 36px 0; border-top: 3px solid var(--blue); }
.cooperation h2 { font-size: 22px; margin-bottom: 10px; }
.cooperation > p { font-size: 15px; }
.partner-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.partner-links a { display: block; padding: 15px 17px; background: #fff; border: 1px solid #d9e0e3; }
.partner-links strong { display: block; font-size: 16px; color: var(--blue); }
.partner-links span { display: block; font-size: 13px; color: var(--muted); }
.text-button { display: inline-block; padding: 12px 20px; color: #fff; background: var(--blue); font-size: 15px; }
.text-button:hover { color: #fff; background: var(--ink); }
.site-footer { background: #242f35; color: #e8ecec; padding-top: 55px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; padding-bottom: 45px; }
.footer-brand { font-size: 32px; font-family: "PMingLiU", serif; letter-spacing: 1px; }
.footer-grid h2 { font-size: 16px; margin-bottom: 15px; }
.footer-grid p { font-size: 14px; margin: 18px 0 0; color: #b9c4c7; }
.footer-grid > div > a:not(.footer-brand) { display: block; font-size: 14px; margin-bottom: 8px; }
.footer-grid .footer-phone { font-size: 15px; }
.site-footer a:hover { color: #e2c590; }
.footer-bottom { border-top: 1px solid #485258; padding: 23px 0; font-size: 13px; color: #b9c4c7; }
.footer-bottom p { margin: 0 0 5px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%,20px); width: max-content; max-width: calc(100% - 40px); padding: 13px 22px; background: var(--ink); color: #fff; font-size: 14px; z-index: 40; opacity: 0; pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1100px) {
    .wrap { width: calc(100% - 48px); }
    .content-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 28px; }
    nav#site-nav { gap: 18px; }
    .post-card h2 { font-size: 20px; }
    .brand strong { font-size: 29px; }
}
@media (max-width: 900px) {
    .masthead { min-height: 90px; flex-wrap: wrap; gap: 0; }
    .menu-toggle { display: block; }
    nav#site-nav { display: none; flex-basis: 100%; flex-wrap: wrap; gap: 8px 25px; padding: 15px 0 20px; border-top: 1px solid var(--line); }
    nav#site-nav.is-open { display: flex; }
    .content-layout { grid-template-columns: minmax(0,1fr); gap: 55px; }
    .ad-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ad-card { height: 230px; }
    .sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
    .sidebar > section:first-child { grid-column: 1/-1; }
    .sidebar > section { margin-bottom: 0; }
    .sidebar .phone-note { grid-column: 1/-1; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 36px); }
    .topbar .wrap { flex-wrap: wrap; gap: 2px 12px; }
    .topbar { font-size: 13px; }
    .brand strong { font-size: 27px; }
    .brand img { width: 35px; height: 35px; }
    .brand { gap: 9px; }
    .brand small { letter-spacing: 1px; font-size: 13px; }
    .masthead { min-height: 84px; }
    .menu-toggle { padding: 6px 8px; }
    .page-main { padding-top: 28px; padding-bottom: 55px; }
    .page-heading { padding-top: 5px; padding-bottom: 26px; margin-bottom: 28px; }
    .post-grid { grid-template-columns: minmax(0,1fr); gap: 30px; }
    .post-card h2 { font-size: 23px; }
    .sidebar { display: block; }
    .sidebar > section { margin-bottom: 30px; }
    .ad-stack { gap: 12px; }
    .ad-card { height: 210px; }
    .ad-copy { left: 12px; right: 12px; bottom: 14px; }
    .ad-copy strong { font-size: 18px; letter-spacing: 0; }
    .ad-label { left: 8px; padding-inline: 5px; }
    .partner-links { grid-template-columns: 1fr; }
    .cooperation { padding: 22px 18px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
    .footer-grid > div:first-child { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* 雜誌版型：暖色紙感、強化字重與卡片層次 */
:root { --blue: #334c53; --paper: #e9e4d9; --line: #cec8bb; }
body { background: #f0ede5; font-weight: 500; }
h1, h2, h3 { font-weight: 800; }
.brand strong, .page-heading h1, .post-card h2 { font-family: "Microsoft JhengHei", "PingFang TC", sans-serif; font-weight: 800; }
.topbar { background: #242f35; color: #fff; }
.post-card { background: #fff; border-bottom: 3px solid #d2c5a9; }
.post-card > :not(.cover-link) { margin-left: 20px; margin-right: 20px; }
.popular strong { font-weight: 700; }
nav#site-nav a { font-weight: 700; }
