/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2f2423;
    background-color: #f4f2ed;
    overflow-x: hidden;
}

/* Tag div (SEO keywords section) */
.tag-div {
    position: absolute;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    visibility: hidden;
}

.tag-div h1 {
    font-size: 0;
    color: transparent;
}

.tag-div h2 {
    font-size: 0;
    color: transparent;
}

/* Header styles */
.header {
    background: linear-gradient(135deg, #2f2423 0%, #75554e 50%, #836857 100%);
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 36, 35, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #f4f2ed;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #d9c1be;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Profiles section */
.profiles-section {
    padding: 80px 20px;
    background-color: #f4f2ed;
}

.profiles-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-items: center;
}

.profile-card {
    background: linear-gradient(145deg, #ffffff, #d9c1be);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 20px 40px rgba(47, 36, 35, 0.1),
        0 8px 16px rgba(117, 85, 78, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 208, 108, 0.05), rgba(138, 188, 194, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(47, 36, 35, 0.15),
        0 12px 24px rgba(117, 85, 78, 0.12);
}

.profile-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(1.05) contrast(1.1);
}

.profile-card:hover .profile-image img {
    transform: scale(1.1);
}

.profile-name {
    text-align: center;
}

.profile-name h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2f2423;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-desc {
    font-size: 1rem;
    color: #75554e;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Contact section */
.contact-section {
    background: linear-gradient(135deg, #836857 0%, #a17d76 50%, #bfa086 100%);
    padding: 80px 20px;
    text-align: center;
    color: #f4f2ed;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #f4f2ed;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #d9c1be;
    font-weight: 300;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-dark {
    background-color: #2f2423;
    color: #f4f2ed;
    border-color: #2f2423;
}

.btn-dark:hover {
    background-color: transparent;
    color: #2f2423;
    border-color: #2f2423;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(47, 36, 35, 0.2);
}

.btn-whatsapp {
    background-color: #2bd06c;
    color: #ffffff;
    border-color: #2bd06c;
}

.btn-whatsapp:hover {
    background-color: transparent;
    color: #2bd06c;
    border-color: #2bd06c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 208, 108, 0.3);
}

/* Model Detail Page Styles */
.back-link {
    color: #f4f2ed;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #d9c1be;
}

.model-detail-section {
    padding: 50px 20px;
    background-color: #f4f2ed;
    min-height: 100vh;
}

.model-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.model-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card, .rates-card, .description-card {
    background: linear-gradient(145deg, #ffffff, #d9c1be);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 20px 40px rgba(47, 36, 35, 0.1),
        0 8px 16px rgba(117, 85, 78, 0.08);
}

.info-card h2, .rates-card h2, .description-card h2, .model-gallery h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2f2423;
    margin-bottom: 20px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(47, 36, 35, 0.1);
    font-size: 1rem;
}

.info-item strong {
    color: #75554e;
    font-weight: 600;
}

.rates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.rate-item {
    text-align: center;
    padding: 20px;
    background: rgba(117, 85, 78, 0.05);
    border-radius: 15px;
}

.rate-item h3 {
    color: #2f2423;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.rate-item p {
    color: #75554e;
    font-weight: 500;
    margin: 8px 0;
}

.deposit-note {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #2bd06c, #8abcc2);
    border-radius: 10px;
    color: white;
    font-weight: 600;
}

.description-card p {
    color: #2f2423;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.model-gallery {
    background: linear-gradient(145deg, #ffffff, #d9c1be);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 20px 40px rgba(47, 36, 35, 0.1),
        0 8px 16px rgba(117, 85, 78, 0.08);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(47, 36, 35, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.video-item {
    position: relative;
}

.video-overlay {
    position: relative;
    overflow: hidden;
}

.video-overlay::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-item:hover .video-overlay::before {
    opacity: 1;
    font-size: 3.5rem;
}

/* 视频播放时隐藏播放按钮 */
.video-overlay.playing::before {
    opacity: 0 !important;
    visibility: hidden;
}

/* 全屏按钮样式 */
.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-item:hover .fullscreen-btn {
    opacity: 1;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 全屏状态下的样式 */
.video-overlay:fullscreen {
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay:fullscreen video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.video-overlay:-webkit-full-screen {
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay:-webkit-full-screen video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.video-overlay video::-webkit-media-controls {
    display: none !important;
}

.video-overlay video::-webkit-media-controls-enclosure {
    display: none !important;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #75554e;
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(145deg, #ffffff, #d9c1be);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(47, 36, 35, 0.1);
}

/* Responsive design for detail pages */
@media (max-width: 768px) {
    .model-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .rates-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .info-card, .rates-card, .description-card, .model-gallery {
        padding: 20px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .profiles-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-card {
        max-width: 100%;
        padding: 25px;
    }

    .profile-image {
        height: 350px;
    }

    .contact-section h2 {
        font-size: 2.2rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 60px 15px 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .profiles-section {
        padding: 50px 15px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-image {
        height: 300px;
    }

    .profile-name h3 {
        font-size: 1.6rem;
    }

    .contact-section {
        padding: 50px 15px;
    }

    .contact-section h2 {
        font-size: 1.8rem;
    }
}
