/* style.css - 完整样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-size: 22px;
    margin-bottom: 3px;
    font-weight: bold;
}

.logo p {
    font-size: 12px;
    opacity: 0.9;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* 页面头部 */
.page-header {
    padding: 30px 0 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

/* 搜索框 */
.search-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.search-form button {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #5a6fd8;
}

.clear-search {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    margin-left: 10px;
}

/* 技师列表 */
.coach-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.coach-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* 头像点击区域 */
.coach-image-link {
    display: block;
    text-decoration: none;
    position: relative;
}

/* 技师头像样式 - 显示上半部分 */
.coach-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.coach-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* 重点：显示图片上半部分 */
    transition: transform 0.5s ease;
}

.coach-card:hover .coach-avatar {
    transform: scale(1.05);
}

.coach-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.coach-status.online {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.coach-status.offline {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

.license-badge-small {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

/* 技师信息 */
.coach-info {
    padding: 20px;
}

.coach-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.coach-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.coach-name a:hover {
    color: #667eea;
}

.coach-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.coach-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    font-size: 14px;
}

.coach-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coach-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-detail, .btn-book {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-detail {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-book {
    background: #667eea;
    color: white;
}

.btn-detail:hover {
    background: #eef1ff;
}

.btn-book:hover {
    background: #5a6fd8;
}

/* 没有技师时的提示 */
.no-coaches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-coaches-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.no-coaches h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}

.no-coaches p {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 16px;
}

.btn-primary {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #5a6fd8;
}

/* 分页 */
.pagination-container {
    margin: 40px 0;
    text-align: center;
}

.page-info {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.current-page {
    color: #667eea;
    font-weight: bold;
}

.total-pages {
    color: #667eea;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.page-link {
    display: inline-block;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.page-link:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-link.prev,
.page-link.next {
    background: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
}

.page-link.prev:hover,
.page-link.next:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* 悬浮下载APP框 */
.app-download-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 75, 43, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
    display: none; /* 默认隐藏，由JS控制显示 */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-download-float .app-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.app-download-float .app-content {
    flex: 1;
}

.app-download-float .app-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.app-download-float .app-desc {
    font-size: 12px;
    opacity: 0.9;
}

.app-download-float .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.app-download-float .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.app-download-float .download-btn {
    background: white;
    color: #FF4B2B;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.app-download-float .download-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #667eea;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    color: #bdc3c7;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 详情页样式 */
.detail-container {
    padding: 20px 0 40px;
}

.back-button {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #eef1ff;
}

.detail-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 详情页响应式布局 */
@media (min-width: 768px) {
    .detail-content {
        display: grid;
        grid-template-columns: 350px 1fr;
        min-height: 600px;
    }
    
    .detail-images {
        border-right: 1px solid #eee;
    }
}

.detail-images {
    padding: 20px;
    background: #f8f9fa;
}

.detail-images img {
    object-position: top center; /* 统一设置 */
}

.image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* 关键：确保显示图片顶部 */
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

/* 详情页信息区域 */
.detail-info {
    padding: 30px;
}

.detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-header h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.coach-status-large {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

.coach-status-large.online {
    background: #4CAF50;
    color: white;
}

.coach-status-large.offline {
    background: #f44336;
    color: white;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.info-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.info-value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.license-badge-large {
    padding: 6px 15px;
    background: #FF9800;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

.service-description {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag {
    background: #eef1ff;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.booking-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.booking-btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.booking-btn.phone {
    background: #4CAF50;
    color: white;
}

.booking-btn.app {
    background: #2196F3;
    color: white;
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 错误页面 */
.error-page {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.error-page h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.error-page p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        display: none;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .coach-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .coach-image {
        height: 220px;
    }
    
    .detail-images {
        padding: 15px;
    }
    
    .image-slider {
        height: 350px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .detail-images .thumbnail-images {
        display: none;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-options {
        flex-direction: column;
    }
    
    .app-download-float {
        bottom: 20px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .app-download-float .app-icon {
        margin-bottom: 10px;
    }
    
    .app-download-float .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .app-download-float .download-btn {
        margin-top: 10px;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .coach-image {
        height: 200px;
    }
    
    .image-slider {
        height: 280px;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .pagination {
        justify-content: space-between;
    }
    
    .page-link {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }
}

/* ====== 针对 detail.php 页面的移动端布局优化 ====== */

/* 1. 修复标题和状态标记的布局：确保它们在同一行 */
.detail-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* 关键：防止换行 */
    margin-bottom: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.detail-title {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px; /* 为状态标记留出空间 */
}

/* 2. 调整状态标记的样式，使其更紧凑 */
.coach-status-large {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0; /* 关键：防止被压缩 */
}

.coach-status-large.online {
    background: #4CAF50;
    color: white;
}

.coach-status-large.offline {
    background: #f44336;
    color: white;
}

/* 3. 修复基本信息块的内边距，防止在移动端贴边 */
.info-section .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    background: #f8f9fa;
    padding: 20px 15px; /* 增加内边距，特别是左右 */
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.3;
}

/* 4. 预约提示文本样式 */
.booking-tip {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 5. 移动端响应式调整 */
@media (max-width: 767px) {
    /* 移动端标题区域调整 */
    .detail-header-container {
        flex-direction: row; /* 确保水平排列 */
        align-items: center;
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .detail-title {
        font-size: 20px;
        padding-right: 10px;
    }
    
    .coach-status-large {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 移动端基本信息网格调整为单列 */
    .info-section .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-item {
        padding: 18px 15px;
        margin: 0 5px; /* 增加左右外边距，避免贴边 */
    }
    
    .info-label {
        font-size: 12px;
    }
    
    .info-value {
        font-size: 18px;
    }
    
    /* 调整服务描述等区域的边距 */
    .detail-section {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 图片轮播区域在移动端的微调 */
    .image-slider {
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
        border-radius: 0;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕进一步优化 */
    .detail-header-container {
        padding: 12px 0;
    }
    
    .detail-title {
        font-size: 18px;
    }
    
    .coach-status-large {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .info-item {
        padding: 15px 12px;
        margin: 0 3px;
    }
    
    .info-value {
        font-size: 16px;
    }
    
    .image-slider {
        height: 280px;
    }
}

/* 6. 桌面端大屏幕优化 */
@media (min-width: 1200px) {
    .info-section .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ====== 全屏图片查看器相关样式 ====== */

/* 确保轮播图片显示顶部 */
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* 确保显示图片顶部 */
}

/* 缩略图显示顶部 */
.thumbnail-images img {
    object-position: top center;
    object-fit: cover;
}

/* 全屏查看器基础样式 */
.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fullscreen-viewer.active {
    display: flex;
    opacity: 1;
}

.fullscreen-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.viewer-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10000;
}

.viewer-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.viewer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.viewer-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10000;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-counter {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 10000;
}

/* 图片点击效果 */
.slider-slide {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slider-slide:hover {
    transform: scale(1.02);
}

.thumbnail-images img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .viewer-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .image-counter {
        bottom: 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .fullscreen-image-container {
        max-width: 95%;
        max-height: 70%;
    }
}