* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

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

    background: #f8f5f3;
    color: #2f3134;
}


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


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


button,
a {
    font-family: inherit;
}


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

    margin: 0 auto;

    background: #fff;
}


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

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

    width: 100%;
    max-width: 430px;
    height:
        calc(
            58px +
            env(safe-area-inset-top)
        );

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

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

    transform: translateX(-50%);

    background:
        linear-gradient(
            to bottom,
            rgba(20, 20, 20, 0.52),
            rgba(20, 20, 20, 0)
        );

    transition:
        background 0.25s ease,
        backdrop-filter 0.25s ease;
}


.page-header.is-solid {
    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.06);

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


.page-header h1 {
    margin: 0;
    padding-bottom: 8px;

    color: #fff;

    font-size: 17px;
    line-height: 1;
    font-weight: 600;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: color 0.25s ease;
}


.page-header.is-solid h1 {
    color: #333;
}


.back-button,
.share-button {
    width: 40px;
    height: 40px;

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

    padding: 0;

    border: 0;
    border-radius: 50%;

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

    cursor: pointer;

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

    -webkit-tap-highlight-color: transparent;

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


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


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


.page-header.is-solid
.back-button,
.page-header.is-solid
.share-button {
    background: #f3f4f5;
    color: #333;
}


.back-button:active,
.share-button:active {
    transform: scale(0.93);
}


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

.hero-section {
    position: relative;

    width: 100%;
    height: 680px;

    overflow: hidden;

    background: #b8a39c;
}


.hero-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.03);

    animation:
        hero-image-enter
        1.4s
        ease
        forwards;
}


@keyframes hero-image-enter {

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

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

}


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

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.04) 30%,
            rgba(0, 0, 0, 0.66) 100%
        );
}


.hero-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 102px;

    z-index: 2;

    color: #fff;
}


.hero-tag {
    display: inline-flex;

    margin-bottom: 15px;
    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 999px;

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

    font-size: 11px;
    line-height: 1;
    letter-spacing: 1.2px;

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


.hero-content h2 {
    margin: 0;

    font-size: 43px;
    line-height: 1.18;
    font-weight: 760;

    letter-spacing: 1px;

    text-shadow:
        0 4px 16px rgba(0, 0, 0, 0.22);
}


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

    margin: 18px 0 0;

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

    font-size: 16px;
    line-height: 1.7;
}


.hero-scroll-button {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    padding: 5px 18px;

    border: 0;

    background: transparent;
    color: rgba(255, 255, 255, 0.9);

    font-size: 12px;

    transform: translateX(-50%);

    cursor: pointer;
}


.scroll-arrow {
    font-size: 23px;

    animation:
        scroll-arrow-move
        1.5s
        ease-in-out
        infinite;
}


@keyframes scroll-arrow-move {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }

}


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

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

    color: #c79a8e;

    font-size: 11px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: 1.1px;
}


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

    margin-bottom: 22px;
}


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

    color: #343438;

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


.more-link {
    display: flex;
    align-items: center;
    gap: 3px;

    color: #777;

    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}


.more-link span {
    font-size: 22px;
}


/***********************
介绍区
***********************/

.intro-section {
    padding: 42px 20px 36px;

    background:
        linear-gradient(
            145deg,
            #fff 0%,
            #fff8f5 100%
        );
}


.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}


.section-index {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #ecd2cb;
    color: #8b6259;

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


.intro-text {
    margin: 24px 0 0;

    color: #666;

    font-size: 16px;
    line-height: 1.85;
}


.intro-statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    margin-top: 28px;
}


.statistic-item {
    min-height: 96px;

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

    border-radius: 20px;

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

    box-shadow:
        0 9px 26px rgba(122, 85, 73, 0.08);
}


.statistic-item strong {
    color: #9d7167;

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


.statistic-item span {
    margin-top: 9px;

    color: #8b8582;

    font-size: 13px;
}


/***********************
主题卡片
***********************/

.theme-section {
    padding: 40px 0 38px;

    overflow: hidden;
}


.theme-section
.section-title-row {
    padding: 0 20px;
}


.theme-scroll {
    display: flex;
    gap: 14px;

    overflow-x: auto;

    padding: 3px 20px 18px;

    scrollbar-width: none;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;
}


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


.theme-card {
    position: relative;

    flex: 0 0 72%;
    height: 390px;

    overflow: hidden;

    border-radius: 26px;

    color: #fff;
    text-decoration: none;

    scroll-snap-align: start;

    box-shadow:
        0 14px 32px rgba(42, 31, 29, 0.16);

    -webkit-tap-highlight-color: transparent;

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


.theme-card:active {
    transform: scale(0.985);
    opacity: 0.92;
}


.theme-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


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

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.04),
            rgba(0, 0, 0, 0.62)
        );
}


