/* ===== 全局 ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #F0597C;
    width: 100%;
}

/* 隐藏真实 radio input */
#districtForm input[type="radio"] {
    display: none;
}

.district-btn {
    position: relative;
    padding: 10px 14px 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
    white-space: nowrap;
    font-weight: bold;
}

#districtForm input[type="radio"]:checked+.district-btn {
    color: #fff;
}

.district-btn::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: 0;
    width: 80%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

#districtForm input[type="radio"]:checked+.district-btn::after {
    transform: scaleX(1);
}


.toggle-btn {
    margin: 5px;
    padding: 6px 12px;
    border: none;
    background-color: #25D366;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.card-body {
    overflow: hidden;
    border-top-left-radius: 50% 40%;
    border-top-right-radius: 50% 40%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top: 4px solid black;
    box-sizing: border-box;
    border-left: 4px solid black;
    border-right: 4px solid black;
    background-color: #fff;
    text-align: center;
}

/* ===== Hero 区 ===== */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #F0597C;
}

.hero-content {
    display: flex;
    width: 100%;
}

.hero-content>* {
    min-width: 0;
}

.hero-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

/* 按钮组容器，可换行 */
#districtWrapper {
    flex: 1;
    min-width: 0;
    padding-bottom: 5px;
}

#districtForm {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 40px;
    overflow: hidden;
    padding-bottom: 10px;
    transition: max-height 0.3s ease;
    position: relative;
}

#districtForm.show {
    max-height: 500px;
}

/* toggle 固定右边 */
#toggleDistrictBtn {
    flex-shrink: 0;
    margin-top: 0;
}

