﻿:root {
    --bg: #ffffff; /* 純白底，乾淨 */
    --ink: #0f172a; /* 主字色（深藍灰）*/
    --muted: #556070; /* 次字色 */
    --line: #e5e7eb; /* 細分隔線 */
    --grid: #eef2f7; /* 淡格線 */
    --card: #fafafa; /* 卡片底 */
    --radius: 18px;
    --shadow: 0 10px 30px rgba(2,6,23,.08);
    /* 可切換重點色（Swiss 多用紅，但也提供替代）*/
    --acc: #e11d48; /* Vermilion 紅（預設）*/
    --acc2: #2563eb; /* 藍 */
    --acc3: #16a34a; /* 綠 */
    --acc4: #f59e0b; /* 橘 */
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0
}

body {
    font-family: 'Inter','Noto Sans TC',system-ui;
    color: var(--ink);
    background: var(--bg)
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1180px,92vw);
    margin-inline: auto
}

/* ===== 背景格線（淡） ===== */
body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(transparent 31px, var(--grid) 32px), linear-gradient(90deg, transparent 31px, var(--grid) 32px);
    background-size: 32px 32px
}

body:after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: radial-gradient(900px 420px at 10% -5%, rgba(225,29,72,.08), transparent 60%), radial-gradient(900px 420px at 110% 0%, rgba(37,99,235,.08), transparent 60%)
}

/* ===== App Bar ===== */
.app {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--acc)
}

.app-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 12%, transparent)
}

.brand strong {
    font-family: 'Noto Serif TC',serif;
    font-weight: 900;
    letter-spacing: .4px
}

.menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

    .menu a {
        padding: 8px 12px;
        border-radius: 10px;
        font-weight: 800;
        color: #334155
    }

        .menu a:hover {
            background: #f3f4f6
        }

.palette {
    display: flex;
    gap: 8px;
    align-items: center
}

.chip {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    cursor: pointer
}

.c-red {
    background: #e11d48
}

.c-blue {
    background: #2563eb
}

.c-green {
    background: #16a34a
}

.c-orange {
    background: #f59e0b
}

/* ===== Hero：編輯帶（滿版） ===== */
.hero {
    position: relative;
    overflow: hidden
}

    .hero .wrap {
        display: grid;
        grid-template-columns: 1.2fr .8fr;
        gap: 28px;
        align-items: stretch;
        padding: 84px 0 56px
    }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--acc)
}

    .kicker:before {
        content: "";
        display: inline-block;
        width: 44px;
        height: 6px;
        background: var(--acc);
        border-radius: 999px
    }

h1 {
    font-family: 'Noto Serif TC',serif;
    font-weight: 900;
    font-size: clamp(38px,6vw,78px);
    line-height: 1.02;
    margin: .4rem 0
}

.lede {
    font-size: clamp(15px,1.4vw,18px);
    color: var(--muted)
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 2px solid var(--ink);
    font-weight: 900;
    background: #fff
}

    .btn.acc {
        border-color: var(--acc);
        color: #fff;
        background: var(--acc)
    }

    .btn.ghost {
        border-color: #cbd5e1;
        color: #0b1220
    }

.ticker {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800
}

.badge {
    display: inline-grid;
    place-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--acc);
    color: #fff
}

.hero-aside {
    display: grid;
    grid-template-rows: auto;
    gap: 14px
}

.hero-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

    .hero-card h3 {
        margin: 0 0 4px;
        font-size: 18px
    }

    .hero-card p {
        margin: 0;
        color: var(--muted)
    }

/* ===== 章節：粗分隔條 ===== */
.section {
    padding: 30px 0
}

.hd {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px
}

.h2 {
    font-family: 'Noto Serif TC',serif;
    font-size: clamp(24px,3.2vw,36px);
    margin: 0;
    position: relative
}

    .h2:after {
        content: "";
        display: block;
        width: 100px;
        height: 8px;
        background: var(--acc);
        margin-top: 10px
    }

.sub {
    margin: 0;
    color: var(--muted)
}

/* ===== Bento 編輯網格 ===== */
.bento {
    display: grid;
    gap: 14px
}

