/* ========================================
   嫣然集技术 - 主样式文件
   智能电商科技风主题
   ======================================== */

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

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e293b 100%);
    --bg-primary: #0f0f1a;
    --bg-secondary: #16162a;
    --bg-card: #1a1a30;
    --bg-card-hover: #222244;
    --border: rgba(99,102,241,0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
    --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
    --transition-normal: 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 500; color: var(--primary-light);
    background: rgba(99,102,241,0.1); border: 1px solid var(--border);
    padding: 6px 16px; border-radius: 100px; margin-bottom: 16px; letter-spacing: 0.05em;
}
.section-title { font-size: 2.4rem; font-weight: 700; line-height: 1.3; margin-bottom: 20px; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 72px;
    transition: var(--transition-normal); background: transparent;
}
.navbar.scrolled {
    background: rgba(15,15,26,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.logo-svg {
    width: 34px; height: 34px; flex-shrink: 0;
    color: var(--primary);
}
.nav-logo:hover .logo-svg { color: var(--primary-light); }
.nav-menu { display: flex; gap: 8px; }
.nav-link { padding: 8px 18px; border-radius: 8px; font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition-fast); }
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(99,102,241,0.1); }
.nav-cta {
    padding: 10px 24px; background: var(--gradient-primary); border-radius: 10px;
    font-size: 0.9rem; font-weight: 500; color: #fff; transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(99,102,241,0.4); }

/* Hero */
.hero-section { position: relative; min-height: 100vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-container {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px;
    background: linear-gradient(160deg, 
        #1a1740 0%, 
        #141330 40%, 
        #1a1a35 70%, 
        #0f0f1a 100%
    );
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}
.hero-particles span {
    position: absolute; border-radius: 50%; background: var(--primary-light);
    animation: float 6s infinite ease-in-out; opacity: 0.15;
}
.hero-particles span:nth-child(1) { width:4px;height:4px;left:10%;top:20%; }
.hero-particles span:nth-child(2) { width:2px;height:2px;left:20%;top:60%;animation-delay:1s; }
.hero-particles span:nth-child(3) { width:3px;height:3px;left:35%;top:30%;animation-delay:2s; }
.hero-particles span:nth-child(4) { width:2px;height:2px;left:50%;top:70%;animation-delay:0.5s; }
.hero-particles span:nth-child(5) { width:4px;height:4px;left:65%;top:25%;animation-delay:1.5s; }
.hero-particles span:nth-child(6) { width:3px;height:3px;left:75%;top:55%;animation-delay:2.5s; }
.hero-particles span:nth-child(7) { width:2px;height:2px;left:85%;top:35%;animation-delay:3s; }
.hero-particles span:nth-child(8) { width:3px;height:3px;left:15%;top:85%;animation-delay:1.8s; }
.hero-particles span:nth-child(9) { width:2px;height:2px;left:55%;top:15%;animation-delay:0.8s; }
.hero-particles span:nth-child(10) { width:4px;height:4px;left:90%;top:80%;animation-delay:2.2s; }
@keyframes float { 0%,100%{transform:translateY(0)scale(1)} 50%{transform:translateY(-20px)scale(1.5)} }

.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
    background: rgba(99,102,241,0.1); border: 1px solid var(--border);
    border-radius: 100px; font-size: 0.85rem; color: var(--primary-light); margin-bottom: 28px;
}
.badge-dot { width:6px;height:6px;border-radius:50%;background:var(--primary-light);animation:pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-title { font-size: 3.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 24px; letter-spacing: -0.01em; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 56px; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; background: var(--gradient-primary); border-radius: 12px;
    font-size: 1rem; font-weight: 600; color: #fff; transition: var(--transition-fast);
    box-shadow: 0 4px 20px rgba(99,102,241,0.35); border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.45); }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; background: transparent; border: 1.5px solid var(--border);
    border-radius: 12px; font-size: 1rem; font-weight: 500; color: var(--text-primary); transition: var(--transition-fast);
}
.btn-outline:hover { border-color: var(--primary-light); background: rgba(99,102,241,0.05); transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

.hero-stats { display: flex; align-items: center; gap: 28px; }
.stat-item { text-align: center; }
.stat-number {
    display: block; font-size: 1.6rem; font-weight: 700;
    background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual { position: relative; flex-shrink: 0; width: 450px; height: 450px; }
.hero-main-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 220px; height: 220px; background: rgba(99,102,241,0.08); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: 2px solid rgba(99,102,241,0.15);
}
.circle-pulse { position: absolute; inset: -20px; border-radius: 50%; border: 1px solid rgba(99,102,241,0.1); animation: circle-pulse 3s infinite ease-out; }
.circle-inner {
    display: flex; align-items: center; justify-content: center;
}
.hero-logo-svg {
    width: 100px; height: 100px;
    color: var(--primary);
    animation: logo-glow 3s infinite ease-in-out;
}
@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(99,102,241,0.3)); }
    50% { filter: drop-shadow(0 0 16px rgba(99,102,241,0.6)); }
}
@keyframes circle-pulse { 0%{transform:scale(1);opacity:0.6} 100%{transform:scale(1.4);opacity:0} }

