:root {
  --bg: #edf2f4; --paper: #fff; --ink: #152630; --text: #334850; --muted: #64757d;
  --teal: #0a7779; --teal-dark: #075b5e; --teal-soft: #eef6f4; --line: #d7e2e3;
  --shadow: 0 24px 64px rgba(38,57,64,.13); --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg,#e8f1f2 0%,#f4f3f1 50%,#edf2f4 100%); color: var(--ink); font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","Microsoft JhengHei",sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal-dark); }
.wrap { width: min(1180px,calc(100% - 32px)); margin: 0 auto; }

.site-header { padding: 22px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { position: relative; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 2px; color: #fff; background: #086d70; box-shadow: 0 8px 20px rgba(8,85,88,.2); }
.brand-mark b { font-size: 19px; line-height: 1; }
.brand-mark small { position: absolute; top: 7px; right: 6px; font-size: 8px; font-weight: 800; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 20px; }
.brand-copy .word-ai { color: var(--teal-dark); }
.brand-copy span { margin-top: 2px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); }
.top-nav a { padding: 8px 12px; color: var(--muted); font-size: 14px; font-weight: 650; border-radius: 6px; }
.top-nav a:hover,.top-nav a.active { color: var(--teal-dark); background: #fff; box-shadow: 0 2px 8px rgba(38,57,64,.12); }
.top-nav .rss-link { margin-left: 2px; }

.intro-band { width: min(1180px,calc(100% - 32px)); margin: 0 auto; border: 1px solid rgba(211,222,223,.96); border-radius: 8px; overflow: hidden; background: linear-gradient(155deg,#e3efee 0%,#edf1f0 58%,#eee9e8 100%); box-shadow: var(--shadow); }
.intro-grid { width: 100%; min-height: 400px; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.55fr); align-items: center; gap: 72px; padding: 54px 42px; }
.eyebrow,.panel-label { margin: 0 0 12px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .11em; }
.intro-copy h1 { max-width: 760px; margin: 0; font-size: clamp(38px,4.1vw,58px); line-height: 1.14; }
.intro-text { max-width: 720px; margin: 22px 0 0; color: var(--text); font-size: 18px; line-height: 1.75; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 46px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; font-weight: 750; }
.button.primary { color: #fff; background: #0a8a8d; border-color: #0a8a8d; }
.button.primary:hover { color: #fff; background: var(--teal-dark); }
.button.secondary { background: #fff; }
.focus-panel { padding: 24px 26px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.focus-panel ul { list-style: none; margin: 0; padding: 0; }
.focus-panel li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.focus-panel li span { color: var(--teal); font-size: 11px; font-weight: 800; }
.focus-panel li strong { font-size: 15px; }

.journal { padding-top: 56px; padding-bottom: 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2 { margin: 0; font-size: 30px; }
.section-heading>a { color: var(--teal-dark); font-size: 14px; font-weight: 750; }
.blog-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: start; }
.post-list { display: grid; gap: 14px; }
.post-card { padding: 25px 26px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.post-card:hover { transform: translateY(-2px); border-color: #b8d2d1; box-shadow: var(--shadow); }
.post-card .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.post-card h2 { margin: 0; font-size: 23px; line-height: 1.38; }
.post-card h2 a:hover { color: var(--teal-dark); }
.post-card .excerpt { margin: 10px 0 0; color: var(--text); line-height: 1.7; }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.read-more { flex: 0 0 auto; color: var(--teal-dark); font-size: 13px; font-weight: 750; }
.tags,.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; color: #31565a; background: #f4f9f8; border: 1px solid #cfe0df; border-radius: 999px; font-size: 11px; font-weight: 650; }

.sidebar { display: grid; gap: 14px; }
.widget { padding: 20px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: var(--radius); }
.widget h2 { margin: 0 0 12px; font-size: 15px; }
.search-widget label { display: block; margin-bottom: 10px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 12px; top: 50%; width: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; }
input[type="search"] { width: 100%; height: 44px; padding: 8px 12px 8px 39px; color: var(--ink); background: #f8fbfa; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; outline: none; }
input[type="search"]:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,127,128,.1); }
.profile-widget { background: linear-gradient(155deg,#e3efee 0%,#edf1f0 58%,#eee9e8 100%); }
.profile-widget .panel-label { margin-bottom: 7px; }
.profile-widget h2 { font-size: 18px; }
.profile-widget p { margin: 0; color: var(--text); font-size: 13px; }
.profile-widget a { display: inline-block; margin-top: 14px; color: var(--teal-dark); font-size: 13px; font-weight: 750; }
.year-list,.plain-list { list-style: none; margin: 0; padding: 0; }
.year-list li,.plain-list li { border-top: 1px solid var(--line); }
.year-list a,.plain-list a { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.45); }
.footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-inner div { display: flex; gap: 18px; }

.site-header.compact { padding: 18px 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.site-header.compact .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header.compact h1 { margin: 0; font-size: 22px; }
.site-header.compact h1 a::before { content: "M+"; display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: 10px; color: #fff; background: var(--teal-dark); border-radius: 7px; font-size: 14px; vertical-align: middle; }
body>.top-nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.75); }
body>.top-nav .wrap { display: flex; gap: 4px; padding: 8px 0; }
body>.top-nav a { padding: 6px 10px; color: var(--muted); font-size: 13px; font-weight: 650; border-radius: 5px; }
.single { width: min(900px,calc(100% - 36px)); margin: 42px auto 70px; padding: 36px 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.single>h2 { margin: 0 0 10px; font-size: 32px; line-height: 1.3; }
.single .meta { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.archive-year { margin: 30px 0 8px; color: var(--teal-dark); font-size: 20px; }
.archive-item { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.archive-item .meta { margin: 0; }
.article { color: var(--text); }
.article h2 { color: var(--ink); }
.article h3 { margin: 32px 0 10px; color: var(--teal-dark); font-size: 21px; }
.article p { margin: 0 0 18px; }
.article img { max-width: 100%; height: auto; border-radius: 6px; }
.article a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote { margin: 24px 0; padding: 14px 20px; background: var(--teal-soft); border-left: 3px solid var(--teal); }
.article code { padding: 2px 5px; background: #edf3f2; border-radius: 4px; }
.empty-state { padding: 36px; color: var(--muted); text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.rss-page>p { color: var(--text); }
.rss-page h3 { margin-top: 28px; color: var(--teal-dark); }
.feed-address { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.feed-address code { overflow-wrap: anywhere; color: var(--teal-dark); }
.rss-note { font-size: 13px; color: var(--muted)!important; }

@media (max-width:860px) {
  .header-inner { align-items: flex-start; }
  .brand-copy span { display: none; }
  .top-nav { flex-wrap: wrap; justify-content: flex-end; }
  .top-nav a { padding: 7px 8px; }
  .intro-grid { grid-template-columns: 1fr; min-height: auto; gap: 28px; padding-top: 42px; padding-bottom: 42px; }
  .focus-panel ul { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
  .focus-panel li { display: block; padding-bottom: 4px; }
  .focus-panel li span { display: block; margin-bottom: 4px; }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width:600px) {
  .wrap { width: min(100% - 24px,1180px); }
  .site-header { padding: 14px 0; }
  .header-inner { display: grid; gap: 12px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 18px; }
  .top-nav { width: 100%; justify-content: space-between; gap: 0; border-top: 1px solid var(--line); padding-top: 9px; }
  .top-nav a { padding: 5px 4px; font-size: 12px; }
  .top-nav .rss-link { border: 0; margin: 0; }
  .intro-copy h1 { font-size: 34px; }
  .intro-grid { padding-left: 18px; padding-right: 18px; }
  .intro-text { font-size: 16px; }
  .intro-actions { display: grid; grid-template-columns: 1fr; }
  .focus-panel { padding: 18px; }
  .focus-panel ul { grid-template-columns: 1fr; gap: 0; }
  .focus-panel li { display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; }
  .journal { padding-top: 40px; padding-bottom: 48px; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 25px; }
  .section-heading>a { font-size: 12px; }
  .post-card { padding: 20px; }
  .post-card h2 { font-size: 20px; }
  .post-footer { align-items: flex-end; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
  .single { width: calc(100% - 24px); margin: 24px auto 48px; padding: 24px 20px; }
  .single>h2 { font-size: 27px; }
  .archive-item { grid-template-columns: 1fr; gap: 3px; }
}
