/*
 * product.css — 大方软件产品详情页专属样式
 * 依赖 main.css 中的 CSS 变量和基础组件
 */

/* =====================================================
   1. 产品 Hero — 深色全宽区域
   ===================================================== */
.product-hero-dark {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d2057 60%, #092040 100%);
    color: var(--text-white);
    text-align: center;
    overflow: hidden;
}

/* 背景装饰光圈 */
.product-hero-dark::before,
.product-hero-dark::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}
.product-hero-dark::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    top: -100px;
    right: -80px;
}
.product-hero-dark::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    bottom: -80px;
    left: -60px;
}

.product-hero-tag {
    display: inline-block;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.product-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #c8e6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.product-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   2. 产品概述 — 左文右图两列布局
   ===================================================== */
.overview-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.overview-text .section-tag {
    display: block;
    margin-bottom: 12px;
}

.overview-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.overview-text p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 16px;
    font-size: 1rem;
    text-indent: 2em;
    text-align: justify;
}

.overview-visual {
    position: relative;
}

.overview-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background: linear-gradient(135deg, #e8f0fe 0%, #c8dcff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.overview-img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,86,210,0.08) 0%, transparent 100%);
}

/* =====================================================
   3. 核心价值 — 3列特色卡片
   ===================================================== */
.value-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    background: var(--bg-main);
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 86, 210, 0.2);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,86,210,0.1), rgba(0,229,255,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: scale(1.1);
}

.value-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================================================
   4. 功能特点 — 2列图标化网格
   ===================================================== */
.feature-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: var(--bg-light);
    border-color: rgba(0, 86, 210, 0.25);
    box-shadow: var(--shadow-sm);
}

.feature-dot {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

.feature-item-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.feature-item-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =====================================================
   5. 应用效果 — 数字指标横排
   ===================================================== */
.effect-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.effect-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    text-align: center;
}

.effect-stat {
    padding: 40px 20px;
    background: var(--bg-main);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.effect-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.effect-unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-light);
}

.effect-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* =====================================================
   6. 行动召唤 CTA — 深色背景
   ===================================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-dark), #0d2057);
    text-align: center;
    color: var(--text-white);
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   7. 响应式
   ===================================================== */
@media (max-width: 992px) {
    .product-hero-title { font-size: 2.4rem; }
    .overview-grid { grid-template-columns: 1fr; gap: 50px; }
    .value-cards { grid-template-columns: repeat(2, 1fr); }
    .effect-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .product-hero-dark { padding: 130px 0 70px; }
    .product-hero-title { font-size: 1.9rem; }
    .value-cards { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .effect-stats { grid-template-columns: repeat(2, 1fr); }
    .cta-section h2 { font-size: 1.75rem; }
    .overview-section,
    .value-section,
    .feature-section,
    .effect-section,
    .cta-section { padding: 70px 0; }
}
