/* ========== 幻灯片轮播 ========== */
.swiper-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-card);
}

.swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 240px;
    position: relative;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
}

/* 指示器 */
.swiper-pagination {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

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

.swiper-pagination-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}

/* 左右箭头 */
.swiper-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-container:hover .swiper-arrow {
    opacity: 1;
}

.swiper-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.swiper-arrow.prev {
    left: 10px;
}

.swiper-arrow.next {
    right: 10px;
}

.swiper-arrow svg {
    width: 16px;
    height: 16px;
}

/* ========== Footer 底部信息 ========== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 24px 16px;
    margin-top: 12px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    /* background: var(--primary); */
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 133px;
    height: 67px;
    object-fit: contain;
    display: block;
}

.footer-info {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-info a {
    color: var(--primary);
    text-decoration: none;
}

.footer-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 32px 20px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0 40px;
        align-items: start;
    }

    .footer-logo {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .footer-logo-img {
        width: 173px;
        height: 87px;
    }

    .footer-info {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-links {
        grid-column: 3;
        grid-row: 1;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 0;
    }

    .footer-divider {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 20px 0 16px;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (min-width: 1025px) {
    .footer-logo-img {
        width: 200px;
        height: 100px;
    }
}

/* ========== 浮动询价按钮 ========== */
.float-inquire-btn {
    position: fixed;
    right: 16px;
    bottom: 80px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
}

.float-inquire-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.float-inquire-btn svg {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .float-inquire-btn {
        right: 24px;
        bottom: 100px;
        padding: 14px 22px;
        font-size: 15px;
    }
}

/* ========== Category Grid 分类入口 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

.category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.category-card:hover::after {
    top: -30%;
    right: -30%;
}

/* 各分类卡片背景色 */
.category-card:nth-child(1) { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.category-card:nth-child(2) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.category-card:nth-child(3) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.category-card:nth-child(4) { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.category-card:nth-child(5) { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.category-card:nth-child(6) { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333; }

.category-icon {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background: rgba(255,255,255,0.35);
}

.category-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.category-name {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.category-desc {
    position: relative;
    z-index: 2;
    font-size: 11px;
    opacity: 0.9;
    text-align: center;
}

/* 平板端 3列 */
@media (min-width: 480px) and (max-width: 767px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .category-card {
        padding: 28px 16px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
    }

    .category-icon svg {
        width: 28px;
        height: 28px;
    }

    .category-name {
        font-size: 17px;
    }

    .category-desc {
        font-size: 12px;
    }
}

/* 电脑端一行6个 */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .category-card {
        padding: 28px 14px;
        min-height: 140px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 14px;
    }

    .category-icon svg {
        width: 30px;
        height: 30px;
    }

    .category-name {
        font-size: 17px;
    }

    .category-desc {
        font-size: 12px;
    }
}

@media (min-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ========== Detail Page 详情页 ========== */
.detail-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

/* ========== Site Header ========== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.site-header-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
}

.site-header-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.site-header-actions {
    display: flex;
    gap: 8px;
}

.header-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ========== Layout ========== */
.detail-layout {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.detail-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-right {
    width: 100%;
}

/* ========== Info Card ========== */
.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.info-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

/* ========== Gallery ========== */
.gallery-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.gallery-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.gallery-sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    z-index: 20;
    pointer-events: none;
}

.gallery-sold-stamp img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    opacity: 0.9;
}

.gallery-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-slide {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
}

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

.gallery-pagination {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.gallery-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #fff;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
}

.gallery-container:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

.gallery-arrow svg {
    width: 20px;
    height: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    z-index: 10;
}

/* ========== Badge ========== */
.info-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.info-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.info-badge-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.info-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========== Price Section ========== */
.info-price-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
}

.info-price-main {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.info-price-main small {
    font-size: 16px;
    font-weight: 500;
}

.info-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    opacity: 0.9;
}

.info-price-original {
    text-decoration: line-through;
    opacity: 0.7;
}

.info-down-payment strong {
    font-weight: 700;
}

/* ========== Quick Info ========== */
.info-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.info-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 12px;
}

.info-quick-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 8px;
    flex-shrink: 0;
}

.info-quick-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
}

.info-quick-content {
    min-width: 0;
}

.info-quick-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.info-quick-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== Specs Section ========== */
.info-specs-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
}

.info-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.info-specs-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}

    .info-spec-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        background: var(--bg-primary);
        border-radius: 8px;
    }

    .info-spec-label {
        font-size: 13px;
        color: var(--text-tertiary);
        flex-shrink: 0;
        margin-right: 12px;
    }

    .info-spec-value {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-primary);
        text-align: right;
    }

/* ========== Merchant Section ========== */
.info-merchant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 10px;
}

.merchant-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.merchant-info {
    flex: 1;
    min-width: 0;
}

.merchant-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.merchant-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.merchant-tag {
    padding: 2px 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    border-radius: 3px;
}

.merchant-addr {
    font-size: 11px;
    color: var(--text-tertiary);
}

.merchant-stats {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.merchant-stat {
    text-align: center;
    flex: 1;
}

.merchant-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.merchant-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ========== Action Buttons ========== */
.info-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.info-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.info-btn-call {
    background: #fff;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.info-btn-call:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.info-btn-inquire {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.info-btn-inquire:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4);
}

.info-btn-collect {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.info-btn-collect:hover {
    border-color: #ff4757;
    color: #ff4757;
}

/* ========== Responsive ========== */
@media (min-width: 768px) {
    .site-header {
        padding: 14px 30px;
    }

    .detail-layout {
        flex-direction: row;
        gap: 24px;
        padding: 24px 30px;
    }

    .detail-left {
        flex: 1;
        max-width: calc(100% - 320px);
    }

    .detail-right {
        width: 300px;
        flex-shrink: 0;
    }

    .gallery-slide {
        aspect-ratio: 16 / 10;
    }

    .info-card {
        padding: 20px;
    }

    .info-title {
        font-size: 20px;
    }

    .info-price-main {
        font-size: 36px;
    }

    .info-quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .info-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (min-width: 1024px) {
    .site-header {
        padding: 14px 40px;
    }

    .detail-layout {
        gap: 30px;
        padding: 30px 40px;
    }

    .detail-left {
        max-width: calc(100% - 340px);
    }

    .detail-right {
        width: 320px;
    }
}

@media (min-width: 1200px) {
    .detail-layout {
        gap: 40px;
        padding: 30px 60px;
    }

    .detail-left {
        max-width: calc(100% - 360px);
    }

    .detail-right {
        width: 340px;
    }

    .info-quick-grid {
        gap: 14px;
    }
}

/* ========== 幻灯片响应式样式 ========== */
@media (min-width: 1200px) {
    .swiper-container {
        height: 320px;
    }
    
    .swiper-slide {
        height: 320px;
    }
    
    .swiper-slide img {
        height: 320px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .swiper-container {
        height: 280px;
    }
    
    .swiper-slide {
        height: 280px;
    }
    
    .swiper-slide img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .swiper-container {
        height: 200px;
    }
    
    .swiper-slide {
        height: 200px;
    }
    
    .swiper-slide img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .swiper-container {
        height: 160px;
    }
    
    .swiper-slide {
        height: 160px;
    }
    
    .swiper-slide img {
        height: 160px;
    }
}
