/* ============================================
   首页专属样式
   ============================================ */

/* ---- Hero 区（不对称布局） ---- */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 20%, rgba(45, 212, 191, 0.06) 0%, transparent 50%);
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.08);
    animation: orb-pulse 6s ease-out infinite;
}

.hero-orb.o1 {
    width: 500px;
    height: 500px;
    top: 5%;
    right: -8%;
    animation-delay: 0s;
}

.hero-orb.o2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    left: -3%;
    animation-delay: 2s;
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-6);
}

.hero-title .accent-line {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-title .accent-line::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-dim);
    border-radius: 2px;
    z-index: -1;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-10);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Hero 右侧视觉 */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.terminal-window {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(45, 212, 191, 0.06);
    position: relative;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: var(--danger); }
.terminal-dot.yellow { background: var(--warning); }
.terminal-dot.green { background: var(--success); }

.terminal-body {
    padding: var(--space-5);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.terminal-line {
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    animation: term-fade 0.5s var(--ease-out-expo) forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.3s; }
.terminal-line:nth-child(2) { animation-delay: 0.8s; }
.terminal-line:nth-child(3) { animation-delay: 1.3s; }
.terminal-line:nth-child(4) { animation-delay: 1.8s; }
.terminal-line:nth-child(5) { animation-delay: 2.3s; }

@keyframes term-fade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.terminal-prompt { color: var(--accent); }
.terminal-cmd { color: var(--text-primary); }
.terminal-output { color: var(--text-tertiary); }
.terminal-success { color: var(--success); }

/* ---- 服务网格（不对称 Bento） ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.services-grid .card:nth-child(1) { grid-column: span 2; }
.services-grid .card:nth-child(4) { grid-column: span 2; }

/* ---- 流程步骤 ---- */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-10);
}

.step {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    position: relative;
    transition: all var(--duration-base) var(--ease-out-expo);
    box-shadow: var(--shadow-inset);
}

.step:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: var(--space-4);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-top: var(--space-8);
}

/* ---- 扫描区 ---- */
.scan-section {
    background: radial-gradient(ellipse at 50% 100%, rgba(45, 212, 191, 0.04) 0%, transparent 60%);
}

.scan-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-10);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-inset), var(--shadow-lg);
}

.scan-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.2), transparent);
}

.scan-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.scan-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-8);
}

.scan-form {
    display: flex;
    gap: var(--space-3);
    max-width: 560px;
    margin: 0 auto var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.scan-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-4);
    flex: 1;
    min-width: 260px;
    transition: border-color var(--duration-fast) var(--ease-out-expo);
}

.scan-input-group:focus-within {
    border-color: var(--border-accent);
}

.scan-prefix {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.scan-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: var(--space-3) var(--space-3);
    font-family: inherit;
}

.scan-input::placeholder {
    color: var(--text-muted);
}

.scan-tags {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- 波浪分隔 ---- */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .hero-visual {
        order: -1;
        min-height: auto;
    }

    .hero-stats {
        gap: var(--space-6);
    }

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

    .services-grid .card:nth-child(1),
    .services-grid .card:nth-child(4) {
        grid-column: span 1;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-arrow {
        display: none;
    }

    .scan-box {
        padding: var(--space-8) var(--space-5);
    }

    .scan-form {
        flex-direction: column;
    }

    .scan-input-group {
        width: 100%;
    }
}
