/************************
基础设置
************************/

* {
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;

    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;

    background: #edf4f3;
    color: #263333;
}


body {
    overflow-y: auto;

    scrollbar-width: none;
}


body::-webkit-scrollbar {
    display: none;
}


button,
a {
    font-family: inherit;
}


button {
    -webkit-tap-highlight-color: transparent;
}


.comfort-page {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;

    margin: 0 auto;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #edf8f6 0%,
            #f7fbfa 40%,
            #eef5f4 100%
        );
}


/************************
顶部导航
************************/

.page-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 60;

    width: 100%;
    max-width: 430px;

    height:
        calc(
            64px +
            env(safe-area-inset-top)
        );

    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: end;

    padding:
        env(safe-area-inset-top)
        14px
        9px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            to bottom,
            rgba(20, 48, 46, 0.66),
            rgba(20, 48, 46, 0)
        );

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.page-header.is-solid {
    background: rgba(250, 253, 252, 0.94);

    box-shadow:
        0 5px 20px rgba(39, 74, 70, 0.08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.header-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.2);
    color: #fff;

    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform 0.18s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.back-button {
    font-size: 34px;
    line-height: 1;
}


.refresh-button {
    font-size: 23px;
    line-height: 1;
}


.refresh-button.is-refreshing {
    animation:
        refresh-rotate
        0.7s
        linear;
}


@keyframes refresh-rotate {

    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }

}


.header-button:active {
    transform: scale(0.92);
}


.page-header.is-solid
.header-button {
    border-color: transparent;

    background: #edf5f3;
    color: #344b48;
}


.header-title {
    min-width: 0;

    padding-bottom: 4px;

    text-align: center;
}


.header-title h1 {
    margin: 0;

    color: #fff;

    font-size: 17px;
    line-height: 1.2;
    font-weight: 650;

    transition: color 0.25s ease;
}


.header-title span {
    display: block;

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 10px;

    transition: color 0.25s ease;
}


.page-header.is-solid
.header-title h1 {
    color: #263a38;
}


.page-header.is-solid
.header-title span {
    color: #8aa09d;
}


/************************
首屏
************************/

.hero-section {
    position: relative;

    width: 100%;
    height: 600px;

    overflow: hidden;

    background: #729a95;
}


.hero-background {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        opacity 0.35s ease,
        transform 0.5s ease;

    animation:
        hero-enter
        1.2s
        ease
        forwards;
}


@keyframes hero-enter {

    from {
        opacity: 0.7;
        transform: scale(1.08);
    }

    to {
        opacity: 1;
        transform: scale(1.02);
    }

}


.hero-mask {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(16, 48, 45, 0.12) 0%,
            rgba(16, 48, 45, 0.22) 38%,
            rgba(13, 42, 39, 0.93) 100%
        );
}


.hero-decoration {
    position: absolute;
    right: -110px;
    top: 80px;

    width: 270px;
    height: 270px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    box-shadow:
        0 0 0 38px rgba(255, 255, 255, 0.025),
        0 0 0 76px rgba(255, 255, 255, 0.018);
}


.hero-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 28px;
    z-index: 3;
}


.hero-location-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}


.hero-label {
    display: block;

    color: rgba(208, 255, 246, 0.84);

    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1.2px;
}


.hero-location-row h2 {
    margin: 9px 0 0;

    color: #fff;

    font-size: 34px;
    line-height: 1.2;
    font-weight: 750;
}


.location-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 37px;

    padding: 0 13px;

    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.12);
    color: #fff;

    font-size: 13px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.location-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #68f2cc;

    box-shadow:
        0 0 0 5px rgba(104, 242, 204, 0.14);
}


.comfort-score-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    gap: 20px;

    margin-top: 28px;
}


.comfort-score-ring {
    --score-angle: 309deg;

    position: relative;

    width: 132px;
    height: 132px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        conic-gradient(
            #67e5c3 0deg,
            #bdf6e8 var(--score-angle),
            rgba(255, 255, 255, 0.16)
            var(--score-angle),
            rgba(255, 255, 255, 0.16)
            360deg
        );

    box-shadow:
        0 15px 34px rgba(0, 0, 0, 0.18);
}


