* {
    scroll-behavior: smooth;
}

/* Prevent accidental horizontal overflow caused by 100vw elements */
html,
body {
    overflow-x: hidden;
}

/* 基础样式 - 暗色主题（已调亮） */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #171717;
    /* lighter dark background */
    color: #f2f1ee;
    /* slightly brighter text */
}

header {
    background: linear-gradient(180deg, #0b0b0b 0%, #0b0b0b 70%);
    color: #fff;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 20;
}

header .logo {
    font-size: 20px;
    font-weight: 700;
}

/* Logo image */
header .logo img {
    width: auto;
    display: block;
}

/* gold gradient along header bottom edge */
header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 6px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.0) 0%, rgba(212, 175, 55, 0.5) 50%, rgba(212, 175, 55, 0.0) 100%);
    pointer-events: none;
}

/* Header navigation: fixed pixel sizes and spacing for predictable mobile layout */
header nav ul {
    list-style: none;
    display: flex;
    gap: 14px;
    /* desktop gap: 14px as requested */
    margin: 0;
    padding: 0;
    align-items: center;
}

header nav ul li a {
    color: #f3f3f3;
    text-decoration: none;
    font-weight: 600;
    font-size: 25px;
    /* desktop font-size 14px */
    opacity: 0.95;
    padding: 6px 8px;
    /* padding 6-8px */
    display: inline-block;
    letter-spacing: 0.2px;
    text-align: center;
}

/* Language toggle buttons */
.nav-lang-toggle {
    display: flex;
    gap: 5px;
}

.nav-lang-toggle .lang-btn {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    width: 45px;
    /* 设置固定宽度 */
    text-align: center;
    /* 文本居中 */
    box-sizing: border-box;
    /* 确保padding和border包含在宽度内 */
}

.nav-lang-toggle .lang-btn.active {
    background: #c01b1b;
    border-color: #c01b1b;
    color: #fff;
}

.hidden {
    display: none;
}

/* Mobile: wrap navigation items for better visibility */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        /* Stack logo and nav vertically */
        gap: 10px;
        padding: 15px 20px;
        padding-bottom: 45px;
        /* Add space for the absolute positioned toggle */
    }

    header nav ul {
        flex-wrap: wrap;
        /* Allow items to wrap to the next line */
        justify-content: center;
        /* Center the items */
        gap: 4px 10px;
        /* row-gap and column-gap */
        padding: 5px 0 0 0;
    }

    header nav ul li a {
        font-size: 13px;
        /* A more readable font size */
        padding: 6px 10px;
    }

    .nav-lang-toggle {
        position: absolute;
        bottom: 10px;
        right: 20px;
    }
}

.btn {
    background: linear-gradient(135deg, #4a0d0d 0%, #8b1212 50%, #c01b1b 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    /* fixed pixel size for buttons */
    border: 1px solid rgba(255, 200, 20, 0.06);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35), inset 0 -2px 5px rgba(0, 0, 0, 0.22);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.42), inset 0 -1px 4px rgba(255, 255, 255, 0.02);
}

/* Icon inside buttons */
.btn i {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    color: #fff;
}

/* Hero 区域 */

.hero {
    position: relative;
    background-image: url('https://miuohcetrjihx34xc.com/jbescortsvalentine/static/jbporny/head.png?v=1');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 160px 20px;
    color: #fff;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.555) 0%, rgba(54, 54, 54, 0.164) 60%);
    z-index: 1;
    pointer-events: none;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero .btn {
    margin: 5px;
}

/* 服务区块 */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
    color: #e6e6e6;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.services .card {
    background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 200, 20, 0.03);
}

.services i {
    font-size: 30px;
    color: #7E0C0C;
    margin-bottom: 10px;
}

/* 女生画廊 */
.gallery .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: stretch;
}



