/* 基础卡片样式 */
.weather-card {
    /*width: 100%;*/
    max-width: 1080px;
    /*aspect-ratio: 2.12 / 1;*/
    /*background: linear-gradient(135deg, #4a90e2 0%, #5b6ee1 100%);*/
    /*background-image: url(https://game.ououvip.com/static/images/weather/zkxt/bg/rain.png);*/
    background-size: cover;
    border-radius: 18px;
    padding: 22px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
/*
.weather-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 160px;
    height: 160px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.weather-card::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
*/

.location-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.location {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.location svg {
    margin-left: 6px;
    width: 16px;
    height: 16px;
}

.pollution {
    background-color: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.pollution::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    margin-right: 6px;
}

/* 主内容区域 */
.main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    height: 60%;
}

.current-weather {
    display: flex;
    align-items: center;
}

.sun-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 16px;
}

.sun-icon img {
    width: 60px;
    height: 60px;
}

.temperature {
    font-size: 50px;
    font-weight: 300;
    /*font-weight: bold;*/
    line-height: 1;
}

/* 今日预报样式 */
.today-forecast {
    line-height: 1.4;
    margin-left: 20px;
}

.today-forecast .day {
    font-size: 16px;
    opacity: 0.9;
}

.today-forecast .txt {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

.today-forecast .range {
    font-size: 16px;
    font-weight: 400;
}

.divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

/* 次日预报与云朵图标 */
.next-day-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.next-day {
    text-align: right;
    line-height: 1.4;
}

.next-day .date {
    font-size: 16px;
    opacity: 0.9;
}

.next-day .range {
    font-size: 16px;
    font-weight: 400;
}

.cloud-icon {
    position: relative;
    width: 30px;
    height: 30px;
}

.cloud-icon img {
    width: 30px;
    height: 30px;
}

.forecast-button {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 11px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.forecast-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/*.forecast-button::after {*/
/*    content: '→';*/
/*    margin-left: 8px;*/
/*    font-size: 18px;*/
/*}*/

/* SVG箭头的样式控制 */
.arrow-svg {
    width: 18px; /* 箭头宽度 */
    height: 18px; /* 箭头高度 */
    fill: currentColor; /* 使用当前文本颜色，便于继承 */
    transition: transform 0.2s ease;
}

/* 悬停效果 */
.forecast-button:hover .arrow-svg {
    transform: translateX(3px); /* 轻微右移效果 */
}

/* 手机适配 - 小屏幕优化 */
@media (max-width: 480px) {
    .weather-card {
        padding: 15px;
        border-radius: 15px;
    }

    .location {
        font-size: 16px;
    }

    .pollution {
        font-size: 12px;
        padding: 3px 10px;
    }

    .sun-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .sun-icon img {
        width: 40px;
        height: 40px;
    }

    .temperature {
        font-size: 38px;
        font-weight: bold;
    }

    .today-forecast {
        margin-left: 10px;
    }

    .today-forecast .day,
    .next-day .date {
        font-size: 14px;
    }

    .today-forecast .range,
    .next-day .range {
        font-size: 16px;
    }

    .divider {
        margin: 0 10px;
        height: 30px;
    }

    .next-day-container {
        gap: 10px;
    }

    .cloud-icon {
        width: 30px;
        height: 30px;
    }

    .cloud-icon img {
        width: 30px;
        height: 30px;
    }

    .forecast-button {
        padding: 9px;
        font-size: 14px;
        margin-top: 10px;
    }

    /* 背景装饰调整 */
    .weather-card::before {
        width: 120px;
        height: 120px;
    }

    .weather-card::after {
        width: 90px;
        height: 90px;
    }
}