.float-card {
    position: absolute; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-md); backdrop-filter: blur(10px); animation: card-float 5s infinite ease-in-out;
}
.card-1{top:15%;left:5%;} .card-2{top:10%;right:0;animation-delay:2s;} .card-3{bottom:12%;left:15%;animation-delay:4s;}
@keyframes card-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.card-icon{font-size:1.5rem;} .card-value{font-size:0.95rem;font-weight:700;color:var(--text-primary);} .card-value.up{color:#34d399;}
.card-label{font-size:0.75rem;color:var(--text-muted);margin-top:2px;}
.hero-connector{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;}

/* Products */
.products-section { padding: 100px 0; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.product-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px 28px; transition: var(--transition-normal); position: relative; overflow: hidden; cursor: default;
}
.product-card::before {
    content: ''; position: absolute; top:0; left:0; right:0; height:2px;
    background: var(--gradient-primary); transform: scaleX(0); transition: var(--transition-slow); transform-origin: left;
}
.product-card:hover { border-color: rgba(99,102,241,0.3); background: var(--bg-card-hover); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.product-card:hover::before { transform: scaleX(1); }
.product-icon-wrap {
    width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center;
    justify-content: center; margin-bottom: 20px;
    background: linear-gradient(145deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.04) 100%);
}
.product-icon { font-size: 1.6rem; }
.product-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.product-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.product-features { display: flex; flex-direction: column; gap: 8px; }
.product-features li { font-size: 0.85rem; color: var(--text-muted); padding-left: 20px; position: relative; }
.product-features li::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: var(--primary-light);
}

.service-banner {
    background: var(--gradient-dark); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 40px; display: flex; align-items: center; justify-content: space-between;
}
.service-banner-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-banner-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* Scenarios */
.scenarios-section { padding: 100px 0; background: var(--bg-secondary); }
.scenarios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scenario-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 28px 28px; transition: var(--transition-normal); position: relative;
}
.scenario-card:hover { border-color: rgba(99,102,241,0.25); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scenario-img { margin-bottom: 24px; }
.scenario-illustration {
    width: 100%; height: 100px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(99,102,241,0.06) 0%, rgba(139,92,246,0.03) 100%);
}
.scenario-illustration svg { width: 80px; height: 80px; }
.scenario-tag {
    position: absolute; top: 20px; right: 20px; padding: 4px 12px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 600; background: rgba(99,102,241,0.15); color: var(--primary-light);
    border: 1px solid rgba(99,102,241,0.2);
}
.scenario-tag.secondary { background: rgba(6,182,212,0.12); color: var(--secondary); border-color: rgba(6,182,212,0.2); }
.scenario-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.scenario-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; }
.scenario-points { display: flex; flex-wrap: wrap; gap: 8px; }
.scenario-points span {
    font-size: 0.78rem; padding: 4px 12px; border-radius: 100px;
    background: rgba(99,102,241,0.06); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.1);
}

/* Compare */
.compare-section { padding: 100px 0; }
.compare-table-wrap { overflow-x: auto; margin-bottom: 60px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.compare-table th, .compare-table td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--border); min-width: 120px; }
.compare-table th { font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); background: rgba(99,102,241,0.04); }
.col-feature { text-align: left; font-weight: 500; color: var(--text-primary); }
.col-us, .col-us-cell { color: var(--primary-light); background: rgba(99,102,241,0.06); font-weight: 500; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(99,102,241,0.03); }

.compare-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.highlight-card {
    text-align: center; padding: 32px 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg); transition: var(--transition-normal);
}
.highlight-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); }
.highlight-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.highlight-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.highlight-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* CTA */
.cta-section { padding: 100px 0; background: var(--bg-secondary); }
.cta-inner {
    text-align: center; background: var(--gradient-dark); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 64px 40px; position: relative; overflow: hidden;
}
.cta-inner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(99,102,241,0.08) 0%, transparent 60%); pointer-events: none;
}
.cta-inner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; position: relative; }
.cta-inner p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 32px; position: relative; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; position: relative; }

/* Footer */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-top: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.footer-links h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.footer-links a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 6px 0; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* Animations on scroll */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; text-align: center; justify-content: center; }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .hero-title { font-size: 2.4rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
    .compare-highlights { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; }
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.3rem; }
    .products-grid { grid-template-columns: 1fr; }
    .scenarios-grid { grid-template-columns: 1fr; }
    .compare-highlights { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .service-banner { flex-direction: column; text-align: center; gap: 20px; }
    .section-title { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-inner { padding: 40px 24px; }
    .cta-inner h2 { font-size: 1.5rem; }
}
