/* ===== 首页专属样式 - 工业未来主义 ===== */

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 100px 100px,
        linear-gradient(0deg, var(--border) 1px, transparent 1px) 0 0 / 100px 100px;
    opacity: 0.2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 80%);
}

.hero-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
    animation: scan 6s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-2xl) 0;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-orange);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-label::before {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--accent-orange);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero-title-accent {
    color: var(--accent-cyan);
    display: inline;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    position: relative;
}

.hero-stats-row::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: var(--space-xl);
    height: 1px;
    background: var(--accent-cyan);
}

.stat-block {
    position: relative;
}

.stat-block::after {
    content: '';
    position: absolute;
    top: -var(--space-xl);
    right: 0;
    width: 1px;
    height: calc(100% + var(--space-xl));
    background: var(--border);
}

.stat-block:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 300;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.03em;
}

.stat-unit {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 300;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: var(--space-sm);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-lg);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--accent-cyan);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { top: -20px; }
    50% { top: 100%; }
}

/* ===== 跑马灯 ===== */
.marquee-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
    overflow: hidden;
    position: relative;
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-elevated), transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-elevated), transparent);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.marquee-item::after {
    content: '◆';
    color: var(--accent-cyan);
    font-size: 8px;
}

/* ===== Services Section ===== */
.services-section {
    padding: var(--space-2xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-cell {
    background: var(--bg);
    padding: var(--space-xl);
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.6s var(--ease-out-expo);
}

.service-cell:hover {
    background: var(--bg-card);
}

.service-cell:hover::before {
    width: 100%;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.1em;
}

.service-cell .card-icon {
    margin-bottom: var(--space-lg);
}

/* ===== About Section ===== */
.about-section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: var(--space-xl);
    background: var(--border);
    transform: translateX(-50%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-visual {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.about-visual-inner {
    position: absolute;
    inset: var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), rgba(123, 97, 255, 0.05));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--space-xl);
}

.about-visual-grid {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(0deg, var(--border) 1px, transparent 1px) 0 0 / 40px 40px;
    opacity: 0.5;
}

.about-exp-badge {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: var(--space-lg) var(--space-xl);
    position: relative;
    z-index: 2;
}

.about-exp-num {
    font-family: var(--font-mono);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 300;
    color: var(--accent-cyan);
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-exp-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: var(--space-sm);
}

.about-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.about-feature::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    flex-shrink: 0;
}

/* ===== Tech Stack ===== */
.tech-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.tech-category {
    background: var(--bg);
    padding: var(--space-xl);
    transition: all 0.4s ease;
}

.tech-category:hover {
    background: var(--bg-card);
}

.tech-cat-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ===== Portfolio ===== */
.portfolio-section {
    padding: var(--space-2xl) 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.portfolio-cell {
    background: var(--bg);
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
}

.portfolio-cell:hover {
    background: var(--bg-card);
}

.portfolio-visual {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.portfolio-visual-bg {
    position: absolute;
    inset: 0;
    opacity: 0.8;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.4s;
}

.portfolio-cell:hover .portfolio-visual-bg {
    transform: scale(1.05);
    opacity: 1;
}

.portfolio-tag {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.portfolio-info {
    padding: var(--space-xl);
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.portfolio-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tech span {
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ===== Testimonials ===== */
.testimonials-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: var(--space-xl);
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 80px;
    color: var(--border);
    line-height: 1;
    position: absolute;
    top: var(--space-md);
    right: var(--space-lg);
    font-style: italic;
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--accent-orange);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
    font-family: var(--font-mono);
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 2px;
}

.author-company {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ===== CTA ===== */
.cta-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 80px 80px,
        linear-gradient(0deg, var(--border) 1px, transparent 1px) 0 0 / 80px 80px;
    opacity: 0.2;
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: var(--space-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .services-grid,
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-block::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .services-grid,
    .tech-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
