/* ============================================================
   style.css —— 全局视觉：Glassmorphism + 动态渐变 + 微交互
   ============================================================ */
:root {
    --acc: #34d399;
    --glow: rgba(52, 211, 153, .45);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', system-ui, sans-serif;
    background: #071310;
    color: #e9f5ef;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

.font-num {
    font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
}

::selection {
    background: rgba(52, 211, 153, .35);
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-thumb {
    background: rgba(130, 170, 150, .25);
    border-radius: 99px;
}

/* ---------- 动态渐变背景（多层缓慢漂移的光斑） ---------- */
.bg-stage {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: linear-gradient(160deg, #071310 0%, #0a2018 45%, #08151d 100%);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.bg-stage::before,
.bg-stage::after {
    content: "";
    position: absolute;
    width: 58vmax;
    height: 58vmax;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    will-change: transform;
    backface-visibility: hidden;
}

.bg-stage::before {
    background: radial-gradient(circle at 30% 30%, #10b98155, transparent 65%);
    top: -18vmax;
    left: -12vmax;
}

.bg-stage::after {
    background: radial-gradient(circle at 70% 70%, #0ea5e94d, transparent 65%);
    bottom: -20vmax;
    right: -14vmax;
}

.bg-blob3 {
    position: fixed;
    z-index: -2;
    width: 40vmax;
    height: 40vmax;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b2e, transparent 65%);
    top: 30%;
    left: 40%;
    filter: blur(80px);
    pointer-events: none;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 点阵网格（农田科技感） */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(148, 210, 180, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- 毛玻璃卡片 ---------- */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.glass-soft {
    background: rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
}

/* ---------- Hover：放大 + 发光 ---------- */
.card-hover {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s, border-color .45s;
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--acc);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px var(--acc), 0 0 34px var(--glow);
}

.btn-glow {
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

.btn-glow:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 24px var(--glow);
}

.btn-glow:active {
    transform: scale(.97);
}

/* ---------- 入场动画（首屏，无需滚动触发） ---------- */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rise {
    animation: riseIn .8s cubic-bezier(.22, 1, .36, 1) both;
}

/* ---------- 数字跳动 ---------- */
@keyframes numPulse {
    0% {
        text-shadow: 0 0 18px var(--glow);
    }

    100% {
        text-shadow: none;
    }
}

.num-pulse {
    animation: numPulse .7s ease-out;
}

/* ---------- 状态呼吸点 ---------- */
.dot-live {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 10px var(--acc);
}

/* ---------- 轮播 ---------- */
.carousel-track {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    cursor: grab;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.carousel-track.dragging {
    transition: none;
    cursor: grabbing;
}

.carousel-slide {
    flex: 0 0 min(340px, 84vw);
}

/* ---------- 表单控件 ---------- */
.field {
    width: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 9px 12px;
    color: #e9f5ef;
    font-size: 14px;
    transition: border-color .25s, box-shadow .25s;
    outline: none;
}

.field:focus {
    border-color: var(--acc);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}

select.field option {
    background: #0c211a;
}

/* 开关 */
.switch {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
    transition: background .3s;
    cursor: pointer;
    border: none;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.switch.on {
    background: var(--acc);
    box-shadow: 0 0 14px var(--glow);
}

.switch.on::after {
    transform: translateX(20px);
}

/* 分段选择器 */
.seg {
    display: flex;
    background: rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .1);
}

.seg button {
    flex: 1;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #9db8ac;
    transition: all .3s;
    border: none;
    background: transparent;
    cursor: pointer;
}

.seg button.active {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    color: #fff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, .4);
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .hero-num {
        font-size: 3.2rem !important;
    }

    .carousel-slide {
        flex-basis: 86vw;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}