@media (min-width:980px) {
    .bento {
        grid-template-columns: repeat(6,1fr);
        grid-auto-rows: 130px;
        grid-auto-flow: dense; /* 自動補洞，避免斷層 */
    }

    .b {
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 18px;
        background: #fff;
        box-shadow: var(--shadow)
    }

        .b h3 {
            margin: 0 0 4px
        }

        .b p {
            margin: 0;
            color: var(--muted)
        }

        .b.bazi {
            grid-column: 1 / 4;
            grid-row: 1 / span 2;
        }

        .b.ziwei {
            grid-column: 4 / 7;
            grid-row: 1 / span 1;
        }

        .b.iching {
            grid-column: 5 / 6;
            grid-row: 2 / span 1;
        }

        .b.tarot {
            grid-column: 6 / 7;
            grid-row: 2 / span 2;
        }

        .b.naming {
            grid-column: 4 / 5;
            grid-row: 2 / span 1;
        }

        .b.lots {
            grid-column: 3 / 6;
            grid-row: 3 / span 1;
        }

        .b.western {
            grid-column: 1 / 3;
            grid-row: 3 / span 1;
        }
}



/* Bento 卡片可點＋變色 */
.bento .b {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

    .bento .b:hover,
    .bento .b:focus-visible {
        background: color-mix(in srgb, var(--acc) 6%, #fff);
        border-color: color-mix(in srgb, var(--acc) 40%, var(--line));
        box-shadow: 0 12px 32px rgba(2,6,23,.12);
        transform: translateY(-2px);
        outline: none;
        cursor: pointer;
    }

    .bento .b h3 {
        color: #0b1220
    }

    .bento .b p {
        color: var(--muted)
    }
    /* 鍵盤可及性：focus ring */
    .bento .b:focus-visible {
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 40%, transparent), 0 12px 32px rgba(2,6,23,.12);
    }
/* 讓每張 Bento 卡片撐滿它被分配的整個格子區域 */
.bento .b {
    display: block; /* 確保整塊可點 */
    height: 100%; /* ★ 關鍵：撐滿 grid 區塊高度 */
    text-decoration: none;
    color: inherit;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
    cursor: pointer;
}

    /* 整塊 hover/聚焦的效果就會覆蓋整個區塊 */
    .bento .b:hover,
    .bento .b:focus-visible {
        background: color-mix(in srgb, var(--acc) 6%, #fff);
        border-color: color-mix(in srgb, var(--acc) 40%, var(--line));
        box-shadow: 0 12px 32px rgba(2,6,23,.12);
        transform: translateY(-2px);
        outline: none;
    }

/* 可選：內容置頂＋保持原本內邊距的卡片感 */
.bento .b {
    padding: 18px; /* 你的原本就有，可保留 */
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}


@media (max-width:979px) {
    .bento {
        grid-template-columns: 1fr
    }

    .b {
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 18px;
        background: #fff;
        box-shadow: var(--shadow)
    }

        .b + .b {
            margin-top: 6px
        }
}

/* ===== 快速算命（新增） ===== */
#quick .panel {
    background: #fff;
    border: 2px solid #0b1220;
    border-radius: 18px;
    padding: 20px
}

#quick .tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px
}

#quick .tab {
    padding: 8px 12px;
    border: 2px solid var(--line);
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    background: #fff
}

    #quick .tab[aria-selected="true"] {
        border-color: var(--acc);
        color: #fff;
        background: var(--acc)
    }

#quick form {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 12px;
    align-items: end
}

#quick label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #475569
}

#quick input, #quick select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink)
}

#quick .btn-go {
    grid-column: span 12;
    justify-self: start
}

#quick .grid-6 {
    grid-column: span 6
}

#quick .grid-4 {
    grid-column: span 4
}

#quick .grid-3 {
    grid-column: span 3
}

#quick .grid-12 {
    grid-column: span 12
}

#quick .hint {
    color: var(--muted);
    font-size: 12px
}

#quick .result {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 14px
}

#quick .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

#quick .res-title {
    font-weight: 900;
    margin: 0 0 6px
}

#quick .pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--acc) 14%, transparent);
    color: var(--acc);
    font: 800 12px/1 Inter
}

@media (max-width:1024px) {
    /* 手機：單欄堆疊，避免欄寬過窄導致看不到「姓名」等欄位 */
    #quick form {
        grid-template-columns: 1fr
    }

    #quick .grid-6, #quick .grid-4, #quick .grid-3, #quick .grid-12 {
        grid-column: 1 / -1
    }

    #quick .result {
        grid-template-columns: 1fr
    }
}

/* ===== 水平捲動案例 ===== */
.scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px
}

.card {
    scroll-snap-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow)
}

