/* =========================================
   全局样式 (需与列表页保持一致)
   ========================================= */
:root {
    --primary-blue: #004aad;
    --primary-soft: #f4f7fb;
    --primary-hover: #e6eff8;
    --accent-gold: #d4a017;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --bg-page: #fdfdfd;
    --white: #ffffff;
    --border-light: #ebedf0;
    --shadow-soft: 0 8px 24px rgba(149, 157, 165, 0.08);
    --dark-bg: #0f172a;
}

/* Scoped Reset for Detail Page Wrapper */
.detail-page-wrapper * {
    box-sizing: border-box;
}

.detail-page-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-page);
    /* 顶部留白 */
    padding-top: 60px;
    padding-bottom: 100px;
}

.detail-page-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.detail-page-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* .container override for this page */
.detail-page-wrapper.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}





/* 详情头部：左文右图 */
.detail-header {
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.dh-content h1 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1.2;
}

.dh-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 300;
}

.dh-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 35px;
}

.dh-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none !important;
}

.btn-secondary {
    background: var(--white) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-light) !important;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #003380 !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
}

/* 详情主图 */
.detail-hero-img {
    border-radius: 5px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-soft);
}

/* 技术参数表 */
.specs-section {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.specs-title {
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}

.specs-table th {
    width: 35%;
    color: var(--text-light);
    font-weight: 500;
    background: var(--primary-soft);
}

.specs-table td {
    color: var(--text-main);
    font-weight: 600;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .detail-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-hero-img {
        height: 250px;
        order: -1;
    }

    /* 手机上图片在最上面 */
    .dh-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .detail-page-wrapper{
        padding-top:20px;
    }
    
    .detail-page-wrapper.container{
        padding-left: 0px;
        padding-right: 0px;
    }
}
