:root {
    --cream: #F6F2EC;
    --paper: #FFFFFF;
    --ink: #1F2329;
    --ink-soft: #4A443D;
    --muted: #8C8279;
    --faint: #B0A698;
    --red: #B23A34;
    --red-soft: #FBEAE6;
    --red-line: #F0DFD8;
    --line: #F1EAE0;
    --line-soft: #F6F0E7;
    --shadow: 0 1px 2px rgba(120, 100, 80, 0.04), 0 8px 24px rgba(120, 100, 80, 0.05);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding: 0 28px 40px;
    background: var(--cream);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* 顶部 */
.site-head,
main,
.site-foot {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 2px 22px;
}

.brand {
    color: var(--ink);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-mark {
    margin: 0 4px;
    color: var(--red);
}

.tabs {
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: #EBE4D9;
}

.tab {
    padding: 8px 22px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    transition: background 0.18s ease, color 0.18s ease;
}

.tab.is-on {
    background: #FFFFFF;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(120, 100, 80, 0.12);
}

/* 布局 */
.layout {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 18px;
    align-items: start;
}

.col {
    display: grid;
    gap: 18px;
    align-content: start;
}

.lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-hint {
    color: var(--faint);
    font-size: 12px;
}

/* 日期主卡 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 28px;
}

.hero-date {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.hero-day {
    font-size: 74px;
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -2px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 6px;
}

.hero-month {
    font-size: 15px;
}

.hero-week {
    color: var(--muted);
    font-size: 13px;
}

.hero-right {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}

.hero-lunar {
    color: var(--red);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-ganzhi {
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: 1px;
}

.badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: #F7F1E8;
    color: #8A7A66;
    font-size: 11.5px;
}

/* 月历 */
.calendar {
    padding: 16px 14px 14px;
}

.cal-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px 12px;
}

.arrow {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    transition: background 0.15s ease;
}

.arrow:hover {
    background: #F4EFE7;
}

.cal-month {
    padding: 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.cal-spacer {
    flex: 1;
}

.today-btn {
    padding: 5px 14px;
    border: 1px solid #E6DDD1;
    border-radius: 999px;
    color: var(--red);
    font-size: 12px;
}

.today-btn:hover {
    background: #FBF3EF;
}

.weekdays,
.grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekdays span {
    padding-bottom: 6px;
    color: var(--faint);
    font-size: 11.5px;
    text-align: center;
}

.cell {
    display: flex;
    height: 68px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    border-radius: 10px;
    transition: background 0.14s ease;
}

.cell:hover {
    background: #F7F2EA;
}

.cell-day {
    font-size: 14.5px;
    line-height: 1.1;
}

.cell-sub {
    color: var(--faint);
    font-size: 10.5px;
    line-height: 1.1;
}

.cell-sub.special {
    color: var(--red);
}

.cell.muted .cell-day,
.cell.muted .cell-sub {
    color: #CEC6BA;
}

.cell.today {
    background: #F7F1E8;
}

.cell.today .cell-day {
    color: var(--red);
    font-weight: 700;
}

.cell.selected {
    background: var(--red);
}

.cell.selected .cell-day,
.cell.selected .cell-sub {
    color: #FFFFFF;
}

/* 宜忌 */
.yiji {
    border-color: var(--red-line);
    background: #FDF8F5;
}

.yiji-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 18px;
}

.yiji-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.yiji-meta {
    color: #A08C7C;
    font-size: 12px;
}

.yiji-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.yiji-sign {
    display: flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
}

.sign-yi {
    background: var(--red);
}

.sign-ji {
    background: #5C544B;
}

.yiji-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.tag-yi {
    background: var(--red-soft);
    color: var(--red);
}

.tag-ji {
    background: #EFEBE5;
    color: #5C544B;
}

.yiji-divider {
    height: 1px;
    margin: 16px 0;
    background: #F2E4DB;
}

/* 解读 */
.reading-lead {
    margin: 14px 0 4px;
    color: var(--red);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.65;
}

.reading-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
}

.reading-label {
    padding-top: 2px;
    color: #B08A72;
    font-size: 12px;
    letter-spacing: 1px;
}