.comfort-score-ring::before {
    content: "";

    position: absolute;
    inset: 8px;

    border-radius: 50%;

    background: rgba(22, 61, 57, 0.88);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.comfort-score-inner {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.comfort-score-inner strong {
    color: #fff;

    font-size: 43px;
    line-height: 1;
}


.comfort-score-inner span {
    margin-top: 6px;

    color: #a9c8c3;

    font-size: 12px;
}


.comfort-summary {
    min-width: 0;
}


.comfort-level {
    display: inline-flex;

    padding: 6px 10px;

    border: 1px solid rgba(125, 239, 210, 0.28);
    border-radius: 8px;

    background: rgba(83, 207, 175, 0.16);
    color: #8ff0d4;

    font-size: 12px;
    line-height: 1;
}


.comfort-summary h3 {
    margin: 11px 0 0;

    color: #fff;

    font-size: 22px;
    line-height: 1.35;
}


.comfort-summary p {
    margin: 10px 0 0;

    color: rgba(227, 244, 240, 0.75);

    font-size: 13px;
    line-height: 1.65;
}


.update-row {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 22px;

    color: rgba(226, 241, 238, 0.7);

    font-size: 11px;
}


.live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #6af1cc;

    box-shadow:
        0 0 0 5px rgba(106, 241, 204, 0.13);

    animation:
        live-pulse
        1.8s
        ease-in-out
        infinite;
}


@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.42;
    }

}


/************************
通用标题
************************/

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 20px;
}


.section-eyebrow {
    margin: 0 0 6px;

    color: #49a896;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1.1px;
}


.section-title-row h2 {
    margin: 0;

    color: #263b39;

    font-size: 27px;
    line-height: 1.25;
}


.slide-hint {
    color: #93a6a3;

    font-size: 12px;
}


/************************
景区切换
************************/

.scenic-switch-section {
    padding: 36px 0 25px;

    overflow: hidden;
}


.scenic-switch-section
.section-title-row {
    padding: 0 18px;
}


.scenic-scroll {
    display: flex;
    gap: 12px;

    overflow-x: auto;

    padding: 2px 18px 18px;

    scrollbar-width: none;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;
}


.scenic-scroll::-webkit-scrollbar {
    display: none;
}


.scenic-card {
    position: relative;

    flex: 0 0 145px;
    height: 180px;

    padding: 0;

    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 22px;

    background: #dce8e5;
    color: #fff;

    text-align: left;

    cursor: pointer;

    scroll-snap-align: start;

    transition:
        border-color 0.2s ease,
        transform 0.18s ease,
        box-shadow 0.2s ease;
}


.scenic-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 35%,
            rgba(12, 46, 42, 0.84)
        );
}


.scenic-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.scenic-card span,
.scenic-card small {
    position: absolute;
    left: 13px;
    right: 13px;
    z-index: 2;
}


.scenic-card span {
    bottom: 31px;

    font-size: 16px;
    font-weight: 650;
}


.scenic-card small {
    bottom: 13px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 11px;
}


.scenic-card.is-active {
    border-color: #53c8b1;

    box-shadow:
        0 12px 27px rgba(57, 137, 123, 0.22);
}


.scenic-card:active {
    transform: scale(0.97);
}


/************************
环境数据
************************/

.environment-section {
    padding: 30px 18px 40px;
}


.environment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}


.environment-card {
    min-height: 148px;

    padding: 17px;

    border: 1px solid rgba(70, 135, 124, 0.08);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 10px 28px rgba(45, 83, 77, 0.07);
}


.environment-card-large {
    grid-column: 1 / -1;

    min-height: 164px;

    background:
        linear-gradient(
            135deg,
            #dff6ee,
            #f8fffd
        );
}


.environment-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #e6f4f0;
    color: #419b89;

    font-size: 15px;
    font-weight: 750;
}


.environment-card > span {
    display: block;

    margin-top: 17px;

    color: #7e918e;

    font-size: 12px;
}


