/* 文章详情 */
.news-detail {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.article-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    gap: 1.5rem;
}

.article-content {
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.article-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: #f5f5f5;
    border-radius: 4px;
    color: #666;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    background: #e60012;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.share-btn:hover {
    background: #c70012;
}

/* 相关新闻 */
.related-news {
    margin-top: 3rem;
}

.related-news h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-item h3 {
    padding: 1rem;
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.related-item p {
    padding: 0 1rem 1rem;
    color: #888;
    font-size: 0.9rem;
}

/* 器材详情 */
.equipment-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-gallery {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    height: 400px;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

.product-info {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.price {
    font-size: 1.5rem;
    color: #e60012;
    font-weight: bold;
}

.stock {
    color: #888;
}

.product-description h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 1.5rem 0 1rem;
}

.product-description ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-description li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-description li::before {
    content: '•';
    color: #e60012;
    position: absolute;
    left: 0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.specs-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    color: #888;
    width: 40%;
}

.product-actions {
    margin-top: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 0.5rem;
}

.add-to-cart-btn,
.buy-now-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    background: #fff;
    border: 2px solid #e60012;
    color: #e60012;
}

.add-to-cart-btn:hover {
    background: #fff5f5;
}

.buy-now-btn {
    background: #e60012;
    color: #fff;
}

.buy-now-btn:hover {
    background: #c70012;
}

/* 产品详情选项卡 */
.product-details {
    margin-top: 3rem;
}

.detail-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: #fff;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #e60012;
    border-bottom-color: #e60012;
}

.detail-content {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-img {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .equipment-detail {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 300px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .related-list {
        grid-template-columns: 1fr;
    }
} 