/* ===== 详情页通用样式 (新闻详情 & 产品详情共用基础) ===== */

/* ===== 新闻详情 Banner ===== */
.article-banner {
    position: relative;
    padding: 140px 40px 60px;
    overflow: hidden;
}
.article-banner-bg {
    position: absolute;
    inset: 0;
}
.article-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,15,26,0.3) 0%, rgba(10,15,26,0.85) 100%);
}
.article-banner-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }

.article-category-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.article-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

/* ===== 文章主体布局 ===== */
.article-main-section {
    padding: 60px 0 100px;
    background: var(--bg-primary);
}
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* ===== 文章正文 ===== */
.article-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 50px;
}

.article-lead {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 40px;
    padding: 22px 26px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.article-body h2:first-child { margin-top: 0; }

.article-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.95;
    margin-bottom: 18px;
}

.article-body strong {
    color: var(--primary);
    font-weight: 700;
}

/* 图表占位 */
.article-chart {
    margin: 32px 0;
}
.chart-placeholder {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
}
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 180px;
    margin-bottom: 16px;
    padding: 0 10px;
}
.chart-bar {
    flex: 1;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}
.chart-bar:hover { background: rgba(0, 212, 255, 0.25); }
.chart-bar.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: #000;
}
.chart-bar span:first-child { font-weight: 700; order: 2; }
.chart-bar span:last-child { font-size: 0.68rem; order: 1; opacity: 0.8; }
.chart-caption {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* 引用块 */
.article-blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: rgba(0, 212, 255, 0.04);
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.02rem;
    color: var(--text-primary);
    line-height: 1.8;
}
.article-blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

/* 列表 */
.article-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 18px;
}
.article-list li {
    position: relative;
    padding: 12px 16px 12px 36px;
    margin-bottom: 10px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.article-list li::before {
    content: '▸';
    position: absolute;
    left: 14px;
    color: var(--primary);
    font-size: 0.85rem;
}

/* 文章标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 28px;
}
.article-tag {
    padding: 5px 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}
.article-tag:hover { background: rgba(0, 212, 255, 0.16); }

/* 分享 */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.share-btn {
    padding: 7px 18px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 上下篇导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.article-nav-item {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}
.article-nav-item:hover {
    border-color: var(--border-hover);
    background: rgba(0,212,255,0.04);
}
.article-nav-item.next { text-align: right; }
.nav-dir {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.nav-title {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}
.article-nav-item:hover .nav-title { color: var(--primary); }

/* ===== 侧边栏 ===== */
.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

/* 相关文章 */
.related-list { display: flex; flex-direction: column; gap: 16px; }
.related-item a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition);
}
.related-thumb {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 8px;
    overflow: hidden;
}
.related-body { display: flex; flex-direction: column; gap: 5px; }
.related-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--transition);
}
.related-item a:hover .related-title { color: var(--primary); }
.related-date { font-size: 0.75rem; color: var(--text-muted); }

/* 相关产品 */
.sidebar-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.sidebar-product:last-of-type { margin-bottom: 0; }
.sidebar-product:hover {
    border-color: var(--border-hover);
    background: rgba(0, 212, 255, 0.08);
}
.sp-icon { font-size: 1.8rem; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(0,212,255,0.4)); }
.sp-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.sp-spec { font-size: 0.75rem; color: var(--primary); }

/* 侧边 CTA */
.sidebar-cta {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.sidebar-cta h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.sidebar-cta p { font-size: 0.83rem; color: var(--text-secondary); }

/* ===== 产品详情 Banner ===== */
.product-detail-banner {
    position: relative;
    padding: 140px 40px 60px;
    overflow: hidden;
    background: var(--bg-secondary);
}
.product-detail-banner-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
}
.product-detail-banner-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}
.product-detail-banner-content {
    position: relative; z-index: 1;
    max-width: 1400px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 80px;
    align-items: center;
}
.pdb-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pdb-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.pdb-badge.primary { background: var(--gradient-1); color: #000; }
.pdb-badge.outline { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.25); color: var(--primary); }
.pdb-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 16px;
}
.pdb-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 560px;
}
.pdb-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 产品详情可视化 */
.pdb-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-showcase {
    width: 420px;
    height: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-showcase-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.product-showcase-icon {
    font-size: 5rem;
    filter: drop-shadow(0 0 30px rgba(0,212,255,0.7));
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0,212,255,0.6)); }
    50% { filter: drop-shadow(0 0 45px rgba(0,255,213,1)); }
}
.product-showcase-label {
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.product-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,212,255,0.08) 0%, transparent 70%);
}

/* 产品详情主体 */
.product-detail-main-section {
    padding: 70px 0 100px;
    background: var(--bg-primary);
}
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* 参数规格表 */
.specs-section-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}
.specs-section-inner h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.specs-table tr:hover { background: rgba(0,212,255,0.03); }
.specs-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.specs-table td:first-child {
    color: var(--text-muted);
    width: 40%;
    font-size: 0.85rem;
}
.specs-table td:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* 产品描述 */
.product-desc-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}
.product-desc-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}
.product-desc-section p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.95;
    margin-bottom: 18px;
}

/* 应用领域 */
.product-apps-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}
.product-apps-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}
.apps-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.app-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.app-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.app-chip-icon { font-size: 1.2rem; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .product-detail-banner-content { grid-template-columns: 1fr; }
    .pdb-visual { display: none; }
    .product-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .article-banner { padding: 110px 20px 50px; }
    .article-title { font-size: 1.5rem; }
    .article-body { padding: 28px 20px; }
    .article-nav { grid-template-columns: 1fr; }
    .pdb-title { font-size: 1.7rem; }
    .specs-section-inner, .product-desc-section, .product-apps-section { padding: 24px 18px; }
}
