/* ===== 产品三级详情页专用样式模板 ===== */
/* 文件: product-detail.css */
/* 此样式用于所有产品详情页，确保UI统一 */

/* 产品主视觉区 */
.product-detail-hero {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.95)), var(--hero-bg-image) center/cover no-repeat;
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: var(--header-height, 60px);
}

/* 一级页面（如 edu.html）：标题区背景色与 .page-banner 统一 */
.product-detail-hero.page-banner-hero {
    background: linear-gradient(135deg, var(--primary-color), #1a2f4d);
}
.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}
.breadcrumb a:hover {
    opacity: 0.8;
}
.breadcrumb span {
    margin: 0 8px;
}
.product-detail-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.product-detail-subtitle {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 500;
}
.hero-desc {
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}
.product-detail-tag {
    display: inline-block;
    background: rgba(79, 195, 247, 0.2);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 20px;
    border: 1px solid rgba(79, 195, 247, 0.3);
}

/* 产品概览 */
.product-overview {
    padding: 80px 0;
    background: white;
}
.product-overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.product-main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.product-overview-content:hover .product-main-image img {
    transform: scale(1.02);
}
.product-highlights {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}
.product-highlights li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}
.product-highlights li:last-child {
    border-bottom: none;
}
.product-highlights i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}
.product-highlights strong {
    color: var(--primary-color);
    margin-right: 5px;
}

/* 功能特点 */
.features-section {
    padding: 80px 0;
    background: var(--light-color);
}
.features-grid {
    display: grid;
    /* 产品详情页“功能特点”：桌面端固定4列，保证卡片列数不随屏幕变化 */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* 产教融合教学产品详情页：核心功能固定3列（与车型详情页4列分离） */
.features-grid.edu-core-features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1260px;
}

/* 中等屏幕：优先观感，自动降为2列，避免拥挤/溢出 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .features-grid.edu-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .features-grid.edu-core-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 产教融合页：六大教学产品网格固定三列，整体居中 */
.features-grid.edu-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1260px;
}

/* 让整张卡片（含外层链接）高度一致，点击区域更稳定 */
.feature-card-link {
    display: block;
    height: 100%;
}
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #2a9df4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon i {
    font-size: 1.5rem;
    color: white;
}
.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.feature-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* 技术参数表格 */
.specs-section {
    padding: 80px 0;
    background: white;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}
.specs-table th {
    background: var(--primary-color);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
}
.specs-table tr:nth-child(even) {
    background: var(--light-color);
}
.specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.specs-table tr:last-child td {
    border-bottom: none;
}
.specs-category {
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(10, 25, 47, 0.05);
}

/* 应用场景 */
.application-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f0ff 100%);
}
.application-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.application-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.application-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.application-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.application-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* 联系表单 */
.product-contact {
    padding: 80px 0;
    background: white;
}
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* 工具类 */
.text-center {
    text-align: center;
}
.table-container {
    overflow-x: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-title {
        font-size: 2.2rem;
    }
    .product-detail-subtitle {
        font-size: 1.2rem;
    }
    .product-overview-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features-grid.edu-products-grid,
    .features-grid.edu-core-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .application-cards {
        grid-template-columns: 1fr;
    }
}