/* --- 1. 沉浸式头图 (Hero Banner) --- */
.product-article-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 渐变遮罩：上部透明，下部加深确保文字可读 */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.breadcrumb-nav, .breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 16px;
    text-decoration: none;
}
.breadcrumb-nav a:hover { color: #ffffff; }

.product-article-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    max-width: 800px;
}

.product-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 12px;
}
.meta-divider { color: rgba(255, 255, 255, 0.3); }
.category-wrapper a { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

/* --- 2. 文章布局与主区 --- */
.product-article-layout {
    display: grid;
    grid-template-columns: 1fr 340px; /* 左侧自适应，右侧固定 340px */
    gap: 60px;
    align-items: start;
}

.product-article-main {
    font-family: Georgia, "Times New Roman", serif; /* 正文使用衬线体增强文章阅读感 */
    color: #334155;
    line-height: 1.8;
}

/* 导语区 */
.product-lead-text {
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 内联相册 */
.product-inline-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.article-inline-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 详细内容富文本区 */
.product-full-content h2, 
.product-full-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    margin: 40px 0 20px 0;
}
.product-full-content p {
    font-size: 18px;
    margin-bottom: 24px;
}
.product-full-content img {
    border-radius: 6px;
    margin: 30px 0;
    max-width: 100%;
    height: auto;
}

/* --- 3. 右侧悬浮面板 (Sticky Sidebar) --- */
.product-article-sidebar {
    position: sticky;
    top: 100px; /* 距离顶部 100px 处悬浮，需根据你的导航栏高度调整 */
}

.sticky-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-family: -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.quick-specs { margin-bottom: 30px; }
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-family: -apple-system, sans-serif;
    font-size: 14px;
}
.spec-name { color: #64748b; }
.spec-val { color: #0f172a; font-weight: 600; font-family: monospace; }

.cta-wrapper { margin-bottom: 30px; }
.full-width { display: block; width: 100%; padding: 14px 0; }

.sidebar-downloads h4 {
    font-family: -apple-system, sans-serif;
    font-size: 14px;
    color: #0f172a;
    margin: 0 0 12px 0;
}
.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #475569;
    font-family: -apple-system, sans-serif;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.2s;
}
.download-link:hover {
    border-color: #1664a7;
    color: #1664a7;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a,
.uk-text-muted {
    color: white !important;
}

/* --- 响应式适配 --- */
@media (max-width: 992px) {
    .product-article-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-article-sidebar { position: static; }
    .product-article-hero { min-height: 300px; padding-bottom: 40px; }
    .product-article-title { font-size: 32px; }
    .product-inline-gallery { grid-template-columns: 1fr; }
}