﻿/* 小辉辉AI矩阵 - 深色科技风统一样式 */
:root {
    --primary: #00D4FF;
    --primary-dark: #00a8cc;
    --accent: #f59e0b;
    --gold: #f0c060;
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --border-glow: rgba(0, 212, 255, 0.3);
    --gradient-1: linear-gradient(135deg, #00D4FF 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #f0c060 0%, #f59e0b 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-dark);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* 导航 */
nav {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.logo span { color: var(--gold); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.mobile-menu {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 999;
}

.mobile-nav.active { display: flex; }
.mobile-nav { flex-direction: column; gap: 0.5rem; }
.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}
.mobile-nav a:hover { background: var(--bg-card); color: var(--primary); }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(0,212,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(124,58,237,0.06) 0%, transparent 50%),
                var(--bg-dark);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(1px 1px at 20% 30%, rgba(0,212,255,0.3), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(0,212,255,0.2), transparent),
        radial-gradient(1px 1px at 60% 40%, rgba(0,212,255,0.3), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(124,58,237,0.2), transparent);
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #00D4FF 50%, #f0c060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-slogan {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 212, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.btn-white {
    background: white;
    color: var(--bg-dark);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* Section 通用 */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.bg-card { background: var(--bg-card); }
.bg-dark { background: var(--bg-dark); }

/* 数据统计 */
.stats-bar {
    background: rgba(0, 212, 255, 0.03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item { padding: 1rem; }

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* 核心业务 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

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

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ai-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s;
}

.btn-sm:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* AI行业方案 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s;
    position: relative;
}

.solution-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.solution-upgrade {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.solution-upgrade strong {
    color: var(--primary);
    font-size: 0.85rem;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.solution-upgrade li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    list-style: none;
}

.solution-upgrade li::before { content: '→ '; color: var(--primary); }

/* 智能体矩阵 */
.matrix-section {
    padding: 6rem 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(124,58,237,0.06) 0%, transparent 60%),
                var(--bg-dark);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.matrix-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s;
    position: relative;
}

.matrix-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.matrix-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.matrix-card h3 { margin-bottom: 0.8rem; }

.matrix-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.matrix-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-top: 0.8rem;
}

.matrix-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.matrix-status::before {
    content: '';
    width: 6px; height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 路线图 */
.roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.roadmap-step {
    text-align: center;
    position: relative;
}

.roadmap-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -1rem;
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.step-number {
    width: 80px; height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.roadmap-step h3 { margin-bottom: 0.8rem; }

.roadmap-step p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* CTA */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(124,58,237,0.08) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 3rem 0 2rem;
    background: rgba(0,0,0,0.3);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.footer-links a:hover { color: var(--primary); }

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.partner-logo {
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.partner-logo img {
    height: 30px;
    filter: grayscale(30%) brightness(0.8);
}

/* 响应式 */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .matrix-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--primary); }
.about-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.about-visual { background: var(--gradient-1); border-radius: 20px; padding: 3rem; color: white; text-align: center; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .matrix-grid { grid-template-columns: 1fr; }
    .roadmap { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; }
    footer .container > div:first-child { grid-template-columns: 1fr !important; text-align: center; }
    .roadmap-step:not(:last-child)::after { display: none; }
    .hero { padding-top: 6rem; }
    .hero h1 { font-size: 2rem; }
}

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--primary); }
.about-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.about-visual { background: var(--gradient-1); border-radius: 20px; padding: 3rem; color: white; text-align: center; }
    
    .features-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .matrix-grid { grid-template-columns: 1fr; }
    .roadmap { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    .roadmap-step:not(:last-child)::after { display: none; }
    
    .hero { padding-top: 6rem; }
    .hero h1 { font-size: 2rem; }
}

/* 底部固定导航（移动端） */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 0.3rem;
}

.bottom-nav a span { font-size: 1.3rem; margin-bottom: 0.2rem; }
.bottom-nav a.active { color: var(--primary); }

@media (max-width: 768px) {
    .bottom-nav { display: block; }
    footer { padding-bottom: 5rem; }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 过渡动画 */
.nav-container a,
.feature-card,
.solution-card,
.matrix-card,
.roadmap-step {
    transition: all 0.3s ease;
}

/* Register page mobile fix */
.register-page { padding-bottom: max(80px, env(safe-area-inset-bottom)); }
