/* =====================================================
   产品中心页样式（配合 home.css 使用）
   重点产品：直角方矩管 / 精致钢 / Q355B方矩管
   ===================================================== */

/* ---------- 内页头部 ---------- */
.page-hero {
    background:
        linear-gradient(115deg, rgba(10, 30, 49, 0.95) 0%, rgba(15, 42, 67, 0.88) 50%, rgba(28, 68, 104, 0.78) 100%),
        repeating-linear-gradient(45deg, #122c46 0 14px, #0f2a43 14px 28px);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.page-hero h1 .highlight {
    color: var(--accent);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ---------- 锚点快速导航 ---------- */
.anchor-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(15, 42, 67, 0.06);
    position: sticky;
    top: 76px;
    z-index: 900;
}

.anchor-nav .container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.anchor-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.25s;
    background: var(--bg);
}

.anchor-nav a i {
    color: var(--accent);
}

.anchor-nav a:hover,
.anchor-nav a.hot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.anchor-nav a.hot i {
    color: var(--accent);
}

/* ---------- 重点产品详情区块 ---------- */
.product-detail {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, #f8fafc, #fff);
}

.detail-head .title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.detail-icon.c1 { background: linear-gradient(135deg, #16324f, #2a5878); }
.detail-icon.c2 { background: linear-gradient(135deg, #7a4a12, #b06a1a); }
.detail-icon.c3 { background: linear-gradient(135deg, #234a35, #3a7a56); }

.detail-head h2 {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1.3;
}

.detail-head .sub {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 2px;
}

.detail-badge {
    background: rgba(240, 115, 22, 0.1);
    border: 1px solid rgba(240, 115, 22, 0.4);
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 0;
}

.detail-info {
    padding: 32px;
    border-right: 1px solid var(--border);
}

.detail-info > p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.detail-info > p strong {
    color: var(--text);
}

.feature-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary);
    margin: 22px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-title i {
    color: var(--accent);
}

.feature-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 7px 0;
    font-size: 0.93rem;
    color: var(--text);
    border-bottom: 1px dashed var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--accent);
    margin-top: 5px;
    flex-shrink: 0;
}

.feature-list li span b {
    color: var(--primary);
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.app-tags span {
    background: #eef3f8;
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
}

.detail-specs {
    padding: 32px;
    background: #fbfcfe;
}

.detail-specs .feature-title {
    margin-top: 0;
}

.spec-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}

.spec-mini-table th,
.spec-mini-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.spec-mini-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.86rem;
}

.spec-mini-table tbody tr:nth-child(even) {
    background: #f4f7fa;
}

.spec-mini-table tbody tr:last-child td {
    border-bottom: none;
}

.spec-mini-table td:first-child {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.param-rows {
    margin-bottom: 20px;
}

.param-rows .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 2px;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
}

.param-rows .row:last-child {
    border-bottom: none;
}

.param-rows .row span {
    color: var(--text-light);
}

.param-rows .row b {
    color: var(--text);
    text-align: right;
}

.detail-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- 其他产品 ---------- */
.other-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.other-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.other-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(240, 115, 22, 0.4);
}

.other-card .o-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.other-card h3 {
    font-size: 1.08rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.other-card p {
    font-size: 0.86rem;
    color: var(--text-light);
    margin-bottom: 14px;
    min-height: 44px;
}

.other-card a {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
}

.other-card a:hover {
    color: var(--accent-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .detail-body {
        grid-template-columns: 1fr;
    }

    .detail-info {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .other-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 44px 0;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .anchor-nav {
        top: 76px;
    }

    .anchor-nav a {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .detail-head,
    .detail-info,
    .detail-specs {
        padding: 22px 18px;
    }

    .detail-head h2 {
        font-size: 1.25rem;
    }

    .other-grid {
        grid-template-columns: 1fr;
    }

    .other-card p {
        min-height: auto;
    }
}
