/* ================================================================
   菜刀客在线工具页 · solar-terms.html 私有样式
   需在 /css/common.css 之后加载。
   ================================================================ */

/* ---- 节气季节分组 ---- */
.season-group {
    margin-bottom: 16px;
}

.season-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e5e7eb;
}

.season-head .season-ico {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.season-spring .season-ico { background: #dcfce7; color: #16a34a; }
.season-summer .season-ico { background: #fee2e2; color: #ef4444; }
.season-autumn .season-ico { background: #fef3c7; color: #d97706; }
.season-winter .season-ico { background: #e0e7ff; color: #4338ca; }

/* ---- 节气卡片网格：每个季节 6 个节气单行显示 ---- */
.term-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 900px) {
    .term-grid {
        grid-template-columns: repeat(6, minmax(150px, 1fr));
        overflow-x: auto;
    }
}

/* ---- 节气卡片背景（季节色调 + 节气图标水印，淡化不影响文字） ---- */
.term-card {
    position: relative;
    overflow: hidden;
}

.season-spring .term-card { background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 100%); }
.season-summer .term-card { background: linear-gradient(160deg, #fef2f2 0%, #fff7ed 100%); }
.season-autumn .term-card { background: linear-gradient(160deg, #fffbeb 0%, #fefce8 100%); }
.season-winter .term-card { background: linear-gradient(160deg, #eff6ff 0%, #eef2ff 100%); }

.term-card.today {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}

.term-wm {
    position: absolute;
    right: -8px;
    top: -8px;
    font-size: 58px;
    line-height: 1;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.term-card .term-name,
.term-card .term-date,
.term-card .term-time,
.term-card .term-extra {
    position: relative;
    z-index: 1;
}

.term-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.term-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.term-card.today {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}

.term-card .term-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.term-card .term-name .badge {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1px 8px;
}

.term-card .term-date {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #4338ca;
    font-variant-numeric: tabular-nums;
    margin-top: 6px;
}

.term-card .term-time {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.term-card .term-extra {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ---- 节气节气常识表格 ---- */
.term-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.term-ref-table th, .term-ref-table td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    text-align: left;
}

.term-ref-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
}