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

* {
    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: #e8eef1;
    color: #263842;
}


body {
    overflow-y: auto;
    scrollbar-width: none;
}


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


button,
a {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}


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

    margin: 0 auto;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f2f7f9 0%,
            #ffffff 45%,
            #edf3f5 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(5, 27, 42, 0.74),
            rgba(5, 27, 42, 0)
        );

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


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

    box-shadow:
        0 5px 20px rgba(29, 59, 75, 0.09);

    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.27);
    border-radius: 50%;

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

    cursor: pointer;

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

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


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


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


.collect-button {
    font-size: 23px;
}


.collect-button.is-collected {
    background: rgba(255, 255, 255, 0.94);
    color: #e26b67;
}


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

    background: #edf3f5;
    color: #314750;
}


.page-header.is-solid
.collect-button.is-collected {
    background: #fdeceb;
    color: #df625e;
}


.header-title {
    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: #263b45;
}


.page-header.is-solid
.header-title span {
    color: #879aa2;
}


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

.hero-section {
    position: relative;

    width: 100%;
    height: 660px;

    overflow: hidden;

    background: #183f55;
}


.hero-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    animation:
        hero-enter
        1.25s
        ease
        forwards;
}


@keyframes hero-enter {

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

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

}


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

    background:
        linear-gradient(
            to bottom,
            rgba(3, 22, 36, 0.08),
            rgba(3, 22, 36, 0.25) 42%,
            rgba(4, 27, 42, 0.96) 100%
        );
}


.hero-light {
    position: absolute;
    right: -110px;
    top: 135px;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background: rgba(70, 193, 222, 0.2);

    filter: blur(42px);
}


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


.hero-label {
    display: inline-flex;

    padding: 7px 11px;

    border: 1px solid rgba(140, 225, 244, 0.38);
    border-radius: 999px;

    background: rgba(23, 105, 128, 0.27);
    color: #9ceafb;

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

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


.hero-content h2 {
    margin: 18px 0 0;

    color: #fff;

    font-size: 42px;
    line-height: 1.18;
    font-weight: 800;

    text-shadow:
        0 5px 22px rgba(0, 0, 0, 0.35);
}


.hero-content p {
    max-width: 340px;

    margin: 17px 0 0;

    color: rgba(231, 244, 249, 0.82);

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


.hero-actions {
    display: flex;
    gap: 10px;

    margin-top: 24px;
}


.primary-button,
.secondary-button {
    height: 47px;

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

    padding: 0 18px;

    border-radius: 24px;

    color: #fff;

    font-size: 14px;

    cursor: pointer;
}


.primary-button {
    gap: 23px;

    border: 0;

    background:
        linear-gradient(
            90deg,
            #24a4c2,
            #5cd2da
        );

    box-shadow:
        0 10px 24px rgba(34, 158, 185, 0.28);
}


.primary-button span {
    font-size: 19px;
}


.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.24);

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

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


.hero-summary {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 24px;
    z-index: 4;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    padding: 14px 8px;

    border: 1px solid rgba(135, 215, 234, 0.17);
    border-radius: 21px;

    background: rgba(6, 38, 57, 0.7);

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


.hero-summary div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}


.hero-summary div + div {
    border-left:
        1px solid
        rgba(137, 218, 236, 0.15);
}


.hero-summary strong {
    color: #fff;
    font-size: 20px;
}


.hero-summary span {
    color: #92afbb;
    font-size: 11px;
}


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

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

    margin-bottom: 21px;
}


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

    color: #3198ac;

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


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

    color: #263e48;

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


/************************
日期选择
************************/

.date-section {
    padding: 40px 0 22px;

    overflow: hidden;
}


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


.reset-button {
    padding: 7px 10px;

    border: 0;
    border-radius: 10px;

    background: #e2f2f5;
    color: #348c9d;

    font-size: 12px;

    cursor: pointer;
}


.date-scroll {
    display: flex;
    gap: 10px;

    overflow-x: auto;

    padding: 2px 18px 17px;

    scrollbar-width: none;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;
}


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