.environment-card strong {
    display: block;

    margin-top: 6px;

    color: #273c39;

    font-size: 26px;
    line-height: 1;
}


.environment-card-large strong {
    font-size: 38px;
}


.environment-card p {
    margin: 9px 0 0;

    color: #98a8a5;

    font-size: 11px;
}


/************************
游览状态
************************/

.visit-section {
    padding: 40px 18px;

    background: #e8f3f1;
}


.visit-panel {
    overflow: hidden;

    border: 1px solid rgba(61, 126, 115, 0.08);
    border-radius: 26px;

    background: #fff;

    box-shadow:
        0 12px 32px rgba(42, 85, 77, 0.07);
}


.visit-item {
    padding: 20px;
}


.visit-item + .visit-item {
    border-top: 1px solid #edf3f2;
}


.visit-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}


.visit-item-heading > div {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;
}


.visit-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #e6f5f1;
    color: #409c89;

    font-size: 13px;
    font-weight: 700;
}


.visit-item strong {
    display: block;

    color: #2b403d;

    font-size: 16px;
}


.visit-item p {
    margin: 5px 0 0;

    color: #92a29f;

    font-size: 11px;
}


.status-badge {
    flex: 0 0 auto;

    padding: 6px 9px;

    border-radius: 8px;

    font-size: 11px;
    line-height: 1;
}


.status-good {
    background: #e2f7ef;
    color: #359577;
}


.status-normal {
    background: #edf2ff;
    color: #6477a7;
}


.status-warning {
    background: #fff0dc;
    color: #b97827;
}


.visit-value {
    flex: 0 0 auto;

    color: #3b9e8b;

    font-size: 14px;
    font-weight: 650;
}


.progress-track {
    height: 8px;

    margin-top: 17px;

    overflow: hidden;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            #d7f3e9,
            #f8e4b9,
            #f4c4bc
        );
}


.progress-value {
    display: block;

    height: 100%;

    border-radius: 5px;

    background: rgba(48, 132, 115, 0.78);

    transition: width 0.45s ease;
}


.progress-labels {
    display: flex;
    justify-content: space-between;

    margin-top: 7px;

    color: #a3b1ae;

    font-size: 10px;
}


/************************
趋势
************************/

.trend-section {
    padding: 42px 18px;
}


.trend-best-time {
    padding: 6px 9px;

    border-radius: 8px;

    background: #dff4ed;
    color: #3c987e;

    font-size: 11px;
}


.trend-card {
    padding: 22px 15px 18px;

    border-radius: 26px;

    background: #fff;

    box-shadow:
        0 12px 32px rgba(48, 84, 78, 0.08);
}


.trend-chart {
    height: 220px;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 7px;
}


.trend-column {
    position: relative;

    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}


.trend-score {
    margin-bottom: 7px;

    color: #728b86;

    font-size: 10px;
}


.trend-bar-track {
    position: relative;

    width: 18px;
    height: 145px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    border-radius: 10px;

    background: #edf3f1;
}


.trend-bar {
    display: block;

    width: 100%;

    border-radius: 10px;

    background:
        linear-gradient(
            to top,
            #71ceb5,
            #b9ecdd
        );

    transition: height 0.45s ease;
}


.trend-time {
    margin-top: 10px;

    color: #93a4a1;

    font-size: 9px;
}


.trend-column.is-best
.trend-bar {
    background:
        linear-gradient(
            to top,
            #32ae8b,
            #83e1c4
        );

    box-shadow:
        0 4px 14px rgba(44, 161, 129, 0.28);
}


.trend-column.is-best
.trend-score {
    color: #319276;

    font-weight: 700;
}


.best-label {
    position: absolute;
    top: 0;

    padding: 4px 6px;

    border-radius: 6px;

    background: #3dae8c;
    color: #fff;

    font-size: 9px;
}


.trend-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 22px;
    padding: 13px 14px;

    border-radius: 16px;

    background: #eff8f5;
}


.trend-tip-icon {
    color: #43a98d;

    font-size: 17px;
}


.trend-tip p {
    margin: 0;

    color: #718783;

    font-size: 12px;
    line-height: 1.65;
}