/* ===== Pricing（極簡） ===== */
.pricing {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.plan {
    border: 2px solid #0b1220;
    border-radius: 18px;
    padding: 26px;
    background: #fff;
    text-align: center
}

    .plan .tag {
        display: inline-block;
        padding: 6px 10px;
        border: 2px solid var(--acc);
        color: var(--acc);
        border-radius: 999px;
        font-weight: 900
    }

.price {
    font-family: 'Noto Serif TC',serif;
    font-size: 38px;
    font-weight: 900;
    margin: 12px 0;
    color: #0b1220
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted)
}

/* ===== CTA 條帶（滿版） ===== */
.strip {
    margin-top: 20px;
    border-top: 8px solid var(--acc);
    border-bottom: 8px solid var(--acc);
    background: #fff
}

.strip-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0
}

/* ===== FAQ ===== */
.faq {
    display: grid;
    gap: 10px
}

details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow)
}

    details summary {
        cursor: pointer;
        font-weight: 900
    }

/* ===== Footer ===== */
footer {
    margin-top: 72px;
    border-top: 2px solid var(--ink);
    background: #fff
}

.ft {
    padding: 26px 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 16px
}

.copyright {
    border-top: 1px dashed var(--line);
    color: #94a3b8;
    font-size: 13px;
    padding: 12px 0;
    text-align: center
}

/* RWD */
@media (max-width: 1024px) {
    .hero .wrap {
        grid-template-columns: 1fr
    }
}

@media (max-width: 980px) {
    .menu {
        display: none
    }

    .pricing {
        grid-template-columns: 1fr
    }

    .scroller {
        grid-auto-columns: 88%
    }

    .ft {
        grid-template-columns: 1fr
    }
}

.tag-new {
    position: absolute;
    top: 12px;
    right: 12px;
    font: 900 11px/1 'Inter', system-ui;
    padding: 6px 8px;
    border-radius: 999px;
    background: var(--acc);
    color: #fff;
    letter-spacing: .2px;
}

.b {
    position: relative
}

.social a {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%
}

    .social a:hover {
        border-color: var(--acc);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 16%, transparent)
    }

.social img {
    width: 18px;
    height: 18px;
    filter: contrast(0) brightness(0) saturate(0) invert(9%);
}

.social a:hover img {
    filter: none;
}

/* 簽到區 */
.checkin {
    text-align: center
}

    .checkin p {
        margin: 0 0 16px;
        color: #555;
        font-size: 16px
    }

    .checkin button {
        padding: 12px 20px;
        background: #22c55e;
        border: none;
        border-radius: 8px;
        color: #fff;
        font-size: 16px;
        cursor: pointer
    }

.points {
    margin-top: 16px;
    font-weight: 700;
    color: #16a34a;
    font-size: 18px
}

@media(max-width:768px) {
    form {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .quick-section, .checkin {
        padding: 30px 16px
    }

    .result {
        padding: 16px
    }
}



/* LINE 區 */
.line-connect {
    text-align: center
}

    .line-connect p {
        margin: 0 0 16px;
        color: #555;
        font-size: 16px;
        line-height: 1.6
    }

    .line-connect img {
        max-width: 200px;
        margin: 20px auto;
        display: block
    }

    .line-connect .line-id {
        margin-top: 8px;
        font-size: 16px;
        font-weight: 600
    }

    .line-connect button {
        padding: 12px 20px;
        background: #16a34a;
        border: none;
        border-radius: 8px;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        margin-top: 16px
    }


#loading-overlay {
    /* Initially hidden */
    display: none;
    /* Overlay styling */
    position: fixed; /* Cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white overlay */
    /* background-color: rgba(0, 0, 0, 0.5); */ /* Alternative: Dark overlay */
    z-index: 9999; /* Ensure it's on top */
    /* Center content using flexbox */
    justify-content: center;
    align-items: center;
}

.loading-content {
    background-color: #fff; /* White box for content */
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    /* Optional: Add max-width if needed */
    /* max-width: 300px; */
}

.loading-spinner {
    border: 5px solid #f3f3f3; /* Light grey track */
    border-top: 5px solid #5a5a5a; /* Dark grey spinner color (adjust as needed) */
    /* border-top: 5px solid #007bff; */ /* Blue spinner color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto; /* Center horizontally, space below */
}


.solar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

    .solar .now {
        font: 900 18px/1.2 'Inter',system-ui;
    }

    .solar .meta {
        color: var(--muted);
        font-size: 12px;
        margin-top: 4px
    }

    .solar .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
    }

    .solar .chip {
        padding: 6px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
        font: 800 12px/1 'Inter',system-ui;
    }

        .solar .chip.active {
            background: var(--acc);
            color: #fff;
            border-color: var(--acc)
        }

