/* home-guest.css — 新版訪客首頁（2026-11-06）
   所有規則都掛在 html.hg-on 底下：只有新版介面開關打開才生效，舊版首頁完全不受影響。
   排版模式（?layoutEdit=1）不加 hg-on，維持舊版，編輯器的座標才對得上。 */
.hg-bar{ display:none; }
.hg-arc{ display:none; }   /* 舊版不佔位：空容器也會吃到按鈕列的間距 */
/* 試用新版／切回舊版：舊版放在按鈕下方，新版搬到頂列 */
.ui-try{ text-align:center; margin-top:12px; }
.ui-try[hidden]{ display:none; }
.ui-try button{ background:none; border:0; padding:6px 8px; font:inherit; font-size:.92rem; font-weight:700; color:#33607D; text-decoration:underline; text-underline-offset:4px; text-decoration-color:#EAC463; cursor:pointer; }
.ui-try button:hover{ color:#1F3341; }
html.hg-on .ui-try{ margin:0; }
html.hg-on .ui-try button{ font-size:.86rem; color:var(--hg-muted, #6B6558); }
/* 試用回饋列（新版才有，home-guest.js 插在 header 後面） */
html.hg-on .hg-feedback{ max-width:1100px; margin:14px auto 0; padding:0 20px; text-align:center; font-size:.9rem; color:var(--hg-muted, #6B6558); }
html.hg-on .hg-feedback a{ margin-left:4px; font-weight:700; color:var(--hg-blue, #33607D); text-decoration:underline; text-decoration-color:#EAC463; text-underline-offset:4px; }
/* 新版：頂列已有找市集、島上品牌，小島旁只留頂列沒有的兩顆（2026-11-07 左文） */
html.hg-on .btn-group a[href="organizers.html"], html.hg-on .btn-group a[href="island-brands.html"]{ display:none; }

html.hg-on{ --hg-blue:#33607D; --hg-deep:#264A61; --hg-ink:#1F3341; --hg-gold:#EAC463; --hg-orange:#E8955A; --hg-brown:#8B5B30;
  --hg-paper:#FAF7F0; --hg-card:#FFFDF9; --hg-sand:#F0E9DB; --hg-line:#E5DCC9; --hg-muted:#6B6659;
  --hg-round:'MI Round','Noto Sans TC',sans-serif; scroll-padding-top:76px; }
html.hg-on body{ font-size:16px; line-height:1.7; }
html.hg-on :focus-visible{ outline:2px solid var(--hg-orange); outline-offset:2px; border-radius:6px; }

/* ── 頂列 ── */
html.hg-on .hg-bar{ position:sticky; top:0; z-index:60; display:flex; align-items:center; gap:18px; background:var(--hg-paper); padding:8px max(24px,calc(50% - 550px)); border-bottom:1px solid var(--hg-line); }
html.hg-on body:has(#mi-status-bar) .hg-bar{ top:38px; }
html.hg-on .hg-logo{ display:flex; align-items:center; gap:9px; font-family:var(--hg-round); font-size:1.34rem; color:var(--hg-blue); text-decoration:none; white-space:nowrap; }
html.hg-on .hg-logo img{ display:block; }
html.hg-on .hg-bar nav{ display:flex; gap:2px; margin-left:auto; }
html.hg-on .hg-bar nav a{ padding:5px 12px; border-radius:10px; color:var(--hg-ink); font-weight:700; font-size:.95rem; text-decoration:none; white-space:nowrap; }
html.hg-on .hg-bar nav a:hover{ background:var(--hg-sand); }
html.hg-on .hg-bar .lang-switch{ position:static; gap:2px; }
html.hg-on .hg-bar .lang-btn{ padding:2px 6px; background:transparent; color:var(--hg-muted); border-radius:7px; font-size:.8rem; }
html.hg-on .hg-bar .lang-btn.active{ background:transparent; color:var(--hg-blue); }
html.hg-on .hg-bar .index-login-fixed{ position:static; top:auto !important; right:auto; }
html.hg-on .hg-bar .index-login-fixed .btn{ margin:0; padding:6px 18px; border-radius:12px; font-size:1rem; font-weight:700; box-shadow:none; white-space:nowrap; transform:none; }
html.hg-on body:not(:has(#mi-status-bar)) .top-marquee-bar{ margin-top:0; }

/* ── 主視覺：太陽走過接下來的市集日 ── */
html.hg-on header{ padding:0; background:var(--hg-blue); color:var(--hg-paper); }
html.hg-on header::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:112px; background:url("../img/sea-strip.webp") no-repeat 50% 0/auto 112px; pointer-events:none; }
html.hg-on header .deco, html.hg-on .frame-ornament, html.hg-on .hero-logo, html.hg-on .hero-frame .subtitle{ display:none; }
html.hg-on .hero-frame h1{ position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); }
html.hg-on .hero-frame, html.hg-on .hero-frame.mi-slim{ position:relative; z-index:1; max-width:1100px; border:0; border-radius:0; box-shadow:none; background:none; padding:44px 24px 112px; }
html.hg-on .hero-content, html.hg-on .btn-group{ animation:none; }
html.hg-on .hero-tagline{ margin:0 auto; max-width:none; color:#E7EEF2; font-size:1.12rem; letter-spacing:0; line-height:1.6; }
html.hg-on .hero-tagline::first-line{ font-family:var(--hg-round); font-size:3.1rem; line-height:1.3; color:var(--hg-paper); }
html.hg-on .index-greet{ color:var(--hg-paper); font-family:var(--hg-round); font-weight:400; font-size:1.7rem; margin:0; }
html.hg-on .btn-group{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:20px; }
html.hg-on .btn-group .btn{ margin:0; padding:9px 26px; border-radius:14px; background:var(--hg-paper); color:var(--hg-blue); box-shadow:none; transform:none; transition:background .15s; }
html.hg-on .btn-group .btn:hover{ background:#fff; }
html.hg-on .btn-group .btn:nth-child(2){ background:transparent; color:var(--hg-paper); box-shadow:inset 0 0 0 1.5px rgba(250,247,240,.75); }
html.hg-on .btn-group .btn:nth-child(2):hover{ background:rgba(255,255,255,.14); }
html.hg-on .btn-group .btn-cta{ background:var(--hg-orange); color:#3A1E08; }
html.hg-on .btn-group .btn-cta:hover{ background:#EFA572; }
html.hg-on .hg-arc{ display:block; margin-top:22px; min-height:150px; }
html.hg-on .hg-arc:empty{ display:none; }
html.hg-on .hg-arc-t{ font-size:.9rem; color:var(--hg-gold); font-weight:700; margin-bottom:-6px; letter-spacing:.06em; }
html.hg-on .hg-arc svg{ display:block; width:100%; height:auto; overflow:visible; }
.hg-path{ fill:none; stroke:#EAC463; stroke-width:2.5; stroke-linecap:round; stroke-dasharray:9 9; opacity:.8; }
.hg-dot{ fill:#EAC463; stroke:#EAC463; stroke-width:2; }
.hg-day{ cursor:pointer; }
.hg-hit{ fill:transparent; }
.hg-lbl{ fill:#E7EEF2; font-size:14px; font-weight:500; text-anchor:middle; font-family:"Noto Sans TC",sans-serif; }
.hg-lbl.now{ fill:#fff; font-weight:900; font-size:16px; }
.hg-note{ fill:#EAC463; font-size:12.5px; text-anchor:middle; font-family:"Noto Sans TC",sans-serif; }
.hg-day:hover .hg-lbl{ fill:#EAC463; }
.hg-day:focus{ outline:none; }
.hg-day:focus-visible .hg-hit{ stroke:#E8955A; stroke-width:2; }
.hg-sun{ fill:#EAC463; }
.hg-ray{ stroke:#EAC463; stroke-width:2.2; stroke-linecap:round; transform-origin:0 0; animation:hg-turn 40s linear infinite; }
@keyframes hg-turn{ to{ transform:rotate(360deg); } }

/* 開場後收合：左邊三顆按鈕、右邊太陽弧，標語收起 */
html.hg-on .hero-frame.mi-slim{ padding:14px 24px 66px; }
html.hg-on header:has(.mi-slim)::after{ height:70px; background-size:auto 70px; }
html.hg-on .hero-frame.mi-slim .hero-content{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:0 28px; align-items:center; text-align:center; }
html.hg-on .hero-frame.mi-slim .hero-tagline{ display:none; }
html.hg-on .hero-frame.mi-slim .index-greet{ grid-column:1; margin:0 0 6px; font-size:1.1rem; }
html.hg-on .hero-frame.mi-slim .btn-group{ grid-column:1; margin:0; flex-wrap:nowrap; }
html.hg-on .hero-frame.mi-slim .btn-group .btn{ padding:6px 16px; font-size:.95rem; white-space:nowrap; }
html.hg-on .hero-frame.mi-slim .hg-arc{ grid-column:2; grid-row:1 / span 2; margin:0; min-height:0; }
html.hg-on .hero-frame.mi-slim .hg-arc-t{ display:none; }

/* ── 區塊：照順序由上往下排，不用座標 ── */
html.hg-on .mi-home-grid{ max-width:1148px; margin:0 auto; padding:0 24px; column-gap:24px; }
html.hg-on .mi-home-grid > .mi-block, html.hg-on .mi-home-grid > .mi-block-narrow{ padding:0; margin-top:44px; }
html.hg-on .review-feature-wrap, html.hg-on .mi-cal-wrap, html.hg-on .world-portal-wrap, html.hg-on .upcoming-section, html.hg-on .info-columns{ max-width:1100px; margin:44px auto 0; padding:0 24px; }
html.hg-on .mi-home-grid .review-feature-wrap, html.hg-on .mi-home-grid .mi-cal-wrap, html.hg-on .mi-home-grid .world-portal-wrap, html.hg-on .mi-home-grid .upcoming-section{ max-width:none; margin:0; padding:0; }
html.hg-on .mi-wave{ display:none; }
html.hg-on .sand-band{ background:transparent; }
html.hg-on .mi-custom, html.hg-on .mi-block.mi-styled{ border-radius:16px; }
html.hg-on .mi-home-grid .mi-custom{ margin:0; max-width:none; }

/* 品牌跑馬燈 */
html.hg-on .top-marquee-bar{ min-height:0; border:0; border-radius:14px; background:var(--hg-sand); }
html.hg-on .top-marquee-label{ display:none; }
html.hg-on .top-marquee-bar .marquee-wrap{ min-height:0; padding:9px 0; }
html.hg-on .top-marquee-bar .marquee-track{ gap:18px; }
html.hg-on .top-marquee-bar .brand-chip{ flex-direction:row; align-items:center; gap:7px; min-width:0; max-width:none; padding:0; background:transparent; border:0; box-shadow:none; transform:none; }
html.hg-on .top-marquee-bar .brand-chip > div:not(.brand-chip-name){ display:none !important; }
html.hg-on .top-marquee-bar .brand-chip-name{ max-width:190px; font-weight:700; font-size:.92rem; }
html.hg-on .top-marquee-bar .brand-chip:hover .brand-chip-name{ color:var(--hg-blue); }
.hg-stamp{ display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:#33607D; color:#FAF7F0; font-family:'MI Round','Noto Sans TC',sans-serif; font-size:.92rem; }
.brand-chip:nth-child(3n) .hg-stamp{ background:#8B5B30; }
.brand-chip:nth-child(3n+1) .hg-stamp{ background:#6E8F3B; }

/* 市集日曆：日曆在左、當天場次在右 */
html.hg-on .mi-cal{ --cal-mist:#6B6659; --cal-line:#E5DCC9; }
html.hg-on .mi-cal .cal-eyebrow, html.hg-on .mi-cal .cal-filters .cal-lbl, html.hg-on .mi-cal .cal-legend .lg-title{ display:none; }
html.hg-on .mi-cal .cal-head{ margin-bottom:12px; align-items:baseline; }
html.hg-on .mi-cal .cal-head > div{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
html.hg-on .mi-cal .cal-head h2{ font-family:var(--hg-round); font-weight:400; font-size:1.6rem; color:var(--hg-blue); letter-spacing:0; }
html.hg-on .mi-cal .cal-head .cal-sub{ max-width:none; margin:0; font-size:.92rem; }
html.hg-on .mi-cal .cal-panel{ border-radius:16px; padding:16px 18px; overflow:visible; box-shadow:0 2px 12px rgba(51,96,125,.08); }
html.hg-on .mi-cal .cal-filters{ padding:0; border:0; background:transparent; gap:6px; }
html.hg-on .mi-cal .cal-areas{ gap:6px; }
html.hg-on .mi-cal .cal-chip{ border-radius:10px; padding:1px 13px; font-size:.9rem; color:var(--hg-ink); background:var(--hg-paper); }
html.hg-on .mi-cal .cal-chip[aria-pressed="true"]{ background:var(--hg-blue); border-color:var(--hg-blue); color:var(--hg-paper); }
html.hg-on .mi-cal .cal-body{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:22px; margin-top:10px; }
html.hg-on .mi-cal .cal-grid-wrap{ padding:0; }
html.hg-on .mi-cal .cal-monthbar{ justify-content:space-between; margin-bottom:4px; }
html.hg-on .mi-cal .cal-monthbar > div{ display:flex; align-items:baseline; gap:8px; }
html.hg-on .mi-cal .cal-y{ font-family:var(--hg-round); font-weight:400; font-size:1.34rem; letter-spacing:0; color:var(--hg-blue); }
html.hg-on .mi-cal .cal-m{ font-family:var(--hg-round); font-weight:400; font-size:1.34rem; }
html.hg-on .mi-cal .cal-nav{ width:34px; height:34px; border:0; background:var(--hg-sand); color:var(--hg-ink); }
html.hg-on .mi-cal .cal-nav:hover{ background:var(--hg-line); }
html.hg-on .mi-cal .cal-dow{ border:0; background:transparent; gap:4px; overflow:visible; }
html.hg-on .mi-cal .cal-dow span{ padding:3px 0; color:var(--hg-muted); }
html.hg-on .mi-cal .cal-days{ border:0; border-radius:0; gap:4px; overflow:visible; }
html.hg-on .mi-cal .cal-cell{ min-height:70px; padding:3px 6px; gap:2px; border:1px solid transparent; border-radius:11px; background:var(--hg-paper); }
html.hg-on .mi-cal .cal-cell.blank{ background:transparent; }
html.hg-on .mi-cal .cal-cell:hover:not(.blank){ background:var(--hg-paper); border-color:var(--hg-blue); }
html.hg-on .mi-cal .cal-cell .n{ font-size:.9rem; }
html.hg-on .mi-cal .cal-cell.none .n{ color:#A9A08F; }
html.hg-on .mi-cal .cal-cell.wknd .n{ color:var(--hg-blue); }
html.hg-on .mi-cal .cal-cell.none.wknd .n{ color:#8FA8B7; }
html.hg-on .mi-cal .cal-cell.today .n{ display:grid; place-items:center; align-self:flex-start; width:24px; height:24px; border-radius:50%; background:var(--hg-gold); color:#3A1E08; text-decoration:none; }
html.hg-on .mi-cal .cal-cell.sel{ background:#FDF1E3; border-color:var(--hg-orange); }
html.hg-on .mi-cal .cal-cell.sel .n{ color:var(--hg-ink); }
html.hg-on .mi-cal .cal-cell.sel.today .n{ color:#3A1E08; }
/* 符號說明要跟格子長得一樣（2026-11-08 左文回報）：選取＝淺橘底＋橘框、今天＝金色圓 */
html.hg-on .mi-cal .cal-legend .lg-sel{ width:20px; height:15px; background:#FDF1E3; border:1.5px solid var(--hg-orange); }
html.hg-on .mi-cal .cal-legend .lg-today{ display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; background:var(--hg-gold); color:#3A1E08; text-decoration:none; font-size:.8rem; }
html.hg-on .mi-cal .cal-bdg.sticker, html.hg-on .mi-cal .cal-cell.sel .cal-bdg.sticker{ padding:0 6px 0 4px; gap:3px; background:#F9EFD9; color:#7E6011; border:0; border-radius:7px; box-shadow:none; transform:none; font-size:.78rem; }
html.hg-on .mi-cal .cal-perf, html.hg-on .mi-cal .cal-online{ background:transparent; border:0; box-shadow:none; color:var(--hg-blue); font-size:.92rem; }
html.hg-on .mi-cal .cal-grid-wrap .cal-legend{ margin-top:8px; padding:8px 0 0; border-top:0; color:var(--hg-muted); font-size:.82rem; }
html.hg-on .mi-cal .cal-side{ align-self:start; position:sticky; top:72px; padding:12px 14px; border:0; border-radius:14px; background:var(--hg-sand); }
html.hg-on .mi-cal .cal-side-head{ margin-bottom:8px; align-items:baseline; }
html.hg-on .mi-cal .cal-side-head > div:first-child{ display:flex; align-items:baseline; gap:6px; }
html.hg-on .mi-cal .cal-side-head .d{ font-family:var(--hg-round); font-weight:400; font-size:1.6rem; line-height:1.2; }
html.hg-on .mi-cal .cal-side-head .w{ font-size:.9rem; color:var(--hg-muted); }
/* 2026-10-15 左文把場次移下去是因為市集多時右欄太長：右欄限高、在欄內捲動，日曆不會被撐長 */
html.hg-on .mi-cal .cal-side [data-cal="side"]{ display:block; max-height:600px; padding:0; overflow:hidden auto; scroll-snap-type:none; scrollbar-width:thin; }
html.hg-on .mi-cal .cal-side [data-cal="side"] > *{ max-width:none; margin-bottom:8px; }
html.hg-on .mi-cal .cal-side [data-cal="side"] > :last-child{ margin-bottom:0; }
html.hg-on .mi-cal .cal-ev{ padding:10px 12px; border:0; border-radius:12px; }
html.hg-on .mi-cal .cal-ev h3{ margin:0; font-size:1.06rem; font-weight:700; line-height:1.45; }
html.hg-on .mi-cal .cal-ev .org{ font-size:.82rem; color:var(--hg-brown); letter-spacing:0; }
html.hg-on .mi-cal .cal-ev .meta{ margin-top:2px; font-size:.86rem; line-height:1.6; }
html.hg-on .mi-cal .cal-lineup{ margin-top:8px; padding-top:6px; }
html.hg-on .mi-cal .cal-brands{ gap:4px; margin-top:4px; }
html.hg-on .mi-cal .cal-brand{ border-radius:8px; padding:0 8px; font-size:.82rem; }
html.hg-on .mi-cal .cal-3d{ margin-top:6px; font-size:.86rem; font-weight:700; border-bottom:0; text-decoration:underline; text-underline-offset:3px; }
html.hg-on .mi-cal .cal-st{ border-radius:8px; }
html.hg-on .mi-cal .cal-go{ border-radius:11px; padding:3px 14px; font-size:.86rem; font-weight:700; }
html.hg-on .mi-cal .cal-go:hover{ background:var(--hg-deep); }
html.hg-on .mi-cal .cal-empty{ padding:12px; border:0; border-radius:12px; text-align:left; }
html.hg-on .mi-cal .cal-empty .ic{ display:none; }
html.hg-on .mi-cal .cal-jump{ margin-top:0; background:var(--hg-paper); }
html.hg-on .mi-cal .cal-mine-card{ margin-top:8px; }

/* 關於／最新消息 */
html.hg-on .info-col, html.hg-on .mi-home-grid > .mi-block .info-col{ max-width:none; margin:0; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
html.hg-on .info-col h2{ margin:0; font-family:var(--hg-round); font-weight:400; font-size:1.6rem; color:var(--hg-blue); letter-spacing:0; line-height:1.3; }
html.hg-on .h2-arc{ margin:2px 0 12px; }
html.hg-on .info-col p{ margin:0 0 .7em; color:var(--hg-ink); font-size:1rem; line-height:1.7; break-inside:avoid; }
html.hg-on .intro-body p:first-child{ font-family:var(--hg-round); font-size:1.26rem; line-height:1.5; color:var(--hg-blue); }
html.hg-on .mi-block-about:not(.mi-block-narrow) .intro-body{ columns:2; column-gap:40px; }
html.hg-on .intro-ctas{ gap:8px; margin-top:6px; }
html.hg-on .intro-cta:nth-child(n){ padding:3px 18px; border-radius:12px; border:1.5px solid var(--hg-blue); background:transparent; color:var(--hg-blue); font-size:1rem; font-weight:700; transform:none; box-shadow:none; filter:none; }
html.hg-on .intro-cta:nth-child(n):hover{ background:var(--hg-blue); color:var(--hg-paper); }
html.hg-on .news-item{ padding:7px 0; gap:0; border-bottom:1px solid var(--hg-line); }
html.hg-on .news-item-title{ font-weight:700; font-size:1rem; }
html.hg-on .news-item-meta{ color:var(--hg-muted); font-size:.84rem; }
html.hg-on .news-badge{ border-radius:8px; }

/* 品牌評價 */
html.hg-on .review-feature{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:26px; padding:18px 28px; background:var(--hg-sand); border:0; border-radius:16px; box-shadow:none; transform:none; }
html.hg-on .rf-art{ width:auto; }
html.hg-on .rf-title{ margin:0; font-family:var(--hg-round); font-weight:400; font-size:1.5rem; color:var(--hg-blue); }
html.hg-on .rf-desc{ margin:4px 0 12px; font-size:1rem; line-height:1.7; }
html.hg-on .rf-btns{ gap:8px; }
html.hg-on .rf-btn{ padding:5px 20px; border-radius:12px; background:var(--hg-orange); color:#3A1E08; font-size:1rem; filter:none; }
html.hg-on .rf-btn:hover{ background:#EFA572; }
html.hg-on .rf-btn.alt{ background:var(--hg-blue); color:var(--hg-paper); }
html.hg-on .rf-btn.alt:hover{ background:var(--hg-deep); }

/* 近期市集 */
html.hg-on .upcoming-section{ padding-bottom:0; }
html.hg-on .upcoming-head{ margin-bottom:12px; }
html.hg-on .upcoming-head h2{ font-family:var(--hg-round); font-weight:400; font-size:1.6rem; letter-spacing:0; }
html.hg-on .upcoming-more{ border-bottom:0; color:var(--hg-blue); font-weight:700; font-size:.92rem; }
html.hg-on .up-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; padding:0; overflow:visible; }
html.hg-on .up-card{ border-radius:14px; background:var(--hg-card); box-shadow:none; transform:none; transition:border-color .15s; }
html.hg-on .up-card:hover{ border-color:var(--hg-blue); box-shadow:none; transform:none; }
html.hg-on .up-cover-empty{ background:var(--hg-sand); font-family:var(--hg-round); font-weight:400; font-size:3rem; }
html.hg-on .up-body{ padding:10px 14px 12px; gap:0; }
html.hg-on .up-title{ font-weight:700; font-size:1.08rem; }
html.hg-on .up-line{ color:var(--hg-muted); font-size:.88rem; }
html.hg-on .up-apply{ padding:3px 14px; border-radius:11px; font-weight:700; }

/* 3D 入口 */
html.hg-on .world-portal{ gap:26px; padding:16px 28px; background:var(--hg-blue); border:0; border-radius:16px; box-shadow:none; transform:none; }
html.hg-on .wp-art{ flex:0 0 170px; }
html.hg-on .wp-art svg{ width:170px; }
html.hg-on .wp-tag{ display:none; }
html.hg-on .wp-title{ margin:0; font-family:var(--hg-round); font-weight:400; letter-spacing:0; }
html.hg-on .wp-desc{ margin:4px 0 12px; color:#E7EEF2; font-size:1rem; line-height:1.7; }
html.hg-on .wp-actions{ gap:8px; }
html.hg-on .wp-btn{ padding:5px 20px; border-radius:12px; background:var(--hg-orange); color:#3A1E08; font-size:1rem; font-weight:800; box-shadow:none; }
html.hg-on .wp-btn-flat, html.hg-on .wp-btn-flat:hover{ background:var(--hg-paper); color:var(--hg-blue); }
html.hg-on .tool-banner{ margin-top:10px; padding:9px 18px; background:var(--hg-card); border:1px solid var(--hg-line); border-radius:14px; box-shadow:none; transform:none; }
html.hg-on .tool-banner:hover{ border-color:var(--hg-blue); box-shadow:none; }
html.hg-on .tb-ico{ display:none; }
html.hg-on .tb-text span{ color:var(--hg-muted); font-size:.88rem; }
html.hg-on .tb-btn, html.hg-on .tool-banner:hover .tb-btn{ padding:0; background:transparent; color:var(--hg-blue); }

/* 頁尾 */
html.hg-on .sea-wrap{ margin-top:36px; }
html.hg-on .sea-motto .leaf{ display:none; }

@media (max-width:820px){
  html.hg-on .hg-bar{ flex-wrap:wrap; gap:6px 10px; padding:7px 16px; }
  html.hg-on .hg-bar nav{ order:3; width:100%; margin:0 -4px; overflow-x:auto; }
  html.hg-on .hg-bar nav a{ padding:3px 10px; font-size:.9rem; }
  html.hg-on .hg-bar .ui-try{ order:4; width:100%; text-align:right; margin-top:-4px; }   /* 手機：放導覽列下面，登入按鈕才不會被擠到第二行 */
  html.hg-on .hg-bar .ui-try button{ padding:2px 4px; font-size:.8rem; }
  html.hg-on .hg-bar .lang-switch{ margin-left:auto; }
  html.hg-on body:has(#mi-status-bar) .hg-bar .index-login-fixed{ margin-left:auto; }
  html.hg-on .hg-logo{ font-size:1.2rem; }
  html.hg-on .hg-logo img{ width:34px; height:34px; }
  html.hg-on header::after, html.hg-on header:has(.mi-slim)::after{ height:70px; background-size:auto 70px; }
  html.hg-on .hero-frame{ padding:26px 16px 70px; }
  html.hg-on .hero-frame.mi-slim{ padding:12px 16px 58px; }
  html.hg-on .hero-tagline{ font-size:1rem; }
  html.hg-on .hero-tagline::first-line{ font-size:2.15rem; }
  html.hg-on .btn-group .btn{ padding:8px 18px; }
  html.hg-on .hero-frame.mi-slim .hero-content{ grid-template-columns:minmax(0,1fr); }
  html.hg-on .hero-frame.mi-slim .btn-group{ justify-content:center; flex-wrap:wrap; }
  html.hg-on .hero-frame.mi-slim .hg-arc{ grid-column:1; grid-row:auto; margin-top:8px; }
  html.hg-on .hg-arc{ min-height:110px; }
  html.hg-on .mi-home-grid{ padding:0 16px; }
  html.hg-on .mi-home-grid > .mi-block, html.hg-on .mi-home-grid > .mi-block-narrow{ margin-top:32px; }
  html.hg-on .review-feature-wrap, html.hg-on .mi-cal-wrap, html.hg-on .world-portal-wrap, html.hg-on .upcoming-section, html.hg-on .info-columns{ margin-top:32px; padding:0 16px; }
  html.hg-on .mi-cal .cal-panel{ padding:12px 10px; }
  html.hg-on .mi-cal .cal-body{ grid-template-columns:minmax(0,1fr); }
  html.hg-on .mi-cal .cal-cell{ min-height:54px; padding:2px 3px; }
  html.hg-on .mi-cal .cal-side{ position:static; }
  html.hg-on .mi-cal .cal-side [data-cal="side"]{ max-height:none; overflow:visible; }
  html.hg-on .mi-block-about:not(.mi-block-narrow) .intro-body{ columns:1; }
  html.hg-on .review-feature{ grid-template-columns:minmax(0,1fr); gap:10px; padding:16px 18px; text-align:center; }
  html.hg-on .rf-art{ width:120px; margin:auto; }
  html.hg-on .world-portal{ padding:16px 18px; }
  html.hg-on .wp-art svg{ width:120px; }
  html.hg-on .up-grid{ grid-template-columns:minmax(0,1fr); }
  html.hg-on .wp-actions, html.hg-on .rf-btns{ justify-content:center; }
}
@media (prefers-reduced-motion:reduce){
  html.hg-on{ scroll-behavior:auto; }
  .hg-ray{ animation:none; }
}