.theme-card-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 2;
}


.theme-card-content > span {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
}


.theme-card-content h3 {
    margin: 7px 0 0;

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


.theme-card-content p {
    margin: 8px 0 0;

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

    font-size: 14px;
}


/***********************
推荐路线
***********************/

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

    background: #f7f4f2;
}


.route-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.route-card {
    position: relative;

    min-height: 148px;

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

    padding: 12px 44px 12px 12px;

    border-radius: 24px;

    background: #fff;
    color: #333;

    text-decoration: none;

    box-shadow:
        0 10px 28px rgba(81, 65, 60, 0.08);

    -webkit-tap-highlight-color: transparent;

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


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


.route-card > img {
    display: block;

    width: 112px;
    height: 124px;

    object-fit: cover;

    border-radius: 18px;
}


.route-card-content {
    min-width: 0;

    padding-top: 3px;
}


.route-label {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 7px;

    background: #f7e8e3;
    color: #a17066;

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


.route-card-content h3 {
    margin: 10px 0 0;

    font-size: 19px;
    line-height: 1.3;
}


.route-card-content p {
    margin: 7px 0 0;

    color: #777;

    font-size: 13px;
    line-height: 1.5;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;

    margin-top: 13px;

    color: #aaa;

    font-size: 11px;
}


.route-arrow {
    position: absolute;
    right: 15px;
    top: 50%;

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

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #f5f2f0;
    color: #8f7770;

    transform: translateY(-50%);
}


/***********************
行程定制
***********************/

.custom-section {
    position: relative;

    min-height: 310px;

    margin: 32px 16px 0;
    padding: 38px 24px;

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #e9c7bf 0%,
            #d7a89e 100%
        );

    color: #fff;
}


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

    max-width: 270px;
}


.custom-content > span {
    font-size: 10px;
    letter-spacing: 1.1px;

    opacity: 0.8;
}


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

    font-size: 31px;
    line-height: 1.3;
}


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

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

    font-size: 14px;
    line-height: 1.7;
}


.custom-button {
    display: inline-flex;
    align-items: center;
    gap: 24px;

    height: 48px;

    margin-top: 24px;
    padding: 0 20px;

    border-radius: 24px;

    background: #fff;
    color: #9d6e65;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(110, 70, 62, 0.16);

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


.custom-button:active {
    transform: scale(0.97);
    opacity: 0.9;
}


.custom-button span {
    font-size: 21px;
}


.custom-decoration {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.24);
}


.decoration-one {
    width: 230px;
    height: 230px;

    right: -75px;
    top: -70px;
}


.decoration-two {
    width: 160px;
    height: 160px;

    right: 20px;
    bottom: -92px;
}


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


/***********************
分享提示
***********************/

.share-toast {
    position: fixed;
    left: 50%;
    bottom:
        calc(
            34px +
            env(safe-area-inset-bottom)
        );

    z-index: 100;

    padding: 11px 18px;

    border-radius: 22px;

    background: rgba(30, 30, 30, 0.82);
    color: #fff;

    font-size: 14px;

    opacity: 0;
    pointer-events: none;

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

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


.share-toast.is-visible {
    opacity: 1;

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


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

@media (max-width: 360px) {

    .hero-section {
        height: 620px;
    }


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


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


    .intro-section {
        padding-right: 16px;
        padding-left: 16px;
    }


    .theme-card {
        flex-basis: 76%;
        height: 350px;
    }


    .route-section {
        padding-right: 14px;
        padding-left: 14px;
    }


    .route-card {
        grid-template-columns: 98px minmax(0, 1fr);
        gap: 12px;
    }


    .route-card > img {
        width: 98px;
        height: 118px;
    }


    .route-card-content h3 {
        font-size: 17px;
    }


    .custom-section {
        margin-right: 12px;
        margin-left: 12px;

        padding-right: 20px;
        padding-left: 20px;
    }


    .custom-content h2 {
        font-size: 28px;
    }

}


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

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

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

}