/* —— 簽到區分隔線（上下一點界線） —— */
.checkin {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 36px 0;
    padding: 32px 0;
    background: #fff;
}





.solar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

    .solar .hd {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px
    }

    .solar .title {
        font: 900 18px/1.2 'Inter',system-ui
    }

    .solar .ys {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 8px
    }

    .solar input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none
    }

    .solar .ys label {
        padding: 6px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
        font: 800 12px/1 'Inter',system-ui;
        cursor: pointer
    }

#st-2024:checked ~ .ys label[for="st-2024"],
#st-2025:checked ~ .ys label[for="st-2025"],
#st-2023:checked ~ .ys label[for="st-2023"] {
    background: var(--acc);
    color: #fff;
    border-color: var(--acc)
}

.solar .year {
    display: none
}

#st-2024:checked ~ .year[data-year="2024"] {
    display: block
}

#st-2025:checked ~ .year[data-year="2025"] {
    display: block
}

#st-2023:checked ~ .year[data-year="2023"] {
    display: block
}

.solar .list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.solar .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff
}

.solar .n {
    font-weight: 900
}

.solar .d {
    font-weight: 800;
    color: #64748b
}

@media (max-width:680px) {
    .solar .list {
        grid-template-columns: 1fr
    }
}


/* Hero 內欄位的細分隔線 */
.hero .soft-sep {
    border-top: 1px dashed var(--line);
    margin: 18px 0;
}

/* 內嵌簽到卡（置於 Hero 左欄） */
.checkin-mini {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

    .checkin-mini .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .checkin-mini .title {
        font: 900 16px/1 'Inter',system-ui;
    }

    .checkin-mini .note {
        margin: 8px 0 0;
        color: var(--muted);
        font-size: 13px;
    }

    .checkin-mini .points {
        margin-top: 6px;
        font-weight: 800;
        color: #16a34a;
    }

    .checkin-mini .btn-ci {
        padding: 8px 12px;
        border-width: 2px;
    }


/* 右側二十四節氣卡片：固定高度＋內捲動 */
.hero .wrap {
    grid-template-columns: minmax(0,1fr) min(420px,36vw); /* 右欄不會太寬 */
    align-items: start;
}

.solar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px;
    position: sticky; /* 捲動時吸附 */
    top: 84px; /* 視情況微調 */
    max-height: calc(100vh - 120px); /* 視窗內最大高度 */
    overflow: auto; /* 內部自己捲動 */
}

    /* 年份 tabs */
    .solar .ys {
        display: flex;
        gap: 8px;
        margin: 6px 0 10px
    }

        .solar .ys button {
            padding: 6px 10px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: #fff;
            font-weight: 800;
            cursor: pointer
        }

            .solar .ys button.is-active {
                border-color: var(--acc);
                color: #fff;
                background: var(--acc)
            }

    /* 節氣清單：兩欄 */
    .solar .list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }

    .solar .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 10px 12px;
        background: #fff;
    }

    .solar .n {
        font-weight: 800
    }

    .solar .d {
        color: #64748b;
        font-weight: 700
    }

/* 手機改單欄，避免擠 */
@media (max-width:1024px) {
    .hero .wrap {
        grid-template-columns: 1fr
    }

    .solar {
        position: static;
        max-height: none
    }

        .solar .list {
            grid-template-columns: 1fr
        }
}
/* 小小樣式（可改） */
.ys {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px
}

    .ys [data-year-btn] {
        padding: 6px 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
        font-weight: 800;
        cursor: pointer
    }

        .ys [data-year-btn].active {
            border-color: var(--acc);
            color: #fff;
            background: var(--acc)
        }

#solar-list .item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 8px
}

#solar-list .n {
    font-weight: 800
}

#solar-list .d {
    color: #64748b
}
/* 二十四節氣面板 */
.solar {
    position: sticky; /* 固定在可視區 */
    top: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px;
    max-height: calc(100vh - 120px); /* 限高，內部滾動 */
    overflow: auto;
}

    .solar .hd {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px
    }

    .solar .title {
        font: 900 16px/1 'Inter', system-ui
    }

    .solar .ys {
        display: flex;
        gap: 8px;
        margin-left: auto
    }

        .solar .ys button {
            padding: 6px 10px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: #fff;
            font-weight: 800;
            cursor: pointer;
        }

            .solar .ys button[aria-pressed="true"] {
                background: var(--acc);
                color: #fff;
                border-color: var(--acc)
            }

