﻿/* =====================================================
   婀栧崡鐪侀摐鍏冪綉缁滅鎶€鏈夐檺鍏徃 - 瀹樻柟缃戠珯鏍峰紡
   Color Theme: linear-gradient(135deg, #1e3a8a, #2563eb)
   ===================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Colors */
    --color-primary-900: #1e3a8a;
    --color-primary-800: #1e40af;
    --color-primary-700: #1d4ed8;
    --color-primary-600: #2563eb;
    --color-primary-500: #3b82f6;
    --color-primary-400: #60a5fa;
    --color-primary-300: #93c5fd;
    --color-primary-200: #bfdbfe;
    --color-primary-100: #dbeafe;
    --color-primary-50: #eff6ff;

    --gradient-primary: linear-gradient(135deg, #1e3a8a, #2563eb);
    --gradient-primary-light: linear-gradient(135deg, #1e40af, #3b82f6);
    --gradient-hero: linear-gradient(160deg, #0c1445 0%, #1e3a8a 40%, #2563eb 100%);

    --color-dark: #0a0f1e;
    --color-dark-800: #111827;
    --color-dark-700: #1a2035;
    --color-dark-600: #1e293b;
    --color-dark-500: #334155;
    --color-gray: #64748b;
    --color-light: #94a3b8;
    --color-lighter: #cbd5e1;
    --color-white: #f8fafc;
    --color-pure: #ffffff;

    --color-glow: rgba(59, 130, 246, 0.15);
    --color-glow-strong: rgba(59, 130, 246, 0.4);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(37, 99, 235, 0.2), 0 0 80px rgba(37, 99, 235, 0.1);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 200ms var(--ease-out);
    --transition-normal: 400ms var(--ease-out);
    --transition-slow: 600ms var(--ease-out);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-white);
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   INTRO SCREEN - 3绉掔鎶€鎰熷紑鍦哄姩鐢?   ============================================================ */
.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-screen.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.intro-screen.hidden {
    display: none;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

/* 鍏竟褰㈠浘鏍?*/
/* Intro Hex Icon */
.intro-hex-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-hex-icon {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 12px rgba(96,165,250,0.6)) drop-shadow(0 0 30px rgba(37,99,235,0.3));
}

/* Intro Text */
.intro-text-wrapper {
    text-align: center;
    position: relative;
}

.intro-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #60a5fa, #93c5fd, #60a5fa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
    white-space: nowrap;
}

.intro-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    letter-spacing: 0.35em;
    color: var(--color-primary-400);
    margin-top: var(--space-2);
}

.intro-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary-400), transparent);
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 鍔犺浇鏉?*/
.intro-loading {
    position: absolute;
    bottom: -80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(96, 165, 250, 0.12);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loading-fill {
    width: 0%;
    height: 100%;
    background: #60a5fa;
    border-radius: var(--radius-full);
    box-shadow:
        0 0 6px #60a5fa,
        0 0 16px rgba(96,165,250,0.7),
        0 0 30px rgba(96,165,250,0.4),
        0 0 50px rgba(37,99,235,0.2);
}

.loading-text {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.5em;
    color: var(--color-primary-400);
    opacity: 0.6;
}

/* 鎵弿绾?*/
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(96,165,250,0.2) 20%, rgba(96,165,250,0.9) 50%, rgba(96,165,250,0.2) 80%, transparent 100%);
    opacity: 0.6;
    animation: scanMove 2.5s ease-in-out infinite;
    box-shadow:
        0 0 8px rgba(96,165,250,0.6),
        0 0 20px rgba(96,165,250,0.4),
        0 0 40px rgba(37,99,235,0.3),
        0 0 80px rgba(37,99,235,0.15);
}

/* 扫描线光晕尾迹 */
.scan-line::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(37,99,235,0.04) 30%,
        rgba(96,165,250,0.1) 45%,
        rgba(96,165,250,0.15) 50%,
        rgba(96,165,250,0.1) 55%,
        rgba(37,99,235,0.04) 70%,
        transparent 100%
    );
    pointer-events: none;
}

/* 扫描线下方弱光 */
.scan-line::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 10%;
    right: 10%;
    height: 30px;
    background: linear-gradient(180deg, rgba(96,165,250,0.12) 0%, transparent 100%);
    filter: blur(6px);
    pointer-events: none;
}