/************************
出游建议
************************/

.advice-section {
    padding: 42px 18px;

    background: #e9f3f1;
}


.advice-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}


.advice-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;

    padding: 17px;

    border: 1px solid rgba(69, 134, 122, 0.07);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.88);
}


.advice-primary {
    background:
        linear-gradient(
            135deg,
            #dff6ee,
            #f8fdfb
        );
}


.advice-number {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #e4f3ef;
    color: #419d88;

    font-size: 11px;
    font-weight: 700;
}


.advice-card strong {
    color: #2d413e;

    font-size: 15px;
}


.advice-card p {
    margin: 7px 0 0;

    color: #839693;

    font-size: 12px;
    line-height: 1.65;
}


/************************
推荐时间
************************/

.time-section {
    padding: 38px 16px 0;
}


.time-card {
    position: relative;

    min-height: 350px;

    padding: 34px 23px;

    overflow: hidden;

    border-radius: 30px;

    color: #fff;

    box-shadow:
        0 18px 38px rgba(32, 75, 68, 0.2);
}


.time-card > img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.time-card-mask {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to right,
            rgba(16, 53, 49, 0.96),
            rgba(16, 53, 49, 0.38)
        );
}


.time-card-content {
    position: relative;
    z-index: 3;

    max-width: 290px;
}


.time-card-content > span {
    color: #94e9d1;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
}


.time-card-content h2 {
    margin: 13px 0 0;

    font-size: 27px;
    line-height: 1.35;
}


.time-card-content strong {
    display: block;

    margin-top: 15px;

    color: #7cf0d0;

    font-size: 27px;
}


.time-card-content p {
    margin: 14px 0 0;

    color: rgba(229, 246, 241, 0.76);

    font-size: 13px;
    line-height: 1.75;
}


.time-card-content a {
    display: inline-flex;
    align-items: center;
    gap: 25px;

    height: 47px;

    margin-top: 23px;
    padding: 0 18px;

    border-radius: 24px;

    background: #fff;
    color: #327b6d;

    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}


/************************
数据说明
************************/

.data-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin: 24px 18px 0;
    padding: 15px;

    border: 1px solid rgba(65, 125, 115, 0.08);
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.65);
}


.data-notice-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dcefe9;
    color: #458e7d;

    font-size: 12px;
    font-weight: 700;
}


.data-notice p {
    margin: 0;

    color: #879794;

    font-size: 11px;
    line-height: 1.65;
}


/************************
底部空间
************************/

.page-bottom-space {
    height:
        calc(
            42px +
            env(safe-area-inset-bottom)
        );
}


/************************
提示信息
************************/

.toast {
    position: fixed;
    left: 50%;
    bottom:
        calc(
            32px +
            env(safe-area-inset-bottom)
        );
    z-index: 100;

    padding: 11px 18px;

    border-radius: 22px;

    background: rgba(26, 62, 57, 0.92);
    color: #fff;

    font-size: 13px;

    opacity: 0;
    pointer-events: none;

    transform:
        translate(-50%, 18px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.toast.is-visible {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/************************
小屏幕适配
************************/

@media (max-width: 360px) {

    .hero-section {
        height: 570px;
    }


    .hero-content {
        left: 17px;
        right: 17px;
    }


    .comfort-score-row {
        grid-template-columns:
            116px
            minmax(0, 1fr);

        gap: 15px;
    }


    .comfort-score-ring {
        width: 116px;
        height: 116px;
    }


    .comfort-score-inner strong {
        font-size: 37px;
    }


    .comfort-summary h3 {
        font-size: 19px;
    }


    .comfort-summary p {
        font-size: 12px;
    }


    .scenic-card {
        flex-basis: 132px;
        height: 166px;
    }


    .environment-section,
    .visit-section,
    .trend-section,
    .advice-section {
        padding-right: 14px;
        padding-left: 14px;
    }


    .trend-chart {
        gap: 4px;
    }


    .trend-bar-track {
        width: 15px;
    }


    .time-section {
        padding-right: 12px;
        padding-left: 12px;
    }

}


/************************
减少动态效果
************************/

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}