/* 产品介绍页样式 - 完全对齐 privacy.css 的结构，使用紫色主题 */

/* ==================== 页面头部（对齐 privacy-hero）==================== */
.product-hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    margin-top: 80px;
    overflow: hidden;
}

.product-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.product-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.product-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease;
}

.product-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.product-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.product-hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.product-hero-shape {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-alt);
    transform: skewY(-2deg);
    z-index: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 6rem 0 4rem;
        margin-top: 70px;
    }
    
    .product-hero-title {
        font-size: 2.5rem;
    }
    
    .product-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .product-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==================== 内容区域（对齐 privacy-content）==================== */
.product-content {
    padding: 4rem 0 6rem;
    background: var(--bg-alt);
    position: relative;
}

.product-main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== 引言卡片（对齐 privacy-intro-card）==================== */
.product-intro-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.product-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.intro-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.intro-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.intro-highlight {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
}

.intro-highlight i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.intro-highlight strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.intro-highlight p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .product-intro-card {
        padding: 2rem;
    }
    
    .intro-title {
        font-size: 1.75rem;
    }
}

/* ==================== 章节样式（对齐 privacy-section）==================== */
.product-section {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.product-section:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.section-header-modern {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-lighter);
}

.section-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.section-title-wrapper {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.section-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .product-section {
        padding: 2rem;
    }
    
    .section-header-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-number {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ==================== 技术栈网格 ==================== */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.tech-stack-card {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-stack-card:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.tech-stack-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.tech-stack-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.tech-stack-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* ==================== 架构图卡片 ==================== */
.architecture-diagram-card {
    background: var(--bg-alt);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.diagram-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.diagram-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.diagram-header p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.diagram-content {
    border-radius: 0.5rem;
    overflow: hidden;
}

.diagram-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== 模块展示 ==================== */
.module-showcase {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: 1rem;
}

.module-showcase:last-child {
    margin-bottom: 0;
}

.module-showcase-reverse {
    flex-direction: row-reverse;
}

.module-showcase-content {
    flex: 1;
}

.module-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.module-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.module-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.module-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.module-features li:last-child {
    margin-bottom: 0;
}

.module-features i {
    color: #10b981;
    font-size: 1.25rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.module-features strong {
    color: var(--text);
    margin-right: 0.5rem;
}

.module-showcase-image {
    flex: 1;
    max-width: 500px;
}

.module-showcase-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.module-showcase-image:hover img {
    transform: scale(1.05);
}

/* ==================== 优势网格 ==================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.advantage-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.advantage-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==================== 集成环境网格 ==================== */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.integration-card {
    background: var(--bg-alt);
    border: 2px solid var(--gray-lighter);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.integration-card:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.integration-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.integration-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.integration-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ==================== CTA 区域 ==================== */
.product-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: var(--white);
    color: #6366f1;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    color: #6366f1;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: var(--white);
}

/* ==================== 响应式优化（对齐 privacy.css）==================== */
@media (max-width: 768px) {
    .tech-stack-grid,
    .advantages-grid,
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .module-showcase {
        flex-direction: column;
        gap: 2rem;
    }
    
    .module-showcase-reverse {
        flex-direction: column;
    }
    
    .module-showcase-image {
        max-width: 100%;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .btn-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tech-stack-grid,
    .advantages-grid,
    .integrations-grid {
        grid-template-columns: 1fr;
    }
}