@keyframes scanMove {
    0% { top: -2px; opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

/* ============================================================
   MAIN PAGE
   ============================================================ */
.main-page {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-page.visible {
    opacity: 1;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-6) 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: var(--space-4) 0;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 10;
}

.logo-icon {
    width: 36px;
    height: 36px;
    filter: none;
    transition: filter 0.6s ease;
    transform-origin: 50% 50%;
}

.logo:hover .logo-icon {
    animation: logoSpin 3s linear infinite !important;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6)) !important;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-pure);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-pure);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--color-primary-400);
    border-radius: var(--radius-full);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: var(--space-2);
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-pure);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: floatOrb 10s 2s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-primary-300);
    margin-bottom: var(--space-8);
    opacity: 0;
    animation: slideUp 0.6s 0.3s var(--ease-out) forwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary-400);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(96, 165, 250, 0); }
}

.hero-title {
    font-size: clamp(var(--text-xl), 2.8vw, var(--text-3xl));
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--space-8);
}

.hero-title-line {
    display: block;
    opacity: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(
        90deg,
        #94a3b8 0%,
        #94a3b8 40%,
        #93c5fd 48%,
        #ffffff 50%,
        #93c5fd 52%,
        #94a3b8 60%,
        #94a3b8 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: titleEntry 0.7s var(--ease-out) forwards,
               titleSunShine 10s linear infinite;
}

.hero-title-line:nth-child(1) { animation-delay: 0.4s, 0.4s; }
.hero-title-line:nth-child(2) { animation-delay: 0.6s, 0.8s; }


/* 阳光照射效果 - 光带从左到右单向缓慢扫过 */
@keyframes titleSunShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 标题入场动画（替代原slideUp）*/
@keyframes titleEntry {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
    font-size: var(--text-lg);
    color: var(--color-light);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto var(--space-10);
    opacity: 0;
    animation: slideUp 0.7s 0.8s var(--ease-out) forwards;
}

.hero-desc-br { display: none; }

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
    opacity: 0;
    animation: slideUp 0.7s 1s var(--ease-out) forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-pure);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-300);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.5);
    color: var(--color-pure);
    transform: translateY(-2px);
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 0.5; }
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-primary-400);
    border-radius: var(--radius-full);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

.hero-scroll-hint span {
    font-size: var(--text-xs);
    color: var(--color-light);
    letter-spacing: 0.1em;
}

/* ---------- SECTIONS COMMON ---------- */
.section {
    padding: var(--space-24) 0;
    position: relative;
}

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

.section-tag {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    color: var(--color-primary-400);
    display: block;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-pure);
    margin-bottom: var(--space-4);
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin: 0 auto;
}

.section-desc {
    max-width: 720px;
    margin: var(--space-6) auto 0;
    font-size: var(--text-base);
    color: var(--color-light);
    line-height: 1.8;
}

.section-desc strong {
    color: var(--color-primary-300);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--color-dark);
}

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

.about-visual {
    position: relative;
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 6s ease-in-out infinite;
}

.about-code-block {
    position: relative;
    background: var(--color-dark-700);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

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

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-title {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--color-light);
    margin-left: var(--space-2);
}

.code-body {
    padding: var(--space-6);
    font-family: 'Courier New', monospace;
    font-size: var(--text-sm);
    line-height: 1.8;
}

.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-num { color: #f78c6c; }
.code-func { color: #82aaff; }

.about-heading {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-6);
    color: var(--color-pure);
}

.about-desc {
    color: var(--color-light);
    margin-bottom: var(--space-4);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.feature-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    padding: 10px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.feature-item strong {
    display: block;
    color: var(--color-pure);
    font-size: var(--text-base);
    margin-bottom: 2px;
}

.feature-item span {
    font-size: var(--text-sm);
    color: var(--color-light);
}

/* ---------- SERVICES ---------- */
.services {
    background: var(--color-dark-800);
}

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

.service-card--featured {
    padding: var(--space-10);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card--featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: all var(--transition-slow);
}

.service-card--featured:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: var(--shadow-glow);
}

.service-card--featured:hover::before {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    transition: all var(--transition-fast);
}

.service-icon-wrap svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary-400);
    transition: all var(--transition-fast);
}

.service-card--featured:hover .service-icon-wrap {
    background: var(--gradient-primary);
}

.service-card--featured:hover .service-icon-wrap svg {
    stroke: white;
}

.service-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-pure);
    margin-bottom: var(--space-3);
}

.service-desc {
    font-size: var(--text-sm);
    color: var(--color-light);
    line-height: 1.7;
    flex: 1;
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(59, 130, 246, 0.08);
}

