/* BKKLINE 主页样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 左侧菜单栏 */
.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
}

.sidebar.open {
    left: 0;
}

/* 菜单遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.menu-item.active {
    background: #f0f4ff;
    color: #667eea;
    border-left-color: #667eea;
}

.menu-item i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* 主内容区域 */
.main-content {
    width: 100%;
    min-height: 100vh;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: none;
    margin: 0;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: 5px;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

/* 国家选择器 */
.country-selector {
    position: relative;
    display: inline-block;
}

.country-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    min-width: 140px;
}

.country-current .country-flag-img,
.country-current .country-flag,
.country-current .country-flag-emoji {
    flex-shrink: 0;
}

.country-current:hover {
    background: #f5f7fa;
    border-color: #667eea;
}

.country-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* 国家图标图片样式 */
.country-flag-img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid #eee;
    background: #f5f5f5;
}

/* 国家图标表情符号样式 */
.country-flag-emoji {
    font-size: 16px;
    display: inline-block;
    width: 20px;
    height: 15px;
    text-align: center;
    line-height: 15px;
}

/* 确保国家选择器选项中的图标对齐 */
.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 14px;
    cursor: pointer;
}

.country-option .country-flag-img,
.country-option .country-flag,
.country-option .country-flag-emoji {
    flex-shrink: 0;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.country-dropdown.show {
    display: block;
}

.country-option:hover {
    background: #f5f7fa;
}

.country-option:first-child {
    border-radius: 8px 8px 0 0;
}

.country-option:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

.country-current.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 筛选区域 */
.filters {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

/* 分页视图模式下隐藏筛选器 */
.filters.paginated-mode {
    display: none;
}

/* 无限滚动模式下显示筛选器 */
.filters.infinite-mode {
    display: flex;
}

.area-filter {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.area-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.beauty-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.beauty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #f0f0f0;
    display: block;
}

.card-content {
    padding: 15px;
}

.card-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.card-location {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.card-details {
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.stat-item {
    display: flex;
    justify-content: space-between;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* 无限滚动模式下隐藏分页 */
.pagination.infinite-mode {
    display: none;
}

/* 分页视图模式下显示分页 */
.pagination.paginated-mode {
    display: flex;
}

.page-btn {
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #f5f7fa;
    border-color: #667eea;
    color: #667eea;
    text-decoration: none;
}

.page-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

/* 详情页样式 */
.detail-page {
    display: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* 详情页时隐藏横幅 */
.detail-page.active ~ .banner {
    display: none !important;
}

body.detail-active .banner {
    display: none !important;
}

/* 隐藏滚动条但保持滚动功能 */
.detail-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 800px;
    order: initial;
    height: initial;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.detail-info::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
}

.detail-images {
    order: 1;
}

.detail-info {
    order: 2;
    padding: 20px;
    height: auto;
    max-height: none;
}

.main-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    padding: 15px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border: 2px solid #667eea;
}

.detail-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.3;
}

.basic-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stat-item-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 15px;
    white-space: nowrap;
}

.stat-icon {
    font-size: 14px;
}

.stat-text {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.body-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.contact-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
    display: inline-block;
    width: fit-content;
    text-align: initial;
}

.view-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.contact-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.contact-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #667eea;
    border-radius: 4px;
    background: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
}

.contact-link i {
    font-size: 16px;
}

.contact-id-display {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 15px;
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 8px;
    display: inline-block;
}

.beauty-name-display {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.description-text {
    line-height: 1.6;
    color: #333;
    font-size: 14px;
    margin-bottom: 15px;
}

.service-list {
    margin-bottom: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.service-icon {
    color: #4CAF50;
    font-size: 14px;
}

.fee-info {
    background: #f0f8e8;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.fee-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.fee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #333;
}

.fee-icon {
    color: #e91e63;
}

/* 统一的标签和联系按钮样式 */
.tag-button, .contact-button-style {
    background: #5e72e4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    margin: 4px 6px 4px 0;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    user-select: none;
}

.tag-button:hover, .contact-button-style:hover {
    background: #4c63d2;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(94, 114, 228, 0.3);
}

.tag-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(94, 114, 228, 0.3);
}

/* 职业信息 */
.profession-info {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.profession-label {
    font-weight: bold;
    color: #333;
}

.profession-text {
    color: #667eea;
    font-weight: 500;
}

/* 标签部分 */
.tags-section {
    margin-bottom: 20px;
}

.tags-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* 简介和详情部分 */
.summary-section, .description-section {
    margin-bottom: 20px;
}

.summary-section h3, .description-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

/* 富文本内容样式 */
.rich-text-content {
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rich-text-content p {
    margin-bottom: 10px;
}

.rich-text-content p:last-child {
    margin-bottom: 0;
}

.rich-text-content span {
    color: inherit;
}

/* 确保富文本中的特殊字符正确显示 */
.rich-text-content * {
    max-width: 100%;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 桌面版详情页样式 */
@media (min-width: 769px) {
    .detail-container {
        grid-template-columns: 500px 1fr;
        gap: 0;
        min-height: auto; /* 改为auto，不固定高度 */
        max-width: 1200px; /* 设置最大宽度 */
        margin: 0 auto; /* 水平居中 */
        box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* 添加阴影效果 */
        border-radius: 12px; /* 添加圆角 */
        overflow: hidden; /* 确保圆角效果 */
        background: white; /* 确保背景为白色 */
    }

    .detail-images {
        position: relative;
        background: #f8f9fa;
        order: initial;
    }

    .detail-info {
        padding: 30px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        /* 去除独立滚动，让整个页面统一滚动 */
        /* overflow-y: auto; */
        /* max-height: 800px; */
        order: initial;
        height: initial;
    }

    .detail-name {
        font-size: 32px;
    }

    .detail-subtitle {
        font-size: 18px;
    }

    .basic-stats {
        display: flex;
        gap: 30px;
        align-items: center;
        margin-bottom: 15px;
        flex-wrap: initial;
    }

    .stat-item-inline {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
    }

    .stat-icon {
        font-size: 18px;
    }

    .stat-text {
        color: #333;
        font-weight: 500;
    }

    .body-stats {
        display: flex;
        gap: 30px;
        align-items: center;
        margin-bottom: 20px;
        flex-wrap: initial;
    }

    .contact-button {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 25px;
        font-size: 16px;
        cursor: pointer;
        margin-bottom: 15px;
        display: inline-block;
        width: fit-content;
        text-align: initial;
    }

    .view-stats {
        display: flex;
        gap: 30px;
        margin-bottom: 15px;
        font-size: 14px;
        color: #666;
        flex-wrap: initial;
    }

    .contact-info {
        margin-bottom: 20px;
    }

    .contact-id-display {
        background: #e3f2fd;
        color: #1976d2;
        padding: 8px 15px;
        border-radius: 20px;
        font-family: monospace;
        font-size: 16px;
        margin-bottom: 10px;
        display: inline-block;
    }

    .beauty-name-display {
        font-size: 18px;
        color: #333;
        margin-bottom: 15px;
    }

    .contact-link {
        color: #667eea;
        text-decoration: none;
        font-size: 14px;
        margin-bottom: 10px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border: 1px solid #667eea;
        border-radius: 4px;
        background: none;
        transition: all 0.3s ease;
    }

    .contact-link:hover {
        background: #f8f9fa;
        color: #667eea;
        text-decoration: none;
    }

    .description-text {
        line-height: 1.8;
        color: #333;
        font-size: 16px;
        margin-bottom: 20px;
    }

    .service-list {
        margin-bottom: 20px;
    }

    .service-item {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        font-size: 15px;
        color: #333;
    }

    .service-icon {
        color: #4CAF50;
        font-size: 16px;
    }

    .fee-info {
        background: #f0f8e8;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .fee-title {
        font-size: 16px;
        font-weight: bold;
        color: #333;
        margin-bottom: 10px;
    }

    .fee-item {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 5px;
        font-size: 14px;
        color: #333;
    }

    .fee-icon {
        color: #e91e63;
    }

    /* 去掉文字区域的滚动条样式，因为不再需要独立滚动 */
    /* .detail-info::-webkit-scrollbar {
        display: none;
    } */
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .banner {
        padding: 25px 15px;
    }

    .banner h2 {
        font-size: 22px;
    }

    .main-container {
        padding: 20px 15px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-image {
        height: 220px;
    }

    .detail-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .detail-images {
        order: 1;
    }

    .detail-info {
        order: 2;
        padding: 20px;
        height: auto;
    }

    .detail-sections {
        gap: 10px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-item {
        padding: 6px;
    }

    .stat-value {
        font-size: 14px;
    }

    .filters {
        justify-content: center;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* 宣传横幅 */
.banner {
    background: #ffffff;
    color: #333;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid #eee;
}

.banner h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.banner p {
    font-size: 16px;
    color: #666;
}

/* 主要内容区域 */
.main-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 30px 20px;
} 