:root {
    /* Dark Mode Colors */
    --bg-black: #050505;
    --bg-darker: #000000;
    --bg-card: #0a0a0c;
    --border-color: #1f1f22;
    --text-main: #ededed;
    --text-muted: #a3a3a3; /* Improved contrast from #888888 */

    /* Cyber Accents (Muted for quieter aesthetic) */
    --accent-green: #10b981;
    --accent-blue: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;

    /* Distinctive modern typography to avoid AI-slop fonts */
    --font-heading: 'Bricolage Grotesque', 'Space Grotesk', 'Noto Sans SC', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Noto Sans SC', monospace;
    --font-body: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;

    --container-width: 1200px;

    /* Noise overlay opacity */
    --noise-opacity: 0.03;
}

/* Light Mode Colors */
body.light-mode,
html.light-mode {
    --bg-black: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-card: #fafafa;
    --border-color: #e0e0e0;
    --text-main: #1a1a1a;
    --text-muted: #666666;

    /* Light Mode Accents - slightly darker for better contrast */
    --accent-green: #059669;
    --accent-blue: #0284c7;
    --accent-purple: #7c3aed;
    --accent-red: #dc2626;

    --noise-opacity: 0.015;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
.logo-text {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Forms CSS */
.form-input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    width: 100%;
    outline: none;
}

.form-input:focus-visible {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.1);
}

body.light-mode .form-input:focus-visible,
html.light-mode .form-input:focus-visible {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.mono-title {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10001;
    border-bottom: 1px solid var(--border-color);
}

/* 白天模式下的 header 背景 */
body.light-mode .header,
html.light-mode .header {
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
}

.logo-mark {
    background: var(--text-main);
    color: var(--bg-black);
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* 导航链接高亮颜色 - 在黑夜模式下使用更亮的绿色 */
.nav-links a[style*="color:var(--accent-green)"] {
    color: var(--accent-green) !important;
}

body.light-mode .nav-links a[style*="color:var(--accent-green)"],
html.light-mode .nav-links a[style*="color:var(--accent-green)"] {
    color: var(--accent-purple) !important;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    text-transform: uppercase;
}

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

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-black);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    background: #00cc55;
}

/* Light mode - btn-primary */
html.light-mode .btn-primary {
    background: white;
    color: black;
}

html.light-mode .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    background: #6a2f96;
    color: white;
}

.btn-terminal {
    background: var(--accent-green);
    color: var(--bg-black);
    font-weight: 700;
}

.btn-terminal:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    background: #00cc55;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 102, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(0, 255, 102, 0.05);
    margin-bottom: 2rem;
}

.pulse {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.text-gradient {
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 4rem;
}

/* Terminal Waitlist Card */
.terminal-card {
    background: #0c0c0e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.terminal-header {
    background: #151518;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.dot.red {
    background: var(--accent-red);
}

.dot.yellow {
    background: var(--accent-yellow);
}

.dot.green {
    background: var(--accent-green);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 1rem;
}

.terminal-form {
    padding: 2rem;
    font-family: var(--font-mono);
}

.prompt {
    color: var(--accent-blue);
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cursor {
    color: var(--text-muted);
}

.terminal-form input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 1rem;
    width: 100%;
    outline: none;
    caret-color: var(--accent-green);
}

.terminal-form input::placeholder {
    color: #666666;
}

/* Light mode - form inputs */
html.light-mode .terminal-form input {
    color: #ffffff;
}

html.light-mode .terminal-form input::placeholder {
    color: #999999;
}

.terminal-output {
    padding: 0 2rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-green);
    min-height: 20px;
}

/* Sections General */
.section {    content-visibility: auto;    contain-intrinsic-size: auto 800px;
    padding: clamp(4rem, 8vw, 8rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.1rem;
}

/* Layout Grids */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

@media (max-width: 968px) {
    .grid-2col, .grid-3col {
        grid-template-columns: 1fr;
    }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 1.5rem;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.bento-card {    will-change: transform, opacity, box-shadow;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}


.text-accent {
    color: var(--accent-blue);
}

.bento-card h3 {
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
}

.code-snippet {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #555;
    background: black;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #111;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.validation-flow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #555;
    text-align: right;
}

.text-success {
    color: var(--accent-green);
    font-weight: bold;
}

/* Mechanics */
.mechanics-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.mechanic-row {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-items: flex-start;
}

.mechanic-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

/* 白天模式下的序号颜色 */
body.light-mode .mechanic-number,
html.light-mode .mechanic-number {
    color: rgba(0, 0, 0, 0.08);
}

.mechanic-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.mechanic-details p {
    color: var(--text-muted);
}

/* Matrix */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.matrix-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.level {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
    width: fit-content;
}

.p-critical .level {
    background: rgba(255, 51, 51, 0.1);
    color: var(--accent-red);
}

.p-high .level {
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-purple);
}

/* Glitch Button CTA */
.final-cta {
    background: radial-gradient(circle at center, rgba(20, 20, 22, 1) 0%, var(--bg-black) 100%);
}

.cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.btn-primary-glitch {
    padding: 1rem 2rem;
    background: var(--text-main);
    color: var(--bg-black);
    font-family: var(--font-mono);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.btn-primary-glitch:hover {
    background: white;
}

.glitch-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.btn-primary-glitch:hover .glitch-text {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    opacity: 1;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10002;
    position: relative;
    width: 44px;
    height: 44px;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
    top: 3px;
    left: 0px;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

/* Active state for hamburger */
.mobile-menu-btn.active .hamburger-inner {
    background-color: transparent !important;
}
.mobile-menu-btn.active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}
.mobile-menu-btn.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-black);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-overlay.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

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

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: block;
}
.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    color: var(--text-main);
}
.mobile-nav-overlay .btn-primary {
    color: var(--bg-black) !important;
    font-size: 1.1rem;
    padding: 1rem;
    width: 100%;
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .col-span-2,
    .col-span-3 {
        grid-column: span 1;
    }

    .split-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mechanic-row {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    padding: 3px;
    z-index: 10000;
}

/* Expand touch target to 44x44 minimum */
.theme-toggle::after {
    content: '';
    position: absolute;
    top: -10px; bottom: -10px; left: -10px; right: -10px;
}

.theme-toggle:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

.theme-toggle-slider {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--accent-green);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    left: 4px;
    pointer-events: none;
}

