/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('../cursor/normal.cur'), default;
}

/* 全局加载动画 */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 液体加载器效果样式 */
.gegga {
    width: 0;
}

.snurra {
    filter: url(#gegga);
}

.stopp1 {
    stop-color: #f700a8;
}

.stopp2 {
    stop-color: #ff8000;
}

.halvan {
    animation: Snurra1 10s infinite linear;
    stroke-dasharray: 180 800;
    fill: none;
    stroke: url(#gradient);
    stroke-width: 23;
    stroke-linecap: round;
}

.strecken {
    animation: Snurra1 3s infinite linear;
    stroke-dasharray: 26 54;
    fill: none;
    stroke: url(#gradient);
    stroke-width: 23;
    stroke-linecap: round;
}

.skugga {
    filter: blur(5px);
    opacity: 0.3;
    position: absolute;
    transform: translate(3px, 3px);
}

@keyframes Snurra1 {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -403px;
    }
}

/* 加载进度条 */
.loader-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
    background-size: 400% 100%;
    z-index: 9999;
    transition: width 0.2s ease;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 链接悬停状态 */
a, .visit-btn {
    cursor: url('../cursor/pointer.cur'), pointer;
}

/* 文本选择状态 */
input[type="text"], textarea {
    cursor: url('../cursor/text.cur'), text;
}

/* 等待/加载状态 */
.loading {
    cursor: url('../cursor/wait.cur'), wait;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 渐变背景 */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #667eea, #764ba2, #6B8DD6, #8E37D7);
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0.9;
    animation: gradientShift 15s ease infinite;
}

/* 渐变移动动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 顶部标题栏 */
.header {
    padding: 2.5rem 0 2rem;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content .title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.header-content .title:hover {
    transform: translateY(-3px);
}

.header-content .description {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 淡入上移动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 搜索模块 */
.search-section {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.search-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.search-container:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

#bing-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

#search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
    border-radius: 50px 0 0 50px;
    background: transparent;
    transition: padding 0.3s ease;
}

#search-input:focus {
    padding: 0.9rem 1.7rem;
    /* 添加聚焦时的发光效果 */
    box-shadow: inset 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.search-btn {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* 限制按钮最小宽度 */
    min-width: 90px;
    /* 防止按钮过宽 */
    width: auto;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.search-btn:hover {
    background: linear-gradient(135deg, #3367d6 0%, #254edb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* 标签页导航系统 */
.tab-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0;
}

.tab-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

.tab-container:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid rgba(238, 238, 238, 0.6);
    background: rgba(248, 249, 250, 0.8);
    /* 优化移动端滚动体验 */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
    -webkit-overflow-scrolling: touch;
}

/* 美化滚动条 */
.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.tabs::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.tab-btn {
    padding: 1rem 1.8rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    /* 添加flex: 1实现等分布局 */
    flex: 1;
    text-align: center;
}

/* 移除点击时的默认高亮效果 */
.tab-btn:focus {
    outline: none;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.tab-btn.active {
    color: #4285f4;
    background: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    /* 添加下划线动画 */
    animation: slideIn 0.3s ease-out;
}

/* 下划线滑入动画 */
@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* 标签内容区域 */
.tab-content {
    padding: 1rem;
    display: none;
}

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

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 站点网格布局 - 四列布局 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* 站点卡片样式 */
.site-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 为卡片添加轻微的呼吸效果 */
.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
    background-size: 400% 100%;
    animation: gradientShift 8s ease infinite;
}

/* 站点卡片头部区域 */
.site-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.site-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    margin-right: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.site-card:hover .site-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.site-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
    transition: color 0.3s ease;
}

.site-card:hover .site-name {
    color: #4285f4;
}

.site-delay {
    font-size: 0.85rem;
    color: #666;
    background: rgba(248, 249, 250, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.site-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.site-card:hover .site-desc {
    color: #444;
}

.visit-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
    position: relative;
    overflow: hidden;
}

.visit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.visit-btn:hover {
    background: linear-gradient(135deg, #3367d6, #2a56c6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.4);
}

.visit-btn:hover::before {
    left: 100%;
}

.visit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}



/* 天气和视频播放器容器样式 */
.weather-video-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto 0.75rem;
    flex-wrap: wrap;
}

/* 天气模块样式 */
.weather-section {
    flex: 0 0 300px;
    height: 480px;
    padding: 0;
}

/* 视频播放器模块样式 */
.video-player-section {
    width: 852px;
    height: 480px;
    padding: 0;
}

.video-container {
    width: 100%;
    height: 100%;
}

.video-card {
    padding: 1rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.video-header {
    display: none;
}

.video-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

video {
    border-radius: 8px;
    margin-bottom: 0;
    background-color: #000;
    height: 100%;
    width: 100%;
    object-fit: cover;
    padding: 0;
    margin: 0;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#video-file-input {
    display: none;
}

.load-btn {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.load-btn:hover {
    background: linear-gradient(135deg, #3367d6, #2a56c6);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

.load-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(66, 133, 244, 0.3);
}

.weather-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.weather-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weather-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 新天气头部 - 仅显示地区信息和更新时间 */
.weather-new-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(238, 238, 238, 0.4);
}

.weather-new-header h3 {
    display: none; /* 隐藏标题 */
}

#weather-title {
    display: flex;
    align-items: center;
}

#weather-city {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

#weather-update-time {
    font-size: 0.75rem;
    color: #999;
    display: block;
    text-align: right;
    margin-top: 0.2rem;
}

/* 新天气主内容 - 图标、温度和天气信息合并到一行 */
.weather-main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1rem 0;
    flex: 1;
}

.weather-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#weather-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.weather-temp-description {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

#weather-temperature {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#weather-description {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0;
}

/* 中间分割线保留 */
.weather-location-info {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(238, 238, 238, 0.4);
    margin-top: 0.5rem;
}

/* 日期进度展示样式 */
.date-progress-section {
    padding-top: 1rem;
}

/* 进度条容器 */
.core-next-time-progress {
    margin-bottom: 0.8rem;
    padding: 0.6rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 蓝色主题 */
.core-next-time-progress.blue .progress-progress {
    background: linear-gradient(90deg, #4682b4, #4169e1);
}

/* 进度条包装 */
.progress-warp {
    flex: 1;
    height: 40px;
    position: relative;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    margin-right: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) inset;
}

/* 进度填充 */
.progress-progress {
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
}

/* 进度百分比文本 */
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* 日期信息 */
.progress-note {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 80px;
}

/* 月份或年份标题 */
.progress-time-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.2rem;
}

/* 天数信息 */
.progress-time-sub-title {
    font-size: 0.8rem;
    color: #666;
}

/* 自定义样式，确保进度条两端圆角完美呈现 */
.progress-warp {
    overflow: hidden;
}

/* 浪漫文本样式 */
.romantic-quote {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf1 100%);
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    line-height: 1.6;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.romantic-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#weather-city {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

#weather-detail-location {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.weather-details {
    /* 移除原有的天气详情样式 */
    display: none;
}

.weather-tips {
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: rgba(248, 249, 250, 0.6);
    border-radius: 4px;
    margin: 0;
    position: relative;
}

.weather-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(238, 238, 238, 0), rgba(238, 238, 238, 0.6), rgba(238, 238, 238, 0));
}

