:root {
            --primary-color: #1a73e8;
            --secondary-color: #4285f4;
            --text-color: #333;
            --light-text: #5f6368;
            --bg-color: #f8f9fa;
            --card-bg: #ffffff;
            --border-color: #dadce0;
            --success-color: #34a853;
            --warning-color: #fbbc05;
            --danger-color: #ea4335;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 头部样式 */
        header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 15px 0 0 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px 0px 20px;
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }
		.logo a { text-decoration:blink; color:#ffffff; }

        .logo i {
            margin-right: 10px;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            z-index: 1001;
        }
		.nav {
			background-color: var(--card-bg);
			border-radius: 12px;
			padding:  8px 8px 8px 18px;
			margin-bottom: 10px;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
			text-decoration: none;
		}
		.nav a { color:#333333; text-decoration: none; }
		.nav a:hover {
			color: #026ffe;
		}
		
		.city-list {
			background-color: var(--card-bg);
            border-radius: 12px;
            padding: 18px;
            margin-bottom: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            flex-direction: column;
            align-items: center;
            text-align: center;
		}
		.city-list a { color:#333; text-decoration: none; margin-right:8px; }
		.city-list a:hover {
			color: #026ffe; font-weight:bold;
		}
		
		footer {
			padding: 18px;
			margin-top: 18px;
            flex-direction: column;
            align-items: center;
            text-align: center;
		}

        /* 城市导航栏 */
        .city-nav {
            background-color: var(--card-bg);
            padding: 15px 0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
			margin-top:20px;
            transition: all 0.3s ease;
        }

        .nav-container {
            position: relative;
        }

        .nav-scroll {
            display: flex;
            overflow-x: auto;
            scrollbar-width: none;
            padding: 5px 0;
            scroll-behavior: smooth;
        }

        .nav-scroll::-webkit-scrollbar {
            display: none;
        }

        /* 修复移动端<li>样式问题 */
        .nav-scroll li {
            list-style: none;
            margin: 0;
            padding: 0;
            display: inline-block;
        }

        .city-item {
            padding: 8px 15px;
            margin: 0 5px;
            border-radius: 20px;
            background-color: var(--bg-color);
            color: var(--text-color);
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.3s ease;
            font-size: 14px;
            display: block;
        }

        .city-item:hover, .city-item.active {
            background-color: var(--primary-color);
            color: white;
        }

        .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            z-index: 10;
        }

        .scroll-btn.left {
            left: -15px;
        }

        .scroll-btn.right {
            right: -15px;
        }

        /* 主要内容区域 */
        .main-content {
            padding: 20px 0 18px 0;
        }

        .current-weather {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .location {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }

        .location i {
            margin-right: 10px;
            color: var(--primary-color);
        }

        .date-time {
            color: var(--light-text);
            margin-bottom: 20px;
            font-size: 16px;
        }

        .weather-main {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            width: 100%;
        }

        .weather-icon {
            font-size: 80px;
            margin-right: 20px;
            color: var(--primary-color);
        }

        .temp {
            font-size: 64px;
            font-weight: bold;
            margin-right: 20px;
        }

        .weather-desc {
            font-size: 24px;
            color: var(--light-text);
        }

        .weather-details {
            display: flex;
            justify-content: space-around;
            width: 100%;
            max-width: 600px;
            margin-top: 20px;
        }

        .detail-item {
            text-align: center;
        }

        .detail-label {
            font-size: 14px;
            color: var(--light-text);
            margin-bottom: 5px;
        }

        .detail-value {
            font-size: 18px;
            font-weight: 500;
        }

/* 新增 24 小时预报样式 */
.hourly-forecast { margin:20px 0; overflow:hidden;background-color: var(--card-bg);border-radius: 12px;padding: 25px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);display: flex;flex-direction: column;}
.hourly-title { font-size:16px; font-weight:bold; margin-bottom:10px; padding-left:5px; }
.hourly-container { display:flex; overflow-x:auto; gap:8px; padding:10px; }
.hourly-card { min-width:70px; background:#fff; border-radius:8px; padding:10px 8px; text-align:center; font-size:12px; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.hourly-time { color:#666; margin-bottom:5px; }
.hourly-icon { font-size:16px; margin:5px 0; color:var(--secondary-color); }
.hourly-temp { font-weight:bold; color:#333; }
.sunrise-sunset { display:flex; justify-content:center; gap:20px; margin-top:10px; font-size:16px; color:#666; }
.sunrise-sunset span { display:flex; align-items:center; gap:5px; }

        /* 天气预报选项卡 */
        .forecast-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .tab {
            padding: 12px 25px;
            cursor: pointer;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .tab.active {
            border-bottom: 3px solid var(--primary-color);
            color: var(--primary-color);
        }

        /* 天气预报卡片 */
        .forecast-container {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .forecast-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
        }

        .forecast-card {
            text-align: center;
            padding: 15px;
            border-radius: 10px;
            background-color: var(--bg-color);
            transition: transform 0.3s ease;
        }

        .forecast-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .forecast-date {
            font-weight: 500;
            margin-bottom: 10px;
            color: var(--light-text);
        }

        .forecast-icon {
            font-size: 36px;
            margin: 10px 0;
            color: var(--primary-color);
        }

        .forecast-temp {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 10px;
        }

        .high-temp {
            font-weight: bold;
            color: var(--danger-color);
        }

        .low-temp {
            color: var(--primary-color);
        }

        /* 加载状态 */
        .loading {
            text-align: center;
            padding: 40px;
            color: var(--light-text);
        }

        .loading i {
            font-size: 40px;
            margin-bottom: 15px;
            color: var(--primary-color);
            animation: spin 1.5s linear infinite;
        }

        @keyframes spin {
            100% { transform: rotate(360deg); }
        }

        /* 移动端样式 - 修复<li>样式问题 */
        @media (max-width: 768px) {
            .header-content {
                padding: 0 15px 15px 15px;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .city-nav {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
                z-index: 1000;
                background: white;
                box-shadow: 0 5px 10px rgba(0,0,0,0.1);
                padding: 0;
                margin: 0;
            }
            
            .city-nav.mobile-expanded {
                max-height: 70vh;
                overflow-y: auto;
            }
            
            .nav-container {
                padding: 10px;
            }
            
            .nav-scroll {
                display: grid;
                grid-template-columns: repeat(5, 1fr);
                gap: 5px;
                overflow-x: hidden;
                overflow-y: auto;
                padding: 5px;
            }
            
            /* 修复移动端<li>样式 */
            .nav-scroll li {
                display: block;
                width: 100%;
            }
            
            .city-item {
                margin: 0;
                padding: 8px 5px;
                font-size: 12px;
                text-align: center;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                width: 100%;
                box-sizing: border-box;
            }
            
            .scroll-btn {
                display: none;
            }
            
            .current-weather {
                padding: 20px 15px;
            }
            
            .location {
                font-size: 24px;
            }
            
            .weather-main {
                flex-direction: column;
            }
            
            .weather-icon {
                margin-right: 0;
                margin-bottom: 15px;
                font-size: 70px;
            }
            
            .temp {
                font-size: 54px;
                margin-right: 0;
                margin-bottom: 10px;
            }
            
            .weather-desc {
                font-size: 20px;
            }
            
            .weather-details {
                flex-wrap: wrap;
            }
            
            .detail-item {
                width: 50%;
                margin-bottom: 15px;
            }
            
            .forecast-tabs {
                overflow-x: auto;
                scrollbar-width: none;
                padding-bottom: 5px;
            }
            
            .forecast-tabs::-webkit-scrollbar {
                display: none;
            }
            
            .tab {
                padding: 10px 15px;
                white-space: nowrap;
            }
            
            .forecast-container {
                padding: 20px 15px;
            }
            
            .forecast-cards {
                grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            }
        }

        @media (max-width: 480px) {
            .nav-scroll {
                grid-template-columns: repeat(5, 1fr);
            }
            
            .city-item {
                font-size: 11px;
                padding: 6px 3px;
            }
            
            .forecast-cards {
                grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
            }
            
            .forecast-card {
                padding: 12px 8px;
            }
            
            .forecast-date {
                font-size: 14px;
            }
            
            .forecast-icon {
                font-size: 30px;
            }
        }
		.city-list {
            padding: 18px 23px;
            text-align: left;
			
		}
		.city-title{font-weight:700;color:#333;font-size:18px}
