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

/* Hero Section */
.product-hero {
    background:url('../images/product-yhh/yhh-banner-warpbg.png') bottom center no-repeat;
    padding: 64px 0 48px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.product-hero-wrap {
    display: flex;
    padding-top: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.product-hero-left {
    flex: 1;
    height: 432px;
    padding: 48px 40px;
    background: #ffffff;
}

.product-hero-title {
    font-size: 2.375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1E293B 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-stat-num-wrap {
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.hero-stat-num {
    font-size: var(--text-4xl);
    font-weight: 500;
    color: #4285F4;
    line-height: 1;
}

.hero-stat-unit {
    font-size: var(--text-lg);
    font-weight: 400;
    color: #4285F4;
    margin-left: 2px;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: #666;
    margin-top: 4px;
}

.product-hero-right {
    width:886px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.product-hero-right img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-card-feature {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #F0F7FF;
    color: #2563EB;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 20px;
}

/* Quick Nav */
.product-quick-nav {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.quick-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #F8FAFC;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.quick-nav-item:hover {
    background: #2563EB;
    color: #fff;
    transform: translateY(-2px);
}

.quick-nav-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.quick-nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-nav-text {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
}

.quick-nav-text em {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--text-secondary);
    font-style: normal;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.quick-nav-item:hover .quick-nav-text,
.quick-nav-item:hover .quick-nav-text em {
    color: #fff;
}

/* Why Choose Section */
.product-why {
    padding: 80px 0;
    background: #fff;
}

.product-why .section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.why-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.why-icon {
    width: 125px;
    height: 125px;
    flex-shrink: 0;
}

.why-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.why-content {
    flex: 1;
}

.why-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.why-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Product Features */
.product-features {
    padding: 80px 0;
    background: #F8FAFC;
}

.product-features .section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.features-wrap {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.features-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #F8FAFC;
    border-left: 1px solid var(--border);
}

.feature-menu-item {
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.feature-menu-item:hover {
    background: #fff;
}

.feature-menu-item.active {
    background: #2563EB;
    border-right-color: #1E40AF;
}

.feature-menu-item.active .menu-text {
    color: #fff;
}

.menu-text {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
}

.features-content {
    flex: 1;
    padding: 40px;
}

.feature-panel {
    display: none;
    gap: 40px;
}

.feature-panel.active {
    display: flex;
}

.feature-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-intro-item {
    padding-right: 20px;
}

.intro-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.intro-divider {
    width: 40px;
    height: 3px;
    background: #2563EB;
    margin-bottom: 12px;
}

.intro-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-image {
    width: 560px;
    flex-shrink: 0;
    border: 2px solid #2563EB;
    border-radius: 8px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Shop Mall */
.product-shopmall {
    padding: 48px 0;
    background: #fff;
}

.product-shopmall .section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.shopmall-wrap {
    display: flex;
    gap: 0;
    background: #F8FAFC;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.shopmall-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border);
}

.shopmall-menu-item {
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.shopmall-menu-item:hover {
    background: #F8FAFC;
}

.shopmall-menu-item.active {
    background: #2563EB;
    border-left-color: #1E40AF;
}

.shopmall-menu-item.active .menu-text {
    color: #fff;
}

.shopmall-content {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
}

.shopmall-panel {
    display: none;
    gap: 40px;
    width: 100%;
}

.shopmall-panel.active {
    display: flex;
}

.shopmall-intro {
    flex: 1;
}

.shopmall-intro-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.shopmall-intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shopmall-intro-list li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 2;
    position: relative;
    padding-left: 12px;
}

.shopmall-intro-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563EB;
}

.shopmall-image {
    width: 640px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.shopmall-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Version Comparison */
.product-comparison {
    padding: 48px 0;
    background: #F8FAFC;
}

.product-comparison .section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.version-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.version-tab {
    padding: 12px 32px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-tab:hover {
    border-color: #2563EB;
    color: #2563EB;
}

.version-tab.active {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}

.version-content {
    max-width: 600px;
    margin: 0 auto;
}

.version-panel {
    display: none;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.version-panel.active {
    display: block;
}

.version-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.version-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.version-price {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.version-price .price-num {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: #2563EB;
}

.version-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.version-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.version-features li {
    padding: 12px 0;
    font-size: var(--text-base);
    color: var(--text-primary);
    border-bottom: 1px solid #F1F5F9;
    position: relative;
    padding-left: 28px;
}

.version-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 700;
}

.version-features li:last-child {
    border-bottom: none;
}

/* Solutions Section */
.product-solutions {
    padding: 48px 0;
    background:url(../images/product-yhh/yhh-solution-bg.jpg) top center no-repeat;
}

.product-solutions .section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.solutions-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.solution-panel {
    display: none;
    gap: 48px;
    align-items: center;
}

.solution-panel.active {
    display: flex;
}

.solution-content {
    flex: 1;
}

.solution-role {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.solution-text p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 12px;
}

.solution-text p:last-child {
    margin-bottom: 0;
}

.solution-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.solution-image {
    width: 340px;
    flex-shrink: 0;
}

.solution-image img {
    width: 100%;
    height: auto;
    display: block;
}

.solutions-roles {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.role-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.role-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.role-item.active {
    background: #2563EB;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.role-item.active .role-name {
    color: #fff;
}

.role-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.role-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
}

/* Mobile Section */
.product-mobile {
    padding: 48px 0;
    background: #fff;
}

.mobile-wrap {
    display: flex;
    align-items: center;
    gap: 80px;
}

.mobile-left {
    flex: 1;
}

.mobile-left .section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.mobile-desc {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.mobile-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.mobile-features li {
    padding: 12px 0 12px 32px;
    font-size: var(--text-base);
    color: var(--text-primary);
    position: relative;
}

.mobile-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #10B981;
    border-radius: 50%;
}

.mobile-features li::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
}

.mobile-download {
    display: flex;
    align-items: center;
    gap: 32px;
}

.download-qrcode {
    text-align: center;
}

.download-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.download-qrcode span {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #1E293B;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: var(--text-base);
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #2563EB;
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-right {
    width: 320px;
    flex-shrink: 0;
}

.mobile-screenshot img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Scenarios Section */
.product-scenarios {
    padding: 48px 0;
    background: #F8FAFC;
}

.product-scenarios .section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.scenario-image {
    height: 180px;
    overflow: hidden;
}

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

.scenario-card:hover .scenario-image img {
    transform: scale(1.05);
}

.scenario-content {
    padding: 24px;
}

.scenario-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.scenario-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.scenario-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario-features li {
    padding: 6px 0 6px 20px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    position: relative;
}

.scenario-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563EB;
    font-weight: 700;
}

/* Testimonials */
.product-testimonials {
    padding: 48px 0;
    background: #fff;
}

.product-testimonials .section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.testimonial-slider-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonial-slider {
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 420px;
}

.testimonial-card {
    display: flex;
    gap: 60px;
    background: #fff;
    padding: 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.testimonial-card.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-card.prev {
    transform: translateX(-30px);
}

.testimonial-content {
    flex: 1;
    width: 100%;
}

.testimonial-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: var(--text-base);
}

.meta-label {
    color: var(--text-primary);
    font-weight: 600;
}

.meta-value {
    color: var(--text-primary);
}

.testimonial-section {
    margin-bottom: 24px;
}

.section-label {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.testimonial-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.testimonial-list li {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.testimonial-list li::before {
    content: attr(data-index);
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

.testimonial-list li:nth-child(1)::before { content: "1."; }
.testimonial-list li:nth-child(2)::before { content: "2."; }
.testimonial-list li:nth-child(3)::before { content: "3."; }
.testimonial-list li:nth-child(4)::before { content: "4."; }
.testimonial-list li:nth-child(5)::before { content: "5."; }

/* Testimonial Navigation */
.testimonial-prev,
.testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid #E2E8F0;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}

.testimonial-prev svg,
.testimonial-next svg {
    width: 20px;
    height: 20px;
}

/* Testimonial Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E2E8F0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background: #2563EB;
}

/* CTA Section */
.product-cta {
    padding: 48px 0;
    background: #F8FAFF;
}

.product-cta .section-title {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.cta-wrap {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.cta-item {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    min-width: 280px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
}

.cta-title {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.cta-item .btn-outline-primary {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #4285F4;
    color: #4285F4;
    border-radius: 4px;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-item .btn-outline-primary:hover {
    background: #4285F4;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-hero-wrap {
        flex-direction: column;
        text-align: center;
    }
    
    .product-hero-left {
        order: 2;
    }
    
    .product-hero-right {
        width: 100%;
        max-width: 420px;
        order: 1;
    }
    
    .product-hero-stats {
        justify-content: center;
    }
    
    .why-grid,
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-wrap {
        flex-direction: column;
    }
    
    .mobile-right {
        order: -1;
    }
    
    .cta-wrap {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .product-hero-title {
        font-size: var(--text-3xl);
    }
    
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-nav-item {
        padding: 12px 16px;
    }
    
    .why-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .version-tabs {
        flex-wrap: wrap;
    }
    
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
}
