/* ===== Soft Dark Theme ===== */
:root {
    --bg-primary: #151d2b;
    --bg-card: #1c2535;
    --bg-card-hover: #222b3d;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #5b8def;
    --accent-purple: #9b6ff6;
    --accent-cyan: #38bdf8;
    --border-subtle: rgba(255,255,255,0.06);
    --border-glow: rgba(91,141,239,0.25);
    --gradient-primary: linear-gradient(135deg, #5b8def, #9b6ff6);
    --shadow-glow: 0 0 30px rgba(91,141,239,0.12);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== Navbar ===== */
#navbar {
    background: rgba(21,29,43,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
#navbar.scrolled {
    background: rgba(21,29,43,0.95);
    border-bottom-color: var(--border-subtle);
}
.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(91,141,239,0.3), rgba(155,111,246,0.2));
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 2px;
}
.nav-link:hover { color: #fff !important; }
.nav-link:hover::after,
.nav-link.text-accent-blue::after { transform: scaleX(1); }
.nav-link.text-accent-blue { color: var(--accent-blue) !important; }

/* ===== Hero ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: #0c1422;
}
/* Irregular bottom gradient blobs */
.hero-bottom-gradient {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 0;
    height: 50%;
    background:
        radial-gradient(ellipse 60% 100% at 20% 100%, rgba(91,141,239,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 90% at 70% 100%, rgba(155,111,246,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 40% 80% at 90% 100%, rgba(56,189,248,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 35% 70% at 5% 100%, rgba(91,141,239,0.08) 0%, transparent 45%);
    pointer-events: none;
}
/* ===== Hero Tech Decorations ===== */
/* Data dot grid */
.hero-data-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(91,141,239,0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 55% 50% at 50% 40%, black 25%, transparent 75%);
}

/* Circuit lines — animated glowing paths */
.hero-circuit-line {
    position: absolute; z-index: 0; pointer-events: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56,189,248,0.35), rgba(91,141,239,0.25), transparent);
    animation: circuitPulse 4s ease-in-out infinite;
}
.hcl-1 { top: 25%; left: 0; right: 0; animation-delay: 0s; }
.hcl-2 { top: 60%; left: 0; right: 0; animation-delay: 2s; }
.hcl-3 { top: 45%; left: 0; right: 50%; transform: rotate(-2deg); animation-delay: 1s; }
@keyframes circuitPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

/* Floating geometric shapes */
.hero-geo {
    position: absolute; z-index: 0; pointer-events: none;
    border: 1px solid rgba(91,141,239,0.1);
    animation: geoFloat 8s ease-in-out infinite;
}
.hero-geo-1 { width: 36px; height: 36px; border-radius: 6px; top: 20%; left: 8%; animation-delay: 0s; }
.hero-geo-2 { width: 24px; height: 24px; border-radius: 3px; top: 15%; right: 12%; animation-delay: 2s; border-color: rgba(155,111,246,0.12); }
.hero-geo-3 { width: 30px; height: 30px; border-radius: 50%; bottom: 30%; left: 6%; animation-delay: 4s; border-color: rgba(56,189,248,0.1); }
.hero-geo-4 { width: 26px; height: 26px; border-radius: 2px; bottom: 25%; right: 8%; animation-delay: 6s; transform: rotate(45deg); }
@keyframes geoFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(8px, -12px) rotate(3deg); }
    50% { transform: translate(-4px, -6px) rotate(-2deg); }
    75% { transform: translate(-8px, -4px) rotate(1deg); }
}
.hero-geo-4 { animation: geoFloatRotate 8s ease-in-out infinite; }
@keyframes geoFloatRotate {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    25% { transform: translate(6px, -10px) rotate(50deg); }
    50% { transform: translate(-3px, -5px) rotate(40deg); }
    75% { transform: translate(-6px, -2px) rotate(48deg); }
}