.service-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-primary-300);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.service-card--featured:hover .service-tag {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.service-hover-line {
    display: none;
}

.service-card--featured:hover .service-hover-line {
    opacity: 1;
}

/* Services Extra Bar */
.services-extra {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(59, 130, 246, 0.06);
}

.services-extra-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.06);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.services-extra-item:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.services-extra-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.services-extra-item:hover .services-extra-icon {
    background: var(--gradient-primary);
}

.services-extra-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary-400);
    transition: stroke var(--transition-fast);
}

.services-extra-item:hover .services-extra-item svg {
    stroke: white;
}

.services-extra-item strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-pure);
}

.services-extra-item span {
    font-size: var(--text-xs);
    color: var(--color-light);
}

/* ---------- ADVANTAGES ---------- */
.advantages {
    background: var(--color-dark);
}

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

.adv-card {
    padding: var(--space-10);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-align: center;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: all var(--transition-slow);
}

.adv-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.adv-card:hover::before {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.adv-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-xl);
    margin: 0 auto var(--space-6);
    transition: all var(--transition-fast);
}

.adv-icon-wrap svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary-400);
    transition: all var(--transition-fast);
}

.adv-card:hover .adv-icon-wrap {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.adv-card:hover .adv-icon-wrap svg {
    stroke: white;
}

.adv-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-pure);
    margin-bottom: var(--space-4);
}

.adv-desc {
    font-size: var(--text-sm);
    color: var(--color-light);
    line-height: 1.8;
}

.adv-highlight {
    color: var(--color-primary-300);
    font-weight: 600;
}

.adv-badge {
    display: inline-block;
    margin-top: var(--space-6);
    padding: var(--space-1) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary-400);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--color-dark-800);
}

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

.contact-card {
    padding: var(--space-10);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-align: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: all var(--transition-slow);
}

.contact-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.contact-card:hover::before {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-xl);
    margin: 0 auto var(--space-6);
    transition: all var(--transition-fast);
}

.contact-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary-400);
    transition: all var(--transition-fast);
}

.contact-card:hover .contact-card-icon {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.contact-card:hover .contact-card-icon svg {
    stroke: white;
}

.contact-card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-pure);
    margin-bottom: var(--space-4);
}

.contact-card-desc {
    font-size: var(--text-sm);
    color: var(--color-light);
    line-height: 1.8;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-dark);
    border-top: 1px solid rgba(59, 130, 246, 0.08);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-16);
    padding: var(--space-16) 0 var(--space-10);
}

.footer-desc {
    color: var(--color-light);
    font-size: var(--text-sm);
    margin-top: var(--space-4);
    line-height: 1.8;
}

.footer-links-group h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-pure);
    margin-bottom: var(--space-4);
}

.footer-links-group a {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-light);
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(59, 130, 246, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-gray);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

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

    .advantages-grid--3col {
        grid-template-columns: 1fr;
    }

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

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
    }

    .section { padding: var(--space-16) 0; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        background: #0a0f1e;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: var(--space-2);
        padding-top: 100px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-normal);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: var(--text-xl);
        padding: var(--space-3) var(--space-6);
    }

    .hero { min-height: 100dvh; min-height: 100vh; padding: 80px 0 50px; }

    .hero-desc-br { display: inline; }

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

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

    .advantages-grid--3col {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-brand { grid-column: span 1; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-4); }

    .hero-title {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
    }

    .hero-badge {
        white-space: normal;
        font-size: var(--text-xs);
    }

    .hero-desc {
        font-size: var(--text-sm);
    }

    .intro-title {
        font-size: var(--text-2xl);
        letter-spacing: 0.1em;
    }

    .intro-hex-icon {
        width: 70px;
        height: 70px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Smooth Scroll for reduced-motion ---------- */
/* 仅对非核心装饰性动效降级，保留开场动画和关键交互 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    /* 仅禁用滚动显示类装饰动画，不影响核心体验 */
    .reveal { opacity: 1; transform: none; }
    .hero-title-line { animation: titleEntry 0.7s var(--ease-out) forwards !important; }
    .float-dot { animation: none; }

    /* 保留 intro-screen 开场动画完整运行 */
    .intro-screen,
    .intro-hex-grid,
    .intro-title,
    .loading-fill,
    .scan-line {
        animation-duration: unset !important;
        animation-iteration-count: unset !important;
        transition-duration: unset !important;
    }
}


