/* ========================================
   温度排行榜页面样式
   ======================================== */

.temp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.tabs-container {
    background: #FFFEF5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(47,47,47,.1);
    overflow: hidden;
    border: 1px solid rgba(93,79,66,.15);
}

.tabs-nav {
    display: flex;
    background: rgba(240,234,222,.95);
    border-bottom: 2px solid rgba(93,79,66,.15);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #5D4F42;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
    font-size: .9375rem;
    font-family: 'TsangerYuYangT W03', 'Noto Serif SC', 'SimSun', serif;
}

.tab-btn.active {
    color: #b74137;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 60%;
    height: 2px;
    background: #cc493d;
    margin-top: .75rem;
}

.tab-btn:hover:not(.active) {
    background: rgba(93,79,66,.1);
    color: #2f2f2f;
}

.tabs-content {
    padding: 1rem 1.25rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.temp-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    padding: 1rem;
    background: rgba(240,234,222,.5);
    border-radius: 6px;
    border: 1px solid rgba(93,79,66,.15);
    position: relative;
}

.summary-item.hot {
    border-left: 4px solid #c0392b;
}

.summary-item.cold {
    border-left: 4px solid #2980b9;
}

.summary-seal {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9375rem;
    font-weight: 700;
    border-radius: 4px;
    font-family: 'TsangerYuYangT W03', 'SimSun', serif;
    letter-spacing: 0;
}

.hot-seal {
    background: rgba(192,57,43,.15);
    color: #c0392b;
}

.cold-seal {
    background: rgba(41,128,185,.15);
    color: #2980b9;
}

.summary-label {
    display: block;
    font-size: .75rem;
    color: #816b4f;
    margin: .25rem 0;
}

.summary-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'TsangerYuYangT W03', serif;
}

.summary-author {
    display: block;
    font-size: .6875rem;
    color: #5D4F42;
    margin-top: .25rem;
}

.temp-list {
    display: flex;
    flex-direction: column;
}

.temp-item {
    display: flex;
    align-items: center;
    padding: 1rem .75rem;
    border-bottom: 1px dashed rgba(93,79,66,.15);
    gap: .75rem;
}

.temp-item:last-child {
    border-bottom: none;
}

.temp-item:hover {
    background: rgba(240,234,222,.5);
}

.temp-rank {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9375rem;
    color: #5D4F42;
    background: #f9f7f1;
    border-radius: 6px;
    border: 1px solid rgba(93,79,66,.15);
    font-family: 'TsangerYuYangT W03', serif;
}

.temp-rank.rank-first {
    background: linear-gradient(135deg, #f5c842, #d4a54a);
    color: #fff;
    border-color: #f5c842;
    box-shadow: 0 2px 8px rgba(245,200,66,.4);
}

.temp-rank.rank-second {
    background: linear-gradient(135deg, #b8b8b8, #8a8a8a);
    color: #fff;
    border-color: #b8b8b8;
    box-shadow: 0 2px 8px rgba(184,184,184,.4);
}

.temp-rank.rank-third {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
    border-color: #cd7f32;
    box-shadow: 0 2px 8px rgba(205,127,50,.4);
}

.temp-bar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-radius: 4px;
    color: #fff;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.temp-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15));
    pointer-events: none;
}

.temp-info {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    position: relative;
    z-index: 1;
}

.temp-author {
    font-weight: 600;
    font-size: .9375rem;
    font-family: 'TsangerYuYangT W03', serif;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    gap: .25rem;
}

.temp-region {
    font-size: .75rem;
    opacity: .9;
}

.temp-date {
    display: inline-block;
    padding: 0 .375rem;
    background: rgba(255,255,255,.3);
    border-radius: 3px;
    font-size: .625rem;
    font-weight: normal;
    opacity: .9;
    letter-spacing: .05em;
}

.temp-value {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'TsangerYuYangT W03', serif;
    min-width: 60px;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
    position: relative;
    z-index: 1;
}

.temp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: .75rem;
    color: #816b4f;
}

.temp-cache-area {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}

.temp-cache-notice {
    color: #59764b;
    font-weight: 500;
}

.temp-cache-clear {
    color: #816b4f;
    text-decoration: none;
    padding: .25rem .625rem;
    border: 1px solid rgba(139,115,85,.3);
    border-radius: 3px;
    transition: all .3s;
    cursor: pointer;
}

.temp-cache-clear:hover {
    color: #b74137;
    border-color: #cc493d;
    background: rgba(204,73,61,.08);
}

.no-data {
    padding: 4rem 1.5rem;
    text-align: center;
    color: #5D4F42;
    font-size: 1rem;
    font-family: 'TsangerYuYangT W03', serif;
    letter-spacing: .2em;
}

@media (max-width: 768px) {
    .temp-container {
        padding: 1.5rem 1rem;
    }
    .temp-summary {
        grid-template-columns: 1fr;
    }
    .tab-btn {
        padding: .75rem .25rem;
        font-size: .8125rem;
    }
    .temp-bar {
        padding: .5rem;
    }
    .temp-value {
        font-size: 1rem;
        min-width: 50px;
    }
    .temp-author {
        font-size: .875rem;
    }
    .temp-footer {
        flex-direction: column;
        gap: .5rem;
        text-align: center;
    }
    .temp-cache-area {
        justify-content: center;
    }
}