.date-card {
    flex: 0 0 78px;
    height: 102px;

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

    border: 1px solid rgba(61, 130, 145, 0.09);
    border-radius: 19px;

    background: #fff;
    color: #71878e;

    cursor: pointer;

    scroll-snap-align: start;

    box-shadow:
        0 8px 20px rgba(37, 76, 86, 0.06);

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


.date-card:active {
    transform: scale(0.96);
}


.date-card span {
    font-size: 11px;
}


.date-card strong {
    margin-top: 6px;

    color: #2e4851;

    font-size: 25px;
    line-height: 1;

    transition: color 0.2s ease;
}


.date-card small {
    margin-top: 7px;

    color: #9aabad;

    font-size: 10px;
}


.date-card.is-active {
    border-color: #45adbc;

    background:
        linear-gradient(
            145deg,
            #3ca8b9,
            #62cad0
        );

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

    box-shadow:
        0 10px 22px rgba(48, 153, 170, 0.22);
}


.date-card.is-active strong,
.date-card.is-active small {
    color: #fff;
}


/************************
筛选
************************/

.filter-section {
    padding: 0 18px 28px;
}


.filter-tabs {
    display: flex;
    gap: 8px;

    overflow-x: auto;

    padding-bottom: 8px;

    scrollbar-width: none;
}


.filter-tabs::-webkit-scrollbar {
    display: none;
}


.filter-tab {
    flex: 0 0 auto;

    height: 38px;

    padding: 0 15px;

    border: 1px solid rgba(55, 131, 145, 0.1);
    border-radius: 20px;

    background: #fff;
    color: #71868c;

    font-size: 13px;

    cursor: pointer;
}


.filter-tab.is-active {
    border-color: #43a9b8;

    background: #e0f2f4;
    color: #278897;
}


/************************
本周推荐
************************/

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

    background: #eaf3f5;
}


.featured-label {
    padding: 6px 9px;

    border-radius: 8px;

    background: #dceff2;
    color: #348a9a;

    font-size: 11px;
}


.featured-card {
    position: relative;

    display: block;

    height: 390px;

    overflow: hidden;

    border-radius: 28px;

    color: #fff;
    text-decoration: none;

    box-shadow:
        0 18px 38px rgba(27, 66, 78, 0.2);
}


.featured-card > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


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

    background:
        linear-gradient(
            to bottom,
            rgba(4, 27, 39, 0.03),
            rgba(4, 27, 39, 0.88)
        );
}


