/* ===== Product Detail Page Styles ===== */

.detail-loading {
    text-align: center;
    padding: 120px 20px;
    color: #666;
}
.detail-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #0072BC;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.detail-breadcrumb {
    background: #f7f9fb;
    padding: 14px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e8ecef;
}
.detail-breadcrumb a { color: #0072BC; text-decoration: none; }
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb span { color: #333; }

/* Hero */
.detail-hero {
    padding: 60px 0;
    background: linear-gradient(180deg, #f7f9fb 0%, #fff 100%);
}
.detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.detail-hero-image {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 24px rgba(0, 60, 110, 0.06);
}
.detail-hero-image img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.detail-gallery-main img {
    transition: opacity 0.15s ease;
}
.detail-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.detail-thumb {
    position: relative;
    width: 76px;
    border: 2px solid #e2e8ed;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.detail-thumb:hover { border-color: #0072BC; }
.detail-thumb.active { border-color: #0072BC; box-shadow: 0 2px 8px rgba(0, 114, 188, 0.25); }
.detail-thumb img {
    display: block;
    width: 100%;
    height: 60px;
    object-fit: contain;
    max-height: none;
}
.detail-thumb-label {
    position: absolute;
    right: 0;
    top: 0;
    background: rgba(0, 61, 107, 0.78);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 0 0 0 6px;
}
.detail-tag {
    display: inline-block;
    background: #e6f2fb;
    color: #0072BC;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 14px;
}
.detail-hero-info h1 {
    font-size: 30px;
    color: #003D6B;
    margin: 0 0 12px;
    line-height: 1.3;
}
.detail-series {
    font-size: 16px;
    color: #0072BC;
    margin: 6px 0;
    font-weight: 600;
}
.detail-subseries {
    font-size: 14px;
    color: #555;
    margin: 4px 0;
}
.detail-model {
    font-size: 14px;
    color: #333;
    background: #f7f9fb;
    padding: 8px 14px;
    border-left: 3px solid #0072BC;
    margin: 14px 0 18px;
}
.detail-summary {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin: 16px 0 24px;
}
.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Specs Strip */
.detail-specs-strip {
    background: #003D6B;
    color: #fff;
    padding: 30px 0;
}
.spec-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.spec-strip-item {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 20px;
}
.spec-strip-item:last-child { border-right: none; }
.spec-strip-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.spec-strip-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* Two columns */
.detail-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.detail-block h2.detail-h2 {
    font-size: 22px;
    color: #003D6B;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0072BC;
    display: inline-block;
}
.detail-text {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin: 0;
}
.detail-list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}
.detail-list-check li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    padding: 8px 0 8px 30px;
    position: relative;
    border-bottom: 1px dashed #e8ecef;
}
.detail-list-check li:last-child { border-bottom: none; }
.detail-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    background: #0072BC;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    font-weight: 700;
}

/* Section helper */
.section-gray { background: #f7f9fb; }

/* Tables */
.detail-h2.centered {
    text-align: center;
    border: none;
    padding: 0 0 14px;
    margin: 0 0 30px;
    position: relative;
    font-size: 24px;
    color: #003D6B;
}
.detail-h2.centered::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #0072BC;
    margin: 12px auto 0;
}
.detail-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 60, 110, 0.05);
}
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.detail-table th,
.detail-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eef1f4;
}
.detail-table thead th {
    background: #003D6B;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}
.detail-table tbody tr:nth-child(even) { background: #fafbfc; }
.detail-table tbody tr:hover { background: #f0f7fc; }
.detail-table td:first-child { color: #003D6B; font-weight: 600; }

/* Dimensions */
.detail-dim-text {
    background: #fff;
    padding: 20px 30px;
    border-left: 4px solid #0072BC;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    box-shadow: 0 2px 10px rgba(0, 60, 110, 0.05);
}

/* CTA */
.detail-cta {
    background: linear-gradient(135deg, #003D6B, #0072BC);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.detail-cta h2 { font-size: 26px; margin: 0 0 12px; }
.detail-cta p { font-size: 15px; opacity: 0.9; margin: 0 0 24px; }
.detail-cta .btn { margin: 0 6px; }
.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

/* Responsive */
@media (max-width: 900px) {
    .detail-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .detail-two-col { grid-template-columns: 1fr; gap: 30px; }
    .spec-strip-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .spec-strip-item { border-right: none; }
    .detail-hero-info h1 { font-size: 24px; }
}
@media (max-width: 540px) {
    .spec-strip-grid { grid-template-columns: 1fr; }
    .detail-hero { padding: 30px 0; }
}

/* Product card clickable on listing */
.product-card {
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 114, 188, 0.12);
    border-color: #0072BC;
}
.product-card::after {
    content: "查看详情 →";
    position: absolute;
    bottom: 14px;
    right: 18px;
    font-size: 12px;
    color: #0072BC;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s;
}
.product-card:hover::after { opacity: 1; }

/* ===== 富文本内容区（技术参数 / 尺寸参数） ===== */
.rich-content {
    background: #fff;
    border-radius: 10px;
    padding: 24px 28px;
    line-height: 1.9;
    color: #334;
    font-size: 15px;
    overflow-x: auto;
}
/* 富文本正文里的超链接（编辑器“链接”按钮生成，外链默认新窗口） */
.rich-content a {
    color: #0072BC;
    text-decoration: underline;
    word-break: break-all;
}
.rich-content a:hover { color: #005a94; }
.rich-content a:visited { color: #5b4a9e; }
.rich-content h4 {
    color: #0072BC;
    font-size: 17px;
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e6eef7;
}
.rich-content h4:first-child { margin-top: 0; }
.rich-content table.rt-table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0 18px;
    background: #fff;
}
.rich-content .rt-table th,
.rich-content .rt-table td {
    border: 1px solid #d6dee8;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}
.rich-content .rt-table th {
    background: #eef4fb;
    color: #1a3b5c;
    font-weight: 600;
    white-space: nowrap;
}
.rich-content .rt-table tr:nth-child(even) td { background: #f8fafd; }
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.rich-content p { margin: 8px 0; }
.rich-content ul { margin: 8px 0 8px 22px; }
