/* 详情页主要样式 */
.detail-section {
    padding: 30px 0;
    background: #f8f9fa;
}

/* 产品概览区域 */
.product-overview {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.product-image {
    flex: 0 0 400px;
    border-radius: 4px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    flex: 1;
    padding-right: 30px;
}

.product-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-buttons:hover {
    background: #f0f2f5;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.phone-btn {
    background: var(--primary-color);
    color: #fff;
}

.phone-btn:hover {
    background: var(--secondary-color);
}

.wechat-btn {
    background: #07c160;
    color: #fff;
}

.wechat-btn:hover {
    background: #06ad56;
}

.qrcode-display {
    flex: 0 0 200px;
    text-align: center;
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.qrcode-display img {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qrcode-display p {
    color: #fff;
    font-size: 14px;
    background: #ff6b00;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* 主要内容区域 */
.detail-wrapper {
    display: flex;
    gap: 30px;
}

.detail-main {
    flex: 0 0 67.5%;
    max-width: 67.5%;
}

.detail-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 400px;
}

.detail-content h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.content-text {
    color: #333;
    line-height: 1.8;
}

.detail-contact {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 右侧边栏 */
.detail-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

.sidebar-block {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.block-title {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.latest-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-item {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.latest-item:hover {
    transform: translateY(-3px);
}

.latest-item a {
    text-decoration: none;
    color: inherit;
}

.item-image {
    height: 180px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-item:hover .item-image img {
    transform: scale(1.05);
}

.item-info {
    padding: 15px;
    background: #fff;
}

.item-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.item-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    font-size: 28px;
    color: var(--primary-color);
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.close-modal:hover {
    color: #666;
    background: #eee;
}

.modal-body {
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-text h3 {
    color: #333;
    font-size: 16px;
    margin: 0 0 5px;
}

.contact-text p {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.modal-qrcode {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.modal-qrcode img {
    width: 180px;
    height: 180px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.modal-qrcode p {
    color: #666;
    font-size: 14px;
    margin: 0;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-overview {
        flex-wrap: wrap;
    }

    .product-image {
        flex: 0 0 100%;
    }

    .product-info {
        flex: 1;
        min-width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .qrcode-display {
        flex: 0 0 100%;
        margin: 0 auto;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 8px;
        max-width: 250px;
    }

    .qrcode-display img {
        width: 180px;
        height: 180px;
        margin: 0 auto 10px;
    }

    .detail-wrapper {
        flex-direction: column;
    }

    .detail-main,
    .detail-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .detail-section {
        margin-top: 0;
        padding: 20px 0;
    }

    .product-overview {
        padding: 20px;
    }

    .qrcode-display {
        max-width: 200px;
        padding: 15px;
    }

    .qrcode-display img {
        width: 150px;
        height: 150px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        flex-direction: column-reverse;
        padding: 20px;
        gap: 25px;
    }

    .contact-info {
        width: 100%;
    }

    .modal-qrcode {
        width: 100%;
    }

    .modal-qrcode img {
        width: 160px;
        height: 160px;
    }

    .modal-qrcode p {
        white-space: normal;
    }

    .footer-qrcode {
        display: none;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 20px;
    }

    .detail-content {
        padding: 20px;
    }

    .modal-content {
        margin: 15px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .contact-item {
        padding: 12px;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .contact-text p {
        font-size: 16px;
    }

    .qrcode-display {
        max-width: 180px;
        padding: 12px;
    }

    .qrcode-display img {
        width: 140px;
        height: 140px;
    }

    .qrcode-display p {
        font-size: 13px;
    }
} 