/* ==================== 产品详情页样式 ==================== */

/* 产品 Hero */
.product-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 22px 60px;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.product-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.product-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

.product-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.product-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.product-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 产品选型下拉菜单 */
.model-selector {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.model-selector label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.model-selector select {
    padding: 10px 36px 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 200px;
}

.model-selector select:hover {
    border-color: var(--primary);
}

.model-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.15);
}

.tag {
    padding: 8px 20px;
    background: var(--bg-secondary);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

.product-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.product-main-img {
    position: relative;
    width: 450px;
    height: 450px;
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(10, 111, 184, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.product-image-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e8e8ed 0%, #d2d2d7 100%);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-medium);
}

.product-image-placeholder i {
    font-size: 120px;
    color: var(--primary-color);
    opacity: 0.6;
    margin-bottom: 20px;
}

.product-image-placeholder p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 产品特点 */
.product-features {
    padding: 100px 22px;
    background: var(--bg-color);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 产品解剖图 */
.product-anatomy {
    padding: 100px 22px;
    background: var(--bg-secondary);
}

.anatomy-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.anatomy-image {
    position: relative;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.anatomy-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #f5f5f7 0%, #e8e8ed 100%);
}

.anatomy-placeholder i {
    font-size: 100px;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.anatomy-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.grid-line {
    position: absolute;
    background: rgba(10, 111, 184, 0.1);
}

.grid-line.horizontal {
    left: 0;
    right: 0;
    height: 1px;
}

.grid-line.vertical {
    top: 0;
    bottom: 0;
    width: 1px;
}

/* 热区标注 */
.anatomy-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.hotspot-dot {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(10, 111, 184, 0.4);
    animation: hotspotPulse 2s ease-in-out infinite;
}

.hotspot:hover .hotspot-dot,
.hotspot.active .hotspot-dot {
    animation: none;
    transform: scale(1.3);
}

.hotspot-label {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-light);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.hotspot:hover .hotspot-label,
.hotspot.active .hotspot-label {
    opacity: 1;
}

@keyframes hotspotPulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(10, 111, 184, 0.4);
    }
    50% {
        box-shadow: 0 2px 20px rgba(10, 111, 184, 0.8);
    }
}

/* 解剖图详情面板 */
.anatomy-details {
    background: white;
    border-radius: 24px;
    padding: 40px;
    min-height: 300px;
}

.detail-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.detail-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.detail-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.detail-content ul {
    margin-top: 20px;
}

.detail-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-content li i {
    color: var(--primary-color);
}

/* 规格参数 */
.product-specs {
    padding: 100px 22px;
    background: var(--bg-color);
}

.specs-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 20px 24px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02);
    font-size: 14px;
}

.spec-value {
    padding: 20px 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 应用场景 */
.product-scenarios {
    padding: 100px 22px;
    background: var(--bg-secondary);
}

.scenarios-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.scenario-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light);
}

.scenario-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
}

.scenario-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.scenario-card h3 {
    font-size: 14px;
    font-weight: 500;
}

/* CTA */
.product-cta {
    padding: 100px 22px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.product-cta .btn-primary {
    background: white;
    color: var(--secondary-color);
}

.product-cta .btn-primary:hover {
    background: #f5f5f7;
}

.product-cta .btn-secondary {
    border-color: white;
    color: white;
}

.product-cta .btn-secondary:hover {
    background: white;
    color: var(--secondary-color);
}

/* 响应式 */
@media (max-width: 968px) {
    .product-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-tags {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anatomy-container {
        grid-template-columns: 1fr;
    }
    
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

    .spec-label {
        background: transparent;
        padding-bottom: 8px;
    }

    .spec-row {
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ==================== 相关产品 ==================== */
.related-products {
    padding: 80px 22px;
    background: var(--bg-secondary);
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.related-product-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.related-product-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.related-product-icon i {
    font-size: 24px;
    color: white;
}
.related-product-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.related-product-info p {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
}
.related-product-link {
    font-size: 13px;
    color: #11998e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-product-link i {
    font-size: 12px;
    transition: transform 0.2s;
}
.related-product-card:hover .related-product-link i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* 2026-10-17 mobile hero fix (all product pages): the hero is a flex row whose image box is a fixed 450x450,
   so on phones the text column was squeezed (CJK text, e.g. browser-translated Chinese, wrapped one character per line).
   Stack text on top, image full width below. */
/* the homepage card badge rule in style.css (.product-badge{position:absolute;top:18px}) leaked into the hero and hid the badge under the nav */
.product-hero .product-badge { position: static; }
/* .product-hero-content was a 2-column grid from an older layout where the image sat inside it; the image is now a sibling,
   so the text items were spread over two columns. Lay the text out as a normal column next to the image. */
.product-hero { justify-content: center; gap: 60px; }
.product-hero-content { display: block; flex: 1 1 0; min-width: 0; max-width: 600px; margin: 0; }
.product-hero-visual { flex: 0 0 auto; }
.product-hero .product-desc { margin-bottom: 24px; }
@media (max-width: 968px) {
    .product-hero { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: auto; padding: 104px 20px 56px; gap: 32px; }
    .product-hero-content { gap: 0; min-width: 0; max-width: none; flex: none; width: 100%; }
    .product-hero h1, .product-hero .product-subtitle, .product-hero .product-desc { overflow-wrap: break-word; word-break: normal; }
    .product-hero-visual { width: 100%; flex: none; animation: none; }
    .product-main-img { width: 100%; max-width: 420px; height: auto; aspect-ratio: 3 / 4; margin: 0 auto; border-radius: 20px; overflow: hidden; background-color: #f5f5f7; }
    .product-main-img .product-image-real { width: 100%; height: 100%; object-fit: cover; }
    .product-main-img .product-glow { width: 70%; height: auto; aspect-ratio: 1; }
}
