/* 陪玩列表页面样式 */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-btn {
    padding: 10px 20px;
    background: white;
    color: #9333ea;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.back-btn:hover {
    background: #9333ea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.companions-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 筛选侧边栏 */
.filters-sidebar {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
    sticky: top;
    top: 20px;
}

.filters-sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input[type="number"] {
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
}

.price-inputs span {
    color: #6b7280;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.apply-btn {
    padding: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.reset-btn {
    padding: 12px;
    background: #f3f4f6;
    color: #6b7280;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #e5e7eb;
}

/* 主内容区 */
.companions-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 1.1rem;
    color: #374151;
}

.results-count strong {
    color: #9333ea;
    font-size: 1.3rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-weight: 600;
    color: #6b7280;
}

.sort-options select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* 陪玩卡片网格 */
.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.companion-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.companion-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
    z-index: 10;
}

/* 悬停视频预览 */
.companion-card:hover .video-preview-trigger {
    display: block;
}

.video-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-preview-overlay.active {
    display: flex;
}

.video-preview-overlay video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
}

.video-preview-close:hover {
    background: white;
    transform: rotate(90deg);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    opacity: 0;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 2;
    pointer-events: none;
}

.companion-card:hover .video-play-icon {
    opacity: 1;
    pointer-events: all;
}

