        :root {
            --primary-color: #3498db;
            --secondary-color: #2980b9;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --text-color: #333;
            --text-light: #7f8c8d;
            --card-bg: rgba(255, 255, 255, 0.2);
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            line-height: 1.6;
            color: var(--text-color);
            background-color: #f5f7fa;
            background: url('/assets/img/bg.png') no-repeat center center fixed;
            background-size: cover;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            margin-bottom: 30px;
            color: white;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .nav-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow);
        }

        .btn:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background-color: var(--light-color);
            color: var(--text-color);
        }

        .btn-danger {
            background-color: var(--accent-color);
        }

        .search-container {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            gap: 10px;
            flex-wrap: wrap;
        }

        .search-input {
            padding: 12px 20px;
            border: 2px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 1rem;
            width: 300px;
            max-width: 100%;
            transition: border 0.3s;
        }

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

        .weather-section {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .weather-card {
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

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

        .weather-card.current-location {
            border-top: 5px solid var(--primary-color);
        }

        .weather-card.saved-location {
            border-top: 5px solid var(--secondary-color);
        }

        .weather-card h2 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--dark-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .weather-icon {
            width: 80px;
            height: 80px;
            margin: 10px auto;
            display: block;
        }

        .weather-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 15px;
        }

        .weather-detail {
            display: flex;
            align-items: center;
            font-size: 0.9rem;
        }

        .weather-detail i {
            margin-right: 8px;
            color: var(--primary-color);
            width: 20px;
            text-align: center;
        }

        .temp-main {
            font-size: 2.5rem;
            font-weight: bold;
            margin: 10px 0;
            color: var(--dark-color);
            text-align: center;
        }

        .weather-desc {
            text-align: center;
            margin-bottom: 15px;
            font-size: 1.1rem;
            text-transform: capitalize;
        }

        .action-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 0.8rem;
        }

        .status-message {
            text-align: center;
            padding: 20px;
            font-size: 1.1rem;
            color: var(--text-light);
        }

        .error-message {
            color: var(--accent-color);
            background-color: rgba(231, 76, 60, 0.1);
            padding: 15px;
            border-radius: var(--border-radius);
            margin: 20px 0;
            text-align: center;
        }

        .section-title {
            color: white;
            margin: 30px 0 15px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            font-size: 1.5rem;
        }

        /* 弹窗样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            overflow-y: auto;
        }

        .modal-content {
            background-color: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(10px);
            margin: 5% auto;
            padding: 25px;
            border-radius: var(--border-radius);
            width: 90%;
            max-width: 800px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-light);
        }

        .close-modal:hover {
            color: var(--accent-color);
        }

        .forecast-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .forecast-day {
            background-color: var(--light-color);
            border-radius: var(--border-radius);
            padding: 15px;
            text-align: center;
        }

        .forecast-day h4 {
            margin-bottom: 10px;
            color: var(--dark-color);
        }

        .forecast-icon {
            width: 50px;
            height: 50px;
            margin: 0 auto 10px;
        }

        .forecast-temp {
            display: flex;
            justify-content: space-around;
            margin-top: 10px;
        }

        .temp-high {
            color: var(--accent-color);
            font-weight: bold;
        }

        .temp-low {
            color: var(--primary-color);
            font-weight: bold;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .weather-section {
                grid-template-columns: 1fr;
            }

            .search-container {
                flex-direction: column;
                align-items: center;
            }

            .search-input {
                width: 100%;
            }

            .forecast-container {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
        }

        /* 加载动画 */
        .loader {
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 30px auto;
        }

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

            100% {
                transform: rotate(360deg);
            }
        }