/* Shared layout for every base theme. Colours, fonts and widths come from the
   tokens as CSS custom properties; a theme's own theme.css only restyles. */
*,*::before,*::after{box-sizing:border-box}
:root{--gutter:20px;--nav-bg:var(--color-bg);color-scheme:light}
@media (min-width:768px){:root{--gutter:28px}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--color-bg);color:var(--color-text);font-family:var(--font-body);font-size:17px;line-height:1.7;
  text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;overflow-wrap:break-word;overflow-x:clip}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;touch-action:manipulation}
a:active{opacity:.72}
@media (hover:hover){a:hover{color:var(--color-accent)}}
:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}
/* Side padding follows the notch in landscape (viewport-fit=cover). */
.container{--pad-l:max(var(--gutter),env(safe-area-inset-left));--pad-r:max(var(--gutter),env(safe-area-inset-right));
  width:100%;max-width:var(--max-width);margin:0 auto;padding:0 var(--pad-r) 0 var(--pad-l)}
.beacon{position:absolute;width:1px;height:1px;opacity:0}
.preview-bar{background:#f6c343;color:#222;text-align:center;font-size:14px;padding:6px var(--gutter);padding-top:max(6px,env(safe-area-inset-top))}

/* masthead */
.masthead{border-bottom:1px solid var(--color-border);background:var(--color-bg)}
.masthead-inner{display:flex;align-items:baseline;gap:4px 16px;flex-wrap:wrap;padding-top:max(22px,env(safe-area-inset-top));padding-bottom:14px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand picture{display:block;flex:none}
.brand-logo{height:40px;width:auto;max-width:min(320px,70vw);object-fit:contain}
.brand-wordmark .brand-logo{height:44px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.brand-name{font-family:var(--font-heading);font-weight:900;font-size:clamp(28px,4vw,40px);letter-spacing:.02em;line-height:1.1;overflow-wrap:anywhere}
.brand-tagline{margin:0;color:var(--color-muted);font-size:15px}
.masthead-date{margin:0 0 0 auto;color:var(--color-muted);font-size:14px;white-space:nowrap}
@media (max-width:600px){
  .masthead-inner{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:12px;column-gap:12px}
  .brand-logo{height:32px}
  .brand-wordmark .brand-logo{height:36px}
  .brand-tagline{font-size:14px;line-height:1.5}
  .masthead-date{font-size:13px}
}
/* Phone on its side: keep the masthead short so the story shows. */
@media (orientation:landscape) and (max-height:500px){
  .masthead-inner{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:10px}
}

/* Section nav: one row that scrolls sideways, 44px tall targets, a fade at the
   edge while there is more to see (driven by the scroll where supported). */
.sections{position:relative;border-top:1px solid var(--color-border);timeline-scope:--sections-x}
.sections-inner{display:flex;align-items:center;gap:0 4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;
  white-space:nowrap;scroll-snap-type:x proximity;scroll-timeline:--sections-x x;font-size:15px;font-weight:500}
.sections-inner::-webkit-scrollbar{display:none}
.sections-inner::after{content:"";flex:0 0 12px}
.sections-inner a{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 10px;scroll-snap-align:start;scroll-margin-left:var(--gutter)}
.sections-inner a:first-child{margin-left:-10px}
.sections-inner a[aria-current=page]{color:var(--color-accent);box-shadow:inset 0 -2px 0 currentColor}
.sections::before,.sections::after{content:"";position:absolute;top:0;bottom:0;width:36px;pointer-events:none;z-index:1}
.sections::before{left:0;background:linear-gradient(to right,var(--nav-bg),transparent);opacity:0}
.sections::after{right:0;background:linear-gradient(to left,var(--nav-bg) 20%,transparent)}
@supports (animation-timeline:scroll()){
  /* Inactive timeline (nothing to scroll) leaves both fades hidden. */
  .sections::before,.sections::after{opacity:0;animation:linear both;animation-timeline:--sections-x}
  .sections::before{animation-name:sections-fade-in}
  .sections::after{animation-name:sections-fade-out}
}
@keyframes sections-fade-in{0%{opacity:0}12%,100%{opacity:1}}
@keyframes sections-fade-out{0%,88%{opacity:1}100%{opacity:0}}

/* Headlines break at the spaces and punctuation that separate clauses (the way
   HK papers set them); an over-long run still wraps rather than overflowing. */
.card-title,.article-title,.page-title,.prose h2,.prose h3,.brand-name{word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}

/* shared bits */
.kicker{display:inline-block;color:var(--color-accent);font-size:13px;font-weight:700;letter-spacing:.04em;margin-bottom:4px}
.meta{color:var(--color-muted);font-size:13px;margin:6px 0 0}
.section-title{font-family:var(--font-heading);font-size:22px;margin:0 0 14px;padding-bottom:8px;border-bottom:2px solid var(--color-text)}
@media (hover:hover){.section-title a:hover{color:var(--color-accent)}}
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.grid-2,.grid-3,.grid-4{grid-template-columns:minmax(0,1fr)}}

/* cards: the whole card is the tap target (the title link stretches over it;
   the section kicker stays tappable on top). */
.card{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0}
.card-media{display:block;overflow:hidden;border-radius:var(--radius);background:var(--color-surface);aspect-ratio:16/9}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
@media (hover:hover){.card:hover .card-media img{transform:scale(1.03)}.card:hover .card-title a{color:var(--color-accent)}}
.card-body{min-width:0;flex:1 1 auto}
.card-body .kicker{position:relative;z-index:1}
.card-title{font-family:var(--font-heading);font-size:19px;line-height:1.4;margin:0;font-weight:700}
.card-title a::after{content:"";position:absolute;inset:0;z-index:0}
.card-dek{margin:6px 0 0;color:var(--color-muted);font-size:15px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty}
.card-lg .card-title{font-size:clamp(24px,3vw,34px);line-height:1.3}
.card-sm .card-title{font-size:16px}
.card-row{flex-direction:row;align-items:flex-start;padding:18px 0;border-bottom:1px solid var(--color-border)}
.card-row .card-media{flex:0 0 220px;aspect-ratio:3/2}
@media (max-width:600px){
  .card-row{gap:14px;padding:16px 0}
  .card-row .card-media{flex-basis:112px;aspect-ratio:4/3}
  .card-row .card-title{font-size:17px;line-height:1.45}
  .card-row .card-dek{font-size:14px;-webkit-line-clamp:2}
}

/* article */
.article{max-width:760px;margin:36px auto 0}
.article-title{font-family:var(--font-heading);font-size:clamp(27px,4.4vw,42px);line-height:1.3;margin:6px 0 12px;font-weight:900}
.article-dek{font-size:19px;color:var(--color-muted);margin:0 0 10px;line-height:1.6;text-wrap:pretty}
.article-meta{line-height:1.6}
.article-cover{margin:24px 0}
.article-cover img{width:100%;border-radius:var(--radius)}
.article-cover figcaption{color:var(--color-muted);font-size:13px;line-height:1.6;margin-top:8px}
.article-cover figcaption a{text-decoration:underline;text-underline-offset:3px}
.prose{font-size:18px;line-height:1.9;text-wrap:pretty}
.prose p{margin:0 0 1.2em}
.prose h2,.prose h3{font-family:var(--font-heading);line-height:1.4;margin:1.6em 0 .6em}
.prose blockquote{margin:1.4em 0;padding:4px 0 4px 18px;border-left:3px solid var(--color-accent);color:var(--color-muted)}
.prose a{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.prose ul,.prose ol{padding-left:1.4em;margin:0 0 1.2em}
.prose li+li{margin-top:.4em}
.prose img{border-radius:var(--radius);margin:1.4em 0}
.prose code{font-size:.88em;overflow-wrap:anywhere}
.prose pre{overflow-x:auto;padding:12px 14px;background:var(--color-surface);border-radius:var(--radius);font-size:14px;line-height:1.6}
.prose pre code{overflow-wrap:normal}
.prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:15px;line-height:1.6}
.prose th,.prose td{border:1px solid var(--color-border);padding:6px 10px;text-align:left}
.prose hr{border:0;border-top:1px solid var(--color-border);margin:2em 0}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
/* Search: the header's icon, the box, and the results. Every target is at least 44px. */
/* In the sections row: pushed to the right end, and kept in view while the row scrolls sideways on a phone. */
.search-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin-left:auto;
  padding:0 4px;color:inherit;flex:none;position:sticky;right:0;z-index:5;background:inherit;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.sections .search-link{background:var(--nav-bg)}
.search-box{display:flex;gap:8px;margin:12px 0 20px}
.search-box input{flex:1;min-width:0;min-height:44px;padding:0 14px;border:1px solid var(--color-border);border-radius:var(--radius);
  background:var(--color-bg);color:var(--color-text);font:inherit;font-size:16px}
.search-box button{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;border:0;
  border-radius:var(--radius);background:var(--color-accent);color:#fff;cursor:pointer}
.search-count,.search-empty{color:var(--color-muted);font-size:15px}
.search-results{list-style:none;margin:0;padding:0}
.search-result{display:flex;gap:14px;padding:16px 0;border-top:1px solid var(--color-border)}
.search-thumb{flex:0 0 112px}
.search-thumb img{width:112px;aspect-ratio:16/9;object-fit:cover;border-radius:calc(var(--radius) / 2)}
.search-text{min-width:0}
.search-title{margin:2px 0 6px;font-size:18px;line-height:1.4}
.search-title a{color:inherit;text-decoration:none}
.search-excerpt{margin:0;color:var(--color-muted);font-size:14.5px;line-height:1.7;overflow-wrap:anywhere}
.search-excerpt mark,.search-title mark{background:color-mix(in srgb,var(--color-accent) 22%,transparent);color:inherit;padding:0 1px}
@media (max-width:520px){.search-thumb{flex-basis:88px}.search-thumb img{width:88px}.search-title{font-size:16.5px}}
/* A client's paid piece: says so before the headline, everywhere it appears. */
.sponsor-label{display:inline-block;margin:0 0 6px 8px;padding:1px 8px;border:1px solid var(--color-muted);border-radius:4px;
  font-size:12px;line-height:1.6;color:var(--color-muted);vertical-align:middle}
.kicker+.sponsor-label{margin-left:8px}
.card-body>.sponsor-label:first-child,.article-head>.sponsor-label:first-child{margin-left:0}
/* Share bar: links that work without script; the share sheet and copy buttons appear when it runs.
   Five looks (the site picks one; a theme may restyle any): pills, icons, solid, outline, minimal. */
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0}
.share-top{flex-wrap:nowrap;overflow-x:auto;margin:14px 0 0;padding-bottom:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.share-top::-webkit-scrollbar{display:none}
.share-label{font-size:14px;font-weight:700;margin-right:4px}
.share-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:44px;padding:0 14px;
  border:1px solid transparent;font:inherit;font-size:14px;line-height:1;white-space:nowrap;color:var(--color-text);
  background:none;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.share-btn[hidden]{display:none}
.share-ico{width:18px;height:18px;flex:none;color:var(--brand,var(--color-accent))}
.share-whatsapp{--brand:#25d366}.share-facebook{--brand:#1877f2}.share-threads{--brand:var(--color-text);--solid:#111}
.share-telegram{--brand:#229ed9}.share-x{--brand:var(--color-text);--solid:#111}.share-line{--brand:#06c755}
.share-linkedin{--brand:#0a66c2}.share-weibo{--brand:#e6162d}.share-wechat-btn{--brand:#07c160}
.share-email,.share-copy{--brand:var(--color-muted)}.share-native{--brand:var(--color-accent)}
.share-done{outline:2px solid var(--color-accent);outline-offset:2px}
/* pills (default): rounded, outlined, the brand in the icon */
.share-style-pills .share-btn{border-color:var(--color-border);border-radius:999px;background:var(--color-bg)}
.share-style-pills .share-btn:hover,.share-style-pills .share-btn:focus-visible{border-color:var(--brand,var(--color-accent))}
/* icons: round brand-coloured buttons, the name kept for screen readers only */
.share-style-icons .share-btn{position:relative;width:44px;padding:0;border-radius:50%;background:var(--solid,var(--brand));color:#fff}
.share-style-icons .share-ico{color:#fff;width:20px;height:20px}
.share-style-icons .share-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.share-style-icons .share-btn:hover{filter:brightness(1.08)}
/* solid: filled brand colour with the name */
.share-style-solid .share-btn{border-radius:var(--radius,8px);background:var(--solid,var(--brand));color:#fff;font-weight:600}
.share-style-solid .share-ico{color:#fff}
.share-style-solid .share-email,.share-style-solid .share-copy,.share-style-solid .share-native{background:var(--color-surface);color:var(--color-text)}
.share-style-solid .share-email .share-ico,.share-style-solid .share-copy .share-ico,.share-style-solid .share-native .share-ico{color:var(--color-text)}
/* outline: squared, a brand-coloured frame */
.share-style-outline .share-btn{border:1.5px solid var(--brand,var(--color-border));border-radius:calc(var(--radius,8px) / 2);font-weight:600}
/* minimal: just the icon and the word, for quiet designs */
.share-style-minimal{gap:2px 14px}
.share-style-minimal .share-btn{padding:0 2px;color:var(--color-muted)}
.share-style-minimal .share-btn:hover .share-txt{text-decoration:underline;text-underline-offset:3px;color:var(--color-text)}
.share-wechat summary{list-style:none}
.share-wechat summary::-webkit-details-marker{display:none}
.share-wechat[open]{flex:1 0 100%}
.share-qr{display:inline-block;margin-top:8px;padding:12px;border:1px solid var(--color-border);border-radius:var(--radius);
  background:#fff;color:#111;text-align:center}
.share-qr-code{display:block;width:160px;height:160px;margin:0 auto}
.share-qr p{margin:8px 0 0;font-size:12px}
.tag{font-size:13px;color:var(--color-muted);background:var(--color-surface);padding:3px 10px;border-radius:999px}
.sources{margin:28px 0;padding:16px 20px;background:var(--color-surface);border-radius:var(--radius);font-size:14px}
.sources h2{font-size:15px;margin:0 0 8px}
.sources ul{margin:0;padding-left:18px}
.sources li+li{margin-top:6px}
.sources a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
details.sources summary{cursor:pointer;font-weight:700;font-size:15px;min-height:44px;display:flex;align-items:center;
  list-style:none;margin:-10px 0}
details.sources summary::-webkit-details-marker{display:none}
details.sources summary::after{content:"＋";margin-left:auto;color:var(--color-muted)}
details.sources[open] summary::after{content:"－"}
details.sources[open] summary{margin-bottom:6px}
.sources-names{color:var(--color-muted)}
.ai-note{font-size:13px;color:var(--color-muted);border-top:1px solid var(--color-border);padding-top:14px}
.related{max-width:var(--max-width);margin:48px auto 0}

/* Phone reading: 20px margins, a full-bleed cover, and related stories as
   compact rows rather than a column of big pictures. */
@media (max-width:600px){
  .article{margin-top:22px}
  .article-dek{font-size:17px;line-height:1.65}
  .article-cover{margin:20px calc(-1 * var(--pad-r)) 24px calc(-1 * var(--pad-l))}
  .article-cover img{border-radius:0;width:100%}
  .article-cover figcaption{padding:0 var(--pad-r) 0 var(--pad-l)}
  .prose{font-size:17.5px;line-height:1.85}
  .prose h2{font-size:21px}
  .prose h3{font-size:19px}
  .prose blockquote{padding-left:14px}
  .sources{padding:14px 16px;font-size:15px;line-height:1.6}
  .related{margin-top:36px}
  .related .grid{gap:0}
  .related .card{flex-direction:row;align-items:flex-start;gap:14px;padding:14px 0;border-top:1px solid var(--color-border)}
  .related .card:first-child{border-top:0;padding-top:0}
  .related .card-media{flex:0 0 108px;aspect-ratio:4/3}
  .related .card-title{font-size:16px;line-height:1.45}
}

/* ad slots: labelled, centred, their height reserved so the page does not jump when an ad loads */
.ad{display:block;margin:24px auto;text-align:center;max-width:100%;overflow:hidden;clear:both}
.ad-label{display:block;font-size:11px;letter-spacing:.12em;color:var(--color-muted);margin-bottom:4px}
.ad-row .ad{margin:12px auto 0}
.rail .ad,aside .ad-sidebar{margin:0 auto 20px}
.ad-placeholder{display:flex;align-items:center;justify-content:center;border:2px dashed var(--color-border);
  border-radius:var(--radius);color:var(--color-muted);font-size:14px;background:var(--color-surface)}
.ad-placeholder small{display:block;font-size:12px;margin-top:2px}
.article-body .ad{margin:28px auto}

/* lists, pages */
.page-head{margin:36px 0 10px}
.page-title{font-family:var(--font-heading);font-size:clamp(26px,5vw,34px);line-height:1.3;margin:0}
.pager{display:flex;justify-content:space-between;gap:16px;margin:28px 0;font-weight:500}
.pager a{display:inline-flex;align-items:center;min-height:44px}
.pager a:only-child:last-child{margin-left:auto}
.empty{color:var(--color-muted);padding:40px 0}
.editor-card{display:flex;gap:16px;align-items:flex-start;margin:18px 0}
.avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none;margin:0}
.editor-name{font-weight:700;margin:0}
.editor-bio{margin:4px 0 0;color:var(--color-muted);font-size:15px}
@media (max-width:600px){.page-head{margin:24px 0 6px}}
/* sub-sections under a section title: a row of pills, scrolling sideways on a phone */
.page-parent{margin:0 0 2px;font-size:14px;font-weight:500}
.page-parent a{color:var(--color-muted);display:inline-flex;align-items:center;min-height:32px}
.page-parent a::after{content:"›";margin-left:6px}
.subsections{display:flex;gap:8px;margin:14px calc(var(--gutter) * -1) 0;padding:0 var(--gutter);overflow-x:auto;
  scrollbar-width:none;overscroll-behavior-x:contain}
.subsections::-webkit-scrollbar{display:none}
.subsections a{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;
  border:1px solid var(--color-border);font-size:15px;font-weight:500;white-space:nowrap}
.subsections a[aria-current=page]{background:var(--color-accent);border-color:var(--color-accent);color:var(--color-bg)}
@media (pointer:coarse){.subsections a{min-height:44px}.page-parent a{min-height:44px}}

/* footer: clear of the home indicator */
.site-footer{margin-top:64px;border-top:1px solid var(--color-border);background:var(--color-surface);font-size:14px}
.footer-inner{display:flex;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;padding-top:28px;padding-bottom:8px}
.footer-brand{font-family:var(--font-heading);font-weight:900;font-size:20px;margin:0 0 6px}
.footer-desc,.footer-ai{color:var(--color-muted);margin:4px 0;max-width:560px}
.footer-links{display:flex;gap:0 20px;flex-wrap:wrap;align-items:center}
.footer-links a{display:inline-flex;align-items:center;min-height:44px}
.footer-copy{color:var(--color-muted);padding-top:8px;padding-bottom:calc(24px + env(safe-area-inset-bottom));font-size:13px}
@media (max-width:600px){.site-footer{margin-top:48px}.footer-inner{padding-top:24px}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;scroll-behavior:auto!important}
  .card-media img{transform:none!important}
}


/* 深度調教：電紫＋冷白的高級 AI 研究編輯室。全 Noto Sans TC 黑體，工程刻度語彙。 */
.theme-daily{font-family:var(--font-body)}
.theme-daily a:hover{color:var(--color-accent)}
.theme-daily :focus-visible{outline:2px solid var(--color-accent);outline-offset:3px}

/* ---- 頂欄：品牌條（≤900px 移除原生 details「全部欄目」，只留品牌列） ---- */
.theme-daily .masthead{position:relative;border-top:2px solid var(--color-accent);background:var(--color-bg)}
.theme-daily .masthead-bar{display:flex;align-items:center;gap:14px;height:72px;position:relative;min-width:0}
.theme-daily .brand{display:flex;align-items:center;gap:10px;min-width:0;flex:0 1 auto}
.theme-daily .brand picture{flex:none}
.theme-daily .brand-logo{height:30px;width:auto;max-width:min(220px,44vw);object-fit:contain}
.theme-daily .brand-name{font-family:var(--font-body);font-weight:700;font-size:20px;letter-spacing:.02em;line-height:1;white-space:nowrap}
.theme-daily .masthead-date{margin:0 0 0 auto;color:var(--color-muted);font-size:12.5px;font-variant-numeric:tabular-nums;letter-spacing:.06em;white-space:nowrap}

/* 桌面：8 真實欄目橫排（完整名稱）；分類 active/hover 淡紫底與既有底線 */
.theme-daily .sections-desktop{border-top:1px solid var(--color-border);background:var(--color-surface)}
.theme-daily .sections-desktop::before,.theme-daily .sections-desktop::after{opacity:0!important}
.theme-daily .sections-desktop .sections-inner{gap:0;font-size:14px;font-weight:500;scrollbar-width:none}
.theme-daily .sections-desktop .sections-inner::-webkit-scrollbar{display:none}
.theme-daily .sections-desktop .sections-inner::after{content:none}
.theme-daily .sections-desktop .sections-inner a{padding:0 14px;letter-spacing:.02em}
.theme-daily .sections-desktop .sections-inner a[aria-current=page]{color:var(--color-accent);box-shadow:inset 0 -2px 0 var(--color-accent);font-weight:700;background:color-mix(in srgb,var(--color-accent) 9%,transparent)}
.theme-daily .sections-desktop .sections-inner a:hover{background:color-mix(in srgb,var(--color-accent) 9%,transparent)}

/* ---- ≤900px：品牌列 48px，下方獨立 sticky 分類橫滑列（短名） ---- */
.theme-daily .topic-tabs{display:none}
@media (max-width:900px){
  .theme-daily .masthead-bar{height:48px;gap:10px}
  .theme-daily .brand-logo{height:26px;max-width:38vw}
  .theme-daily .brand-name{font-size:18px}
  .theme-daily .masthead-date{display:none}
  .theme-daily .sections-desktop{display:none}
}

/* ≤900px：sticky 分類橫滑列（短名），右端淡出提示可橫滑，pointer-events:none 不擋點擊，最後分類完全可見 */
@media (max-width:900px){
  .theme-daily .topic-tabs{display:block;position:sticky;top:0;z-index:50;background:var(--color-bg);border-bottom:1px solid var(--color-border)}
  .theme-daily .topic-tabs::after{content:"";position:absolute;top:0;bottom:0;right:0;width:44px;pointer-events:none;background:linear-gradient(to left,var(--color-bg),transparent)}
  .theme-daily .topic-tabs-inner{display:flex;align-items:center;height:44px;white-space:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:0 2px;padding:0 max(var(--gutter),env(safe-area-inset-right)) 0 max(var(--gutter),env(safe-area-inset-left))}
  .theme-daily .topic-tabs-inner::-webkit-scrollbar{display:none}
  .theme-daily .topic-tabs-inner a{flex:0 0 auto;min-width:0;min-height:44px;display:inline-flex;align-items:center;padding:0 12px;font-size:14px;font-weight:500;white-space:nowrap;letter-spacing:.02em}
  .theme-daily .topic-tabs-inner a[aria-current=page]{color:var(--color-accent);box-shadow:inset 0 -2px 0 var(--color-accent);font-weight:700;background:color-mix(in srgb,var(--color-accent) 9%,transparent)}
}

/* ---- 首屏：移除卡片外框，只留底部 1px 分隔線 ---- */
.theme-daily .hero{margin:0;padding:24px 0;border:0;border-bottom:1px solid var(--color-border)}
.theme-daily .hero-title{font-family:'Noto Serif TC','Noto Sans TC','PingFang TC',serif;font-weight:500;font-size:38px;line-height:1.5;letter-spacing:.06em;margin:0 0 8px}
.theme-daily .hero-title .hero-title-part{display:inline-block}
.theme-daily .hero-index{margin:0;color:var(--color-muted);font-size:12px;letter-spacing:.14em}

/* ---- 首頁：重點（7/12）+ 最新（5/12），下方剩餘兩欄 ---- */
.theme-daily .lead{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:30px 32px;align-items:start;padding:30px 0 8px}
.theme-daily .lead-main{grid-column:span 7;min-width:0}
.theme-daily .lead-side{grid-column:span 5;min-width:0}

/* 主稿：標題完整寬在圖上，不分窄文字欄；單欄堆疊 */
.theme-daily .lead-main-card{display:block;min-width:0}
.theme-daily .lead-main-title{font-family:var(--font-body);font-weight:700;font-size:30px;line-height:1.3;margin:0 0 10px;letter-spacing:.01em}
.theme-daily .lead-main-title a::after{content:none}
.theme-daily .lead-main-dek{margin:0 0 14px;color:var(--color-muted);font-size:16px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty}
.theme-daily .lead-main-media{display:block;overflow:hidden;border-radius:var(--radius);background:var(--color-surface);aspect-ratio:16/9;margin-top:18px}
.theme-daily .lead-main-media img{width:100%;height:100%;object-fit:cover;transition:transform .22s ease-out}

/* 右側「最新」4 條 */
.theme-daily .lead-side-title{font-family:var(--font-body);font-weight:700;font-size:18px;letter-spacing:.04em;margin:0 0 4px;padding:0 0 10px;border-bottom:2px solid var(--color-text);display:flex;align-items:center;gap:10px}
.theme-daily .lead-side-title::after{content:"";flex:1;height:1px;background:var(--color-border)}
.theme-daily .lead-side .latest-list{padding:0}

/* 最新新聞（下方）兩欄 */
.theme-daily .latest-section{margin-top:36px}
.theme-daily .latest-section .section-title{border-bottom-color:var(--color-accent)}
.theme-daily .latest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px}
.theme-daily .latest-grid .latest-item{min-width:0}

/* ---- 最新列表項：文字左 + 96x72 縮圖右 ---- */
.theme-daily .latest-item{display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--color-border);min-width:0}
.theme-daily .latest-list .latest-item:first-child{padding-top:0}
.theme-daily .latest-item-body{flex:1 1 auto;min-width:0}
.theme-daily .latest-item-title{display:block;font-size:18px;line-height:1.5;font-weight:500;transition:color .18s ease}
.theme-daily .latest-item-title a::after{content:"";position:absolute;inset:0}
.theme-daily .latest-item-title{position:relative}
.theme-daily .latest-item-meta{margin:6px 0 0;font-size:12px;color:var(--color-muted);font-variant-numeric:tabular-nums}
.theme-daily .latest-item-meta a{color:var(--color-muted)}
.theme-daily .latest-item-thumb{flex:0 0 96px;width:96px;height:72px;overflow:hidden;border-radius:var(--radius);background:var(--color-surface);align-self:center}
.theme-daily .latest-item-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .22s ease-out}

/* 微互動：新聞標題 hover 紫色＋細底線 180ms；圖片 hover scale(1.025) 220ms ease-out，僅精細指標，容器裁切避免跳版 */
.theme-daily .lead-main-title a,.theme-daily .card-title a{transition:color .18s ease}
@media (hover:hover){
  .theme-daily .lead-main-title a:hover,
  .theme-daily .latest-item-title:hover,
  .theme-daily .card-title a:hover{color:var(--color-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:currentColor}
}
@media (hover:hover) and (pointer:fine){
  .theme-daily .lead-main-card:hover .lead-main-media img,
  .theme-daily .card:hover .card-media img,
  .theme-daily .latest-item:hover .latest-item-thumb img{transform:scale(1.025)}
}

/* ---- 頁尾：一句定位 + 關於/RSS + 單一版權 ---- */
.theme-daily .site-footer{margin-top:72px;border-top:2px solid var(--color-accent);background:var(--color-surface)}
.theme-daily .footer-inner{padding-top:26px;padding-bottom:10px;align-items:center}
.theme-daily .footer-brand{font-family:var(--font-body);font-weight:700;font-size:17px;margin:0;letter-spacing:.02em}
.theme-daily .footer-links{margin-left:auto;gap:0 22px}
.theme-daily .footer-links a{font-weight:500;letter-spacing:.04em}
.theme-daily .footer-links a[aria-current=page],.theme-daily .footer-links a:hover{color:var(--color-accent)}
.theme-daily .footer-copy{padding-top:12px;padding-bottom:calc(26px + env(safe-area-inset-bottom));color:var(--color-muted);font-size:12.5px;letter-spacing:.08em}

/* ---- 卡片通用 ---- */
.theme-daily .card-title{font-family:var(--font-body)}
.theme-daily .card{transition:background-color .18s ease}
.theme-daily .card-media img{transition:transform .22s ease-out}
@media (hover:hover){
  .theme-daily .card:hover{background:var(--color-surface)}
}
.theme-daily .kicker{letter-spacing:.06em}

/* ---- 文章頁：內容 700px，正文 18px/1.85，分享收進原生 details ---- */
.theme-daily .article{max-width:700px;margin:36px auto 0}
.theme-daily .article-title{font-weight:700}
.theme-daily .prose{font-size:18px;line-height:1.85}
.theme-daily .share-wrap{margin:20px 0}
.theme-daily .share-wrap summary{list-style:none;cursor:pointer;user-select:none;display:inline-flex;align-items:center;gap:8px;width:fit-content;min-height:44px;padding:0 14px;border:1px solid var(--color-border);border-radius:var(--radius);font-size:14px;font-weight:700;background:var(--color-surface)}
.theme-daily .share-wrap summary::-webkit-details-marker{display:none}
.theme-daily .share-wrap summary::after{content:"＋";margin-left:6px;color:var(--color-muted);font-weight:400}
.theme-daily .share-wrap[open] summary{margin-bottom:12px}
.theme-daily .share-wrap[open] summary::after{content:"－"}
.theme-daily .share-wrap .share{margin:0}
/* ---- 分類頁子分類導覽：日系編輯式文字 tabs（去膠囊：無圓角／外框／實心底／陰影） ---- */
/* 容器：單行 nowrap、橫向捲動、整行底部 1px 淡分隔線；去 negative-margin 出血，第一項貼齊標題左邊；標題↔導覽 8px、導覽↔新聞 16px */
.theme-daily .subsections{margin:8px 0 16px;padding:0;border-bottom:1px solid var(--color-border);display:flex;flex-wrap:nowrap;align-items:stretch;gap:0 12px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.theme-daily .subsections::-webkit-scrollbar{display:none}
.theme-daily .subsections a{flex:none;min-width:0;display:inline-flex;align-items:center;min-height:44px;padding:0 8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--color-text);font-family:var(--font-body);font-size:13px;font-weight:400;letter-spacing:.01em;line-height:1.4;white-space:nowrap;transition:color .18s ease}
.theme-daily .subsections a[aria-current=page]{background:transparent;color:var(--color-accent);font-weight:500;box-shadow:inset 0 -2px 0 var(--color-accent)}
.theme-daily .subsections a:hover{color:var(--color-accent)}

/* ---- 平板 / 手機 ---- */
@media (max-width:900px){
  .theme-daily .hero-title{font-size:30px}
  .theme-daily .lead{grid-template-columns:repeat(12,minmax(0,1fr));gap:24px}
  .theme-daily .lead-main{grid-column:span 7}
  .theme-daily .lead-side{grid-column:span 5}
}

/* ---- 手機 390px：單欄，無水平溢出 ---- */
@media (max-width:600px){
  .theme-daily .hero{padding:16px 0;margin:0 0 20px}
  .theme-daily .hero-title{font-size:26px;line-height:1.5;font-weight:500}
  .theme-daily .hero-index{font-size:12px;letter-spacing:.14em}
  .theme-daily .lead{grid-template-columns:minmax(0,1fr);gap:22px;padding:20px 0 4px}
  .theme-daily .lead-main,.theme-daily .lead-side{grid-column:auto;min-width:0}
  .theme-daily .lead-main-card{display:block}
  .theme-daily .lead-main-title{font-size:24px;line-height:1.4}
  .theme-daily .lead-main-dek{font-size:15px}
  .theme-daily .lead-main-media{aspect-ratio:16/9;margin-top:14px}
  .theme-daily .latest-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .theme-daily .latest-grid .latest-item{padding:16px 0}
  .theme-daily .latest-item{gap:12px;padding:16px 0}
  .theme-daily .latest-item-title{font-size:17px;line-height:1.45}
  .theme-daily .latest-item-thumb{flex:0 0 84px;width:84px;height:63px;align-self:flex-start}
  .theme-daily .footer-links{margin-left:0}
  .theme-daily .site-footer{margin-top:52px}
  .theme-daily .article{margin-top:22px}
  .theme-daily .article-title{font-size:28px;line-height:1.4}
  .theme-daily .prose{font-size:18px;line-height:1.85}
}

/* 手機點按回饋：觸控裝置按壓時分類/新聞項顯示淡紫底 */
@media (pointer:coarse){
  .theme-daily .topic-tabs-inner a:active,
  .theme-daily .subsections a:active{background:color-mix(in srgb,var(--color-accent) 16%,transparent)}
  .theme-daily .card:active,
  .theme-daily .latest-item:active{background:color-mix(in srgb,var(--color-accent) 7%,transparent)}
}

/* ---- 無障礙：減動（全面取消 transition/animation/transform） ---- */
@media (prefers-reduced-motion:reduce){
  .theme-daily *,.theme-daily *::before,.theme-daily *::after{transition:none!important;animation:none!important}
  .theme-daily .lead-main-media img,.theme-daily .card-media img,.theme-daily .latest-item-thumb img{transform:none!important}
}

/* ---- 最終修補：消除 hero/lead 雙重空隙、手機重複列表標題及 36px 空隙 ---- */
@media(max-width:900px){.theme-daily .lead{padding-top:0!important}.theme-daily .lead-side-title{font-size:18px;line-height:1.5;margin:20px 0 0}.theme-daily .latest-section{margin-top:0!important}.theme-daily .latest-section>.section-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);border:0!important}.theme-daily .latest-grid{gap:0!important}.theme-daily .latest-item{padding-top:16px;padding-bottom:16px}.theme-daily .topic-tabs-inner a{min-height:44px;display:inline-flex;align-items:center}}

/* ================================================================
   DEEP TUNE HK — 關於頁（僅限 .dt-about，不影響其他頁面）
   ================================================================ */
.page-about .dt-about{max-width:1100px;margin:0 auto}
.page-about .dt-about :focus-visible{outline:2px solid var(--color-accent);outline-offset:3px}

/* ---- Hero：桌面 60/40（≤800px 改頂部橫條品牌 Logo） ---- */
.dt-hero{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:0 48px;align-items:center;padding:56px 0 48px;border-bottom:1px solid var(--color-border)}
.dt-mobile-brand{display:none}
.dt-eyebrow{font-family:ui-monospace,'SF Mono','Cascadia Code','Source Code Pro',Menlo,Consolas,monospace;font-size:12px;letter-spacing:.14em;color:var(--color-muted);margin:0 0 14px;text-transform:uppercase}
.dt-h1{font-family:var(--font-heading);font-weight:700;font-size:48px;line-height:1.25;margin:0 0 18px;letter-spacing:.01em}
.dt-lead{font-size:18px;line-height:1.6;margin:0 0 12px}
.dt-intro{font-size:16px;line-height:1.85;color:var(--color-muted);margin:0}
.dt-hero-brand{display:flex;justify-content:center;align-items:center;min-width:0}
.dt-brand-block{width:220px;height:200px;background:color-mix(in srgb,var(--color-accent) 10%,var(--color-bg));border:1px solid color-mix(in srgb,var(--color-accent) 22%,var(--color-border));border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:20px}
.dt-brand-img{height:56px;max-width:150px;width:auto;object-fit:contain;background:#fff;border-radius:4px;padding:8px 12px}
.dt-brand-name{font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-size:12px;letter-spacing:.18em;color:var(--color-muted)}

/* ---- 章節通用 ---- */
.dt-section{margin-top:48px}
.dt-section-title{font-size:22px;font-weight:700;margin:0 0 18px;padding-bottom:10px;border-bottom:1px solid var(--color-border);display:flex;align-items:center;gap:12px}
.dt-section-title::after{content:"";flex:1;height:1px;background:var(--color-border)}

/* ---- 三個角度：桌面 3 欄 / 手機 1 欄，細灰線、6px 圓角、無重陰影 ---- */
.dt-angles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dt-angle{border:1px solid var(--color-border);border-radius:6px;padding:20px;min-width:0}
.dt-angle-num{display:block;font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-size:13px;font-weight:700;color:var(--color-accent);letter-spacing:.12em;margin-bottom:10px}
.dt-angle-title{font-size:18px;font-weight:700;margin:0 0 8px}
.dt-angle-desc{font-size:15px;line-height:1.7;color:var(--color-muted);margin:0}

/* ---- 理念條：深紫 #24143F 白字 ---- */
.dt-philosophy{margin-top:48px;background:#24143F;color:#fff;padding:32px}
.dt-philosophy-inner{width:100%}
.dt-philosophy-title{font-size:22px;font-weight:700;margin:0 0 10px}
.dt-philosophy-text{font-size:16px;line-height:1.8;margin:0}

/* ---- 編輯分工：3 卡片，首字 monogram 淺紫底 ---- */
.dt-editors-intro{font-size:14px;color:var(--color-muted);margin:0 0 16px}
.dt-editors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dt-editor{border:1px solid var(--color-border);border-radius:6px;padding:18px;display:flex;gap:14px;align-items:flex-start;min-width:0}
.dt-editor-monogram{flex:none;width:40px;height:40px;border-radius:6px;background:color-mix(in srgb,var(--color-accent) 12%,var(--color-bg));color:var(--color-accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px}
.dt-editor-name{font-size:16px;font-weight:700;margin:0;line-height:1.4}
.dt-editor-title{display:block;font-weight:400;font-size:13px;color:var(--color-muted);margin-top:3px}
.dt-editor-desc{font-size:14px;line-height:1.7;color:var(--color-muted);margin:8px 0 0}

/* ---- CTA：44px+ 按鈕 ---- */
.dt-cta{margin-top:48px;text-align:center}
.dt-cta-text{font-size:20px;font-weight:700;margin:0 0 16px}
.dt-cta-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.dt-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 26px;font-size:15px;font-weight:700;letter-spacing:.04em;border-radius:6px;transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.dt-btn-primary{background:var(--color-accent);color:var(--color-accent-text)}
@media (hover:hover){.dt-btn-primary:hover{filter:brightness(1.08);color:var(--color-accent-text)}}
.dt-btn-outline{border:1px solid var(--color-accent);color:var(--color-accent)}
@media (hover:hover){.dt-btn-outline:hover{background:color-mix(in srgb,var(--color-accent) 9%,transparent);color:var(--color-accent)}}

/* ---- AI 披露：保留既有條件 ---- */
.dt-ai-note{margin-top:40px;padding-top:20px;border-top:1px solid var(--color-border);font-size:13px;line-height:1.8;color:var(--color-muted)}
.dt-ai-note p{margin:0}

/* ---- 深色模式：淺紫底改深紫混合，深紫理念條維持 ---- */
@media (prefers-color-scheme:dark){
  .dt-brand-block{background:color-mix(in srgb,var(--dark-accent) 14%,var(--dark-surface));border-color:color-mix(in srgb,var(--dark-accent) 30%,var(--dark-border))}
  .dt-brand-name{color:var(--dark-muted)}
  .dt-editor-monogram{background:color-mix(in srgb,var(--dark-accent) 16%,var(--dark-surface));color:var(--dark-accent)}
  .dt-angle-num{color:var(--dark-accent)}
  .dt-philosophy-text{opacity:.9}
}

/* ---- 平板 ≤800px：hero 改頂部 48px 小 Logo 橫條 ---- */
@media (max-width:800px){
  .dt-hero{grid-template-columns:minmax(0,1fr);padding:0 0 36px}
  .dt-mobile-brand{display:flex;align-items:center;gap:10px;height:48px;padding-bottom:10px;border-bottom:1px solid var(--color-border);margin-bottom:20px}
  .dt-mobile-logo{height:24px;width:auto;max-width:140px;object-fit:contain;display:block}
  .dt-mobile-brand-name{font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-size:12px;letter-spacing:.16em;color:var(--color-muted)}
  .dt-hero-brand{display:none}
  .dt-hero-text{padding:0}
}

/* ---- 手機 ≤600px：單欄、20px 邊距、32px 章節間距 ---- */
@media (max-width:600px){
  .page-about .dt-about{padding:0}
  .dt-hero{padding:0 0 32px;border-bottom:1px solid var(--color-border)}
  .dt-mobile-brand{margin-bottom:16px}
  .dt-eyebrow{margin-bottom:10px}
  .dt-h1{font-size:30px;line-height:1.25}
  .dt-lead{font-size:17px}
  .dt-intro{font-size:15px}
  .dt-section{margin-top:32px}
  .dt-section-title{font-size:19px;margin-bottom:14px}
  .dt-angles,.dt-editors{grid-template-columns:minmax(0,1fr);gap:12px}
  .dt-philosophy{padding:24px}
  .dt-philosophy-title{font-size:20px}
  .dt-philosophy-text{font-size:15px}
  .dt-cta-text{font-size:18px}
  .dt-btn{width:100%;padding:0 16px}
  .dt-cta-links{flex-direction:column;align-items:stretch}
  .dt-ai-note{font-size:12.5px}
}

/* 觸控按壓回饋（僅 about 頁組件） */
@media (pointer:coarse){
  .dt-btn:active{background:color-mix(in srgb,var(--color-accent) 16%,transparent);opacity:1}
}

@media (prefers-reduced-motion:reduce){
  .dt-about *,.dt-about *::before,.dt-about *::after{transition:none!important}
}