body.light-mode .theme-toggle-slider {
    transform: translateX(30px);
    background: var(--accent-blue);
}

.theme-toggle-icon {
    font-size: 14px;
}

/* Smooth transition for theme change */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero,
.section,
.bento-card,
.terminal-card,
.footer {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Light mode specific adjustments */
body.light-mode .header {
    background: rgba(255, 255, 255, 0.8);
}

/* Hero Carousel Styles */
#hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-width: 1142px; /* 固定最小宽度，匹配"多智能体"幻灯片的宽度 */
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    visibility: hidden;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    left: auto;
    right: auto;
}

/* 确保所有幻灯片内的元素宽度一致 */
.carousel-slide .status-badge {
    min-width: 300px;
}

.carousel-slide .hero-title {
    min-height: 150px;
}

.carousel-slide .hero-subtitle {
    min-height: 2em;
}

/* 向左滑出 */
.carousel-slide.slide-out {
    transform: translateX(-100%);
    opacity: 0;
    visibility: visible; /* 动画过程中可见 */
}

/* 从右侧滑入 */
.carousel-slide.slide-in {
    transform: translateX(100%);
    opacity: 0;
    visibility: visible; /* 动画过程中可见 */
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    padding: 0;
    position: relative;
}

/* Expand touch target to 44x44 minimum */
.carousel-indicator::after {
    content: '';
    position: absolute;
    top: -18px; bottom: -18px; left: -18px; right: -18px;
}

.carousel-indicator.active {
    background: var(--accent-green);
    width: 24px;
    border-radius: 4px;
}

.carousel-indicator:hover {
    background: var(--accent-green);
    opacity: 0.7;
}

body.light-mode .text-gradient {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .hero-grid-bg {
    opacity: 0.4;
}

/* 白天模式背景图片 */
body.light-mode {
    background-image: url('images/light-mode-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Admin page - light mode overrides */
html.light-mode .stat-label,
html.light-mode .admin-stat-card .stat-label {
    color: #cccccc;
}

html.light-mode .stat-num,
html.light-mode .admin-stat-card .stat-num {
    color: #ffffff;
}

html.light-mode .admin-stat-card.green .stat-num {
    color: var(--accent-green);
}

html.light-mode .admin-stat-card.red .stat-num {
    color: var(--accent-red);
}

html.light-mode .admin-stat-card.cyan .stat-num {
    color: var(--accent-blue);
}

html.light-mode .admin-stat-card.yellow .stat-num {
    color: #ffaa00;
}

/* Admin table - 只将姓名、公司/单位、职位改成白色（排除ID列） */
html.light-mode .admin-table-wrap td:nth-child(3),  /* 姓名 */
html.light-mode .admin-table-wrap td:nth-child(4),  /* 公司/单位 */
html.light-mode .admin-table-wrap td:nth-child(5) { /* 职位 */
    color: #ededed !important;
}

/* Admin table - 漏洞报告管理表格 */
html.light-mode #results-tbody td:nth-child(2),  /* 漏洞名称 */
html.light-mode #results-tbody td:nth-child(3),  /* 目标 */
html.light-mode #results-tbody td:nth-child(4) { /* 技术栈 */
    color: #ffffff !important;
}

/* Admin - 仪表盘设置表单输入框 */
html.light-mode #settings-form input {
    color: #ffffff !important;
}

/* Admin - 新增漏洞报告表单输入框 */
html.light-mode #add-result-form input,
html.light-mode #add-result-form select,
html.light-mode #add-result-form textarea {
    color: #ffffff !important;
}

/* Pain Points Cards */
.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.pain-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.pain-item {
    padding-left: 1rem;
    border-left: 2px solid var(--accent-red);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.pain-item:hover {
    border-left-color: var(--accent-green);
    padding-left: 1.2rem;
}

.pain-item-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.pain-item-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Advantage Cards Enhancement */
.bento-card .mono-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.bento-card .mono-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.bento-card:hover .mono-title::after {
    width: 80px;
}

/* Stats Display Enhancement */
.bento-card [style*="border-top"] {
    position: relative;
}

.bento-card [style*="font-size: 2.5rem"] {
    transition: transform 0.3s ease;
    display: inline-block;
}

.bento-card:hover [style*="font-size: 2.5rem"] {
    transform: scale(1.1);
}

/* Micro-animations (Delight & Error States) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.input-error {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: var(--accent-red) !important;
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-top-color: var(--bg-black);
    border-right-color: var(--bg-black);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

html.light-mode .btn-loading::after {
    border-top-color: white;
    border-right-color: white;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10005;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-green);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    border-left-color: var(--accent-red);
}

.toast-icon {
    font-size: 1.2rem;
}