/* Dropdown 样式 */
.hero-left select {
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-left select:hover {
    border-color: #007BFF;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-left select::-ms-expand {
    display: none;
}

.hero-right {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn img {
    display: block;
    width: 24px;
    height: 24px;
}

.icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* WhatsApp / Telegram 主题色 */
.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn img {
    filter: brightness(0) invert(1);
}

.telegram-btn {
    background-color: #0088cc;
}

.telegram-btn img {
    filter: brightness(0) invert(1);
}

/* ===== Layout ===== */
.layout {
    width: 100%;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* 普通按钮 */
.whatsapp-main {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #25D366;
    color: #000;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    width: auto;
}

.telegram-main {
    width: auto;
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 16px;
    background: #229ED9;
    color: #000;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    margin-bottom: 10px;
}

.whatsapp-header {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #25D366;
    color: #000;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    width: auto;
}

.whatsapp-header:hover {
    background-color: #1DA851;
    scale: 1.05;
}

.telegram-header:hover {
    background-color: #1A7ABF;
    scale: 1.05;
}

.telegram-header {
    width: auto;
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 16px;
    background: #229ED9;
    color: #000;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    margin-bottom: 10px;
}

.whatsapp-card,
.telegram-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    margin-right: 12px;
    margin-bottom: 12px;
}

.telegram-card {
    background: #229ED9;
}

/* 跑马灯外框 */
.marquee {
    width: 100%;
    overflow-x: hidden;
    background: #000;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 图片轨道 */
.marquee-track {
    will-change: transform;
    display: flex;
    gap: 12px;
}

/* 跑马灯图片 */
.marquee-track img {
    height: 140px;
    width: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
}

.main-content {
    flex-direction: row;
    background-color: #F0597C;
}

.toggle-btn.icon-only {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

#albumsToggleIcon {
    font-size: 16px;
    color: #fff;
    transition: transform 0.25s ease;
}

.toggle-btn.icon-only img {
    width: 16px;
    /* 图标大小 */
    height: 16px;
}

/* ===== Gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 每行两个卡片 */
    width: 100%;
    max-width: 100%;
}

html,
body {
    width: 100%;
}

.card h3 {
    color: #000;
    /* 黑色 */
    text-align: center;
    font-size: x-large;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border-top-left-radius: 50% 40%;
    border-top-right-radius: 50% 40%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top: 4px solid black;
    box-sizing: border-box;
    border-left: 4px solid black;
    border-right: 4px solid black;
    background-color: #fff;
    text-align: center;
    margin: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card .card-body {
    border: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-bottom: 5px;
    padding: 12px 15px;
    box-sizing: border-box;
    transform: translateY(20px);
    opacity: 1;
}

.card .card-body h3 {
    color: #F0597C;
    margin: 0;
    font-size: 18px;
    padding-bottom: 5px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.card .card-body a {
    display: inline-block;
    margin-right: 6px;
    margin-top: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.card .card-body a.whatsapp-card {
    background-color: #25D366;
}

.card .card-body a.telegram-card {
    background-color: #229ED9;
}


.card .card-body a.whatsapp-card:hover {
    background-color: #1DA851;
    /* 更深的 WhatsApp 绿 */
}

.card .card-body a.telegram-card:hover {
    background-color: #1A7ABF;
    /* 更深的 Telegram 蓝 */
}

.card .card-body a:hover {
    transform: translateY(-2px);
}

.card-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #000, #1a1a1a, #333);
    color: #fff;
    font-size: 26px;
    /* 大字 */
    font-weight: 700;
    /* 粗 */
    text-transform: uppercase;
    /* 全大写更狠 */
    letter-spacing: 1px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 2px solid rgba(255, 255, 255, .15);
}

.card-banner .title {
    font-size: 26px;
    font-weight: 600;
    color: #F0597C;
    line-height: 1.3;
}

.card-banner .desc {
    margin-top: 10px;
    font-size: 18px;
    color: #fff;
    line-height: 1.4;
}

/* .booking-btn {
    position: relative;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .6px;

    color: #F0597C;
    background: transparent;
    border-radius: 999px;
    text-decoration: none;

    z-index: 1;
} */

/* 渐层外框 */
.booking-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* 边框粗细 */

    background: linear-gradient(135deg, #F0597C);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    z-index: -1;
}

/* Hover：发光 + 微浮起 */
.booking-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #F0597C);
}

/* 广告卡，占整行 */
.ad-inline {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.ad-inline video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    pointer-events: none;
}

.ad-inline video::-webkit-media-controls {
    display: none !important;
}

.ad-inline video::-internal-media-controls {
    display: none !important;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

#modalImg {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

/* ===== Slider ===== */
.slides {
    display: flex;
}

.slider {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* .modal-slider {
    position: relative;
    width: 90vw;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
} */

.modal-slider {
    width: 100%;
    aspect-ratio: 3 / 4;
    /* 或 16 / 9 */
    overflow: hidden;

}

#modalSlides {
    display: flex;
    height: 100%;
}

#modalSlides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 或 cover */
    flex-shrink: 0;
}

/* Slider 导航按钮 */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10;
}

.nav.prev {
    left: 10px;
}

.nav.next {
    right: 10px;
}

/* Slider 计数器 */
.counter {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
}

.modal-layout {
    display: flex;
    gap: 30px;
    max-width: 900px;
    width: 90%;
}

/* 左边 */
.modal-left {
    flex: 1.2;
    position: relative;
}

/* 右边 */
.modal-right {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

/* 标题 */
.modal-right h2 {
    font-size: 24px;
    margin: 0;
    color: #fff;
}

/* 文案 */
.modal-right p {
    line-height: 1.6;
}

/* ===== 手机响应式优化 ===== */
@media (max-width: 768px) {
    .modalTitle {
        font-size: small;
        background-color: #fff;
    }
    
    .gallery {
        display: grid;
        grid-template-columns: repeat(1, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .profile-text {
        height: 150px;
        overflow-y: hidden;
        line-height: 1.7;
    }
    
    .card {
        border-radius: 50% 50% 0 0 / 40% 40% 0 0;
        overflow: hidden;
        border-top: 4px solid black;
        border-left: 4px solid black;
        border-right: 4px solid black;
    }
    
    .card .card-body {
        border: none;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
        transform: translateY(20px);
        opacity: 1;
    }
    
    .card .card-body h3 {
        color: #F0597C;
        margin: 0;
        font-size: 18px;
        padding-bottom: 5px;
        font-weight: bold;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    .card .card-body a {
        display: inline-block;
        margin-right: 6px;
        margin-top: 5px;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.35);
        color: #fff;
        font-weight: bold;
        border-radius: 6px;
        text-decoration: none;
        font-size: 13px;
        transition: all 0.3s ease;
    }
    
    .card h3 {
        font-size: small;
    }
    
    .card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    .card-banner {
        font-size: 14px;
    }

    .card-banner .title {
        font-size: 13px;
        color: #F0597C;
    }

    .card-banner .desc {
        margin-top: 10px;
        font-size: 10px;
        color: #fff;
    }

    .booking-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .modal-content {
        padding: 12px;
        border-radius: 10px;
        width: 95%;
        max-width: 400px;
        height: 100%;
        overflow-y: auto;
    }

    .modal-layout {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .modal-left {
        width: 100%;
        max-height: auto;
    }

    .modal-slider {
        width: 100%;
        aspect-ratio: auto;
        max-height: 50vh;
        overflow: hidden;
    }

    #modalSlides img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .modal-right {
        width: 100%;
        gap: 10px;
    }

    .modal-right h2 {
        font-size: medium;
        color: #fff;
    }

    .modal-right p {
        font-size: 13px;
        line-height: 1.4;
        max-height: 25vh;
        overflow-y: auto;
    }

    .hero-left select {
        width: 100%;
        font-size: 16px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .icon-btn img {
        width: 20px;
        height: 20px;
    }

    .marquee-track img {
        width: auto;
        max-width: 100%;
    }

    #districtForm {
        max-height: 30px;
    }

    #districtForm.show {
        max-height: auto;
    }

    .district-btn {
        flex: 0 0 auto;
    }

    #toggleDistrictBtn {
        width: 32px;
        height: 32px;
    }

    .toggle-btn.icon-only {
        width: 32px;
        height: 32px;
        padding: 0;
        background: transparent;
    }

    #albumsToggleIcon {
        font-size: 14px;
    }

    .telegram-main {
        font-size: small;
        margin-top: 0px;
    }

    .whatsapp-main {
        margin: 0px;
        font-size: small;
    }

    .telegram-header {
        font-size: small;
    }

    .whatsapp-header {
        font-size: small;
    }

    .whatsapp-card,
    .telegram-card {
        width: auto;
        justify-content: center;
        padding: 12px;
        font-size: small;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    z-index: 10;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.profile-text {
    color: #fff;
    white-space: pre-line;
    line-height: 2;
    /* font-size: small; */
}