/*
Theme Name: 行腳沖繩資訊站
Description: 行腳沖繩多語資訊站主題：即時快訊、天氣颱風、活動祭典、自駕路線，並導流至租車與包車。
Version: 0.9.22
Author: 行腳沖繩
Requires PHP: 8.1
Text Domain: gyoukyaku
*/

:root {
  --ink: #1d2b36;
  --muted: #5d6b75;
  --sea: #0b6e8a;
  --sea-dark: #08546a;
  --sea-tint: #e6f2f5;
  --sand: #f7f3ec;
  --coral: #e2674a;
  --coral-tint: #fdeee9;
  --line: #e4e0d8;
  --card: #ffffff;
  --radius: 12px;
  --wrap: 1120px;
  --font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--sand);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sea); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.2; }

.nav-toggle {
  margin-left: auto; display: none;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.primary-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a { background: var(--sea-tint); color: var(--sea-dark); text-decoration: none; }
.header-cta { padding: 8px 14px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.header-cta:hover { background: #c9553a; color: #fff; text-decoration: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--sea) 0%, #128aa6 60%, #3aa7b8 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.hero h1 { font-size: clamp(26px, 4.5vw, 38px); margin-bottom: .3em; }
.hero p { font-size: 17px; opacity: .92; margin: 0 0 20px; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; font-size: 14px; border: 1px solid rgba(255,255,255,.3);
}
.chip:hover { background: rgba(255,255,255,.28); color: #fff; text-decoration: none; }

/* ---------- Alert ---------- */
.alert {
  margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius);
  background: var(--coral-tint); border: 1px solid #f4c4b6;
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
.alert strong { color: var(--coral); white-space: nowrap; }
.alert a { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
main { padding: 8px 0 48px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head a { font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ---------- Card ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 20px rgba(29,43,54,.08); transform: translateY(-2px); }
.card-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--sea-tint), #d3e9ee); display: grid; place-items: center; color: var(--sea); font-size: 20px; font-weight: 700; letter-spacing: .1em; overflow: hidden; }
.card-thumb.weather { background: linear-gradient(135deg, #e8f0fb, #d4e2f6); color: #1f4f8f; }
.card-thumb.events { background: linear-gradient(135deg, #fdeee9, #f9dccf); color: #a8432b; }
.card-thumb.drive { background: linear-gradient(135deg, #e7f5ea, #d2ecd9); color: #1d6b33; }
.card-thumb.traffic { background: linear-gradient(135deg, #fdf4dd, #f8e8bb); color: #7a5a00; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.45; }
.card-title a { color: var(--ink); }
.card-excerpt { color: var(--muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.cat-badge { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--sea-tint); color: var(--sea-dark); font-size: 12px; font-weight: 600; }
.cat-badge.weather { background: #e8f0fb; color: #1f4f8f; }
.cat-badge.events { background: #fdeee9; color: #a8432b; }
.cat-badge.drive { background: #e7f5ea; color: #1d6b33; }
.cat-badge.traffic { background: #fdf4dd; color: #7a5a00; }

.empty {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cta-card { border-radius: var(--radius); padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.cta-card.rental { background: var(--sea-dark); }
.cta-card.charter { background: var(--coral); }
.cta-card h3 { margin: 0; font-size: 20px; }
.cta-card p { margin: 0; opacity: .92; font-size: 15px; }
.cta-card .btn { margin-top: 8px; align-self: flex-start; background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.cta-card .btn:hover { text-decoration: none; opacity: .92; }

/* ---------- Single ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin-top: 28px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); }
.article h1 { font-size: clamp(24px, 3.6vw, 32px); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.entry { font-size: 17px; }
.entry h2 { font-size: 21px; margin-top: 1.8em; padding-left: 12px; border-left: 4px solid var(--sea); }
.entry h3 { font-size: 18px; margin-top: 1.5em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .3em; }
.entry blockquote {
  margin: 1.4em 0; padding: 14px 18px; border-radius: 10px;
  background: var(--sea-tint); border-left: 4px solid var(--sea); color: var(--ink);
}
.entry blockquote p { margin: 0; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0 1.2em; }
.entry hr ~ p { font-size: 14px; color: var(--muted); }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
.entry th { background: var(--sand); }
.entry figure { margin: 1.4em 0; }

.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-box h3 { font-size: 16px; margin-bottom: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list a { color: var(--ink); }

/* ---------- Archive ---------- */
.page-head { padding: 28px 0 0; }
.page-head h1 { font-size: 28px; margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 0; }
.pagination { margin-top: 28px; display: flex; gap: 6px; justify-content: center; }
.pagination .page-numbers { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pagination .current { background: var(--sea); color: #fff; border-color: var(--sea); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d0d6; padding: 36px 0 28px; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; font-size: 13px; }


/* ================================================================
   v0.2 首頁版面
   ================================================================ */
.today-strip { background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.today-strip .wrap { display: flex; gap: 14px; align-items: center; min-height: 42px; overflow: hidden; }
.today-date { font-weight: 700; color: var(--sea-dark); white-space: nowrap; }
.today-weather, .today-alert { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-weather strong, .today-alert strong { margin-right: 8px; padding: 1px 8px; border-radius: 6px; font-size: 12px; }
.today-weather strong { background: #e8f0fb; color: #1f4f8f; }
.today-alert strong { background: var(--coral); color: #fff; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lead-img { display: grid; place-items: center; aspect-ratio: 1200 / 630; background: var(--sea-tint); color: var(--sea); font-weight: 700; font-size: 24px; }
.lead-img img { width: 100%; height: 100%; object-fit: cover; }
.lead-body { padding: 18px 22px 22px; }
.lead-title { font-size: clamp(22px, 3vw, 30px); margin: 8px 0; }
.lead-title a { color: var(--ink); }
.lead-excerpt { color: var(--muted); margin: 0; }

.lead-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.side-title { font-size: 17px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--sea); }
.mini { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.mini:first-of-type { border-top: 0; }
.mini:hover { text-decoration: none; }
.mini:hover .mini-title { color: var(--sea); }
.mini-img { aspect-ratio: 1200 / 630; border-radius: 8px; overflow: hidden; background: var(--sea-tint); }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { display: flex; flex-direction: column; gap: 4px; }
.mini-title { font-weight: 700; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.section-desc { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cat-section .section-head h2 { padding-left: 12px; border-left: 5px solid var(--sea); }
.cat-section.weather .section-head h2 { border-color: #1f5fa8; }
.cat-section.news .section-head h2 { border-color: #b23a2e; }
.cat-section.events .section-head h2 { border-color: var(--coral); }
.cat-section.drive .section-head h2 { border-color: #1d6b44; }
.cat-section.traffic .section-head h2 { border-color: #9a7b1f; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-list { display: flex; flex-direction: column; gap: 12px; }

.card-thumb { aspect-ratio: 1200 / 630; }
.card-row { flex-direction: row; }
.card-row .card-thumb { width: 42%; flex: none; aspect-ratio: auto; min-height: 96px; font-size: 14px; }
.card-row .card-body { padding: 10px 14px; justify-content: center; }
.card-row .card-title { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-large .card-title { font-size: 20px; }

.hero-img { margin: 18px 0 8px; border-radius: 10px; overflow: hidden; }
.hero-img img { width: 100%; }

/* ================================================================
   v0.3 會員、優惠券、留言
   ================================================================ */
.header-auth { display: flex; align-items: center; gap: 10px; margin-left: 8px; white-space: nowrap; font-size: 14px; }
.header-auth > a:first-child { color: var(--ink); }
.header-member { margin-left: 8px; padding: 6px 12px; border-radius: 999px; background: var(--sea-tint); color: var(--sea-dark); font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-member .pts { color: var(--coral); }
.primary-nav a { padding: 8px 9px; font-size: 14px; }
@media (max-width: 860px) {
  .header-auth .header-cta { display: inline-block; }
  .header-auth > a:first-child { display: none; }
}

.gk-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--sea); color: #fff; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; text-align: center; font-family: inherit; }
.gk-btn:hover { background: var(--sea-dark); color: #fff; text-decoration: none; }
.gk-btn.block { display: block; width: 100%; margin: 10px 0 6px; }
.gk-btn.done { background: #c9d2d8; cursor: default; }
.gk-btn.ghost { background: transparent; color: var(--sea); border: 1px solid var(--sea); }
.gk-btn.light { background: #fff; color: var(--sea-dark); }
.gk-btn.ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.gk-small { font-size: 13px; color: var(--muted); }
.gk-small.center { text-align: center; }
.gk-hp { position: absolute; left: -9999px; }

.gk-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.gk-notice.ok { background: #e7f5ea; color: #1d6b33; }
.gk-notice.error { background: var(--coral-tint); color: #a8432b; }

.gk-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .gk-auth { grid-template-columns: 1fr; } }
.gk-auth-intro { background: var(--sea-tint); border-radius: var(--radius); padding: 22px; }
.gk-auth-intro h2 { margin-top: 0; border: 0; padding: 0; }
.gk-form { display: flex; flex-direction: column; gap: 12px; }
.gk-form.gk-narrow { max-width: 420px; }
.gk-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.gk-form input:not([type=checkbox]), .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.gk-form .gk-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.gk-rules { padding-left: 1.2em; margin: 0; }
.gk-rules li { margin: 4px 0; }

.gk-member-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--sea), #2aa3b8); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 8px; flex-wrap: wrap; }
.gk-hello { font-size: 20px; font-weight: 700; }
.gk-level { display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 13px; }
.gk-points { text-align: right; }
.gk-points span { display: block; font-size: 13px; opacity: .85; }
.gk-points strong { font-size: 36px; line-height: 1.1; }
.gk-balance { font-size: 16px; }

.gk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gk-table th, .gk-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.gk-table .plus { color: #1d6b33; font-weight: 700; }
.gk-table .minus { color: #a8432b; font-weight: 700; }

.gk-coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 12px 0 24px; }
.gk-coupon { display: grid; grid-template-columns: 1fr 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gk-coupon-main { padding: 16px 18px; border-right: 2px dashed var(--line); }
.gk-coupon-partner { font-size: 13px; color: var(--muted); }
.gk-coupon-title { font-weight: 700; font-size: 17px; margin: 2px 0 4px; }
.gk-coupon-discount { color: var(--coral); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.gk-coupon-side { background: var(--sand); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.gk-cost { font-weight: 700; font-size: 18px; color: var(--sea-dark); }
.gk-code { font-family: ui-monospace, Menlo, monospace; font-size: 16px; font-weight: 700; letter-spacing: .05em; background: #fff; border: 1px dashed var(--sea); border-radius: 6px; padding: 6px 8px; }

.member-box .mb-points { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; }
.member-box .mb-points strong { font-size: 26px; color: var(--sea-dark); }

.member-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--sea-dark), #2aa3b8); color: #fff; border-radius: var(--radius); padding: 24px 28px; }
.member-banner h2 { margin: 0 0 8px; font-size: 22px; }
.member-banner ul { margin: 0; padding-left: 1.2em; opacity: .95; }
.mbn-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.comments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--muted); }
.comment-metadata a { color: var(--muted); }
.comment-content { margin-top: 6px; }
.comment-awaiting-moderation { color: #996800; font-size: 13px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.comment-form .form-submit input { background: var(--sea); color: #fff; border: 0; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }

.cat-section.food .section-head h2 { border-color: #a8432b; }
.cat-section.shopping .section-head h2 { border-color: #6b3fa0; }
.cat-section.islands .section-head h2 { border-color: #0a7a8c; }
.cat-section.realestate .section-head h2 { border-color: #2f3e4e; }
.cat-section.deals .section-head h2 { border-color: #c2410c; }
.cat-badge.food { background: #fbe9e2; color: #8a3520; }
.cat-badge.shopping { background: #efe7fa; color: #5a3388; }
.cat-badge.islands { background: #e2f6f7; color: #0a6676; }
.cat-badge.realestate { background: #e8edf2; color: #2f3e4e; }
.cat-badge.deals { background: #fdeede; color: #a33a0b; }
.card-thumb.food { background: linear-gradient(135deg, #fbe9e2, #f4cdbd); color: #8a3520; }
.card-thumb.realestate { background: linear-gradient(135deg, #e8edf2, #cfd9e3); color: #2f3e4e; }

/* ---------- 天氣預報看板（天氣與颱風分類頁） ---------- */
.wx-board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 20px; }
.wx-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.wx-tab { flex: none; border: 1px solid var(--line); background: #f6f8fa; color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.wx-tab:hover { border-color: #9fc3d0; }
.wx-tab.on { background: var(--sea); border-color: var(--sea); color: #fff; font-weight: 600; }
.wx-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .wx-days { grid-template-columns: 1fr; } }
.wx-day { border: 1px solid #dbe5ec; border-radius: 10px; overflow: hidden; }
.wx-day > header { background: #eef5f9; padding: 8px 14px; font-size: 15px; color: var(--muted); }
.wx-day > header strong { color: var(--ink); font-size: 17px; margin-right: 6px; }
.wx-main { display: flex; align-items: center; gap: 16px; padding: 14px 16px 6px; }
.wx-icon { display: inline-flex; align-items: center; gap: 2px; }
.wx-link { color: #9aa7b2; font-size: 14px; margin: 0 1px; }
.wx-temps { display: flex; flex-direction: column; gap: 2px; }
.wx-temps .wx-label { font-size: 17px; font-weight: 700; }
.wx-temps .hi, .wx-temps .lo { font-size: 30px; font-weight: 700; line-height: 1.1; }
.hi { color: #e0452b; } .lo { color: #2a6fdb; }
.hi small, .lo small { font-size: .5em; font-weight: 600; margin-left: 1px; }
.sep { color: #b9c3cb; margin: 0 4px; }
.na { color: #b9c3cb; }
.wx-pop { width: calc(100% - 32px); margin: 8px 16px; border-collapse: collapse; font-size: 13px; text-align: center; }
.wx-pop th, .wx-pop td { border: 1px solid #e3eaef; padding: 4px 2px; }
.wx-pop th { background: #f6f8fa; font-weight: 500; color: var(--muted); width: 22%; }
.wx-pop tr:last-child td { font-size: 16px; font-weight: 700; }
.wx-pop td small, .wx-week td small { font-size: 11px; font-weight: 500; }
.wet { color: #2a6fdb; background: #eef4ff; }
.wx-more { margin: 4px 16px 14px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 13.5px; line-height: 1.55; }
.wx-more dt { color: var(--muted); }
.wx-more dd { margin: 0; }
.wx-h { font-size: 17px; margin: 20px 0 8px; padding-left: 10px; border-left: 4px solid var(--sea); }
.wx-week-wrap { overflow-x: auto; }
.wx-week { width: 100%; min-width: 620px; border-collapse: collapse; text-align: center; font-size: 14px; }
.wx-week th, .wx-week td { border: 1px solid #e3eaef; padding: 6px 4px; }
.wx-week th { background: #f6f8fa; color: var(--muted); font-weight: 500; width: 76px; font-size: 13px; }
.wx-week tr.d td { background: #f6f8fa; font-weight: 600; }
.wx-week tr.d td small { font-weight: 400; color: var(--muted); }
.wx-week td.we { color: #e0452b; }
.wx-week tr.i td { padding: 8px 2px; }
.wx-week tr.i .wx-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wx-week tr.i .wx-icon { justify-content: center; }
.wx-week .hi, .wx-week .lo { font-weight: 700; }
.wx-week tr.rel td { color: var(--muted); font-size: 12px; }
.wx-src { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.wx-temps > div:last-child { white-space: nowrap; }
.wx-pop th { white-space: nowrap; }
.wx-week th { position: sticky; left: 0; z-index: 1; }
@media (max-width: 520px) {
  .wx-board { padding: 12px 10px; }
  .wx-main { gap: 10px; padding: 12px 12px 4px; }
  .wx-main .wx-icon svg:first-child { width: 56px; height: 56px; }
  .wx-temps .hi, .wx-temps .lo { font-size: 26px; }
  .wx-pop { width: calc(100% - 20px); margin: 8px 10px; font-size: 12px; }
  .wx-pop th { width: auto; padding: 4px 6px; }
  .wx-more { margin: 4px 12px 12px; }
  .wx-week th { width: 64px; }
}
.hero-img figcaption { font-size: 12px; color: var(--muted); text-align: right; margin-top: 6px; }
.hero-img figcaption a { color: var(--muted); text-decoration: underline; }

.entry figure.okp-inline { margin: 1.6em 0; }
.entry figure.okp-inline img { width: 100%; border-radius: 10px; }
.entry figure.okp-inline figcaption { font-size: 12px; color: var(--muted); text-align: right; margin-top: 6px; }
.entry figure.okp-inline figcaption a { color: var(--muted); text-decoration: underline; }

/* =====================================================================
   Yahoo 風格版面（v0.3）：頁首搜尋列、天氣列、服務圖示、分類分頁、新聞列表
   ===================================================================== */
:root { --y-bg: #f2f4f6; --y-line: #e6e8eb; --y-red: #f0565a; --y-blue: #1e6fd9; --y-ink: #1b1f23; --y-sub: #747b82; }
body { background: var(--y-bg); color: var(--y-ink); }
.y-wrap { max-width: 1120px; margin: 0 auto; padding: 0 12px; }
.y-noscroll { overflow: hidden; }

/* 頁首 */
.y-header { background: #fff; }
.y-top { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.y-logo { display: flex; align-items: center; gap: 8px; color: var(--y-ink); flex: none; }
.y-logo:hover { text-decoration: none; color: var(--y-ink); }
.y-logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--y-red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.y-logo-text { font-weight: 800; font-size: 20px; letter-spacing: .02em; line-height: 1.1; }
.y-logo-text small { display: block; font-size: 11px; font-weight: 500; color: var(--y-sub); letter-spacing: 0; }
.y-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.y-actions .header-member, .y-actions .header-auth a { font-size: 14px; color: var(--y-ink); font-weight: 600; }
.y-actions .header-auth { display: flex; gap: 12px; align-items: center; }
.y-actions .header-cta { background: var(--y-red); color: #fff !important; padding: 6px 12px; border-radius: 999px; }
.y-actions .pts { color: var(--y-red); }
.y-burger { border: 0; background: none; padding: 6px; color: var(--y-ink); cursor: pointer; }
.y-ico { display: block; }

.y-search { display: flex; align-items: stretch; border: 2px solid var(--y-blue); border-radius: 8px; overflow: hidden; background: #fff; }
.y-search-ico { display: grid; place-items: center; padding: 0 4px 0 10px; color: #8a9097; }
.y-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 8px; background: none; }
.y-search button { border: 0; background: var(--y-blue); color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 0 22px; cursor: pointer; }
.y-search-pc { flex: 1; max-width: 560px; }
.y-search-sp { display: none; margin: 0 12px 10px; }
@media (max-width: 760px) {
  .y-search-pc { display: none; }
  .y-search-sp { display: flex; }
  .y-actions .header-cta { display: none; }
}

/* 天氣列 */
.y-wx { border-top: 1px solid var(--y-line); }
.y-wx-in { display: flex; align-items: center; min-height: 64px; }
.y-wx-in > a { color: var(--y-ink); display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-right: 1px solid var(--y-line); }
.y-wx-in > a:last-child { border-right: 0; }
.y-wx-in > a:hover { text-decoration: none; background: #f7f9fb; }
.y-wx-loc { flex-direction: column; align-items: flex-start !important; gap: 0 !important; font-size: 14px; line-height: 1.3; }
.y-wx-loc span { color: var(--y-blue); font-size: 12px; }
.y-wx-day .wx-icon .wx-link, .y-wx-day .wx-icon svg + .wx-link + svg { display: none; }
.y-wx-txt { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.y-wx-t em { font-style: normal; font-weight: 700; font-size: 15px; }
.y-wx-t small { color: var(--y-sub); }
.y-wx-l { color: var(--y-sub); font-size: 12px; }
.y-wx-radar { margin-left: auto; flex-direction: column; gap: 2px !important; font-size: 12px; }
.y-radar-ico { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--y-blue); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px #9cc2f2; }
@media (max-width: 520px) {
  .y-wx-in > a { padding: 6px 8px; }
  .y-wx-loc span { display: none; }
}

/* 服務圖示 */
.y-svc { border-top: 1px solid var(--y-line); }
.y-svc-in { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
.y-svc-in::-webkit-scrollbar { display: none; }
.y-svc-item { flex: 1 0 68px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--y-ink); font-size: 12.5px; padding: 4px 2px; border-radius: 8px; }
.y-svc-item:hover { text-decoration: none; background: #f5f7f9; color: var(--y-ink); }
.y-svc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }

/* 分類分頁 */
.y-tabs { background: #f7f8f9; border-top: 1px solid var(--y-line); border-bottom: 1px solid var(--y-line); position: sticky; top: 0; z-index: 40; }
.admin-bar .y-tabs { top: 32px; }
@media (max-width: 782px) { .admin-bar .y-tabs { top: 46px; } }
.y-tabs-in { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0; }
.y-tabs-in::-webkit-scrollbar { display: none; }
.y-tab { flex: none; padding: 12px 18px; font-size: 16px; font-weight: 700; color: #3c4248; position: relative; white-space: nowrap; }
.y-tab + .y-tab::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 1px solid #d8dbdf; }
.y-tab:hover { text-decoration: none; color: var(--y-red); }
.y-tab.on { background: var(--y-red); color: #fff; }
.y-tab.on::before, .y-tab.on + .y-tab::before { display: none; }

/* 抽屜選單 */
.y-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 100; }
.y-drawer-in { position: absolute; right: 0; top: 0; bottom: 0; width: min(300px, 84vw); background: #fff; padding: 18px 20px; overflow-y: auto; }
.y-drawer-close { border: 0; background: none; float: right; cursor: pointer; padding: 4px; }
.y-drawer h3 { font-size: 13px; color: var(--y-sub); margin: 18px 0 6px; }
.y-drawer ul { list-style: none; margin: 0; padding: 0; }
.y-drawer li a { display: block; padding: 10px 2px; border-bottom: 1px solid var(--y-line); color: var(--y-ink); font-weight: 600; }

/* 主內容 */
.y-main { padding-top: 12px; padding-bottom: 32px; }
.y-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .y-cols { grid-template-columns: 1fr; } }
.y-col-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.y-side { display: flex; flex-direction: column; gap: 12px; }
.y-box { background: #fff; border-radius: 6px; padding: 4px 16px; }
@media (max-width: 760px) { .y-main { padding-left: 0; padding-right: 0; } .y-box { border-radius: 0; padding: 4px 12px; } }
.y-alert { display: flex; align-items: center; gap: 10px; background: #fff3f0; border: 1px solid #f7c6bb; color: var(--y-ink); padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-weight: 600; }
.y-alert strong { background: var(--y-red); color: #fff; padding: 1px 8px; border-radius: 4px; font-size: 13px; flex: none; }
.y-alert span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.y-alert:hover { text-decoration: none; }

/* 新聞列表 */
.y-list { list-style: none; margin: 0; padding: 0; }
.y-row + .y-row { border-top: 1px solid var(--y-line); }
.y-row a { display: flex; gap: 14px; padding: 12px 0; color: var(--y-ink); align-items: center; }
.y-row a:hover { text-decoration: none; }
.y-row a:hover .y-row-title { color: var(--y-blue); text-decoration: underline; }
.y-thumb { flex: none; width: 84px; height: 84px; border-radius: 4px; overflow: hidden; background: #e9edf1; display: grid; place-items: center; }
.y-thumb img { width: 100%; height: 100%; object-fit: cover; }
.y-noimg { font-size: 12px; color: var(--y-sub); font-weight: 700; }
.y-row-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.y-row-title { font-size: 17px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.y-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--y-sub); }
.y-cmt { display: inline-flex; align-items: center; gap: 2px; color: var(--y-blue); }
.y-cmt .y-ico { width: 15px; height: 15px; }
.y-new { background: #f7a400; color: #fff; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 999px; letter-spacing: .03em; }
.y-cat { font-size: 12px; font-weight: 700; color: var(--sea-dark); }
.y-cat.events { color: #c2553a; } .y-cat.weather { color: #1f5fa8; } .y-cat.news { color: #c0392b; } .y-cat.traffic { color: #8a6500; }
.y-more { display: flex; justify-content: center; align-items: center; gap: 2px; padding: 12px; border-top: 1px solid var(--y-line); font-weight: 700; color: var(--y-blue); }
.y-more .y-ico { width: 16px; height: 16px; }
.y-list-s .y-thumb { width: 64px; height: 64px; }
.y-list-s .y-row-title { font-size: 15px; }
@media (min-width: 961px) { .y-thumb { width: 96px; height: 72px; } }

/* 大圖卡 */
.y-big a { display: block; color: var(--y-ink); padding: 12px 0; }
.y-big a:hover { text-decoration: none; }
.y-big-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 6px; background: #e9edf1; }
.y-big-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.y-big a:hover .y-big-img img { transform: scale(1.02); }
.y-big-body { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.y-big-title { font-size: 20px; font-weight: 800; line-height: 1.45; }
.y-pick { padding-top: 0; padding-bottom: 0; }

/* 分類區塊 */
.y-block-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 4px; border-bottom: 2px solid var(--y-ink); }
.y-block-head h2 { font-size: 18px; margin: 0; }
.y-block-head a { font-size: 14px; display: inline-flex; align-items: center; color: var(--y-blue); }
.y-block-head a .y-ico { width: 16px; height: 16px; }
@media (min-width: 761px) {
  .y-block-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
  .y-block-body .y-big-title { font-size: 18px; }
}
.y-banner { padding: 12px; background: none; }
.y-banner > * { margin: 0; }

/* 右側欄 */
.y-side .side-box { border-radius: 6px; border: 0; }
.y-side-wx-days { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
.y-side-wx-day { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.y-side-wx-l { font-weight: 700; }
.y-side-wx-label { font-size: 13px; color: var(--y-sub); }
.y-side-wx-t em { font-style: normal; font-weight: 800; font-size: 17px; }
.y-side-wx-pop { font-size: 12px; color: var(--y-blue); }
.y-rank ol { list-style: none; margin: 0; padding: 4px 0 8px; counter-reset: r; }
.y-rank li a { display: flex; gap: 10px; padding: 9px 0; color: var(--y-ink); font-size: 14.5px; line-height: 1.5; border-bottom: 1px solid var(--y-line); }
.y-rank li:last-child a { border-bottom: 0; }
.y-rank-n { flex: none; width: 22px; height: 22px; border-radius: 4px; background: #eef1f4; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--y-sub); }
.y-rank li:nth-child(-n+3) .y-rank-n { background: var(--y-red); color: #fff; }

/* 分類頁標題 */
.y-page-head { background: #fff; border-radius: 6px; padding: 14px 16px; }
.y-page-head h1 { font-size: 22px; margin: 0; }
.y-page-head p { margin: 4px 0 0; color: var(--y-sub); font-size: 14px; }
@media (max-width: 760px) { .y-page-head { border-radius: 0; } }
.y-col-main .wx-board { margin-top: 0; }

/* 舊版頁首相關（保留給文章頁以外不再使用） */
.site-header, .today-strip { display: none; }
/* 縮圖：封面下方有標題文字，小圖改取上半部 */
.y-thumb img { object-position: 50% 22%; }
@media (max-width: 760px) { .y-alert { margin: 0 12px 4px; } }
.y-logo-text { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.y-logo-text small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .y-logo-text { font-size: 17px; max-width: calc(100vw - 150px); } }
.y-crop { display: block; width: 100%; height: 100%; overflow: hidden; }
.y-crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.45); transform-origin: 50% 8%; }
@media (max-width: 760px) { .y-logo-rest { display: none; } }
.wx-now { font-size: 14px; color: var(--muted); margin-top: 2px; }
.wx-now small { font-size: 11px; margin-left: 4px; }

/* 手機版不超出畫面：文章欄、主欄都不被內容撐寬 */
.layout, .y-cols { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 961px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } .y-cols { grid-template-columns: minmax(0, 1fr) 320px; } }
.article, .sidebar, .y-col-main, .y-side { min-width: 0; }
.entry { overflow-wrap: anywhere; word-break: break-word; }
.entry img, .entry iframe, .entry video { max-width: 100%; height: auto; }
.entry pre { overflow-x: auto; }
.entry table { max-width: 100%; }
.entry th, .entry td { white-space: normal; min-width: 72px; }
.meta { min-width: 0; }
@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  .layout { margin-top: 12px; gap: 16px; }
  .article { padding: 16px 14px; border-radius: 8px; }
  .article h1 { font-size: 22px; }
  .entry { font-size: 16px; }
  .sidebar { position: static; }
}
html, body { overflow-x: clip; }

/* ---------- 語言切換（v0.4.0） ---------- */
.y-lang { display: flex; gap: 4px; align-items: center; font-size: 12px; }
.y-lang a { padding: 3px 9px; border-radius: 999px; border: 1px solid #d3dbe1; color: var(--muted); line-height: 1.5; white-space: nowrap; font-weight: 600; }
.y-lang a:hover { text-decoration: none; border-color: var(--sea); color: var(--sea); }
.y-lang a.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.y-lang-mini { display: none; }
.y-lang-drawer, .y-lang-foot { margin: 6px 0 16px; flex-wrap: wrap; }
.y-lang-drawer .y-lang-mini, .y-lang-foot .y-lang-mini { display: none !important; }
.y-lang-drawer .y-lang-full, .y-lang-foot .y-lang-full { display: inline !important; }
.y-lang-foot a { border-color: rgba(255,255,255,.35); color: inherit; }
.gk-tr-note { margin-top: 18px; color: var(--muted); }
html[lang^="ko"] { --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html[lang^="en"] .y-logo-text { letter-spacing: 0; }
@media (max-width: 760px) {
  .y-actions .y-lang { gap: 2px; }
  .y-actions .y-lang a { padding: 2px 6px; font-size: 11px; }
  .y-actions .y-lang-full { display: none; }
  .y-actions .y-lang-mini { display: inline; }
  .y-logo-text { max-width: calc(100vw - 205px); }
}

/* ---------- 分享按鈕（v0.5.0） ---------- */
.gk-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 16px; }
.gk-share-bottom { margin: 28px 0 8px; padding: 16px; background: var(--sea-tint); border-radius: var(--radius); }
.gk-share-label { width: 100%; font-weight: 700; font-size: 15px; color: var(--ink); }
.gk-sh { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--c); color: #fff !important; font-size: 13px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; line-height: 1; text-decoration: none !important; }
.gk-sh:hover { filter: brightness(1.08); }
.gk-sh svg { flex: none; }
.gk-sh[hidden] { display: none; }
.gk-sh-copy.ok { background: #1f8f4e; }
@media (max-width: 600px) {
  .gk-share-top .gk-sh { width: 36px; padding: 0; justify-content: center; }
  .gk-share-top .gk-sh span { display: none; }
  .gk-share-bottom { display: grid; grid-template-columns: repeat(2, 1fr); }
  .gk-share-bottom .gk-share-label { grid-column: 1 / -1; }
  .gk-share-bottom .gk-sh { justify-content: center; padding: 0 6px; min-width: 0; }
  .gk-share-bottom .gk-sh span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- v0.7.0：文章首屏精簡、活動資訊卡、目錄、相關閱讀、活動日曆 ---------- */
/* 上方分享列改成一排小圖示（手機首屏讓內容早點出現） */
.gk-share-top { flex-wrap: nowrap; gap: 6px; margin: 8px 0 10px; overflow-x: auto; scrollbar-width: none; }
.gk-share-top::-webkit-scrollbar { display: none; }
.gk-share-top .gk-sh { width: 32px; height: 32px; padding: 0; justify-content: center; flex: none; }
.gk-share-top .gk-sh span { display: none; }
.gk-share-top .gk-sh svg { width: 17px; height: 17px; }
.article h1 { margin-bottom: 6px; line-height: 1.35; }

/* 活動資訊卡 */
.gk-evbox { border: 1px solid #f1c9bd; background: #fff7f4; border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; font-size: 15px; }
.gk-evbox-row { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; }
.gk-evbox-k { flex: none; width: 3.2em; color: var(--muted); font-size: 13px; }
.gk-evbox-v { min-width: 0; }
.gk-evbox-v small { color: var(--muted); }
.gk-evbox-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gk-evbox-act a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid #e9b4a5; color: #b2462c; font-size: 13px; font-weight: 700; text-decoration: none; }
.gk-evbox-act a:hover { background: #fdeee9; }
.gk-ev-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #eef2f4; color: var(--muted); vertical-align: 1px; white-space: nowrap; }
.gk-ev-st.now, .gk-ev-st.today { background: #e2674a; color: #fff; }
.gk-ev-st.soon { background: #e6f3f6; color: var(--sea); }
.gk-ev-st.ended { background: #eee; color: #888; }

/* 目錄 */
.gk-toc { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 1.2em 0; background: #fbfaf7; font-size: 15px; }
.gk-toc summary { cursor: pointer; font-weight: 700; }
.gk-toc ul { margin: 8px 0 2px; padding-left: 1.3em; }
.gk-toc li.lv3 { margin-left: 1em; list-style: circle; }
.gk-toc a { color: var(--ink); text-decoration: none; }
.gk-toc a:hover { color: var(--sea); text-decoration: underline; }
.entry [id^="sec-"] { scroll-margin-top: 70px; }

/* 相關閱讀 */
.gk-rel { margin: 26px 0 6px; }
.gk-rel h2 { font-size: 18px; margin: 0 0 8px; padding-left: 10px; border-left: 4px solid var(--coral); }
.gk-rel .y-list { margin: 0; }
.gk-rel-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--sea); }
.gk-rel-more .y-ico { width: 16px; height: 16px; }

/* 活動卡片 */
.gk-ev-list { list-style: none; margin: 0; padding: 0; }
.gk-ev { border-top: 1px solid var(--line); }
.gk-ev:first-child { border-top: 0; }
.gk-ev[hidden] { display: none; }
.gk-ev > a { display: grid; grid-template-columns: 46px 72px 1fr; gap: 10px; align-items: center; padding: 10px 2px; color: var(--ink); text-decoration: none; }
.gk-ev > a:hover .gk-ev-title { color: var(--sea); text-decoration: underline; }
.gk-ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 46px; border-radius: 8px; background: #fff1ec; color: #b2462c; line-height: 1.1; }
.gk-ev-date b { font-size: 15px; }
.gk-ev-date small { font-size: 11px; }
.gk-ev-thumb { width: 72px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--sand); display: block; }
.gk-ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gk-ev-thumb .y-crop { display: block; width: 100%; height: 100%; overflow: hidden; }
.gk-ev-thumb .y-crop img { height: 160%; object-position: top; }
.gk-ev-thumb .y-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 11px; color: var(--muted); }
.gk-ev-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gk-ev-title { font-weight: 700; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gk-ev-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--muted); }
.gk-ev-loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* 首頁：近期活動（橫向捲動） */
.gk-home-ev { padding-bottom: 6px; }
.gk-home-ev-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px; scrollbar-width: none; }
.gk-home-ev-chips::-webkit-scrollbar { display: none; }
.gk-home-ev-chips a { flex: none; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: #fff1ec; color: #b2462c; font-weight: 700; text-decoration: none; }
.gk-ev-strip { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gk-ev-mini { flex: none; width: 210px; border: 1px solid var(--line) !important; border-radius: 10px; scroll-snap-align: start; overflow: hidden; background: #fff; }
.gk-ev-mini > a { display: flex; flex-direction: column; gap: 0; padding: 0; position: relative; align-items: stretch; }
.gk-ev-mini .gk-ev-thumb { width: 100%; height: 108px; border-radius: 0; }
.gk-ev-mini .gk-ev-date { position: absolute; top: 8px; left: 8px; width: 44px; height: 44px; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.gk-ev-mini .gk-ev-body { padding: 8px 10px 10px; }
.gk-ev-mini .gk-ev-title { font-size: 14px; min-height: 2.8em; }

/* 活動日曆 */
.gk-cal-head h1 small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.gk-cal-head .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.gk-cal-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.gk-cal-tabs::-webkit-scrollbar { display: none; }
.gk-cal-tabs a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: #fff; }
.gk-cal-tabs a.on { background: var(--coral); border-color: var(--coral); color: #fff; }
.gk-cal-month { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.gk-cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.gk-cal-nav a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 22px; color: var(--sea); text-decoration: none; }
.gk-cal-nav a:hover { background: var(--sand); }
.gk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.gk-cal-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0; }
.gk-cal-wd.sun, .gk-cal-day.sun span { color: #c0392b; }
.gk-cal-wd.sat, .gk-cal-day.sat span { color: #2a6fdb; }
.gk-cal-day { position: relative; aspect-ratio: 1 / .82; border: 0; border-radius: 8px; background: transparent; font-family: inherit; font-size: 14px; color: var(--ink); padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.gk-cal-day.has { background: #fff1ec; cursor: pointer; font-weight: 700; }
.gk-cal-day.has:hover { background: #fde0d6; }
.gk-cal-day i { font-style: normal; font-size: 10px; line-height: 1; min-width: 16px; padding: 2px 4px; border-radius: 999px; background: var(--coral); color: #fff; }
.gk-cal-day.past { opacity: .45; }
.gk-cal-day.today { outline: 2px solid var(--sea); outline-offset: -2px; }
.gk-cal-day.sel { background: var(--coral); }
.gk-cal-day.sel span { color: #fff !important; }
.gk-cal-day.sel i { background: #fff; color: var(--coral); }
.gk-cal-day:disabled { cursor: default; }
.gk-cal-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; text-align: right; }
.gk-cal-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; scroll-margin-top: 70px; }
.gk-cal-filter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-family: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.gk-cal-filter button small { color: var(--muted); }
.gk-cal-filter button.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.gk-cal-filter button.on small { color: #d5eef4; }
.gk-cal-dayline { display: flex; justify-content: space-between; align-items: center; background: #fff1ec; border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; font-size: 14px; }
.gk-cal-dayline[hidden] { display: none; }
.gk-cal-dayline button { border: 0; background: none; color: var(--sea); font-weight: 700; cursor: pointer; font-family: inherit; }
.gk-cal-count { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
@media (max-width: 520px) {
  .gk-ev > a { grid-template-columns: 44px 64px 1fr; gap: 8px; }
  .gk-ev-thumb { width: 64px; height: 50px; }
  .gk-ev-mini { width: 180px; }
  .gk-ev-mini > a { display: flex; }
  .gk-ev-mini .gk-ev-thumb { width: 100%; height: 96px; }
}
.gk-cal-long { margin-top: 14px; border-top: 2px solid var(--line); padding-top: 10px; }
.gk-cal-long summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 6px 0; color: var(--sea); }

/* v0.7.4 行程規劃入口 */
.y-drawer-trip { display: block; margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: #e8f5ec; color: #1a7f37 !important; font-weight: 700; text-decoration: none !important; }

/* v0.7.5 Okinawa Navi 標誌 */
.y-logo-img { display: block; height: 44px; width: auto; max-width: 100%; }
.gk-foot-logo img { display: block; width: 150px; height: auto; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.gk-foot-logo span { display: block; font-size: 15px; }
@media (max-width: 760px) { .y-logo { flex: 0 1 auto; min-width: 0; } .y-logo-img { height: 34px; } }
@media (max-width: 380px) { .y-logo-img { height: 30px; } }

/* v0.7.7 首頁工具列（取代與分類列重複的圖示列） */
.y-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 10px 12px; }
.y-tool { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--y-line); border-radius: 12px; color: var(--y-ink); background: #fff; }
.y-tool:hover { text-decoration: none; background: #f7f9fa; color: var(--y-ink); }
.y-tool-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.y-tool-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.y-tool-txt b { font-size: 15px; }
.y-tool-txt small { font-size: 12px; color: var(--y-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .y-tools { grid-template-columns: repeat(4, minmax(0, 260px)); } }

/* v0.7.8 分類列裡的工具（所有頁面都看得到） */
.y-tab-tool { display: inline-flex; align-items: center; gap: 5px; color: #1a7f37; }
.y-tab-tool[data-ga="tab_calendar"] { color: #c2410c; }
.y-tab-tool.on { color: #fff; }

/* 日本站：地區導覽列 */
.y-regions { background: #fff; border-bottom: 1px solid var(--y-line); }
.y-regions-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px; }
.y-regions-in::-webkit-scrollbar { display: none; }
.y-region { flex: none; padding: 5px 14px; border: 1px solid var(--y-line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--y-ink); background: #fff; }
.y-region:hover, .y-region.on { background: var(--y-red); border-color: var(--y-red); color: #fff; text-decoration: none; }
.y-wx-multi .y-wx-in { overflow-x: auto; scrollbar-width: none; }
.y-wx-multi .y-wx-day { flex: none; }
