/* 历史上的今天 - 主题样式 */
.daily-history-date-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}

.daily-history-date-label {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.daily-history-md-selects {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.daily-history-date-select {
    min-width: 88px;
    padding: 8px 10px;
    border: 1px solid #d97706;
    border-radius: 8px;
    font-size: 14px;
    color: #292524;
    background: #fff;
    cursor: pointer;
}

.daily-history-date-select:focus {
    outline: none;
    border-color: #b45309;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

.daily-history-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.daily-history-query-btn {
    padding: 8px 16px;
}

.daily-history-date-head {
    text-align: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.12) 0%, rgba(161, 98, 7, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(180, 83, 9, 0.25);
}

.daily-history-date-head .date-main {
    font-size: 22px;
    font-weight: 700;
    color: #78350f;
    letter-spacing: 0.06em;
}

.daily-history-date-head .date-sub {
    font-size: 13px;
    color: #92400e;
    margin-top: 6px;
}

.daily-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.daily-history-item {
    position: relative;
    padding: 16px 16px 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(120, 53, 15, 0.06);
}

.daily-history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--daily-accent) 0%, var(--daily-accent-end) 100%);
}

.daily-history-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.daily-history-year {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.daily-history-md {
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
    padding: 2px 8px;
    background: rgba(251, 191, 36, 0.25);
    border-radius: 4px;
}

.daily-history-category {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #78350f;
    background: rgba(251, 191, 36, 0.35);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.daily-history-category.cat-politics { color: #991b1b; background: rgba(254, 202, 202, 0.5); border-color: #fca5a5; }
.daily-history-category.cat-tech { color: #1e40af; background: rgba(191, 219, 254, 0.5); border-color: #93c5fd; }
.daily-history-category.cat-culture { color: #7c2d12; background: rgba(254, 215, 170, 0.5); border-color: #fdba74; }
.daily-history-category.cat-sports { color: #166534; background: rgba(187, 247, 208, 0.5); border-color: #86efac; }
.daily-history-category.cat-people { color: #5b21b6; background: rgba(233, 213, 255, 0.5); border-color: #d8b4fe; }
.daily-history-category.cat-other { color: #475569; background: rgba(226, 232, 240, 0.6); border-color: #cbd5e1; }

.daily-history-title {
    font-size: 16px;
    font-weight: 600;
    color: #292524;
    line-height: 1.45;
    margin-bottom: 8px;
}

.daily-history-summary {
    font-size: 14px;
    line-height: 1.75;
    color: #57534e;
    text-align: justify;
}

.daily-history-empty {
    text-align: center;
    padding: 32px 16px;
    color: #78716c;
    font-size: 15px;
}

.daily-history-loadmore {
    text-align: center;
    margin: 8px 0 20px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px dashed #fcd34d;
    border-radius: 10px;
}

.daily-history-page-info {
    font-size: 13px;
    color: #92400e;
    margin: 0 0 10px;
}

.daily-history-loadmore-btn {
    min-width: 200px;
}

.daily-history-fallback-note {
    font-size: 12px;
    color: #a8a29e;
    text-align: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fafaf9;
    border-radius: 8px;
}

.daily-category-tabs.history-tabs {
    gap: 6px;
}

.daily-category-tabs.history-tabs .daily-category-tab {
    padding: 7px 12px;
    font-size: 13px;
}

.daily-category-tabs.history-tabs .daily-category-tab.is-active {
    background: linear-gradient(135deg, var(--daily-accent) 0%, var(--daily-accent-end) 100%);
}

@media (max-width: 480px) {
    .daily-history-date-select {
        min-width: 76px;
        font-size: 13px;
    }

    .daily-history-date-head .date-main {
        font-size: 20px;
    }

    .daily-history-year {
        font-size: 16px;
    }

    .daily-history-title {
        font-size: 15px;
    }

    .daily-history-item {
        padding: 14px 14px 14px 18px;
    }

    .daily-category-tabs.history-tabs .daily-category-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
}
