/* ============================================================
   经销商详情页样式
   ============================================================ */

/* 面包屑 */
.dealer-breadcrumb {
    padding: 20px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dealer-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dealer-breadcrumb a:hover {
    color: var(--gold);
}

.dealer-breadcrumb .bc-sep {
    margin: 0 10px;
    color: var(--gold);
}

.dealer-breadcrumb .bc-current {
    color: var(--gold);
}

/* 详情主体 */
.dealer-detail {
    padding: 80px 0;
    background: var(--bg-primary);
}

.dealer-detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* 图片轮播 */
.dealer-gallery {
    position: relative;
}

.gallery-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.gallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--gold);
    opacity: 0.7;
}

.gallery-placeholder span {
    font-size: 0.95rem;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.gallery-arrow:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-family: 'Space Grotesk', monospace;
    z-index: 2;
}

.gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.gallery-dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

/* 右侧信息 */
.dealer-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.dealer-info-head {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.dealer-info-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gold);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dealer-info-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.dealer-info-region {
    font-size: 0.95rem;
    color: var(--gold);
}

.dealer-info-region i {
    margin-right: 6px;
}

.dealer-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex: 0 0 96px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-label i {
    color: var(--gold);
}

.info-value {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    word-break: break-all;
}

.info-link {
    color: var(--text-warm);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: var(--gold);
}

.info-muted {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dealer-info-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.dealer-info-actions a {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-contact {
    background: var(--gold);
    color: var(--bg-primary);
    border: 1px solid var(--gold);
}

.btn-contact:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-back {
    background: transparent;
    color: var(--text-warm);
    border: 1px solid var(--border);
}

.btn-back:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* 介绍卡 */
.dealer-intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    margin-bottom: 60px;
}

.intro-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.intro-card-desc {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.intro-card-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.intro-card-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.intro-card-points li i {
    color: var(--gold);
}

/* 其他体验店 */
.dealer-related .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.dealer-related .dealers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dealer-related .dealer-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.dealer-related .dealer-card .related-card-more {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.dealer-related .dealer-card .related-card-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dealer-related .dealer-card:hover .related-card-more {
    color: var(--gold-light);
    gap: 10px;
}

.dealer-related .dealer-card:hover .related-card-more i {
    transform: translateX(4px);
}

/* 空状态 */
.dealer-detail-empty {
    padding: 80px 0;
    text-align: center;
    color: var(--text-secondary);
}

.dealer-detail-empty p {
    margin-bottom: 24px;
    font-size: 1rem;
}

.btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-back-list:hover {
    background: var(--gold-light);
}

/* 响应式 */
@media (max-width: 992px) {
    .dealer-detail-grid {
        grid-template-columns: 1fr;
    }

    .intro-card-points {
        grid-template-columns: 1fr;
    }

    .dealer-related .dealers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dealer-detail {
        padding: 50px 0;
    }

    .dealer-info {
        padding: 24px 20px;
    }

    .dealer-info-name {
        font-size: 1.4rem;
    }

    .dealer-info-actions {
        flex-direction: column;
    }

    .dealer-intro-card {
        padding: 24px 20px;
    }

    .dealer-related .dealers-grid {
        grid-template-columns: 1fr;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .info-row {
        flex-direction: column;
        gap: 6px;
    }

    .info-label {
        flex: none;
    }
}
