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

body {
    background: #e6ebf5;
    min-width: 1340px;
    margin: 0 auto;
}

.w-1340px {
    width: 1340px;
    margin: 0 auto;
}

/* ==================== Header ==================== */
.header {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
}

.header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
}

/* Header Brand */
.header-brand-box {
    box-shadow: 0 1px 0 #ffffff1a;
    position: relative;
    z-index: 2;
}

.header-brand-box .header-brand {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand-box .header-brand-info {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
}

.header-brand-box .header-brand-info .header-logo {
    width: 32px;
    height: 32px;
}

.header-brand-box .header-brand-info .header-title {
    color: #ffffff;
    font-size: 14px;
    line-height: 22px;
}

.header-brand-box .header-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand-box .header-links .header-link {
    color: #ffffff;
    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
}

/* Header Main */
.header-main-box {
    position: relative;
    z-index: 2;
    padding-top: 24px;
    padding-bottom: 24px;
}

.header-main-box .weather-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-main-box .weather-location {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-main-box .weather-location .location-city-row {
    display: flex;
    align-items: center;
}

.header-main-box .weather-location .location-pin-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.header-main-box .weather-location .location-city {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.header-main-box .weather-location .location-address {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 24px;
}

/* Weather Actions */
.header-main-box .weather-actions {
    display: flex;
    gap: 8px;
}

.header-main-box .weather-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid #ffffff33;
    border-radius: 20px;
    background: #ffffff33;
    cursor: pointer;
}

.header-main-box .weather-action-btn .action-icon {
    width: 32px;
    height: 32px;
}

.header-main-box .weather-action-btn .action-text {
    font-size: 14px;
    color: #ffffff;
    line-height: 20px;
    white-space: nowrap;
}

/* Weather Card */
.header-main-box .weather-card {
    border-radius: 24px;
    border: 1px solid #ffffff4d;
    background: #000c2929;
    backdrop-filter: blur(4px);
    padding: 32px 32px 28px 32px;
    position: relative;
}

.header-main-box .weather-tabs-box {
    border-radius: 12px;
    background: #00000033;
    overflow: hidden;
    position: absolute;
    left: 32px;
    top: 32px;
    width: 224px;
}

.header-main-box .weather-tabs-box .weather-tabs {
    display: flex;
}

.header-main-box .weather-tabs-box .weather-tab {
    padding: 4px 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    text-align: center;
}

.header-main-box .weather-tabs-box .weather-tab.local {
    width: 118px;
}

.header-main-box .weather-tabs-box .weather-tab.citywide {
    flex: 1;
}

.header-main-box .weather-tabs-box .weather-tab.active {
    background: #ffffff4d;
}

/* Weather Warnings */
.header-main-box .weather-warnings {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid #ffffff33;
    padding: 14px 16px;
}

.header-main-box .weather-warnings .warning-badge {
    display: flex;
    align-items: center;
}

.header-main-box .weather-warnings .warning-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #ffffff;
    font-size: 16px;
    line-height: 20px;
    padding: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    letter-spacing: 4px;
}

.header-main-box .weather-warnings .warning-icon {
    display: block;
    width: 60px;
    height: auto;
}

/* Warning loading / empty state */
.header-main-box .weather-warnings .warning-state {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
}

.header-main-box .weather-warnings .warning-state-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    user-select: none;
}

/* Weather Center */
.header-main-box .weather-center {
    margin-top: 56px;
}

.header-main-box .weather-arc-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Arc Container */
.header-main-box .en-arc {
    position: relative;
    width: 552px;
    height: 276px;
    flex: 0 0 auto;
}

.header-main-box .en-arc .en-arc-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.header-main-box .en-arc .en-arc-line path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-main-box .en-arc .en-arc-line .en-arc-guide-dashed {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
}

.header-main-box .en-arc .en-arc-line .en-arc-guide-base {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 2;
}

.header-main-box .en-arc .en-arc-line .en-arc-active-triangle {
    fill: rgba(255, 255, 255, 0.4);
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1;
    stroke-linejoin: round;
}

/* Arc Center Info */
.header-main-box .en-arc .en-arc-center-info {
    position: absolute;
    left: 50%;
    bottom: -52px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
    pointer-events: none;
    text-align: center;
}

.header-main-box .en-arc .en-arc-center-info .weather-air-quality {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    background: #ffffff1a;
    padding: 4px 12px 4px 4px;
}