#solar-list {
    display: grid;
    gap: 10px
}
/* 桌機用兩欄，降低整體高度 */
@media (min-width: 1024px) {
    #solar-list {
        grid-template-columns: 1fr 1fr
    }
}

.solar .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.solar .n {
    font-weight: 800;
    color: #334155
}

.solar .d {
    font-weight: 700;
    color: #64748b
}
/* 右側欄：不要跟著大螢幕無限長，高度封頂+內捲動 */
.hero .wrap {
    grid-template-columns: minmax(0,1fr) 420px; /* 右欄固定寬，避免被拉大 */
    align-items: start; /* 左右各自貼上方 */
}

.hero-aside {
    align-self: start;
}
/* 右欄貼上方 */

.solar {
    max-height: 560px; /* ← 封頂高度（可改 520/480）*/
    height: auto; /* 高度由內容決定，但不超過封頂 */
    overflow: auto; /* 超出就捲動 */
    scrollbar-gutter: stable; /* 捲軸不晃動版面（支援的新屬性，可留著） */
}

    /* 年份切換與標題固定在卡片內頂端，捲動時不會跑掉（可選） */
    .solar .hd, .solar .ys {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }

    /* 稍微壓縮每列的垂直空間（可自行微調） */
    .solar .item {
        padding: 8px 12px;
    }

        .solar .item .n {
            font-weight: 800;
        }

        .solar .item .d {
            opacity: .8;
        }

/* 超大螢幕再降一點封頂高度（可選） */
@media (min-width: 1600px) {
    .solar {
        max-height: 520px;
    }
}
/* 上下各一條柔和細線 */
.section.is-divided {
    position: relative;
    padding-block: 64px; /* 維持原有內距，可依需求調整 */
}

    .section.is-divided::before,
    .section.is-divided::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient( 90deg, transparent 0%, color-mix(in srgb, var(--ink) 10%, transparent) 15%, color-mix(in srgb, var(--ink) 18%, transparent) 50%, color-mix(in srgb, var(--ink) 10%, transparent) 85%, transparent 100% );
    }

    .section.is-divided::before {
        top: 0;
    }

    .section.is-divided::after {
        bottom: 0;
    }

/* 只要上或只要下也可以這樣用 */
.section.divide-top::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: color-mix(in srgb,var(--ink) 18%, transparent);
}

.section.divide-bottom::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: color-mix(in srgb,var(--ink) 18%, transparent);
}



#quick textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .25s ease, box-shadow .25s ease;
}

#quick textarea:focus {
    border-color: #e91e63; /* 聚焦時改成你的主題色 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(233,30,99,0.15);
}

/* ≥1200px：右欄 420px 固定寬 */
@media (min-width:1200px) {
    .hero .wrap {
        grid-template-columns: minmax(0,1fr) 420px;
        align-items: start;
    }
}

/* 1024–1199px：右欄稍窄一點，避免壓縮左欄 */
@media (min-width:1024px) and (max-width:1199.98px) {
    .hero .wrap {
        grid-template-columns: minmax(0,1fr) 360px;
        align-items: start;
    }
}

/* ≤1023px：手機單欄（⚠️這段請放在檔案最末或至少在上面兩段之後）*/
@media (max-width:1023.98px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }

    .solar {
        position: static;
        max-height: none;
        overflow: visible;
    }
    /* 節氣清單改單欄，避免擠 */
    #solar-list {
        grid-template-columns: 1fr;
    }
}
/* 手機：顯示漢堡、先收起選單 */
@media (max-width:980px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
    }

    .menu {
        display: none; /* 先收起 */
        position: absolute;
        left: 0;
        right: 0;
        top: 100%; /* 貼在 app bar 下 */
        background: #fff;
        border-bottom: 2px solid var(--acc);
        padding: 10px 16px 14px;
        box-shadow: 0 8px 24px rgba(2,6,23,.08);
        flex-direction: column; /* 直向 */
        gap: 6px;
    }

        .menu.is-open {
            display: flex;
        }

        .menu a {
            padding: 10px 12px;
            border-radius: 8px;
        }

            .menu a:hover {
                background: #f3f4f6;
            }

    /* 讓右邊社群 icon 不擠到下一行 */
    .app-in {
        position: relative;
    }
}

/* 桌機：隱藏漢堡，維持原本水平選單 */
@media (min-width:981px) {
    .nav-toggle {
        display: none;
    }
}