.featured-date {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;

    width: 57px;
    height: 67px;

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

    border: 1px solid rgba(255, 255, 255, 0.29);
    border-radius: 17px;

    background: rgba(5, 39, 52, 0.48);

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


.featured-date strong {
    font-size: 25px;
    line-height: 1;
}


.featured-date span {
    margin-top: 5px;

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

    font-size: 9px;
    letter-spacing: 1px;
}


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


.featured-category {
    display: inline-flex;

    padding: 6px 9px;

    border-radius: 8px;

    background: rgba(54, 181, 197, 0.72);

    font-size: 10px;
}


.featured-content h3 {
    margin: 11px 0 0;

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


.featured-content p {
    margin: 10px 0 0;

    color: rgba(235, 247, 250, 0.76);

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


.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 15px;
}


.featured-meta span {
    padding: 6px 9px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;

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

    font-size: 10px;
}


/************************
活动列表
************************/

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


.result-count {
    color: #8b9da2;
    font-size: 12px;
}


.event-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.event-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;

    padding: 11px;

    border: 1px solid rgba(52, 120, 133, 0.07);
    border-radius: 22px;

    background: #fff;
    color: inherit;

    text-decoration: none;

    box-shadow:
        0 10px 27px rgba(34, 74, 83, 0.07);

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


.event-card:active {
    transform: scale(0.985);
    opacity: 0.9;
}


.event-image {
    position: relative;

    width: 112px;
    height: 145px;

    overflow: hidden;

    border-radius: 17px;
}


.event-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.event-date-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;

    padding: 6px 8px;

    border-radius: 8px;

    background: rgba(8, 40, 54, 0.72);
    color: #fff;

    font-size: 9px;

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


.event-content {
    min-width: 0;

    padding: 4px 2px 2px 0;
}


.event-category {
    display: inline-flex;

    padding: 5px 7px;

    border-radius: 7px;

    background: #e2f2f4;
    color: #348b9b;

    font-size: 9px;
}


.event-content h3 {
    margin: 9px 0 0;

    color: #2d444c;

    font-size: 17px;
    line-height: 1.4;
}


.event-content p {
    margin: 8px 0 0;

    color: #82959b;

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


.event-info {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-top: 11px;

    color: #718990;

    font-size: 10px;
}


.event-status {
    display: inline-flex;

    margin-top: 11px;
    padding: 5px 7px;

    border-radius: 7px;

    background: #e6f6ef;
    color: #408f72;

    font-size: 9px;
}


.empty-state {
    padding: 45px 20px;

    border-radius: 24px;

    background: #f1f6f7;

    text-align: center;
}


.empty-state > span {
    color: #79aeb6;
    font-size: 38px;
}


.empty-state h3 {
    margin: 13px 0 0;

    color: #3a5057;

    font-size: 18px;
}


.empty-state p {
    margin: 8px 0 0;

    color: #8a9ca0;

    font-size: 12px;
}


.empty-state button {
    height: 42px;

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

    border: 0;
    border-radius: 21px;

    background: #48adba;
    color: #fff;

    font-size: 13px;
}


/************************
演出季
************************/

.season-section {
    position: relative;

    min-height: 350px;

    margin: 30px 16px 0;
    padding: 38px 23px;

    overflow: hidden;

    border-radius: 30px;

    color: #fff;

    box-shadow:
        0 18px 38px rgba(24, 59, 72, 0.2);
}


.season-background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


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

    background:
        linear-gradient(
            to right,
            rgba(5, 35, 50, 0.96),
            rgba(5, 35, 50, 0.35)
        );
}


.season-decoration {
    position: absolute;
    right: -95px;
    top: -75px;

    width: 240px;
    height: 240px;

    border: 1px solid rgba(123, 220, 235, 0.21);
    border-radius: 50%;

    box-shadow:
        0 0 0 38px
        rgba(123, 220, 235, 0.035);
}


.season-content {
    position: relative;
    z-index: 3;

    max-width: 290px;
}


.season-content > span {
    color: #8be5f2;

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


.season-content h2 {
    margin: 13px 0 0;

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


.season-content p {
    margin: 15px 0 0;

    color: rgba(230, 245, 249, 0.75);

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


.season-content a {
    height: 47px;

    display: inline-flex;
    align-items: center;
    gap: 25px;

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

    border-radius: 24px;

    background: #fff;
    color: #287f90;

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


/************************
出行提示
************************/

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

    background: #edf4f5;
}


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


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

    padding: 17px;

    border: 1px solid rgba(56, 123, 136, 0.07);
    border-radius: 20px;

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


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

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

    border-radius: 13px;

    background: #e0f1f3;
    color: #3b91a0;

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


.tips-card strong {
    color: #2e454c;
    font-size: 15px;
}


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

    color: #83969b;

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


/************************
说明与底部
************************/

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

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

    border: 1px solid rgba(59, 122, 135, 0.08);
    border-radius: 17px;

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


.data-notice > span {
    width: 24px;
    height: 24px;

    flex: 0 0 auto;

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

    border-radius: 50%;

    background: #dceef1;
    color: #428b99;

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


.data-notice p {
    margin: 0;

    color: #87989d;

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


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


/************************
Toast
************************/

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

    padding: 11px 18px;

    border-radius: 22px;

    background: rgba(9, 45, 59, 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: 620px;
    }


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


    .hero-content h2 {
        font-size: 37px;
    }


    .date-card {
        flex-basis: 72px;
    }


    .featured-section,
    .events-section,
    .tips-section {
        padding-right: 14px;
        padding-left: 14px;
    }


    .event-card {
        grid-template-columns:
            100px
            minmax(0, 1fr);

        gap: 12px;
    }


    .event-image {
        width: 100px;
        height: 140px;
    }


    .season-section {
        margin-right: 12px;
        margin-left: 12px;
    }

}


/************************
减少动画
************************/

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

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

}