/* ========== 基础 & 全局 ========== */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
::selection {
    background: #55FF55;
    color: #000;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #55FF55;
    border-radius: 4px;
}

/* ========== 导航栏 ========== */
.glass-nav {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(85, 255, 85, 0.1);
}
.logo-animate {
    animation: logoSpin 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes logoSpin {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ========== 按钮 ========== */
.btn-mc {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-mc:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(85, 255, 85, 0.3);
}

/* ========== 卡片 ========== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: #55FF55;
}
.machine-card {
    transition: all 0.3s ease;
}
.machine-card:hover {
    transform: scale(1.03);
    border-color: #55FF55;
    box-shadow: 0 10px 30px rgba(85,255,255,0.15);
}
.tilt-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}
.tilt-card:hover {
    transform: rotateX(2deg) rotateY(4deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ========== 浮动卡片 ========== */
.float-card {
    animation: floatUp 3.5s ease-in-out infinite;
}
.float-card-delay-1 { animation-delay: 0s; }
.float-card-delay-2 { animation-delay: 0.6s; }
.float-card-delay-3 { animation-delay: 1.2s; }
.float-card-delay-4 { animation-delay: 1.8s; }
@keyframes floatUp {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ========== 背景网格 ========== */
.grid-bg {
    background-image:
        linear-gradient(rgba(85, 255, 85, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 255, 85, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ========== 英雄区背景 ========== */
.hero-bg {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('assests/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    animation: bgBreath 10s ease-in-out infinite;
}
@keyframes bgBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ========== 数据条 ========== */
.spec-bar {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(85,255,85,0.15);
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-top: 1.5rem;
}
.spec-bar .highlight { color: #55FF55; font-weight: 600; }
.spec-bar .sep { color: #444; }
@media (max-width: 640px) {
    .spec-bar { font-size: 0.7rem; padding: 0.4rem 1rem; gap: 0.3rem 0.8rem; border-radius: 20px; }
}

/* ========== 淡入动画 ========== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* ========== FAQ ========== */
.faq-question {
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover {
    background: rgba(85,255,85,0.05);
}
.faq-answer {
    display: none;
    padding-top: 0.5rem;
}
.faq-item.open .faq-answer {
    display: block;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* ========== 打字机核心样式 ========== */
.typewriter-container {
    display: inline-block;
    width: 100%;
}
.typewriter-text {
    display: inline;
    border-right: 2px solid #55FF55;
    padding-right: 2px;
    animation: blinkCursor 0.8s step-end infinite;
}
.typewriter-text.done {
    border-right: none;
    animation: none;
}
@keyframes blinkCursor {
    0%, 100% { border-color: #55FF55; }
    50% { border-color: transparent; }
}

/* ========== 鼠标光晕 ========== */
body {
    position: relative;
    isolation: isolate;
}

#cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85,255,85,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.2s ease;
    will-change: transform, left, top;
}
#cursor-glow.hover {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(85,255,85,0.15) 0%, transparent 70%);
}

/* ========== 粒子画布 ========== */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
.content-layer {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

/* ========== 其他（下载页等） ========== */
.download-item {
    background: linear-gradient(145deg, #2d2d2d, #252525);
    border: 1px solid #333;
}
.download-item:hover {
    border-color: #55FF55;
    background: linear-gradient(145deg, #333, #2d2d2d);
}