.weather-tips p {
    font-size: 0.9rem; /* 保持文字大小不变 */
    color: #666;
    margin: 0;
}

/* 响应式设计 - 完善窄屏体验 */

/* 平板设备 (768px及以下) */
@media (max-width: 768px) {
    /* 整体容器边距优化 */
    body {
        padding: 1rem;
    }
    
    /* 头部区域响应式调整 */
    .header-content .title {
        font-size: 2rem;
    }
    
    .header-content .description {
        font-size: 1.1rem;
    }
    
    /* 搜索模块响应式调整 */
    .search-section {
        margin-bottom: 2rem;
    }
    
    .search-container {
        border-radius: 12px;
    }
    
    #search-input {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 0.8rem 1.8rem;
        /* 确保在小屏幕上有足够的点击区域 */
        min-width: 100px;
    }
    
    /* 标签页响应式调整 */
    .tab-section {
        margin-bottom: 2rem;
    }
    
    .tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        overflow-x: visible;
        border-bottom: 1px solid #eee;
    }
    
    /* 移除滚动条样式 */
    .tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 0.9rem 0.8rem;
        font-size: 0.9rem;
        /* 触摸友好的按钮大小 */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* 等分布局保留 */
        flex: 1;
    }
    
    /* 站点网格响应式调整 */
    .site-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* 站点卡片响应式调整 */
    .site-card {
        padding: 1rem;
    }
    
    .site-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 0.8rem;
    }
    
    .site-icon {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .site-title {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .site-description {
        font-size: 0.85rem;
    }
    
    .site-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* 天气和视频播放器容器响应式调整 */
    .weather-video-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .weather-section {
        flex: 0 0 auto;
        width: 100%;
        /* 窄屏情况下移除固定高度限制 */
        height: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .video-player-section {
        width: 100%;
        /* 窄屏情况下移除固定高度限制 */
        height: auto;
        max-width: 852px;
        margin: 0 auto;
    }
    
    /* 页脚响应式调整 */
    .optimized-footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .time-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .time-cell {
        padding: 0.6rem 0.4rem;
        font-size: 0.9rem;
    }
}

/* 移动设备 (480px及以下) */
@media (max-width: 480px) {
    /* 头部区域进一步调整 */
    .header-content .title {
        font-size: 1.8rem;
    }
    
    .header-content .description {
        font-size: 1rem;
    }
    
    /* 搜索模块进一步调整 */
    .search-section {
        margin-bottom: 1.8rem;
    }
    
    #search-input {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
    
    .search-btn {
        padding: 0.7rem 1.5rem;
        min-width: 90px;
    }
    
    /* 标签页进一步调整 */
    .tabs {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
    }
    
    .tab-btn {
        padding: 0.8rem 0.6rem;
        font-size: 0.85rem;
    }
    
    /* 站点网格调整为单列 */
    .site-grid {
        grid-template-columns: 1fr;
    }
    
    /* 标签内容区域调整 */
    .tab-content {
        padding: 1rem 0.8rem;
    }
    
    /* 天气模块进一步调整 */
    .weather-section {
        /* 移除固定高度限制，设置为auto */
        height: auto;
    }
    
    #weather-icon {
        width: 70px;
        height: 70px;
    }
    
    #weather-temperature {
        font-size: 2.2rem;
    }
    
    #weather-description {
        font-size: 1rem;
    }
    
    #weather-city {
        font-size: 1.1rem;
    }
    
    /* 页脚进一步调整 */
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    .time-value {
        font-size: 1rem;
    }
    
    /* 优化音乐播放器在小屏幕上的显示 */
    #music-player {
        width: 90%;
        max-width: 320px;
        font-size: 0.85rem;
    }
    
    /* 确保所有按钮都有足够的触摸区域 */
    button, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 超小屏幕设备 (360px及以下) */
@media (max-width: 360px) {
    body {
        padding: 0.8rem;
    }
    
    .header-content .title {
        font-size: 1.6rem;
    }
    
    .header-content .description {
        font-size: 0.95rem;
    }
    
    .tab-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .site-card {
        padding: 0.8rem;
    }
    
    .site-icon {
        width: 45px;
        height: 45px;
    }
    
    .site-title {
        font-size: 1rem;
    }
}