/* 基础样式 */
:root {
    --primary-color: #e83e8c;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #fff;
    --black: #000;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d6336c;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 头部样式 */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    position: relative;
}
.header-top .goback{
    position: absolute;
    width: 60px;
}
.header-top .goback img{
    width: 24px;
}

.site-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}
.show-title{
    text-align: center;
    width: 100%;
}

.search-toggle {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-toggle:hover {
    background-color: #d6336c;
}

.back-button {
    background-color: #f1f3f5; /* 柔和灰色背景 */
    color: var(--primary-color); /* 用主色作为文字颜色，保持统一 */
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    box-sizing: border-box;
}

.back-button:hover {
    background-color: #e9ecef;
    border-color: #c92a2a; /* 可选：hover 时略微加重边框色 */
    color: #c92a2a;
}

.search-panel {
    display: none;
    padding: 0;
    border-top: 1px solid var(--border-color);
}

.search-panel.active {
    display: block;
}

.search-form {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 10px;
    font-size: 14px;
}

.form-group {
    flex: 1 0 150px;
    margin: 0 10px 5px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.range-group {
    flex: 1 0 100%;
}

.range-group input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.range-values {
    text-align: center;
    font-size: 14px;
}

.form-actions {
    margin-top: 10px;
}
.form-actions button{
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
}

/* 排序选项 */
.sort-options {
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.sort-label {
    margin-right: 10px;
    font-weight: 600;
}

.sort-options a {
    margin: 0 5px;
    padding: 3px 10px;
    border-radius: 3px;
    transition: var(--transition);
    font-size: 14px;
}

.sort-options a.active,
.sort-options a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 模特列表 */
.model-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 8px 0;
}

.model-item {
    background-color: var(--white);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.model-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.model-image-container {
    position: relative;
    padding-top: 133.33%; /* 3:4 长宽比 */
    overflow: hidden;
}

.model-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 5px 5px 0 5px;
}

.model-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.model-stats {
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 详情页样式 */
.model-detail {
    background-color: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    margin-top: 10px;
}

.detail-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.model-gallery {
    margin-bottom: 10px;
}

/*thumbnail-container*/
.thumbnail-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
}
.thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    scroll-snap-align: start;
    margin-right: 5px;
}
.thumbnail:last-child{
    margin-right: 0;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-info {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.model-name {
    font-size: 16px;
    color: var(--primary-color);
}

.info-list {
    margin-bottom: 20px;
}

.info-list li {
    display: flex;
    margin-bottom: 8px;
    font-size: 15px;
}
.info-list li.primary{
    color: var(--primary-color);
    font-weight: bold;
}

.info-label {
    font-weight: 600;
    min-width: 140px;
}

.off-tips {
  background-color: #fff4e5;
  border: 1px solid #ffc107;
  color: #8a6d3b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.off-tips a{
    color: var(--primary-color);
    font-weight: bold;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-contact {
    flex: 1 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-contact img{
    width: 16px;
}

.btn-call {
    background-color: #28a745;
    color: var(--white);
}

.btn-call:hover {
    background-color: #218838;
}

.btn-sms {
    background-color: #17a2b8;
    color: var(--white);
}

.btn-sms:hover {
    background-color: #138496;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-description {
    
}

.description-content p {
    margin-bottom: 10px;
}

.model-videos {
    
}

.video-container {
    
}

.video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    margin-bottom: 10px;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--primary-color);
}

.review-item {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-author {
    font-weight: 600;
}

.review-date {
    font-size: 12px;
    color: var(--secondary-color);
}

.btn-add-review {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-review:hover {
    background-color: #d6336c;
}

.review-form {
    display: none;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.review-form.active {
    display: block;
}

.review-form .form-group {
    margin-bottom: 15px;
}

.review-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* 页脚样式 */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 20px 0 20px;
}
.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #adb5bd;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .model-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .model-stats{
        font-size: 18px;
        padding-bottom: 5px;
    }   
    .detail-top {
        flex-direction: row;
        gap: 10px;
    }
    
    .model-gallery {
        flex: 1;
        margin-bottom: 0;
    }
    .thumbnail-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        flex-wrap: wrap;   /* 允许换行 */
        justify-content: space-between;  /* 控制列之间的间距 */
        gap: 10px;
    }
    .thumbnail {
        margin: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        cursor: pointer;
    }
    .thumbnail img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .model-info {
        flex: 1;
    }

    .video-container {
        display: flex;
        gap: 10px;
    }

    .video-thumbnail {
        width: 400px;
    }
}

@media (min-width: 992px) {
    .model-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
    
    .form-group {
        flex: 1 0 250px;
    }
}
.contact-ad img{
    width: 100%;
    border-radius: 6px;
}

/*contact-us*/
.contact-us{
    text-align: center;
    background-color: #ffe549;
}
.contact-us h1{
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 10px;
}
.contact-us h2{
    color: #128c7e;
    font-size: 18px;
}
.contact-us p{
    margin-bottom: 10px;
}
.contact-us span.primary{
    color: var(--primary-color);
}
.contact-us p.text-left{
    text-align: left;
}
.contact-us p a{
    color: var(--primary-color);
    text-decoration: underline;
}
.contact-us img{
    width: 100%;
    border-radius: 8px;
}

/*join-us*/
.join-us{
    display: grid;
    padding: 5px 2px 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
.join-us .item.telegram{
    background-color: rgb(0, 136, 204);
}
.join-us .item.whatsapp{
    background-color: rgb(37, 211, 102);
}
.join-us .item.massage{
    background-color: #FF6B9D;
}
.join-us .item.contact{
    background-color: #6C5CE7;
}
.join-us .item{
    background-color: rgb(0, 136, 204);
    border-radius: 6px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 8px 0;
}
.join-us .item img{
    width: 22px;
    margin-right: 5px;
}

/*friendly-wrap*/
.friendly-wrap{
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.friendly-wrap .title-1{
    font-size: 130%;
    font-weight: bold;
    color: rgb(0, 176, 80);
    text-align: center;
    margin-bottom: 10px;
}
.friendly-wrap .title-2{
    font-size: 115%;
    font-weight: bold;
    color: rgb(255, 0, 0);
    text-align: center;
    margin-bottom: 10px;
}
.friendly-wrap .text{
    margin-bottom: 8px;
}
.friendly-wrap .line-hr{
    border-bottom: 1px solid #ececec;
    margin-bottom: 15px;
    padding-bottom: 15px;
    padding-top: 10px;
}

/*contact-about*/
.contact-about{
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
}
.contact-about .title-0{
    font-size: 150%;
    font-weight: bold;
    color: rgb(255, 0, 0);
    text-align: center;
    margin-bottom: 5px;
}
.contact-about .title-1{
    font-size: 130%;
    font-weight: bold;
    color: rgb(0, 176, 80);
    text-align: center;
    margin-bottom: 5px;
}
.contact-about .title-2{
    font-size: 115%;
    font-weight: bold;
    color: rgb(255, 0, 0);
    text-align: center;
    margin-bottom: 5px;
}