.header-main-box .en-arc .en-arc-center-info .aq-check {
    width: 24px;
    height: 24px;
}

.header-main-box .en-arc .en-arc-center-info .aq-label {
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
}

.header-main-box .en-arc .en-arc-center-info .weather-temp-section {
    margin-top: 24px;
    margin-bottom: 40px;
}

.header-main-box .en-arc .en-arc-center-info .weather-temp-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-main-box .en-arc .en-arc-center-info .temp-value {
    color: #ffffff;
    font-size: 72px;
    font-weight: 500;
    line-height: 80px;
}

.header-main-box .en-arc .en-arc-center-info .temp-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.header-main-box .en-arc .en-arc-center-info .temp-unit {
    color: #ffffff;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
}

.header-main-box .en-arc .en-arc-center-info .weather-temp-condition {
    color: #ffffff;
    font-size: 18px;
    line-height: 26px;
}

.header-main-box .en-arc .en-arc-center-info .weather-temp-range {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

/* Arc Popup */
.header-main-box .en-arc .en-arc-popup {
    position: absolute;
    display: none;
    background: #00000033;
    backdrop-filter: blur(6px);
    border-radius: 6px;
    padding: 10px 12px;
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 16px));
    white-space: nowrap;
}

.header-main-box .en-arc .en-arc-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 4px solid #00000033;
}

.header-main-box .en-arc .en-arc-popup.is-visible {
    display: block;
}

.header-main-box .en-arc .en-arc-popup-time {
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
}

.header-main-box .en-arc .en-arc-popup-meta {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-top: 4px;
}

/* Arc Points (JS 动态生成) */
.header-main-box .en-arc .en-arc-point {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    z-index: 3;
}

/* 仅当前时间点（有天气数据）响应 hover */
.header-main-box .en-arc .en-arc-point.is-current {
    cursor: pointer;
    transition: transform 0.15s;
}

.header-main-box .en-arc .en-arc-point .en-arc-time {
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
}

.header-main-box .en-arc .en-arc-point .en-arc-icon {
    display: block;
    width: 48px;
    height: 48px;
}

/* Sun Row */
.header-main-box .en-sun-row {
    width: 586px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.header-main-box .en-sun-row .en-sun {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.header-main-box .en-sun-row .en-sun-icon,
.header-main-box .en-sun-row .en-sun-icon2 {
    display: block;
    width: 28px;
    height: 28px;
}

.header-main-box .en-sun-row .en-sun-time {
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
}

/* Elements Row */
.header-main-box .en-elements {
    display: flex;
    align-items: center;
    margin-top: 24px;
}

.header-main-box .en-elements .en-element {
    box-shadow: inset -1px 0 0 #ffffff33;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-main-box .en-elements .en-element:first-child {
    width: 158px;
}

.header-main-box .en-elements .en-element:last-child {
    box-shadow: none;
}

.header-main-box .en-elements .en-element-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-main-box .en-elements .en-element-icon {
    display: block;
    width: 16px;
    height: 16px;
}

.header-main-box .en-elements .en-element-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
}

.header-main-box .en-elements .en-element-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

/* ==================== Card List ==================== */
.card-list {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 64px;
}

.card-list .card-item {
    padding: 28px 32px;
    border-radius: 24px;
    background: #ffffff;
}

.card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.card-divider {
    width: 1px;
    height: 16px;
    background: #c9cdd4;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cursor-pointer {
    cursor: pointer;
}

.card-title {
    color: #000000;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.card-title.default {
    color: #86909c;
}

.card-time {
    color: #86909c;
    font-size: 16px;
    line-height: 32px;
}

/* ==================== Lifestyle Indices ==================== */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lifestyle-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 14px 16px 16px;
}

.lifestyle-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lifestyle-icon {
    width: 48px;
    height: 48px;
    display: block;
}

.lifestyle-info {
    display: flex;
    flex-direction: column;
}

.lifestyle-level {
    color: #1d2129;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.lifestyle-label {
    color: #86909c;
    font-size: 16px;
    line-height: 24px;
}

/* ==================== Scenic Spots Weather ==================== */
.scenic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.scenic-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scenic-image-box {
    position: relative;
    width: 100%;
    height: 178px;
    border-radius: 12px;
    overflow: hidden;
}