/* Marquee / continuous horizontal gallery */
.gallery-marquee {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.gallery-marquee .marquee-track {
    display: flex;
    /* animation properties driven by JS via CSS variables for smooth, responsive control */
    /* defaults (can be overridden by JS after measuring) */
    --marquee-duration: 8s;
    --marquee-shift: 50%;
    --marquee-item-width: 260px;
    --marquee-gap: 20px;
    --marquee-image-height: 400px;
    animation: marquee-scroll var(--marquee-duration) linear infinite;
    will-change: transform;
}

.marquee-content {
    display: flex;
    align-items: stretch;
    gap: var(--marquee-gap);
    /* add a right margin so the end of one group keeps the same spacing before the next group */
    margin-right: var(--marquee-gap);
    flex-shrink: 0;
}

.gallery-marquee .marquee-track .girl {
    /* force each item to the same width so gaps are consistent */
    flex: 0 0 var(--marquee-item-width);
    display: flex;
    flex-direction: column;
    background: transparent;
    /* remove black background for marquee cards */
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    /* remove shadows so only images show */
    padding: 0;
}

.gallery-marquee .marquee-track img {
    /* force fixed rendered size using the same item width and a fixed image height */
    width: var(--marquee-item-width);
    height: var(--marquee-image-height);
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

/* hide names inside marquee cards */
.gallery-marquee .marquee-track .girl p {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        /* move left by the computed shift (px) for a seamless loop */
        transform: translate3d(calc(-1 * var(--marquee-shift)), 0, 0);
    }
}

/* Pause on hover/focus for accessibility */
.gallery-marquee:hover .marquee-track,
.gallery-marquee:focus-within .marquee-track {
    animation-play-state: paused;
}

/* CHANGED: 2025-09-04 - min-height made auto to tighten layout (was 320px)
           Updated: remove parent background so images fill and no visible black edges */
.gallery .girl {
    /* card background and layout: keep images centered, give a subtle panel look */
    background: linear-gradient(18deg, #5e1d1d 0%, #0f0f0f 100%);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 200, 20, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* space-between ensures the CTA stays at the card bottom */
    align-items: center;
    padding: 14px;
    height: 100%;
    /* fill the grid row so all cards appear same height */
    box-sizing: border-box;
}

/* 3-column responsive grid for girls section */
.grid.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: stretch;
    /* make implicit rows share available height so cards align */
    grid-auto-rows: 520px;
}

/* CHANGED: 2025-09-04 - unified image sizing and removed letterbox/bg; using object-fit: cover to ensure same visual size */
.grid.three-col .girl img {
    width: 60%;
    height: 280px;
    /* force fill and same size for every image */
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px 10px 0 0;
    /* round top corners to match card */
}

/* CHANGED: 2025-09-04 - adjusted padding and font-size for readability with new image layout */
.grid.three-col .girl p {
    padding: 12px 0;
    /* balanced vertical padding; width will control horizontal spacing */
    text-align: left;
    color: #efe7d5;
    font-size: 14px;
    /* slightly larger for readability */
    margin: 0;
    line-height: 1.5;
    flex: 0 0 auto;
    width: 60%;
    /* match image width */
}

/* CHANGED: 2025-09-04 - adjusted button spacing for new layout */
.grid.three-col .girl .btn {
    margin: 8px 0 14px;
    /* keep CTA centered and fixed-width to match image */
    padding: 9px 14px;
    font-size: 14px;
    width: 60%;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    align-self: center;
    margin-top: auto;
    /* ensure button is pushed to the bottom of the card */
}

@media (max-width: 900px) {
    .grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .grid.three-col {
        grid-template-columns: 1fr;
    }

    .grid.three-col .girl img {
        height: 220px;
        /* slightly larger than very small to keep visibility */
        /* smaller on small screens */
    }

    .grid.three-col .girl p {
        font-size: 12px;
        /* slightly smaller on narrow screens */
        padding: 8px 0;
        width: 90%;
    }

    .grid.three-col .girl .btn {
        margin: 8px 0 12px;
        padding: 8px 12px;
        font-size: 13px;
        width: 90%;
    }
}

.gallery img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.32);
}

/* ENSURE: requested size for three-col gallery card images
           Keep this selector after the general .gallery img so it overrides
           without touching the marquee image sizing (which uses its own vars). */
.gallery .grid.three-col .girl img {
    width: 60%;
    height: 280px;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px 10px 0 0;
}

.gallery .girl p {
    margin: 12px 16px;
    flex: 0 0 auto;
}

/* 博客 */
.blog .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.blog article {
    background: linear-gradient(180deg, #0f0f0f, #141414);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 200, 20, 0.03);
}

/* 常见问题 / 折叠式 Accordion */
.faq .faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq .faq-item {
    background: linear-gradient(180deg, #0f0f0f, #141414);
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 200, 20, 0.03);
    overflow: hidden;
}

.faq .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: 0;
    color: #efe7d5;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

.faq .faq-question:focus {
    outline: 2px solid rgba(212, 175, 55, 0.18);
    outline-offset: 2px;
}

.faq .faq-question .chev {
    transition: transform .18s ease;
    margin-left: 12px;
    color: #f3d58a;
}

.faq .faq-item[aria-expanded="true"] .faq-question .chev {
    transform: rotate(180deg);
}

.faq .faq-answer {
    padding: 0 18px 16px 18px;
    color: #e6e6e6;
    line-height: 1.6;
    font-size: 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(0, 0, 0, 0.02));
}

.faq .faq-answer p {
    margin: 10px 0 0 0;
}

.faq .faq-answer a.check-link {
    display: inline-block;
    margin-top: 10px;
    color: #ffd76b;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 600px) {
    .faq .faq-question {
        font-size: 15px;
        padding: 12px 14px;
    }

    .faq .faq-answer {
        font-size: 14px;
        padding: 0 14px 14px 14px;
    }
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: start;
}

.review-card {
    background: linear-gradient(180deg, #1b1b1b, #141414);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.36);
    text-align: left;
    border: 1px solid rgba(255, 200, 20, 0.025);
}

.review-card .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 12px;
}

.review-card .meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.review-card .stars {
    color: #f5a623;
    margin-bottom: 10px;
    font-size: 16px;
}

.review-card .body {
    clear: both;
    margin-top: 8px;
    color: #333;
}

footer {
    background: linear-gradient(180deg, #4c5356, #3f4447);
    color: #efe7d5;
    text-align: center;
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 200, 20, 0.03);
}

footer .social a {
    color: #f3f3f3;
    margin: 0 10px;
    font-size: 20px;
    opacity: 0.95;
}