/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--gray-900);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

/* 顶部区域 */
.top-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* 天气区域 */
.weather-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 倒计时区域 */
.countdown-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

/* 倒计时卡片 */
.countdown-card {
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.countdown-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 35px -10px rgba(0, 0, 0, 0.15),
        0 8px 10px -5px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 倒计时主题样式 */
.countdown-theme-simple {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.countdown-theme-festive {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
}

.countdown-theme-festive::before {
    content: '🎉';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.countdown-theme-spring {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
}

.countdown-theme-spring::before {
    content: '🌸';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.countdown-theme-summer {
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
    border: 2px solid #fde047;
}

.countdown-theme-summer::before {
    content: '☀️';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.countdown-theme-autumn {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border: 2px solid #fdba74;
}

.countdown-theme-autumn::before {
    content: '🍂';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.countdown-theme-winter {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
}

.countdown-theme-winter::before {
    content: '❄️';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.countdown-theme-newyear {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 2px solid #f87171;
}

.countdown-theme-newyear::before {
    content: '🧧';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.countdown-theme-christmas {
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
    border: 2px solid #4ade80;
}

.countdown-theme-christmas::before {
    content: '🎄';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.countdown-theme-valentine {
    background: linear-gradient(135deg, #fdf2f8 0%, #fbcfe8 100%);
    border: 2px solid #f9a8d4;
}

.countdown-theme-valentine::before {
    content: '💕';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.countdown-title {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 1px rgba(102, 126, 234, 0.2));
}

.countdown-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-time {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.countdown-days-num {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(102, 126, 234, 0.3));
}

.countdown-hours-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    filter: drop-shadow(1px 1px 2px rgba(102, 126, 234, 0.2));
}

.countdown-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

/* 天气卡片 */
.weather-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.weather-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
}

.weather-location {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 16px;
    margin-bottom: 8px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-temp {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.weather-desc {
    color: var(--gray-600);
    font-size: 14px;
}

/* 密码验证区域 */
.password-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 20px;
}

.password-input-group {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 生日列表 */
.birthday-list {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.birthday-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.birthday-header h2 {
    font-size: 24px;
    color: var(--gray-900);
}

/* PC端生日列表 - 使用Grid确保对齐 */
.birthday-item {
    display: grid;
    grid-template-columns: 56px minmax(80px, 1fr) 70px 50px 90px 100px 80px 80px 70px;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--gray-50);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.name {
    width: auto;
    flex-shrink: 0;
}

.countdown-days {
    width: auto;
    flex-shrink: 0;
    text-align: center;
}

.birthday-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

/* 今天生日 - 喜庆样式 */
.birthday-today {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-left: 4px solid #f97316;
    animation: celebrate 2s ease-in-out infinite;
}

@keyframes celebrate {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% { 
        box-shadow: 0 0 20px 5px rgba(249, 115, 22, 0.2);
    }
}

/* 未过生日 - 正常样式（包括今年和明年） */
.birthday-upcoming,
.birthday-next-year {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.avatar-emoji {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.name {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gender {
    text-align: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.gender-male {
    background: linear-gradient(145deg, #bfdbfe 0%, #93c5fd 50%, #60a5fa 100%);
    color: #1e3a8a;
    box-shadow: 
        0 3px 6px -1px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.gender-female {
    background: linear-gradient(145deg, #fbcfe8 0%, #f9a8d4 50%, #f472b6 100%);
    color: #831843;
    box-shadow: 
        0 3px 6px -1px rgba(219, 39, 119, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(244, 114, 182, 0.4);
}

.zodiac {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(145deg, #d1fae5 0%, #6ee7b7 50%, #34d399 100%);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    text-align: center;
    box-shadow: 
        0 3px 6px -1px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(52, 211, 153, 0.4);
    white-space: nowrap;
}

.date-info {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.date-solar {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
    border-radius: 10px;
    color: #3730a3;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 
        0 4px 6px -1px rgba(99, 102, 241, 0.25),
        0 2px 4px -1px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.date-type {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    border-radius: 10px;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 
        0 4px 6px -1px rgba(245, 158, 11, 0.25),
        0 2px 4px -1px rgba(245, 158, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.age-full {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-align: center;
    white-space: nowrap;
    box-shadow: 
        0 4px 8px -2px rgba(37, 99, 235, 0.5),
        0 2px 4px -1px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.5);
}

.age-nominal {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(145deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-align: center;
    white-space: nowrap;
    box-shadow: 
        0 4px 8px -2px rgba(219, 39, 119, 0.5),
        0 2px 4px -1px rgba(219, 39, 119, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(244, 114, 182, 0.5);
}

.countdown-days {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

/* 响应式设计 */

@media (max-width: 1200px) {
    .countdown-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .weather-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-bottom: 70px;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .top-section {
        gap: 12px;
    }
    
    /* 倒计时 - 2列 */
    .countdown-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .countdown-card {
        padding: 12px 8px;
    }
    
    .countdown-title {
        font-size: 14px;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }
    
    .countdown-days-num {
        font-size: 28px;
    }
    
    .countdown-hours-num {
        font-size: 14px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    
    /* 天气 - 2列布局，确保等宽 */
    .weather-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2vw;
    }
    
    .weather-card {
        padding: 2.5vw;
        border-radius: 3vw;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .weather-current {
        margin-bottom: 2vw;
        text-align: center;
    }
    
    .weather-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5vw;
    }
    
    .weather-location {
        font-size: 4vw;
        text-align: center;
        margin-bottom: 0.5vw;
    }
    
    .weather-now {
        justify-content: center;
        align-items: baseline;
        gap: 1vw;
        flex-wrap: nowrap;
    }
    
    .weather-temp-large {
        font-size: 7vw;
        white-space: nowrap;
    }
    
    .weather-desc {
        font-size: 3.5vw;
        display: flex;
        align-items: center;
        gap: 0.5vw;
        white-space: nowrap;
    }
    
    .weather-icon {
        font-size: 4vw;
    }
    
    /* 天气预警 - 移动端隐藏 */
    .weather-warnings {
        display: none;
    }
    
    /* 3天预报 - 横向排列 */
    .weather-forecast {
        display: flex;
        flex-direction: column;
        gap: 1vw;
        padding-top: 1.5vw;
        border-top: 1px solid var(--gray-200);
    }
    
    .forecast-day {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 1vw 1.5vw;
        background: var(--gray-50);
        border-radius: 1.5vw;
        gap: 1vw;
        min-width: 0;
    }
    
    .forecast-date {
        font-size: 2.8vw;
        font-weight: 600;
        margin-bottom: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .forecast-icon {
        display: none;
    }
    
    .forecast-text {
        font-size: 2.8vw;
        margin-bottom: 0;
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    
    .forecast-temp {
        font-size: 2.8vw;
        white-space: nowrap;
        text-align: right;
        flex: 0 0 auto;
    }
    
    .forecast-temp .temp-max,
    .forecast-temp .temp-min {
        display: inline;
    }
    
    /* 密码区域 */
    .password-section {
        padding: 20px 16px;
        margin-bottom: 12px;
    }
    
    .password-section h2 {
        font-size: 18px;
        margin-bottom: 16px !important;
    }
    
    .password-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .password-input-group .input {
        width: 100%;
    }
    
    .password-input-group .btn {
        width: 100%;
    }
    
    /* 生日列表 */
    .birthday-list {
        padding: 12px;
        border-radius: 12px;
    }
    
    .birthday-header {
        margin-bottom: 12px;
    }
    
    .birthday-header h2 {
        font-size: 18px;
    }
    
    /* 移动端生日卡片 - 5列grid精确布局 */
    /* 列: 头像 | 左列(姓名/日期/周岁) | 右列(属相/农历/虚岁) | 性别+天数 */
    .birthday-item {
        display: grid;
        grid-template-columns: 13vw 22vw 22vw 18vw;
        grid-template-rows: repeat(3, auto);
        gap: 1.5vw 1.5vw;
        padding: 3vw;
        margin-bottom: 2.5vw;
        border-radius: 3.5vw;
        align-items: center;
    }
    
    /* 头像 - 第1列，跨3行 */
    .birthday-item .avatar-emoji {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 12vw;
        height: 12vw;
        font-size: 7vw;
        justify-self: center;
    }
    
    /* 第1行：姓名 | 属相 | 性别 */
    .birthday-item .name {
        grid-column: 2;
        grid-row: 1;
        font-size: 4vw;
        font-weight: 600;
        text-align: center;
        width: auto !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .birthday-item .zodiac {
        grid-column: 3;
        grid-row: 1;
        justify-self: center;
        font-size: 2.8vw;
        padding: 1vw 2vw;
        white-space: nowrap;
    }
    
    .birthday-item .gender {
        grid-column: 4;
        grid-row: 1;
        justify-self: center;
        font-size: 2.8vw;
        padding: 1vw 2vw;
        white-space: nowrap;
    }
    
    /* 第2行：日期 | 农历/阳历 | 天数(跨2行) */
    .birthday-item .date-solar {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
        font-size: 2.8vw;
        padding: 1.2vw 2vw;
        white-space: nowrap;
    }
    
    .birthday-item .date-type {
        grid-column: 3;
        grid-row: 2;
        justify-self: center;
        font-size: 2.6vw;
        padding: 1.2vw 1.5vw;
        white-space: nowrap;
    }
    
    .birthday-item .countdown-days {
        grid-column: 4;
        grid-row: 2 / 4;
        justify-self: center;
        align-self: center;
        font-size: 3.5vw;
        padding: 2vw 2.5vw;
        white-space: nowrap;
        min-width: auto;
    }
    
    /* 第3行：周岁 | 虚岁 */
    .birthday-item .age-full {
        grid-column: 2;
        grid-row: 3;
        justify-self: center;
        font-size: 2.6vw;
        padding: 1.2vw 1.5vw;
        white-space: nowrap;
    }
    
    .birthday-item .age-nominal {
        grid-column: 3;
        grid-row: 3;
        justify-self: center;
        font-size: 2.6vw;
        padding: 1.2vw 1.5vw;
        white-space: nowrap;
    }
}

/* 超小屏幕优化 - 保持vw单位自动缩放 */
@media (max-width: 380px) {
    body {
        padding: 6px;
        padding-bottom: 65px;
    }
    
    .countdown-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .countdown-card {
        padding: 8px 4px;
    }
    
    .countdown-title {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .countdown-days-num {
        font-size: 22px;
    }
    
    .countdown-hours-num {
        font-size: 11px;
    }
    
    .countdown-label {
        font-size: 9px;
    }
    
    /* 超小屏幕天气优化 */
    .weather-card {
        padding: 2vw;
    }
    
    .weather-location {
        font-size: 3.5vw;
    }
    
    .weather-temp-large {
        font-size: 6vw;
    }
    
    .weather-desc {
        font-size: 3vw;
    }
    
    .forecast-date,
    .forecast-text,
    .forecast-temp {
        font-size: 2.5vw;
    }
    
    /* 超小屏幕微调 */
    .birthday-item {
        grid-template-columns: 14vw 21vw 21vw 18vw;
        gap: 1vw 1vw;
        padding: 2.5vw;
    }
    
    .birthday-item .avatar-emoji {
        width: 13vw;
        height: 13vw;
        font-size: 8vw;
    }
    
    .birthday-item .name {
        font-size: 3.8vw;
    }
    
    .birthday-item .zodiac,
    .birthday-item .gender {
        font-size: 2.6vw;
        padding: 0.8vw 1.5vw;
    }
    
    .birthday-item .date-solar {
        font-size: 2.6vw;
        padding: 1vw 1.5vw;
    }
    
    .birthday-item .date-type {
        font-size: 2.4vw;
        padding: 1vw 1.2vw;
    }
    
    .birthday-item .age-full,
    .birthday-item .age-nominal {
        font-size: 2.4vw;
        padding: 1vw 1.2vw;
    }
    
    .birthday-item .countdown-days {
        font-size: 3.2vw;
        padding: 1.5vw 2vw;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-600);
}

.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 天气详细信息 */
.weather-detail {
    padding: 16px;
    background: white;
    border-radius: 12px;
}

/* 天气预警 - 隐藏 */
.weather-warnings {
    display: none;
}

.weather-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}

.weather-warning.红色 {
    background: #fee;
    color: #c00;
}

.weather-warning.橙色 {
    background: #fff3e0;
    color: #e65100;
}

.weather-warning.黄色 {
    background: #fffde7;
    color: #f57f17;
}

.weather-warning.蓝色 {
    background: #e3f2fd;
    color: #1565c0;
}

.warning-icon {
    font-size: 14px;
}

.weather-current {
    margin-bottom: 16px;
}

.weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.weather-location {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    flex-shrink: 0;
}

.weather-now {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.weather-temp-large {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.weather-desc {
    font-size: 18px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.weather-icon {
    font-size: 22px;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.forecast-day {
    text-align: center;
    padding: 8px 4px;
    background: var(--gray-50);
    border-radius: 8px;
    transition: all 0.3s;
}

.forecast-day:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.forecast-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.forecast-icon {
    font-size: 24px;
    margin: 4px 0;
}

.forecast-text {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 4px;
    white-space: nowrap;
}

.forecast-temp {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.temp-max {
    color: #f44336;
}

.temp-min {
    color: #2196f3;
}

.temp-divider {
    color: var(--gray-400);
    margin: 0 2px;
}

@media (max-width: 768px) {
    .weather-forecast {
        grid-template-columns: 1fr;
    }
    
    .weather-temp-large {
        font-size: 36px;
    }
}


/* 倒计时区域容器 */
.countdown-section {
    position: relative;
    margin-bottom: 20px;
}

/* 底部固定栏 */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    color: var(--gray-600);
    font-size: 14px;
}

.footer-divider {
    margin: 0 8px;
    color: var(--gray-300);
}

.footer-actions {
    display: flex;
    gap: 12px;
}

.footer-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* 为底部栏留出空间 */
body {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 10px 16px;
    }
    
    .footer-info {
        font-size: 12px;
    }
    
    .footer-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .footer-actions {
        gap: 8px;
    }
}