.scenic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scenic-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    background: linear-gradient(0deg, rgb(0 0 0 / 70%) 0%, #00000000 100%);
    padding: 6px 12px;
}

.scenic-info {
    position: relative;
}

.scenic-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scenic-meta-label {
    color: #86909c;
    font-size: 16px;
    line-height: 24px;
}

.scenic-meta-value {
    color: #1d2129;
    font-size: 16px;
    line-height: 24px;
}

.scenic-weather-icon {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 40px;
    height: 40px;
}

/* ==================== Footer ==================== */
.footer-box {
    background-color: #005ae0;
    position: relative;
    z-index: 2;
}

.footer-box .footer-info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.footer-box .footer-info-box .footer-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-box .footer-info-box .footer-info .footer-badge {
    display: block;
    width: 18px;
    height: auto;
    margin-top: 3px;
}

.footer-box .footer-info-box .footer-info .footer-info-text-list {
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
}

.footer-box .footer-info-box .footer-info .footer-info-text-list .footer-info-text {
    color: #ffffff;
    text-decoration: none;
}

.footer-box .footer-info-box .footer-links {
    display: flex;
}

.footer-box .footer-info-box .footer-links img {
    display: block;
    height: 56px;
    width: auto;
}

/* ==================== City Weather Forecast ==================== */
.city-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.city-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px 16px 14px 16px;
    border-radius: 12px;
    border: 1px solid #e0ebff;
    background: linear-gradient(0deg, #edf2ff00 0%, #ecf1ff99 100%);
}

.city-card-located .city-header .city-location-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-card-located .city-header .city-pin {
    display: block;
    width: 16px;
    height: 16px;
}

.city-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.city-header .city-pin {
    width: 20px;
    height: 20px;
    display: block;
}

.city-name {
    color: #1d2129;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.city-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.city-info {
    display: flex;
    flex-direction: column;
}

.city-temp {
    color: #1d2129;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

.city-condition {
    color: #86909c;
    font-size: 16px;
    line-height: 24px;
}

.city-weather-icon {
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
    margin-bottom: 2px;
}

/* ==================== Forecast Tab ==================== */
.tab-item {
    cursor: pointer;
}

.tab-item .card-title {
    color: #86909c;
}

.tab-item.tab-active .card-title {
    color: #000000;
}

/* ==================== Daily / Hourly Forecast ==================== */
.hourly-block {
    display: none;
}

.daily-block {
    position: relative;
}

.daily-list {
    display: flex;
    align-items: stretch;
}

.daily-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0 12px;
}

.daily-item .daily-week {
    color: #4e5969;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.daily-item .daily-date {
    color: #86909c;
    font-size: 12px;
    line-height: 18px;
}

.daily-item .daily-icon {
    display: block;
    width: 48px;
    height: 38px;
    object-fit: contain;
}

/* 每个 daily-item 为折线图预留的纵向空间 */
.daily-item .daily-chart-slot {
    width: 100%;
    height: 152px;
}

.daily-item .daily-cond {
    color: #1d2129;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    margin-top: 4px;
}

.daily-item .daily-wind-dir {
    color: #86909c;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}

.daily-item .daily-wind-force {
    color: #86909c;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}

/* 折线图覆盖在各列预留区之上 */
.daily-chart {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

/* ==================== Hourly Forecast ==================== */
.hourly-block {
    position: relative;
}

.hourly-list {
    display: flex;
    align-items: stretch;
}

.hourly-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0 12px;
}

.hourly-item .hourly-time {
    color: #4e5969;
    font-size: 14px;
    line-height: 20px;
}

.hourly-item .hourly-ampm {
    color: #86909c;
    font-size: 12px;
    line-height: 18px;
}

.hourly-item .hourly-icon {
    display: block;
    width: 48px;
    height: 38px;
    object-fit: contain;
}

/* 每个 hourly-item 为折线图预留的纵向空间（含顶部温度值与上下间隙） */
.hourly-item .hourly-chart-slot {
    width: 100%;
    height: 116px;
}

.hourly-item .hourly-cond {
    color: #1d2129;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    margin-top: 4px;
}

.hourly-item .hourly-wind-dir {
    color: #86909c;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}

.hourly-item .hourly-wind-force {
    color: #86909c;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}

/* 折线图覆盖在各列预留区之上 */
.hourly-chart {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}