.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
}

.detail-image {
    background: #1a1a1d;
    border-radius: 16px;
    overflow: hidden;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 500px;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #111;
    overflow-x: auto;
}

.thumbnail {
    width: auto;
    height: 80px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
    background: #111;
    padding: 4px;
}

.thumbnail:hover {
    border-color: #4ade80;
}

.thumbnail.active {
    border-color: #4ade80;
}

.detail-info h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
}

.detail-sku {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.detail-price {
    font-size: 42px;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 30px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-group label {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
}

.variant-group select {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1d;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
}

.variant-group select:focus {
    outline: none;
    border-color: #4ade80;
}

.detail-actions {
    margin-top: 30px;
}

.detail-actions .btn {
    width: 100%;
}

.product-details-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #333;
}

.product-details-section h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 25px;
}

.product-specs {
    display: block;
    margin-bottom: 40px;
}

.spec-item {
    background: #1a1a1d;
    padding: 20px;
    border-radius: 10px;
}

.spec-label {
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

.spec-value {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.product-description {
    color: #ccc;
    line-height: 1.8;
    font-size: 16px;
}

.product-description p {
    margin-bottom: 16px;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4 {
    color: #fff !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    display: block !important;
    padding-bottom: 0 !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.product-description h1 { font-size: 28px !important; }
.product-description h2 { font-size: 24px !important; }
.product-description h3 { font-size: 20px !important; }

.product-specs {
    clear: both !important;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.product-description ul,
.product-description ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.product-description li {
    margin-bottom: 8px;
}

.product-description a {
    color: #4ade80;
    text-decoration: underline;
}

.product-description blockquote {
    border-left: 4px solid #4ade80;
    padding-left: 16px;
    margin: 16px 0;
    color: #999;
    font-style: italic;
}

/* 描述内的表格自适应暗色主题 */
.product-description table {
    width: 100%;
    border-collapse: collapse;
}

.product-description table td {
    padding: 10px 8px;
}

/* 描述内的无序列表 */
.product-description ul,
.product-description ol {
    padding-left: 24px;
}

.product-features {
    margin-top: 24px;
    padding: 24px;
    background: #1a1a1d;
    border-radius: 10px;
}

.product-features h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-features li {
    display: inline-block;
    background: #2a2a2e;
    color: #ccc;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.reviews-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #333;
}

.reviews-container h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 30px;
}

.review-card {
    background: #1a1a1d;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.review-info h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 3px;
}

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

.review-rating {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 10px;
}

.review-content {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}

.feedback-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #333;
}

.feedback-section h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 25px;
}

.feedback-form {
    max-width: 650px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1d;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4ade80;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-image-container {
        aspect-ratio: 3/2;
    }
    
    .main-image-container img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .detail-info h1 {
        font-size: 28px;
    }
    
    .detail-price {
        font-size: 32px;
    }
}
