/**
 * 个人标签引导页 - 天气样式
 *
 * @description 天气卡片、天气弹窗、天气预报
 */

/* ==================== 天气卡片（首页） ==================== */
.weather-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-desc-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.weather-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.weather-city-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.weather-city-row i {
    font-size: 0.7rem;
    color: var(--accent);
    cursor: pointer;
}

.weather-mini-divider {
    color: var(--border);
    margin: 0 0.25rem;
}

.weather-mini-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.weather-mini-stat i {
    font-size: 0.7rem;
    color: var(--accent);
}

.weather-right {
    display: flex;
    align-items: center;
}

.weather-icon-big {
    font-size: 3.5rem;
}

/* ==================== 天气弹窗 ==================== */
.weather-search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.weather-search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
}

.weather-search-box button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.weather-search-box button:hover { background: var(--accent-hover); }

/* 当前天气 */
.weather-current {
    margin-bottom: 1.5rem;
}

.weather-current-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.weather-current-icon {
    font-size: 5rem;
    margin-bottom: 0.5rem;
}

.weather-current-temp {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-current-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.weather-current-city {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.weather-current-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.weather-grid-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.weather-grid-item i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.weather-grid-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.weather-grid-value {
    font-size: 1rem;
    font-weight: 500;
}

/* 24小时预报 */
.weather-forecast-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.weather-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-hourly {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.weather-hourly-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    min-width: 60px;
}

.weather-hourly-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weather-hourly-icon {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.weather-hourly-temp {
    font-size: 0.9rem;
    font-weight: 500;
}

.weather-hourly-pop {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 7天预报 */
.weather-daily {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weather-daily-item {
    display: grid;
    grid-template-columns: 50px 60px 60px 80px 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.weather-daily-day {
    font-size: 0.85rem;
    font-weight: 500;
}

.weather-daily-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.weather-daily-icons {
    display: flex;
    gap: 0.25rem;
    font-size: 1rem;
}

.weather-daily-temp {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.weather-daily-temp .temp-high { font-weight: 500; }
.weather-daily-temp .temp-low { color: var(--text-secondary); }

.weather-daily-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.weather-error {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .weather-current-grid { grid-template-columns: repeat(2, 1fr); }
    .weather-daily-item { grid-template-columns: 40px 50px 50px 70px 1fr; }
}
