/* ============ 伪装天气查询页 ============ */
#disguisePage {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 设置按钮（伪装页角落） */
.disguise-settings-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.disguise-settings-btn:hover {
    background: rgba(0,0,0,0.05);
}

body.dark .disguise-settings-btn:hover {
    background: rgba(255,255,255,0.1);
}

.disguise-settings-btn svg {
    width: 20px;
    height: 20px;
    fill: #999;
    transition: fill 0.3s;
}

body.dark .disguise-settings-btn svg {
    fill: #777;
}

/* 头部 - 玻璃拟态效果 */
.weather-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 24px 20px 28px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.weather-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.weather-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

body.dark .weather-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body.dark .weather-header::before,
body.dark .weather-header::after {
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.weather-logo {
    font-size: 26px;
    font-weight: 800;
    color: #FFF;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.weather-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

/* 搜索框 - 玻璃效果 */
.weather-search-wrap {
    display: flex;
    margin-top: 16px;
    gap: 0;
    position: relative;
    z-index: 1;
}

.weather-search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 14px 0 0 14px;
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    color: #333;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.weather-search-input:focus {
    background: #FFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

body.dark .weather-search-input {
    background: rgba(30,30,30,0.95);
    color: #E0E0E0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

body.dark .weather-search-input:focus {
    background: #2a2a2a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.weather-search-input::placeholder {
    color: #AAA;
}

.weather-search-btn {
    padding: 14px 20px;
    background: rgba(255,255,255,0.25);
    color: #FFF;
    border: none;
    border-radius: 0 14px 14px 0;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.weather-search-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.02);
}

/* 天气内容区域 */
.weather-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
    transition: background 0.3s;
}

body.dark .weather-content {
    background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
}

/* 加载中 */
.weather-loading {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 14px;
}

body.dark .weather-loading {
    color: #555;
}

/* 当前天气卡片 - 玻璃拟态 */
.weather-current {
    background: linear-gradient(135deg, #FFF 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 32px 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(102,126,234,0.12), 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
}

.weather-current::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(102,126,234,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

body.dark .weather-current {
    background: linear-gradient(135deg, #1E1E2E 0%, #252538 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

body.dark .weather-current::before {
    background: radial-gradient(circle, rgba(136,153,238,0.06) 0%, transparent 70%);
}

.weather-city-name {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

body.dark .weather-city-name {
    color: #BBB;
}

.weather-temp-main {
    font-size: 64px;
    font-weight: 200;
    color: #667eea;
    line-height: 1;
    margin: 12px 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 16px rgba(102,126,234,0.2);
}

body.dark .weather-temp-main {
    color: #8899ee;
    text-shadow: 0 2px 16px rgba(136,153,238,0.15);
}

.weather-desc {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

body.dark .weather-desc {
    color: #999;
}

.weather-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

body.dark .weather-details {
    border-top-color: rgba(255,255,255,0.06);
}

.weather-detail-item {
    text-align: center;
    padding: 8px 12px;
    background: rgba(102,126,234,0.04);
    border-radius: 12px;
    min-width: 60px;
    flex: 1 1 60px;
    max-width: 90px;
}

body.dark .weather-detail-item {
    background: rgba(136,153,238,0.06);
}

.weather-detail-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark .weather-detail-label {
    color: #666;
}

.weather-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: #444;
}

body.dark .weather-detail-value {
    color: #DDD;
}

/* 区块标题 */
.weather-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    margin: 24px 0 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark .weather-section-title {
    color: #666;
}

.weather-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0.08) 0%, transparent 100%);
}

body.dark .weather-section-title::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, transparent 100%);
}

/* 热门城市 - 新布局 */
.weather-cities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 400px) {
    .weather-cities {
        grid-template-columns: repeat(2, 1fr);
    }
}

.weather-city-card {
    background: linear-gradient(135deg, #FFF 0%, #fafbfc 100%);
    border-radius: 16px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.weather-city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s;
}

.weather-city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102,126,234,0.15);
}

.weather-city-card:hover::before {
    opacity: 1;
}

body.dark .weather-city-card {
    background: linear-gradient(135deg, #1E1E2E 0%, #252538 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.04);
}

body.dark .weather-city-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.weather-city-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

body.dark .weather-city-card-name {
    color: #CCC;
}

.weather-city-card-icon {
    font-size: 28px;
    margin: 4px 0;
}

.weather-city-card-temp {
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    margin: 4px 0;
}

body.dark .weather-city-card-temp {
    color: #8899ee;
}

.weather-city-card-desc {
    font-size: 11px;
    color: #AAA;
    margin-top: 4px;
}

body.dark .weather-city-card-desc {
    color: #666;
}

/* 单位换算 */
.weather-converter {
    background: linear-gradient(135deg, #FFF 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

body.dark .weather-converter {
    background: linear-gradient(135deg, #1E1E2E 0%, #252538 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.04);
}

.converter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.converter-row:last-child {
    margin-bottom: 0;
}

.converter-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 2px solid #EEE;
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
    background: #FFF;
    color: #333;
    outline: none;
    transition: all 0.2s;
    font-weight: 600;
}

.converter-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

body.dark .converter-input {
    background: #2A2A3E;
    color: #E0E0E0;
    border-color: #333;
}

body.dark .converter-input:focus {
    border-color: #8899ee;
    box-shadow: 0 0 0 3px rgba(136,153,238,0.1);
}

.converter-label {
    font-size: 14px;
    font-weight: 700;
    color: #BBB;
    flex-shrink: 0;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 8px;
}

body.dark .converter-label {
    color: #666;
    background: #2a2a2a;
}

/* ============ 版本号 ============ */
.weather-version {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    padding: 12px 0 8px;
    user-select: none;
}

body.dark .weather-version {
    color: #555;
}

/* ============ 好友昵称输入页 ============ */
#friendEntryPage {
    display: none;
    flex-direction: column;
    height: 100%;
}
