/* ======================================================================
 *  二十四节气查询 /tool/solar-terms
 * ====================================================================== */

/* ---------- 年份切换条 ---------- */
.st-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.st-nav {
    height: 38px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.16s ease;
}
.st-nav:hover { color: var(--c-primary); border-color: var(--c-primary); }
.st-nav:disabled { opacity: 0.45; cursor: not-allowed; }
.st-nav:disabled:hover { color: var(--c-text-sub); border-color: var(--c-border); }
.st-nav-cur { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-soft); }
.st-year {
    height: 38px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    outline: none;
}
.st-year:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.st-bar-tip { margin-left: auto; font-size: 12px; color: var(--c-text-muted); }

/* ---------- 概览卡 ---------- */
.st-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.st-ov-col {
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: var(--c-bg-card);
    box-shadow: var(--shadow-sm);
}
.st-ov-now {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.14), rgba(64, 132, 214, 0.06));
    border-color: rgba(52, 199, 89, 0.3);
}
.st-ov-next {
    background: linear-gradient(135deg, rgba(122, 92, 214, 0.13), rgba(214, 138, 92, 0.06));
    border-color: rgba(122, 92, 214, 0.28);
}
.st-ov-label { font-size: 12.5px; color: var(--c-text-muted); }
.st-ov-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 7px; color: var(--c-text); }
.st-ov-desc { font-size: 12.5px; line-height: 1.75; color: var(--c-text-sub); }
.st-ov-desc b { color: var(--c-primary); }

/* ---------- 四季概览 ---------- */
.st-season-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.st-season-card {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    border-top-width: 3px;
}
.st-season-card.is-spring { border-top-color: #34c759; }
.st-season-card.is-summer { border-top-color: #ff9f0a; }
.st-season-card.is-autumn { border-top-color: #d68a5c; }
.st-season-card.is-winter { border-top-color: #4084d6; }
.st-season-head { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; color: var(--c-text); }
.st-season-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.st-term-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 9px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
}
.st-term-chip small { font-size: 10.5px; font-weight: 600; color: var(--c-text-muted); }

/* ---------- 节气表 ---------- */
.st-card {
    padding: 22px;
    margin-bottom: 16px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.st-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-card-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.st-copy {
    height: 34px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-primary);
    background: var(--c-primary-soft);
    border: 1px solid var(--c-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.16s ease;
}
.st-help { margin: 11px 0 14px; font-size: 12px; line-height: 1.7; color: var(--c-text-muted); }
.st-help b { color: var(--c-text-sub); }

.st-table-scroll { overflow-x: auto; border: 1px solid var(--c-border); border-radius: 12px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.st-table thead th {
    text-align: left;
    padding: 11px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border-bottom: 1px solid var(--c-border);
    white-space: nowrap;
}
.st-table tbody td {
    padding: 10px 14px;
    color: var(--c-text-sub);
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
    line-height: 1.6;
}
.st-table tbody tr:last-child td { border-bottom: none; }
.st-table tbody tr:hover { background: var(--c-surface-soft); }
.st-table tbody tr.is-today { background: rgba(52, 199, 89, 0.13); }
.st-table tbody tr.is-today td { color: var(--c-text); }
.st-table tbody tr.is-today td:first-child { box-shadow: inset 3px 0 0 #34c759; }
.st-idx { width: 42px; color: var(--c-text-muted); }
.st-name b { font-size: 14.5px; color: var(--c-text); margin-right: 6px; }
.st-season {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    vertical-align: 1px;
}
.st-season.is-spring { background: #34c759; }
.st-season.is-summer { background: #ff9f0a; }
.st-season.is-autumn { background: #d68a5c; }
.st-season.is-winter { background: #4084d6; }
.st-time b { color: var(--c-text); }
.st-time small { display: block; font-size: 11px; color: var(--c-text-muted); }
.st-lunar, .st-week, .st-status { white-space: nowrap; }
.st-desc { min-width: 260px; font-size: 12.5px; }

/* ---------- 免责与简介 ---------- */
.st-disclaim {
    font-size: 12px;
    line-height: 1.85;
    color: var(--c-text-muted);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 26px;
}
.st-disclaim b { color: var(--c-text-sub); }
.st-info-block { margin-bottom: 26px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .st-overview { grid-template-columns: 1fr; }
    .st-season-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .st-bar-tip { display: none; }
    .st-nav { padding: 0 11px; font-size: 12.5px; }
    .st-ov-name { font-size: 21px; }
    .st-card { padding: 18px; }
    .st-season-wrap { grid-template-columns: 1fr; }
}

/* ============ 黑夜模式 ============ */
[data-theme="dark"] .st-nav,
[data-theme="dark"] .st-year,
[data-theme="dark"] .st-term-chip,
[data-theme="dark"] .st-disclaim,
[data-theme="dark"] .st-table thead th { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .st-ov-now {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.2), rgba(64, 132, 214, 0.1));
    border-color: rgba(52, 199, 89, 0.36);
}
[data-theme="dark"] .st-ov-next {
    background: linear-gradient(135deg, rgba(122, 92, 214, 0.22), rgba(214, 138, 92, 0.1));
    border-color: rgba(122, 92, 214, 0.36);
}
[data-theme="dark"] .st-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .st-table tbody tr.is-today { background: rgba(52, 199, 89, 0.18); }