.reading-text {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

/* 时辰 */
.hours {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.pengzu-card {
    display: flex;
    flex-direction: column;
}

.hour {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    border-radius: 10px;
    background: #F8F5F0;
}

.hour-name {
    font-size: 13px;
}

.hour-range {
    color: var(--faint);
    font-size: 10.5px;
}

.hour-jx {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.hour.lucky {
    background: var(--red-soft);
}

.hour.lucky .hour-name,
.hour.lucky .hour-jx {
    color: var(--red);
}

/* 详情 */
.info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 10px;
    background: var(--line-soft);
}

.info-item {
    padding: 14px 4px;
    background: var(--paper);
}

.info-label {
    color: var(--faint);
    font-size: 11px;
}

.info-value {
    margin-top: 5px;
    font-size: 14px;
}

.pengzu-rows {
    margin-top: 12px;
}

.pengzu-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid var(--line-soft);
}

.pengzu-key {
    color: var(--faint);
    font-size: 11.5px;
    letter-spacing: 1px;
}

.pengzu-line {
    color: #5C544B;
    font-size: 14px;
    line-height: 1.6;
}

.pengzu-text {
    margin: 12px 0 0;
    color: #5C544B;
    font-size: 14px;
    line-height: 1.9;
}

/* 择日 */
.select-head {
    margin-bottom: 16px;
}

.select-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.select-sub {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.thing-panel {
    margin-bottom: 18px;
    padding: 18px 22px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.chip-groups {
    display: grid;
    gap: 10px;
}

.chip-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chip-label {
    width: 34px;
    flex-shrink: 0;
    color: #B08A72;
    font-size: 12px;
    letter-spacing: 2px;
}

.chip-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip-items .chip {
    padding: 7px 16px;
    border: 1px solid #EAE1D6;
    border-radius: 999px;
    background: #FFFFFF;
    color: #5C544B;
    font-size: 13px;
    transition: all 0.15s ease;
}

.chip-items .chip:hover {
    border-color: #DCCFC0;
}

.chip-items .chip.is-on {
    border-color: var(--red);
    background: var(--red);
    color: #FFFFFF;
    font-weight: 600;
}

.thing-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.filter-row .seg {
    margin: 0;
    padding: 4px;
    border-radius: 12px;
    background: #EBE4D9;
}

.seg-item {
    padding: 8px 20px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
}

.seg-item.is-on {
    background: #FFFFFF;
    color: var(--ink);
    font-weight: 600;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid #E6DDD1;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--muted);
    font-size: 12.5px;
}

.sort-btn:hover {
    border-color: #DCCFC0;
}

.sort-btn.is-on {
    border-color: var(--red-line);
    background: var(--red-soft);
    color: var(--red);
    font-weight: 600;
}

.tool-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.dao-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid #E6DDD1;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--muted);
    font-size: 12.5px;
}

.dao-btn::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D8D0C4;
}

.dao-btn.is-on {
    border-color: var(--red-line);
    background: var(--red-soft);
    color: var(--red);
    font-weight: 600;
}

.dao-btn.is-on::before {
    background: var(--red);
}

.option-hint {
    margin-top: 9px;
    color: var(--faint);
    font-size: 12px;
}

.day-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.day-card {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #FFFFFF;
    text-align: left;
    box-shadow: var(--shadow);
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.day-card:hover {
    border-color: #E3D3C4;
    transform: translateY(-1px);
}

.day-card.is-picked {
    border-color: var(--red);
}

.day-hit {
    padding: 16px 18px 14px;
    cursor: pointer;
}

.day-hit:hover {
    background: #FDFAF6;
}

.day-card .day-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.day-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-md {
    font-size: 17px;
    font-weight: 600;
}

.day-week {
    color: var(--faint);
    font-size: 12px;
}

.day-arrow {
    color: #C9BFB3;
    font-size: 22px;
    line-height: 1;
}

.day-card .day-mid {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
}

.lunar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-lunar {
    color: var(--red);
    font-size: 13.5px;
}

.dao-badge {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.5;
}

.dao-badge.dao-lucky {
    background: var(--red-soft);
    color: var(--red);
}

.dao-badge.dao-plain {
    background: #EFE9E0;
    color: var(--muted);
}

.season {
    padding: 2px 9px;
    border-radius: 999px;
    background: #F7F1E8;
    color: #8A7A66;
    font-size: 11px;
}

.day-gz {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.day-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-top: 1px solid var(--line-soft);
    background: #FDFBF8;
}

.foot-tags {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.tag-lab {
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
}

.foot-tags .tag-yi {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.tag-chong {
    margin-left: auto;
    padding-left: 8px;
    color: var(--faint);
    font-size: 11.5px;
    white-space: nowrap;
}

.pick-btn {
    flex-shrink: 0;
    padding: 5px 12px;
    border: 1px solid #E6DDD1;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--muted);
    font-size: 12px;
}

.pick-btn:hover {
    border-color: #DCCFC0;
}

.pick-btn.is-on {
    border-color: var(--red);
    background: var(--red);
    color: #FFFFFF;
    font-weight: 600;
}

.empty {
    padding: 40px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #FFFFFF;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

.empty-desc {
    margin: 8px auto 0;
    max-width: 460px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.empty-btn {
    margin-top: 18px;
    padding: 9px 24px;
    border-radius: 999px;
    background: var(--red);
    color: #FFFFFF;
    font-size: 13px;
}

.select-foot {
    padding: 18px 2px 0;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

/* 对比浮条与面板 */
.cmp-bar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 10px 9px 20px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #26221E;
    color: #FFFFFF;
    font-size: 13px;
    box-shadow: 0 8px 28px rgba(31, 25, 20, 0.24);
}

.cmp-bar-txt {
    letter-spacing: 1px;
    white-space: nowrap;
}

.cmp-bar-clear {
    color: #C9BEB1;
    font-size: 12.5px;
    white-space: nowrap;
}

.cmp-bar-btn {
    padding: 8px 22px;
    border-radius: 999px;
    background: var(--red);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}

.cmp-mask {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(31, 35, 41, 0.4);
}

.cmp-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 51;
    width: min(1080px, calc(100% - 40px));
    max-height: 78vh;
    overflow: auto;
    padding: 22px 24px 28px;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    background: var(--cream);
    box-shadow: 0 -10px 40px rgba(31, 25, 20, 0.18);
}

.cmp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cmp-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}

.cmp-close {
    color: var(--muted);
    font-size: 13px;
}

.cmp-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.cmp-col {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #FFFFFF;
}

.cmp-date {
    font-size: 19px;
    font-weight: 600;
}

.cmp-week {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.cmp-gz {
    margin-top: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--faint);
    font-size: 11.5px;
}

.cmp-block {
    display: flex;
    gap: 9px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
}

.cmp-col .cmp-block:nth-last-child(2) {
    margin-bottom: 16px;
}

.cmp-lab {
    width: 18px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
}

.lab-yi {
    color: var(--red);
}

.lab-ji {
    color: #5C544B;
}

.cmp-txt {
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.7;
}

.cmp-go {
    margin-top: auto;
    padding: 9px;
    border: 1px solid var(--red-line);
    border-radius: 9px;
    background: #FDF8F5;
    color: var(--red);
    font-size: 12.5px;
}

#toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 60;
    padding: 9px 18px;
    transform: translate(-50%, 8px);
    border-radius: 999px;
    background: #26221E;
    color: #FFFFFF;
    font-size: 12.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 页脚 */
.site-foot {
    padding: 30px 2px 0;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.site-foot p {
    margin: 4px 0;
}

.site-foot-sub {
    color: #C3B9AC;
}

@media (max-width: 900px) {
    body {
        padding: 0 16px 32px;
    }

    .layout,
    .lower {
        display: flex;
        flex-direction: column;
        /* 覆盖桌面两列网格的 align-items:start，单列时让卡片按容器宽度自适应撑满 */
        align-items: stretch;
        gap: 14px;
    }

    .layout .card,
    .lower .card {
        width: 100%;
    }

    .col {
        display: contents;
    }

    .hero {
        order: 1;
        padding: 22px 20px;
    }

    .hero-day {
        font-size: 60px;
    }

    .weather-card,
    .weather-restore {
        order: 2;
    }

    .yiji {
        order: 3;
    }

    .reading {
        order: 4;
    }

    .calendar {
        order: 5;
    }

    .hours-card {
        order: 6;
    }

    .hours {
        grid-template-columns: repeat(6, 1fr);
    }

    .info {
        grid-template-columns: repeat(2, 1fr);
    }

    .day-list {
        grid-template-columns: 1fr;
    }

    .chip-group {
        align-items: flex-start;
        gap: 10px;
    }

    .chip-label {
        padding-top: 8px;
    }

    .cmp-sheet {
        width: calc(100% - 16px);
        max-height: 82vh;
        padding: 18px 14px 22px;
    }

    .cmp-col {
        padding: 12px;
    }

    .cmp-bar {
        bottom: 12px;
    }

    .brand {
        font-size: 18px;
        letter-spacing: 2px;
    }
}

@media (max-width: 560px) {
    .cmp-row {
        flex-direction: column;
    }

    .cmp-col .cmp-block:nth-last-child(2) {
        margin-bottom: 12px;
    }

    .select-title {
        font-size: 22px;
    }

    .thing-panel {
        padding: 16px 14px 14px;
    }

    .cmp-bar {
        width: calc(100% - 24px);
        justify-content: space-between;
        gap: 8px;
        padding-left: 16px;
    }
}

@media (max-width: 420px) {
    .hours {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-ganzhi {
        font-size: 11.5px;
    }
}

/* 吉神与凶煞 */
.shen-lines {
    margin-top: 16px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.shen-line {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    align-items: flex-start;
}

.shen-label {
    width: 62px;
    flex-shrink: 0;
    color: var(--faint);
    font-size: 11.5px;
    line-height: 1.7;
}

.shen-value {
    flex: 1;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.7;
}

.pengzu-note {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    color: var(--faint);
    font-size: 12px;
    line-height: 1.8;
}

/* 天气（联网可选，隐藏后回到纯离线） */
.weather-card {
    padding: 16px 20px;
}

.weather-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.city-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.city-select {
    padding: 5px 10px;
    border: 1px solid #E6DDD1;
    border-radius: 8px;
    background: #FBF8F2;
    color: var(--ink);
    font-size: 12.5px;
    max-width: 100%;
}

.province-select {
    max-width: 132px;
}

.city-select:not(.province-select) {
    max-width: 168px;
}

/* 定位：文字按钮，触摸 / 点击区域明显大于单个符号 */
.city-locate {
    flex: none;
    min-height: 32px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #E6DDD1;
    border-radius: 8px;
    background: #FBF8F2;
    color: #8A7A66;
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.locate-icon {
    font-size: 16px;
    line-height: 1;
}

.city-locate:hover {
    border-color: var(--red-line);
    color: var(--red);
}

.weather-temp {
    color: var(--ink-soft);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.weather-temp.temp-sun {
    color: var(--red);
}

.weather-text {
    color: var(--muted);
    font-size: 13px;
}

.weather-hint,
.weather-na {
    margin-left: auto;
    color: var(--faint);
    font-size: 11.5px;
}

.weather-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.weather-detail {
    flex: 1;
    color: var(--faint);
    font-size: 11.5px;
    line-height: 1.5;
}

.weather-off,
.weather-retry {
    flex-shrink: 0;
    padding: 4px 0 4px 10px;
    font-size: 12px;
}

.weather-off {
    color: var(--muted);
}

.weather-retry {
    color: var(--red);
    font-weight: 600;
}

.weather-off:hover,
.weather-retry:hover {
    color: var(--red);
}

/* 月历卡头的天气状态 */
.cal-weather-note {
    margin-right: 4px;
    color: var(--faint);
    font-size: 11.5px;
    white-space: nowrap;
}

.cal-weather-retry {
    margin-right: 4px;
    padding: 5px 9px;
    border: 1px solid var(--red-line);
    border-radius: 8px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 11.5px;
    white-space: nowrap;
    cursor: pointer;
}

.cal-weather-retry:hover {
    background: #F7E3DF;
}

@media (max-width: 620px) {
    .cal-weather-note { display: none; }
}

.weather-restore {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px dashed #E6DDD1;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

.weather-restore:hover {
    border-color: var(--red-line);
    color: var(--red);
}

/* 月历格子里的未来天气 */
.cell-weather {
    height: 13px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    line-height: 13px;
}

.cell-weather.wx-sun {
    color: #C08A7E;
}

.cell.selected .cell-weather,
.cell.selected .cell-weather.wx-sun {
    color: #FFFFFF;
}

.cell.muted .cell-weather,
.cell.muted .cell-weather.wx-sun {
    color: #DCD5CA;
}

/* 择日日期卡天气 */
.day-weather {
    display: block;
    margin-top: 4px;
    color: #8A7A66;
    font-size: 11.5px;
}