/* Pulsing nodes */
.hero-node {
    position: absolute; z-index: 0; pointer-events: none;
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(56,189,248,0.6);
    box-shadow: 0 0 6px 2px rgba(56,189,248,0.3);
    animation: nodePulse 3s ease-in-out infinite;
}
.hn-1 { top: 28%; left: 20%; animation-delay: 0s; }
.hn-2 { top: 18%; right: 25%; animation-delay: 0.8s; background: rgba(155,111,246,0.6); box-shadow: 0 0 6px 2px rgba(155,111,246,0.3); }
.hn-3 { top: 55%; left: 15%; animation-delay: 1.6s; }
.hn-4 { bottom: 32%; right: 18%; animation-delay: 2.4s; }
.hn-5 { top: 40%; right: 10%; animation-delay: 1.2s; background: rgba(91,141,239,0.6); box-shadow: 0 0 6px 2px rgba(91,141,239,0.3); }
.hn-6 { bottom: 22%; left: 28%; animation-delay: 2s; background: rgba(155,111,246,0.6); box-shadow: 0 0 6px 2px rgba(155,111,246,0.3); }
@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(2); opacity: 1; }
}
.hero-glow {
    position: absolute; border-radius: 50%;
    filter: blur(130px); pointer-events: none;
}
.hero-glow-1 {
    width: 650px; height: 650px;
    background: rgba(91,141,239,0.15);
    top: -220px; right: -120px;
    animation: pulseGlow 8s ease-in-out infinite;
}
.hero-glow-2 {
    width: 480px; height: 480px;
    background: rgba(155,111,246,0.1);
    bottom: -160px; left: -90px;
    animation: pulseGlow 8s ease-in-out 3s infinite;
}
.hero-glow-3 {
    width: 320px; height: 320px;
    background: rgba(56,189,248,0.08);
    top: 48%; left: 52%;
    transform: translate(-50%,-50%);
    animation: pulseGlow 8s ease-in-out 5s infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
/* Floating career tags */
.hero-float-tag {
    position: absolute; z-index: 2;
    padding: 0.4rem 1.2rem;
    background: rgba(28,37,53,0.85);
    border: 1px solid rgba(91,141,239,0.2);
    border-radius: 9999px;
    font-size: 0.8rem; color: var(--text-secondary);
    pointer-events: none;
    backdrop-filter: blur(8px);
    animation: floatTag 6s ease-in-out infinite;
}
@keyframes floatTag {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-12px); }
    75% { transform: translateY(8px); }
}
#particles-canvas {
    position: absolute; inset: 0; z-index: 1; opacity: 0.55;
}
.hero-content {
    position: relative; z-index: 3;
    text-align: center; max-width: 900px; padding: 0 24px;
}
.hero-content .hero-badge {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    background: rgba(91,141,239,0.1);
    border: 1px solid rgba(91,141,239,0.2);
    color: var(--accent-blue);
    font-size: 0.78rem; font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1.8rem;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
}
.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #cbd5e1, #f1f5f9, #c8d6f0, #f1f5f9, #cbd5e1);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s ease-in-out infinite;
}
.hero-gradient-text {
    background: linear-gradient(90deg, #5b8def, #9b6ff6, #38bdf8, #9b6ff6, #5b8def);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(91,141,239,0.3));
}
@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px; margin: 0 auto 2.8rem;
    line-height: 1.8;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    background: var(--accent-blue);
    color: #fff; font-weight: 600; font-size: 0.95rem;
    border-radius: 9999px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(91,141,239,0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 35px rgba(91,141,239,0.45);
    transform: translateY(-2px);
}
.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--text-primary);
    font-weight: 500; font-size: 0.95rem;
    border-radius: 9999px;
    transition: all 0.3s;
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(91,141,239,0.15);
}

/* ===== Cards ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.35s;
    overflow: hidden;
}
.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.glass-card-icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    background: rgba(91,141,239,0.1);
    color: var(--accent-blue);
    transition: all 0.35s;
}
.glass-card:hover .glass-card-icon {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 0 25px rgba(91,141,239,0.35);
}
.glass-card .inner-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

/* ===== Section ===== */
.section-padding { padding: 7rem 0; }
.section-alt { background: rgba(255,255,255,0.015); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .en-label {
    display: block;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.section-header .cn-title {
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.section-header .cn-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.45rem;
}

/* ===== Stats ===== */
.stat-number {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* ===== Advantage ===== */
.advantage-item {
    display: flex; gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.advantage-item:last-child { border-bottom: none; }
.advantage-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(91,141,239,0.08);
    color: var(--accent-blue);
    font-size: 1.1rem;
}

/* ===== Article ===== */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: block;
}
.article-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}
.article-card-img {
    width: 100%; height: 200px;
    object-fit: cover;
    background: var(--bg-card);
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-content {
    color: var(--text-secondary);
    line-height: 1.9; font-size: 1.05rem;
}
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--text-primary); }
.article-content h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content img { max-width: 100%; border-radius: 8px; margin: 1.5rem 0; }
.article-content ul,.article-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
    border-left: 3px solid var(--accent-blue);
    padding-left: 1.25rem; font-style: italic; margin: 1.5rem 0;
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 10rem 0 5rem;
    text-align: center;
    background: var(--bg-primary);
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.page-hero p {
    color: var(--text-secondary);
    margin-top: 0.75rem; font-size: 1.1rem;
}

/* ===== Contact ===== */
.contact-info-item {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0;
}
.contact-info-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(91,141,239,0.1);
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* ===== Tabs ===== */
.tab-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.88rem; font-weight: 500;
    transition: all 0.25s;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
}
.tab-btn.active,
.tab-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* ===== Footer ===== */
.site-footer {
    background: #111827;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #94a3b8;
}
.site-footer h4 { color: #e2e8f0 !important; }
.site-footer p,.site-footer a { color: #94a3b8 !important; }
.site-footer a:hover { color: #fff !important; }
.site-footer .border-t { border-color: rgba(255,255,255,0.05) !important; }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.9); }
.reveal.visible { opacity: 1; transform: translate(0) scale(1); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .4s; }
.reveal-delay-6 { transition-delay: .48s; }

/* ===== Divider ===== */
.divider {
    width: 48px; height: 3px; border-radius: 2px;
    background: var(--gradient-primary);
    margin: 1.25rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section-padding { padding: 5rem 0; }
    .page-hero { padding: 8rem 0 3rem; }
    .hero-section { min-height: 90vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .section-header .cn-title { font-size: 1.6rem; }
    .glass-card { padding: 1.5rem !important; }
    .btn-primary,.btn-outline { padding: 0.7rem 1.6rem; font-size: 0.85rem; }
    .stat-number { font-size: 2rem; }
    .article-card-img { height: 180px; }
    .tab-btn { padding: 0.4rem 1rem; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .hero-section { min-height: 85vh; }
    .hero-content h1 { font-size: 1.8rem; }
    .section-padding { padding: 3.5rem 0; }
    .page-hero { padding: 7rem 0 2.5rem; }
    .article-card-img { height: 160px; }
}
