/**
 * CRCAI Home Page Styles
 * 首页专用样式表（精简版）
 */

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.hero {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #0a1628 0%, #000000 100%);
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, transparent 49%, rgba(0, 128, 255, 0.3) 49.5%, rgba(0, 128, 255, 0.3) 50.5%, transparent 51%);
    opacity: 0.15;
    animation: scanline 4s ease-in-out infinite;
}

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

.hero-beam {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 128, 255, 0.4), transparent);
    left: 50%;
    opacity: 0.3;
    animation: beamPulse 4s ease-in-out infinite;
}

@keyframes beamPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--spacing-lg);
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-badge::before,
.hero-badge::after {
    content: '';
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 60px;
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: 24px;
    line-height: 1.1;
    color: white;
}

.hero-title strong {
    font-weight: 600;
    background: linear-gradient(135deg, var(--tech-blue), #00C6FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-subtitle-secondary {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

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

.hero-stat {
    text-align: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.hero-stat:nth-child(1) { border-left: 3px solid var(--tech-blue); }
.hero-stat:nth-child(2) { border-left: 3px solid var(--success-green); }
.hero-stat:nth-child(3) { border-left: 3px solid var(--error-red); }
.hero-stat:nth-child(4) { border-left: 3px solid var(--info-cyan); }

.hero-stat-value {
    font-size: 36px;
    font-weight: 200;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat:nth-child(1) .hero-stat-value { color: var(--tech-blue); }
.hero-stat:nth-child(2) .hero-stat-value { color: var(--success-green); }
.hero-stat:nth-child(3) .hero-stat-value { color: var(--error-red); }
.hero-stat:nth-child(4) .hero-stat-value { color: var(--info-cyan); }

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.hero-stat-product {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2. Section Common
   ========================================================================== */
.section {
    padding: var(--spacing-xxxl) 0;
}

.section-gray {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--primary-blue);
    opacity: 0.4;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.section-desc {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   3. Pain Points
   ========================================================================== */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.pain-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    position: relative;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--error-red);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.pain-card:hover {
    border-color: var(--error-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pain-card:hover::before {
    opacity: 1;
}

.pain-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFEBEE;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    color: var(--error-red);
}

.pain-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.pain-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   4. Why CRCAI
   ========================================================================== */
.why-section {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #0a1628 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px);
}

.why-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.why-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: var(--spacing-md);
}

.why-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

.why-desc {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.why-highlight {
    color: var(--accent-yellow);
    font-weight: 600;
}

/* ==========================================================================
   5. Products Grid - 精简版
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.product-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-card[data-product="os"] { border-left: 4px solid var(--primary-blue); }
.product-card[data-product="model"] { border-left: 4px solid var(--success-green); }
.product-card[data-product="deploy"] { border-left: 4px solid var(--error-red); }
.product-card[data-product="blueprint"] { border-left: 4px solid var(--info-cyan); }

.product-card[data-product="os"]:hover { border-color: var(--primary-blue); }
.product-card[data-product="model"]:hover { border-color: var(--success-green); }
.product-card[data-product="deploy"]:hover { border-color: var(--error-red); }
.product-card[data-product="blueprint"]:hover { border-color: var(--info-cyan); }

.product-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    width: fit-content;
}

.product-label-blue { color: var(--primary-blue); background: var(--light-blue); }
.product-label-green { color: var(--success-green); background: #E8F5E9; }
.product-label-red { color: var(--error-red); background: #FFEBEE; }
.product-label-cyan { color: var(--info-cyan); background: #E0F7FA; }

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.product-tagline {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
}

/* 能力标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-lg);
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 20px;
    transition: all 0.2s;
}

.product-tag i {
    width: 14px;
    height: 14px;
}

.product-card[data-product="os"] .product-tag i { color: var(--primary-blue); }
.product-card[data-product="model"] .product-tag i { color: var(--success-green); }
.product-card[data-product="deploy"] .product-tag i { color: var(--error-red); }
.product-card[data-product="blueprint"] .product-tag i { color: var(--info-cyan); }

.product-card:hover .product-tag {
    background: var(--gray-200);
}

/* 一句话结果 */
.product-result {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.product-result-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-result-text i {
    flex-shrink: 0;
}

.product-card[data-product="os"] .product-result-text { color: var(--primary-blue); }
.product-card[data-product="model"] .product-result-text { color: var(--success-green); }
.product-card[data-product="deploy"] .product-result-text { color: var(--error-red); }
.product-card[data-product="blueprint"] .product-result-text { color: var(--info-cyan); }

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all 0.2s;
    white-space: nowrap;
}

.product-link:hover {
    gap: 8px;
}

.product-card[data-product="model"] .product-link { color: var(--success-green); }
.product-card[data-product="deploy"] .product-link { color: var(--error-red); }
.product-card[data-product="blueprint"] .product-link { color: var(--info-cyan); }

/* ==========================================================================
   6. Collaboration Logic
   ========================================================================== */
.collab-container {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.collab-left,
.collab-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.collab-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.collab-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.collab-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.collab-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.collab-card[data-layer="os"] .collab-card-icon { background: var(--light-blue); color: var(--primary-blue); }
.collab-card[data-layer="model"] .collab-card-icon { background: #E8F5E9; color: var(--success-green); }
.collab-card[data-layer="deploy"] .collab-card-icon { background: #FFEBEE; color: var(--error-red); }
.collab-card[data-layer="blueprint"] .collab-card-icon { background: #E0F7FA; color: var(--info-cyan); }

.collab-card[data-layer="os"] { border-left: 3px solid var(--primary-blue); }
.collab-card[data-layer="model"] { border-left: 3px solid var(--success-green); }
.collab-card[data-layer="deploy"] { border-left: 3px solid var(--error-red); }
.collab-card[data-layer="blueprint"] { border-left: 3px solid var(--info-cyan); }

.collab-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.collab-card-subtitle {
    font-size: 12px;
    color: var(--gray-500);
}

.collab-card-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.collab-card-metrics {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.collab-metric {
    text-align: center;
    flex: 1;
}

.collab-metric-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.collab-card[data-layer="os"] .collab-metric-value { color: var(--primary-blue); }
.collab-card[data-layer="model"] .collab-metric-value { color: var(--success-green); }
.collab-card[data-layer="deploy"] .collab-metric-value { color: var(--error-red); }
.collab-card[data-layer="blueprint"] .collab-metric-value { color: var(--info-cyan); }

.collab-metric-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* 中间流程图 */
.collab-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.collab-flow::before {
    content: '';
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-blue), var(--success-green), var(--error-red), var(--info-cyan));
    transform: translateX(-50%);
}

.collab-flow-node {
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.collab-flow-node:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.collab-flow-node:nth-child(1) { border-color: var(--primary-blue); color: var(--primary-blue); }
.collab-flow-node:nth-child(2) { border-color: var(--success-green); color: var(--success-green); margin-top: 40px; }
.collab-flow-node:nth-child(3) { border-color: var(--error-red); color: var(--error-red); margin-top: 40px; }
.collab-flow-node:nth-child(4) { border-color: var(--info-cyan); color: var(--info-cyan); margin-top: 40px; }

.collab-flow-arrow {
    color: var(--gray-400);
    margin: 8px 0;
}

/* 协同逻辑总结 */
.collab-logic-summary {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-align: center;
}

.collab-logic-text {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
}

.collab-logic-text strong {
    color: var(--gray-900);
}

/* 底部效果卡片 */
.collab-summary {
    margin-top: var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.collab-summary-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.collab-summary-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.collab-summary-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.collab-summary-item:nth-child(1) .collab-summary-icon { background: var(--light-blue); color: var(--primary-blue); }
.collab-summary-item:nth-child(2) .collab-summary-icon { background: #E8F5E9; color: var(--success-green); }
.collab-summary-item:nth-child(3) .collab-summary-icon { background: #FFEBEE; color: var(--error-red); }
.collab-summary-item:nth-child(4) .collab-summary-icon { background: #E0F7FA; color: var(--info-cyan); }

.collab-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.collab-summary-label {
    font-size: 13px;
    color: var(--gray-600);
}

/* ==========================================================================
   7. Values
   ========================================================================== */
.values-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.value-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.value-tag:hover {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 104, 181, 0.1);
}

.value-tag i { color: var(--primary-blue); }
.value-tag:nth-child(2) i { color: var(--success-green); }
.value-tag:nth-child(3) i { color: var(--tech-blue); }
.value-tag:nth-child(4) i { color: var(--success-green); }
.value-tag:nth-child(5) i { color: var(--error-red); }

/* ==========================================================================
   8. CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #0a1628 100%);
    color: white;
    padding: var(--spacing-xxxl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255,255,255,0.03) 1px, rgba(255,255,255,0.03) 2px);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-desc {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   9. 响应式
   ========================================================================== */
@media (max-width: 1200px) {
    .collab-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .collab-flow {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin: var(--spacing-lg) 0;
    }
    
    .collab-flow::before { display: none; }
    .collab-flow-node { margin-top: 0 !important; }
    .collab-flow-arrow { transform: rotate(-90deg); margin: 0; }
    
    .collab-left,
    .collab-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 968px) {
    .hero-title { font-size: 42px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .pain-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
    .collab-left, .collab-right { grid-template-columns: 1fr; }
    .collab-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .pain-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
    .collab-flow { display: none; }
    .collab-summary { grid-template-columns: 1fr 1fr; }
    .why-title { font-size: 24px; }
    .product-result { flex-direction: column; align-items: flex-start; gap: var(--spacing-sm); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; letter-spacing: -1px; }
    .section-title { font-size: 28px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .collab-summary { grid-template-columns: 1fr; }
}