.video-play-icon:hover {
    background: rgba(118, 75, 162, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.online-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 媒体轮播 */
.media-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.media-item.active {
    opacity: 1 !important;
    z-index: 1 !important;
    display: flex !important;
}

.companion-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 统一视频尺寸 */
.companion-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片加载状态样式 */
.companion-media.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 300px;
}

.companion-media.img-loaded {
    animation: none;
    background: none;
}

.companion-media.img-error {
    background: #f5f5f5;
    border: 2px dashed #ddd;
}

/* 图片加载占位背景 */
.companion-media:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.carousel-btn {
    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%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 12px;
    height: 12px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.companion-info {
    padding: 20px;
}

.companion-info h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.location {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #fbbf24;
    font-weight: 600;
    font-size: 1rem;
}

.orders {
    color: #9ca3af;
    font-size: 0.85rem;
}

.languages {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.lang-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.skills-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.skill-tag {
    background: #fce7f3;
    color: #be185d;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bio {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.price-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #f9fafb;
    border-radius: 8px;
}

.price-item .price-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.price-item .price-amount {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.book-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

/* 无结�?*/
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
}

.no-results p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.reset-link {
    display: inline-block;
    padding: 12px 24px;
    background: #9333ea;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-link:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

/* 响应式设�?*/

/* 大屏�?(> 1440px) */
@media (min-width: 1440px) {
    .companions-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* 桌面 (1025px - 1440px) */
@media (max-width: 1440px) {
    .companions-page {
        gap: 25px;
    }
}

/* 平板横屏 (769px - 1024px) */
@media (max-width: 1024px) {
    .companions-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filters-sidebar {
        position: static;
        max-width: 100%;
        padding: 20px;
    }
    
    .companions-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .booking-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 平板竖屏和手机横�?(481px - 768px) */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .back-btn {
        width: 100%;
        text-align: center;
    }
    
    .language-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .filters-sidebar {
        padding: 15px;
    }
    
    .filter-form {
        gap: 15px;
    }
    
    .companions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }
    
    .sort-options {
        width: 100%;
    }
    
    .sort-options select {
        width: 100%;
    }
    
    .companion-card {
        max-width: 100%;
    }
    
    /* 统一移动端媒体高�?*/
    .media-carousel {
        height: 350px;
    }
    
    .price-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .price-item {
        padding: 6px;
    }
    
    .price-item .price-label {
        font-size: 0.7rem;
    }
    
    .price-item .price-amount {
        font-size: 0.9rem;
    }
    
    .book-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* 详情�?*/
    .detail-media-carousel {
        height: 400px;
    }
    
    .price-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .price-info-item .price-amount {
        font-size: 1.1rem;
    }
}

/* 手机竖屏 (320px - 480px) */
@media (max-width: 480px) {
    .top-nav {
        gap: 10px;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .language-switcher {
        gap: 6px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .filters-sidebar {
        padding: 12px;
        border-radius: 12px;
    }
    
    .filters-sidebar h2 {
        font-size: 1.1rem;
    }
    
    .filter-group label {
        font-size: 0.85rem;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .apply-btn,
    .reset-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .results-header {
        padding: 12px;
    }
    
    .results-count {
        font-size: 1rem;
    }
    
    .results-count strong {
        font-size: 1.2rem;
    }
    
    .companions-grid {
        gap: 15px;
    }
    
    .companion-card {
        border-radius: 12px;
    }
    
    /* 统一手机端媒体高�?*/
    .media-carousel {
        height: 300px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .carousel-btn.prev {
        left: 8px;
    }
    
    .carousel-btn.next {
        right: 8px;
    }
    
    .carousel-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 10px;
        height: 10px;
    }
    
    .companion-info {
        padding: 15px;
    }
    
    .companion-info h3 {
        font-size: 1.2rem;
    }
    
    .location,
    .bio {
        font-size: 0.85rem;
    }
    
    .rating {
        font-size: 0.9rem;
    }
    
    .lang-tag,
    .skill-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .price-options {
        gap: 4px;
    }
    
    .price-item {
        padding: 5px;
    }
    
    .price-item .price-label {
        font-size: 0.65rem;
    }
    
    .price-item .price-amount {
        font-size: 0.85rem;
    }
    
    .book-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    /* 详情页统一尺寸 */
    .detail-media-carousel {
        height: 350px;
    }
    
    .detail-info {
        padding: 15px;
    }
    
    .detail-info h2 {
        font-size: 1.5rem;
    }
    
    .price-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .price-info-item {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .booking-form-card {
        padding: 20px;
    }
    
    .booking-form-card h3 {
        font-size: 1.3rem;
    }
    
    .booking-form {
        gap: 15px;
    }
    
    .price-summary {
        padding: 15px;
    }
    
    .summary-row {
        font-size: 0.9rem;
    }
    
    .summary-row.total {
        font-size: 1.1rem;
    }
    
    .summary-row.total span:last-child {
        font-size: 1.3rem;
    }
}

/* 超小屏幕 (< 360px) */
@media (max-width: 360px) {
    /* 统一超小屏幕媒体高度 */
    .media-carousel {
        height: 280px;
    }
    
    .detail-media-carousel {
        height: 320px;
    }
    
    .companion-info h3 {
        font-size: 1.1rem;
    }
    
    .price-item .price-label {
        font-size: 0.6rem;
    }
    
    .price-item .price-amount {
        font-size: 0.8rem;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .carousel-btn {
        opacity: 0.8;
    }
    
    .carousel-btn:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .dot.active {
        width: 14px;
        height: 14px;
    }
    
    .book-btn,
    .apply-btn,
    .reset-btn,
    .back-btn {
        min-height: 44px;
    }
    
    .book-btn:active {
        transform: scale(0.98);
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .media-carousel,
    .detail-media-carousel {
        height: 200px;
    }
    
    .companion-info {
        padding: 10px;
    }
    
    .filters-sidebar {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* 预约页面样式 */
.booking-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.companion-detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

/* 详情页媒体轮�?*/
.detail-media-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
}

.detail-media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.detail-media-item.active {
    opacity: 1;
    z-index: 1;
}

.detail-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 统一视频尺寸 */
.detail-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    padding: 25px;
}

.detail-info h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.price-info-grid {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.price-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.price-info-item .price-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

.price-info-item .price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #9333ea;
}

.booking-form-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.booking-form-card h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 25px;
}

.booking-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.booking-form textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.price-summary {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #6b7280;
}

.summary-row.total {
    border-top: 2px solid #e5e7eb;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.summary-row.total span:last-child {
    color: #9333ea;
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .booking-page {
        grid-template-columns: 1fr;
    }
}

/* 移动端滚动优�?*/
.companions-main,
.filters-sidebar {
    -webkit-overflow-scrolling: touch;
}

/* 视频播放器移动端优化 */
video {
    max-width: 100%;
    height: auto;
}

video::-webkit-media-controls {
    display: flex !important;
}

/* 移动端表单优�?*/
@media (max-width: 768px) {
    input[type="date"],
    input[type="time"],
    input[type="number"],
    input[type="text"],
    select,
    textarea {
        font-size: 16px; /* 防止 iOS 自动缩放 */
    }
}

/* 移动端模态框优化 */
.success-message {
    position: relative;
    z-index: 100;
}

@media (max-width: 480px) {
    .success-message {
        margin: 0 -10px;
        border-radius: 0;
    }
}

/* 移动端导航优�?*/
@media (max-width: 768px) {
    .top-nav {
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 50;
        padding: 10px;
        margin: -10px -10px 20px -10px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* 移动端卡片堆叠优�?*/
@media (max-width: 480px) {
    .companion-card {
        margin-bottom: 15px;
    }
    
    .companion-card:last-child {
        margin-bottom: 0;
    }
}

/* 移动端轮播手势提�?*/
@media (hover: none) and (pointer: coarse) {
    .media-carousel::after {
        content: '�?滑动查看更多 �?;
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.75rem;
        pointer-events: none;
        opacity: 0;
        animation: fadeInOut 3s ease-in-out;
        z-index: 3;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0; }
        10%, 90% { opacity: 1; }
    }
}

/* 移动端加载状�?*/
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* 移动端空状态优�?*/
.no-results {
    padding: 40px 20px;
}

@media (max-width: 480px) {
    .no-results {
        padding: 30px 15px;
    }
    
    .no-results p {
        font-size: 1rem;
    }
}

/* 移动端筛选器抽屉式（可选） */
@media (max-width: 768px) {
    .filters-sidebar {
        position: relative;
        margin-bottom: 20px;
    }
    
    /* 可以添加展开/收起功能 */
    .filters-sidebar.collapsed {
        max-height: 60px;
        overflow: hidden;
    }
}

/* 移动端图片懒加载占位 */
.companion-media[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 移动端性能优化 */
@media (max-width: 768px) {
    .companion-card,
    .media-item,
    .carousel-btn {
        will-change: transform;
    }
    
    .media-item {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* ==========================================
   服装选择样式
   ========================================== */
.outfit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.outfit-option {
    position: relative;
    cursor: pointer;
}

.outfit-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.outfit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 8px;
}

.outfit-option:hover .outfit-card {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.outfit-option input[type="radio"]:checked + .outfit-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.outfit-option input[type="radio"]:checked + .outfit-card .outfit-name,
.outfit-option input[type="radio"]:checked + .outfit-card .outfit-price {
    color: white;
}

.outfit-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.outfit-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    transition: color 0.3s;
}

.outfit-price {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    transition: color 0.3s;
}

.outfit-option input[type="radio"]:checked + .outfit-card .outfit-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 5px;
}

/* 服装预览�?*/
.outfit-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

/* 移动端服装网�?*/
@media (max-width: 768px) {
    .outfit-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .outfit-icon {
        font-size: 2rem;
    }
    
    .outfit-name {
        font-size: 0.85rem;
    }
    
    .outfit-price {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .outfit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .outfit-card {
        padding: 12px 8px;
    }
    
    .outfit-icon {
        font-size: 1.8rem;
    }
}

/* 移动端横屏提示（可选） */
@media (max-height: 400px) and (orientation: landscape) {
    body::before {
        content: '建议竖屏浏览以获得最佳体�?;
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 0.85rem;
        z-index: 9999;
    }
}
