/* 商家详情页面样式 - 专业UI设计 */
.merchant-detail-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-top: 140px; /* 默认桌面端顶部间距 */
    padding-bottom: 100px;
}

/* 商家头部区域：轮播图 + 商家信息 */
.merchant-header-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.merchant-header-layout {
    display: flex;
    gap: 30px;
    align-items: stretch; /* 让左右两个区域高度一致 */
}


/* 左侧轮播图 */
.merchant-banner {
    flex: 1; /* 使用flex: 1让它自适应 */
    min-height: 400px; /* 最小高度，但可以自适应 */
    background: #f8f9fa;
    position: relative;
    overflow: hidden; /* 改回hidden，确保内容不溢出 */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: stretch; /* 让轮播图与右侧信息区域高度一致 */
}

.banner-swiper {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    background: #f8f9fa;
    min-height: 300px; /* 确保有最小高度 */
    overflow: hidden; /* 确保轮播图项目不会溢出 */
}

.banner-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    padding: 0;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.banner-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    background: transparent;
    display: block;
    opacity: 1;
    visibility: visible;
}

.banner-item img:hover {
    transform: scale(1.02);
}

.banner-item .no-data {
    color: #6c757d;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

/* 轮播控制按钮 */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-nav-btn:hover {
    background: rgba(255, 110, 48, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.banner-indicator.active {
    background: #FF6E30;
    transform: scale(1.2);
}

/* 右侧商家信息 */
.merchant-info {
    flex: 0 0 350px; /* 固定宽度，避免挤压 */
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
    min-height: 400px; /* 与轮播图最小高度一致 */
    justify-content: flex-start; /* 内容从顶部开始排列 */
}

.merchant-header-info {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

.merchant-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #FF6E30;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(255, 110, 48, 0.2);
}

.merchant-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-basic-info {
    flex: 1;
    padding-top: 5px;
}

.merchant-name {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.auth-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    color: #2196F3;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 10px;
    box-shadow: none;
}

.merchant-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    background: transparent;
    color: #666;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
    font-size: 14px;
    box-shadow: none;
    flex-shrink: 0;
}

.stat-value {
    font-size: 16px;
    margin-right: 4px;
}

.stat-label {
    font-size: 12px;
}

/* 合并的公司信息 */
.company-info-merged {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #495057;
    margin-right: 12px;
    min-width: 90px;
    flex-shrink: 0;
}

.info-value {
    color: #6c757d;
    flex: 1;
    word-break: break-word;
    /* 2026-09-09:服务区域在 App 端改成了多行输入,商家可能按行列城市。
       默认 white-space:normal 会把换行折成空格,pre-line 把他排的版原样呈现
       (其余连续空白照常折叠,不影响别的字段)。 */
    white-space: pre-line;
}

/* 商家信息栏内的操作按钮 */
.merchant-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.merchant-action-buttons .action-btn {
    flex: 1;
    height: 45px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.merchant-action-buttons .contact-btn {
    background: #FF6E30;
    color: white;
    box-shadow: 0 3px 10px rgba(255, 110, 48, 0.3);
}

/* 桌面端按钮保持正常宽度 */
@media (min-width: 769px) {
    .merchant-action-buttons {
        justify-content: flex-start;
        width: 72%;        /* 电脑端宽度调整为 72% */
        max-width: 100%;
        margin: 0;         /* 左右对齐上方 company-info-merged */
    }

    .merchant-action-buttons .contact-btn {
        width: 100%;
        max-width: none;         /* 按钮随容器铺满 */
        align-self: stretch;
    }
}

.merchant-action-buttons .contact-btn:hover {
    background: #e55a1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 110, 48, 0.4);
}

.merchant-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0; /* 移除顶部间距，因为现在和stats在同一行 */
}

.btn-follow {
    width: 100px;
    height: 35px;
    background: #FF6E30;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 110, 48, 0.3);
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-follow::before {
    content: "♥";
    margin-right: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-follow.followed::before {
    content: "✓";
    color: #fff;
}

.btn-follow:hover {
    background: #e55a1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 110, 48, 0.4);
}

.btn-follow.followed {
    background: #95a5a6;
    box-shadow: 0 3px 10px rgba(149, 165, 166, 0.3);
}

.btn-follow.followed:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.4);
}

/* 分割线 */
.divider {
    width: 100%;
    height: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 内容区域 */
.merchant-content {
    background: #fff;
    margin: 0 auto 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: min(1200px, 96vw);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

@media (min-width: 1280px) { 
    .merchant-content { max-width: 1280px; } 
}
@media (min-width: 1440px) { 
    .merchant-content { max-width: 1400px; } 
}
@media (min-width: 1600px) { 
    .merchant-content { max-width: 1500px; } 
}

.merchant-content:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
}

.content-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
}

.content-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #FF6E30;
    margin-right: 12px;
    border-radius: 2px;
}

.reviews-load-btn {
    font-size: 14px;
    color: #FF6E30;
    border: 1px solid rgba(255, 110, 48, 0.25);
    background: rgba(255, 110, 48, 0.08);
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.reviews-load-btn:hover:not(.is-disabled) {
    background: rgba(255, 110, 48, 0.15);
    border-color: rgba(255, 110, 48, 0.4);
    transform: translateY(-1px);
}

.reviews-load-btn.is-disabled {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: transparent;
    cursor: default;
    transform: none;
}

/* 活动列表 */
.activity-list {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.activity-item {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

/* 视频列表 */
.video-list {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.video-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.video-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.video-item:hover .video-play-icon {
    background: rgba(255, 110, 48, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    padding: 15px;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

/* 仅商家详情页的视频卡片标题，避免影响通用视频弹窗 */
@media (max-width: 768px) {
    .merchant-detail-page .video-item .video-title {
        font-size: 13px !important;
        padding: 10px 10px 12px !important;
    }
}

/* 动态列表 */
.trends-list {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.trends-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trends-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.trends-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.trends-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.trends-item:hover .trends-play-icon {
    background: rgba(255, 110, 48, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.trends-title {
    padding: 20px;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

/* 评价列表 */
.reviews-list {
    padding: 32px 30px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px 24px;
}

.review-item {
    background: #fff;
    border-radius: 22px;
    padding: 24px 26px;
    border: 1px solid #eef1f7;
    box-shadow: 0 25px 55px rgba(100, 116, 139, 0.15);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 70px rgba(100, 116, 139, 0.2);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 110, 48, 0.2);
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-username {
    font-size: 16px;
    font-weight: 700;
    color: #1f2a37;
}

.review-date {
    font-size: 13px;
    color: #94a3b8;
}

.review-score-badge {
    background: linear-gradient(135deg, #fff4eb 0%, #ffe3d0 100%);
    padding: 4px 12px;
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.review-score-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.review-score-value {
    font-size: 14px;
    font-weight: 700;
    color: #ff6e30;
    line-height: 1;
}

.review-score-unit {
    font-size: 10px;
    color: #ff9b6d;
}

.review-stars .star {
    color: #e2e8f0;
    font-size: 16px;
    margin-right: 2px;
}

.review-stars {
    display: flex;
    justify-content: center;
}

.review-stars .star.filled {
    color: #ffc043;
}

.review-item-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

.review-media {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.review-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.review-image {
    width: 108px;
    height: 108px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eef2f6;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 评价区域内的操作按钮 */
.reviews-action {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.reviews-action-btn {
    background: #FF6E30;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 110, 48, 0.3);
}

.reviews-action-btn:hover {
    background: #e55a1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 110, 48, 0.4);
}

/* 加载更多评论按钮样式 */
.load-more-reviews-btn {
    background: linear-gradient(135deg, #F58C45 0%, #E07A35 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 140, 69, 0.3);
}

.load-more-reviews-btn:hover {
    background: linear-gradient(135deg, #E07A35 0%, #D06A25 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(245, 140, 69, 0.4);
}

.load-more-reviews-btn:disabled {
    background: linear-gradient(135deg, #F58C45 0%, #E07A35 100%);
    opacity: 0.7;
    cursor: default;
    transform: none;
}

/* 底部操作栏 */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-top: 1px solid #e9ecef;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    gap: 20px;
}

.action-btn {
    flex: 1;
    height: 55px;
    background: #fff;
    color: #495057;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:last-child {
    margin-right: 0;
}

.action-btn.primary {
    background: linear-gradient(135deg, #FF6E30 0%, #FF8A50 100%);
    color: white;
    border-color: #FF6E30;
    box-shadow: 0 6px 20px rgba(255, 110, 48, 0.3);
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 110, 48, 0.4);
}

/* 图片查看器样式（与找施工页面一致） */
.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 1;
}

.image-viewer-prev,
.image-viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    color: #333;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.image-viewer-prev {
    left: -60px;
}

.image-viewer-next {
    right: -60px;
}

.image-viewer-prev:hover,
.image-viewer-next:hover {
    background: #f8f9fa;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-viewer-main {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

.image-viewer-counter {
    color: #fff;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}

.image-viewer-counter .current {
    font-weight: bold;
}

@media (max-width: 768px) {
    .image-viewer-prev {
        left: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .image-viewer-next {
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .image-viewer-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }

    .image-viewer-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .image-viewer-main {
        max-height: 70vh;
    }
}

/* 无数据状态 */
.no-data {
    text-align: center;
    color: #6c757d;
    font-size: 18px;
    padding: 60px 20px;
    font-weight: 500;
}

/* 商家详情页图片预览弹窗（默认隐藏，避免底部出现空白条） */
.image-preview-modal {
    display: none;
}

/* 评论弹窗样式 */
.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.comment-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.comment-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.comment-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-modal-close:hover {
    color: #333;
}

.comment-modal-body {
    padding: 30px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-rating label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star.active,
.star:hover {
    color: #ffc107;
}

.rating-text {
    font-weight: 600;
    color: #ffc107;
}

.comment-content label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.comment-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.comment-content textarea:focus {
    outline: none;
    border-color: #FF6E30;
    box-shadow: 0 0 0 2px rgba(255, 110, 48, 0.1);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.comment-images label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.image-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.upload-btn {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.upload-btn:hover {
    border-color: #FF6E30;
    background: #fff5f0;
}

.upload-btn span {
    font-size: 24px;
    color: #999;
    margin-bottom: 5px;
}

.upload-btn div {
    font-size: 12px;
    color: #999;
}

.uploaded-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.uploaded-image {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-image .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel,
.btn-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-submit {
    background: #FF6E30;
    color: white;
}

.btn-submit:hover {
    background: #e55a1f;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .merchant-detail-page {
        padding-top: 64px; /* 顶部略收紧（移动端按需求改为 64px） */
        padding-bottom: 72px;
        background: #f5f7fa; /* 手机端改为更简洁的浅灰背景 */
    }

    /* 商家详情头部：轮播图满宽 */
    .merchant-header-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .merchant-header-layout {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }
    
    .merchant-banner {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 220px;
        border-radius: 0;
    }
    
    .banner-swiper {
        border-radius: 0;
    }

    .merchant-info {
        gap: 12px;
        padding: 0 12px 12px;
    }
    
    .merchant-header-info {
        flex-direction: row;           /* 头像在左，文字在右 */
        align-items: center;
        text-align: left;
        gap: 12px;
    }
    
    .merchant-logo {
        width: 88px;
        height: 88px;
        align-self: flex-start;
    }
    
    .merchant-name {
        font-size: 22px;
        justify-content: flex-start;
    }
    
    .merchant-stats {
        justify-content: space-between; /* 右侧区域内部：左粉丝，右按钮 */
        gap: 8px;
        width: 100%;
        max-width: 320px;
        margin: 4px 0 0;
    }
    
    .company-info-merged {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .info-item {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .merchant-actions {
        justify-content: center;
    }
    
    .content-header {
        padding: 14px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .content-title {
        font-size: 14px; /* 手机端标题更小，避免挤占空间 */
    }
    
    /* 列表卡片里的标题（如：装修设计、电视柜等）缩小 */
    .trends-title {
        font-size: 13px;
        padding: 10px 10px 12px;
    }
    
    /* 容器左右留白去除，按需自控 */
    .merchant-detail-page .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .activity-list,
    .video-list,
    .trends-list,
    .reviews-list {
        padding: 14px;
    }
    
    .activity-list,
    .video-list,
    .trends-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 手机端两列 */
        gap: 12px;
    }

    .activity-item img,
    .video-item img,
    .trends-item img {
        height: 156px;
    }
    
    /* 手机端评论列表布局，贴合效果图1 */
    .review-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 16px 0;  /* 按需求：上下16px，左右0 */
        text-align: left;
        gap: 14px;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #f1f5f9;
        margin: 0;
    }
    
    .review-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .review-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .review-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .review-main-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
    }
    
    .review-main-top {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .review-username {
        font-size: 15px; /* 手机端用户名再小一号 */
        font-weight: 600;
    }
    
    .review-stars-inline .star {
        font-size: 18px;
        margin-right: 2px;
        color: #e2e8f0;           /* 默认灰色星星 */
    }
    
    .review-stars-inline .star.filled {
        color: #ffc043;           /* 选中星星为黄色 */
    }
    
    .review-date {
        font-size: 13px;
        color: #94a3b8;
        white-space: nowrap;
        margin-left: 8px;
    }
    
    .review-item-body {
        margin-top: 2px;
    }
    
    .review-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .action-buttons {
        padding: 8px 12px;
        flex-direction: column;
        gap: 10px;
    }
    
    /* 评论底部“评价”按钮缩小一倍 */
    .reviews-action {
        padding: 12px 16px;
    }
    
    .reviews-action-btn {
        padding: 8px 18px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .action-btn {
        height: 44px;
        font-size: 14px;
        margin-right: 0;
    }

    /* 手机端“联系商家”按钮优化 */
    .merchant-action-buttons {
        margin-top: 12px;
        padding-top: 12px;
        border-top: none;
        padding-left: 12px;
        padding-right: 12px;
        justify-content: center;
        width: 80%;
        max-width: none;
        margin: 0 auto;
    }

    .merchant-action-buttons .contact-btn {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        border-radius: 999px;
        height: 44px;
        font-size: 15px;
        padding: 0 24px;
        box-shadow: 0 6px 18px rgba(255, 110, 48, 0.25);
        letter-spacing: 0.5px;
    }
}

/* 视频弹窗样式 - 左右布局 */
/* 2026-09-19 iPhone 用 dvh:地址栏收起后可视区域变高,100% 算出来比屏幕矮,底下会露出页面 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

/* 左侧视频播放区域 */
.video-left-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.video-player-container {
    flex: 1;
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-video {
    background-color: #000;
    display: block;
    /* 初始设置，JavaScript会根据视频宽高比动态调整 */
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 右侧信息区域 */
/* 2026-09-19 名称条固定在上面,正文在下面 .video-scroll-body 里滚动(见文件末尾) */
.video-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    max-width: 400px;
    min-width: 350px;
    min-height: 0;
    overflow: hidden;
}

/* 用户信息头部 */
.video-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.video-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-user-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-username {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.video-follow-btn {
    background-color: #ff4757;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-follow-btn::before {
    content: "♥";
    margin-right: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.video-follow-btn.followed::before {
    content: "✓";
    color: #fff;
}

.video-follow-btn:hover {
    background-color: #ff3742;
}

.video-follow-btn.followed {
    background-color: #95a5a6;
    color: #fff;
}

.video-follow-btn.followed:hover {
    background-color: #7f8c8d;
}

.video-modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.video-modal-close:hover {
    color: #333;
}

/* 视频信息 */
.video-content {
    padding: 20px;
    background-color: #fff;
    color: #333;
}

.video-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #222;
}

/* 2026-09-19 正文原来 14px/#666 行距 1.5,手机上密密麻麻看不清 */
.video-description {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.75;
}

.video-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hashtag {
    color: #1da1f2;
    font-size: 14px;
    cursor: pointer;
    transition: text-decoration 0.3s;
}

.hashtag:hover {
    text-decoration: underline;
}

.video-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

/* 统计数据 */
.video-stats {
    display: flex;
    gap: 24px;
    padding: 0 20px 20px;
    background-color: #fff;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.stat-item:hover {
    color: #1da1f2;
}

.stat-icon {
    font-size: 18px;
}

.stat-count {
    font-size: 14px;
    font-weight: 500;
}

/* 评论区域 */
.video-comments-section {
    background-color: #fff;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.comments-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    flex-shrink: 0;
}

.comments-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.comments-list {
    flex: 0 0 auto;
    overflow: visible;
    padding: 0 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-username {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.comment-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-action {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.comment-action:hover {
    color: #333;
}

/* 删除评论按钮样式 */
.comment-delete {
    font-size: 12px;
    color: #ff4757;
    cursor: pointer;
    margin-left: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s;
}

.comment-delete:hover {
    background-color: #ff4757;
    color: #fff;
}

/* 视频统计按钮样式 */
.video-stats .stat-item {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    padding: 8px 12px;
    border: none;
    background: none;
}

.video-stats .stat-item:hover {
    background-color: #f5f5f5;
    transform: scale(1.05);
}

.video-stats .stat-item:active {
    transform: scale(0.95);
}

/* 移除评论按钮的特殊样式 */
.video-stats .stat-item:last-child {
    border: none;
    background: none;
}

/* 点赞按钮样式 */
.stat-item#likeButton .stat-icon {
    font-size: 20px;
    color: #999;
    transition: all 0.3s;
}

.stat-item#likeButton.liked .stat-icon {
    color: #ff4757;
}

/* 收藏按钮样式 */
.stat-item#collectButton .stat-icon {
    font-size: 20px;
    color: #999;
    transition: all 0.3s;
}

.stat-item#collectButton.collected .stat-icon {
    color: #ffa502;
}

/* 评论输入 */
.video-comment-input {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    gap: 12px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.comment-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.comment-input:focus {
    border-color: #1da1f2;
}

.send-comment-btn {
    background-color: #1da1f2;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-comment-btn:hover {
    background-color: #0d8bd9;
}

/* 无评论状态样式 */
.no-comments {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

/* 视频弹窗调试样式 */
.video-modal-content {
    position: relative;
}

.video-left-section {
    position: relative;
}

.video-right-section {
    position: relative;
}

/* 确保视频元素正确显示 */
.modal-video {
    background-color: #000;
    display: block;
    /* JavaScript会根据视频宽高比动态调整 */
    object-fit: contain;
}

/* 确保头像正确显示 */
.video-user-avatar,
.comment-avatar {
    object-fit: cover;
    border-radius: 50%;
}

/* 视频播放器响应式设计 */
@media (max-width: 1200px) {
    .video-modal-content {
        width: 98%;
        height: 95%;
    }
    
    .video-right-section {
        min-width: 300px;
    }
    
    .modal-video {
        /* JavaScript会根据视频宽高比动态调整 */
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .video-modal-content {
        flex-direction: column;
        width: 100%;
        height: 100%;
        height: 100dvh;
        border-radius: 0;
    }

    /* 2026-09-19 手机上这条「头像+名字+关注」占掉太多高度,压缩后把地方让给正文 */
    .video-user-header {
        padding: 10px 14px;
    }

    .video-user-avatar {
        width: 38px;
        height: 38px;
        border-width: 1px;
    }

    .video-user-details {
        gap: 8px;
    }

    .video-username {
        font-size: 15px;
    }

    .video-follow-btn {
        padding: 5px 12px;
        font-size: 13px;
    }

    .video-modal-close {
        font-size: 22px;
        padding: 4px;
    }
    
    /* 2026-09-19 图片/视频区收一收,给正文留位置 */
    .video-left-section {
        flex: 1;
        min-height: 200px;
        max-height: 50vh;
        max-height: 50dvh;
    }

    /* 2026-09-19 图文的图片区再收一点(Vivian:尺寸适当缩小),视频区仍是 50% */
    .video-left-section.media-image {
        min-height: 160px;
        max-height: 42vh;
        max-height: 42dvh;
    }

    
    .video-right-section {
        flex: 1;
        max-width: none;
        min-width: auto;
    }
    
    .modal-video {
        /* JavaScript会根据视频宽高比动态调整 */
        object-fit: contain;
    }
}

/* 确保视频在任何情况下都不会超出容器 */
.video-player-container {
    min-height: 200px;
}

/* 2026-09-19 竖版视频完整显示(contain),不再裁两边 */
.modal-video {
    object-fit: contain !important;
}

/* 全屏播放:忽略行内宽高,铺满屏幕但不裁剪 */
.modal-video:fullscreen,
.modal-video:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* 2026-09-19 「商家名称条 + 标题」固定在上面,正文在下面自己的盒子里滚动(容器由 JS 组装)。
   这样正文不会滑到名称条底下被那块白底压住。 */
.video-sticky-head {
    flex: 0 0 auto;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.video-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background-color: #fff;
}

.video-sticky-head .video-user-header {
    border-bottom: none;
}

.video-sticky-head .video-title {
    padding: 0 20px 12px;
    margin-bottom: 0;
}


/* 2026-09-19 图片全屏查看(视频本来就有全屏,图片原来点了没反应) */
.bb-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.bb-image-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.bb-image-viewer-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.bb-image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.bb-image-viewer-nav.bb-prev { left: 10px; }
.bb-image-viewer-nav.bb-next { right: 10px; }

.bb-image-viewer-counter {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}


/* 2026-09-19 图文的图片区改白底(和 App「案例详情」一致):尺寸不变,白边比黑边显大。
   视频区保持黑底。 */
.video-left-section.media-image,
.video-player-container.media-image,
.media-image .image-carousel,
.media-image .carousel-container,
.media-image .carousel-slide {
    background-color: #fff;
}

/* 2026-09-20 区块标题右侧的「全部」入口(跳商家全部作品页) */
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.content-more {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    color: #FF6E30;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
}

.content-more:hover {
    background: #FFF1E9;
}
