/* Article Detail Page Styles */

/* Container Width Override for Detail Pages */
.article-detail-section .container {
    max-width: 1500px;
    width: 100%;
}

/* Hero Section: Full Width Banner with blue overlay */
.article-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-primary);
}

.article-hero .page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.article-hero .page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 43, 116, 0.7) 0%, rgba(29, 43, 116, 0.5) 100%);
}

.article-hero .page-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.article-hero .page-hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-family: var(--font-en-sans);
}

.article-hero .page-hero-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: var(--fw-light);
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Detail Section: Below Banner */
.article-detail-section {
    padding: 60px 0 80px 0;
    background-color: #fff;
}

/* Meta Info (Date/Category) */
.article-meta {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.category-tag {
    background-color: #1D2B74;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 12px;
    font-weight: 500;
}

.article-date {
    color: #666;
    font-size: 15px;
    font-family: var(--font-en-sans, 'Inter', sans-serif);
}

/* Title */
.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Product Detail Layout (Left Image + Right Specs Table) */
.product-detail-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.product-image-col {
    flex: 0 0 40%;
    max-width: 40%;
}

.product-image-col img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.product-specs-col {
    flex: 1;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
}

.product-specs-table tr {
    border-bottom: 1px solid #e2e5ef;
}

.product-specs-table tr:last-child {
    border-bottom: none;
}

.product-specs-table th {
    background-color: #f5f7fa;
    color: #1D2B74;
    font-weight: 600;
    text-align: left;
    vertical-align: top;
    padding: 16px 20px;
    width: 160px;
    min-width: 120px;
    font-size: 14px;
    border-right: 1px solid #e2e5ef;
}

.product-specs-table td {
    padding: 16px 20px;
    color: #4a4a4a;
    vertical-align: top;
}

.product-specs-table tr.highlight-row th {
    background-color: #1D2B74;
    color: #fff;
}

.product-specs-table tr.highlight-row td {
    background-color: #1D2B74;
    color: #fff;
}

.product-specs-table tr.alt-row th {
    background-color: #e8f5e9;
}

.product-specs-table tr.alt-row td {
    background-color: #e8f5e9;
}

.product-specs-table ul,
.product-specs-table ol {
    margin: 0;
    padding-left: 20px;
}

.product-specs-table li {
    margin-bottom: 4px;
}

.product-specs-table .ingredient-list {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* Body Content (fallback for non-formula articles) */
.article-body-content {
    font-size: 18px;
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 100%;
}

.article-body-content p {
    margin-bottom: 24px;
}

.article-body-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Back Button */
.btn-back {
    display: inline-block;
    margin-top: 50px;
    padding: 10px 0;
    color: #1D2B74;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #1D2B74;
    transition: all 0.3s ease;
}

.btn-back:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero {
        height: auto;
        padding: 120px 0 80px;
    }
    .article-hero .page-hero-title {
        font-size: 28px;
    }
    .article-title {
        font-size: 28px;
    }
    .article-body-content {
        font-size: 16px;
    }
    .product-detail-layout {
        flex-direction: column;
    }
    .product-image-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product-specs-table th {
        width: 120px;
        padding: 12px 16px;
    }
    .product-specs-table td {
        padding: 12px 16px;
    }
}

/* 表格样式优化 */
.specs-table {
    width: 100% !important;
    background-color: #f0f7ff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.specs-table th {
    background: linear-gradient(135deg, #e3eef9, #d6e6f7) !important;
    color: #1D2B74 !important;
    font-weight: 600 !important;
    text-align: left !important;
    padding: 16px 20px !important;
    width: 220px !important;
    min-width: 180px !important;
    border-right: 2px solid #c8ddf0 !important;
    white-space: nowrap !important;
}

.specs-table td {
    padding: 16px 20px !important;
    color: #333 !important;
    vertical-align: middle !important;
    background-color: #f0f7ff !important;
}

.specs-table tr {
    border-bottom: 1px solid #dce8f5 !important;
}

.specs-table tr:last-child {
    border-bottom: none !important;
}