:root {
    --primary-color: #002878;
    --secondary-color: #1a4a9e;
    --accent-color: #0066cc;
    --detail-bg: #f4f6fb;
    --detail-card-bg: #ffffff;
    --detail-border: #dbe2ef;
    --detail-text: rgba(16, 24, 40, 0.85);
    --detail-muted: rgba(16, 24, 40, 0.6);
}

body {
    color: var(--detail-text);
}

.product-detail-page {
    background: var(--detail-bg);
    padding: 80px 0 120px;
}

.product-detail-container {
    
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.spec-content img {
    max-width: 100%;
}

.page-hero {
    position: relative;
    height: 60vh;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/public/static/img/pro/pro.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 40, 120, 0.82), rgba(0, 102, 204, 0.72));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.detail-card {
    background: var(--detail-card-bg);
    border: 1px solid var(--detail-border);
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--detail-border);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.section-header h2 {
    margin-right: auto;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
}

.section-tabs {
    display: inline-flex;
    border: 1px solid var(--detail-border);
    margin-left: auto;
}

.tab-btn {
    padding: 10px 22px;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--detail-muted);
    cursor: pointer;
    border-left: 1px solid var(--detail-border);
    transition: background 0.3s ease, color 0.3s ease;
}

.tab-btn:first-child {
    border-left: none;
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.overview-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
}

.overview-gallery {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

td span{
    font-size: 14px !important;
}

.firstRow {
    background: #002878;
    color: #fff;
}

.firstRow span{
    color: #fff !important;
}

.ue-table-interlace-color-double {
    background: #e4e4e4;
}

.main-image {
    border: 1px solid var(--detail-border);
    background: #fff;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    height: auto;
}

.thumb-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.thumb-list img {
    border: 1px solid transparent;
    background: #fff;
    padding: 12px;
    height: 90px;
    width: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.thumb-list img:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.thumb-list img.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

/* ============================================
   应用场景展示区域
   ============================================ */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.application-item {
    display: block;
    border: 1px solid var(--detail-border);
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
    border-color: var(--primary-color);
}

.application-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.application-item:hover .application-image img {
    transform: scale(1.05);
}

.application-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 40, 120, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.application-item:hover .application-overlay {
    opacity: 1;
}

.application-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

.application-content {
    padding: 20px;
}

.application-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detail-text);
    margin-bottom: 8px;
}

.application-content .subtitle {
    font-size: 0.9rem;
    color: var(--detail-muted);
    margin-bottom: 12px;
}

.application-content .description {
    font-size: 0.85rem;
    color: var(--detail-text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.overview-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--detail-muted);
    display: block;
}

.meta-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-description h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.product-description ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--detail-muted);
}

.product-description li {
    position: relative;
    padding-left: 16px;
}

.product-description li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
}

.product-actions {
    display: flex;
    gap: 16px;
}

.primary-btn,
.ghost-btn {
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--primary-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.primary-btn {
    background: var(--primary-color);
    color: #fff;
}

.primary-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.ghost-btn {
    background: transparent;
    color: var(--primary-color);
}

.ghost-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.spec-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-group h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.spec-table {
    border: 1px solid var(--detail-border);
    display: grid;
}

.spec-row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    padding: 16px 20px;
    border-top: 1px solid var(--detail-border);
    font-size: 0.98rem;
}

.spec-row:first-child {
    border-top: none;
}

.spec-row span:first-child {
    color: var(--detail-muted);
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.application-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--detail-border);
    border-radius: 0;
}

.application-item img {
    width: 100%;
    height: 170px;
    object-fit: contain;
}

.application-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.application-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.application-info p {
    color: var(--detail-muted);
    line-height: 1.7;
}

.related-card .section-header {
    border-bottom: 1px solid var(--detail-border);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.link-more {
    font-size: 0.95rem;
    color: var(--accent-color);
    text-decoration: none;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.related-item {
    border: 1px solid var(--detail-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item img {
    width: 100%;
    /*height: 180px;*/
    object-fit: cover;
}

.related-item h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
}

.related-item p {
    color: var(--detail-muted);
    line-height: 1.7;
}

.related-link {
    margin-top: auto;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

@media (max-width: 1200px) {
    .product-detail-page .container {
        grid-template-columns: 1fr;
    }

    .product-side-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 24px;
        align-items: center;
    }

    .side-nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .side-nav-cta {
        width: 100%;
        margin-top: 12px;
        border-top: 1px solid var(--detail-border);
        padding-top: 12px;
    }

    .overview-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    td span{
        font-size: 9px !important;
    }

    .page-title {
        font-size: 2.4rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .detail-card {
        padding: 28px 24px;
    }

    .product-meta {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .application-item img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 34vh;
        min-height: 240px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }
}

/* 购买数量选择器样式 */
.product-quantity {
    display: flex;
    align-items: center;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.quantity-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-right: 15px;
    min-width: 80px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    color: #666;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color, #002878);
    color: white;
}

.quantity-btn:active {
    transform: scale(0.95);
}

#buyQuantity {
    width: 70px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    outline: none;
}

.quantity-unit {
    margin-left: 10px;
    color: #666;
    font-size: 14px;
}

/* 产品操作按钮样式增强 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.product-actions button {
    flex: 1;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-actions .primary-btn {
    background: linear-gradient(135deg, var(--primary-color, #002878) 0%, var(--secondary-color, #1a4a9e) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 40, 120, 0.3);
}

.product-actions .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 40, 120, 0.4);
}

.product-actions .primary-btn:active {
    transform: translateY(0);
}

.product-actions .primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.product-actions .ghost-btn {
    background: white;
    color: var(--primary-color, #002878);
    border: 2px solid var(--primary-color, #002878);
}

.product-actions .ghost-btn:hover {
    background: var(--primary-color, #002878);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 40, 120, 0.3);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .product-quantity {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .quantity-label {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions button {
        width: 100%;
    }
}

/* 应用场景新布局样式 */
.application-category {
    margin-bottom: 40px;
}

.application-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.application-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.application-item-new {
    display: flex;
    gap: 30px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--detail-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.application-item-new:hover {
    box-shadow: 0 4px 16px rgba(0, 40, 120, 0.1);
    transform: translateY(-2px);
}

/* 左侧：正文和缩略图 */
.application-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.application-desc {
    flex: 1;
}

.application-desc p {
    color: var(--detail-text);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.application-thumb {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.application-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.application-item-new:hover .application-thumb img {
    transform: scale(1.05);
}

/* 右侧：标题 */
.application-right {
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 0;
}

.application-right h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.view-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.view-detail:hover {
    color: var(--secondary-color);
    gap: 12px;
}

.view-detail i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.view-detail:hover i {
    transform: translateX(4px);
}

/* 响应式布局 */
@media (max-width: 992px) {
    .application-item-new {
        flex-direction: column;
    }
    
    .application-right {
        width: 100%;
    }
    
    .application-thumb {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 1.3rem;
    }
    
    .application-item-new {
        padding: 20px;
    }
    
    .application-right h4 {
        font-size: 1.2rem;
    }
    
    .application-thumb {
        height: 200px;
    }
}
