/* --- 0. 全局定义与变量 --- */
:root {
    --bg-color: #FAFAFA;
    --text-main: #111111;
    --text-sub: #666666;
    --brand-purple: #6D28D9;
    --brand-accent: #8B5CF6;
    --brand-gradient: linear-gradient(135deg, #6D28D9 0%, #A78BFA 100%);
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-float: 0 20px 40px -10px rgba(109, 40, 217, 0.15);
    --shadow-glow: 0 0 30px rgba(109, 40, 217, 0.3);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* 粒子背景效果 */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--brand-purple);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }

    25% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50px, -200px) scale(0.8);
        opacity: 0.3;
    }

    75% {
        transform: translate(-100px, 100px) scale(1.2);
        opacity: 0.35;
    }
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    animation: pulse-scale 1.5s ease-in-out infinite;
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(109, 40, 217, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 10px;
    width: 0%;
    animation: loading-progress 1.5s ease-out forwards;
}

@keyframes loading-progress {
    to {
        width: 100%;
    }
}

/* 鼠标跟随光效 */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

.cursor-glow.hover {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.5) 0%, transparent 70%);
}

h1,
h2,
h3 {
    letter-spacing: -0.03em;
    font-weight: 800;
}

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

/* --- 1. 动画关键帧 --- */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateFloat {
    0% {
        transform: rotateX(60deg) rotateZ(0deg) translateZ(0px);
    }

    50% {
        transform: rotateX(60deg) rotateZ(180deg) translateZ(20px);
    }

    100% {
        transform: rotateX(60deg) rotateZ(360deg) translateZ(0px);
    }
}

@keyframes growBar {
    from {
        height: 0%;
    }

    to {
        height: var(--h);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    animation: revealUp 1s var(--ease-out-expo) forwards;
}

.d-1 {
    animation-delay: 0.1s;
}

.d-2 {
    animation-delay: 0.2s;
}

.d-3 {
    animation-delay: 0.3s;
}

/* --- 2. 导航栏 --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
    transition: all 0.3s var(--ease-out-expo);
}

nav.scrolled {
    padding: 0.7rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: rgba(250, 250, 250, 0.95);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: width 0.3s;
}

@media (hover: hover) {
    .nav-menu a:hover {
        color: var(--brand-purple);
    }

    .nav-menu a:hover::after {
        width: 100%;
    }
}

.nav-menu a.active {
    color: var(--brand-purple);
}

.nav-menu a.active::after {
    width: 100%;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
    border-radius: 2px;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-ghost {
    color: var(--text-sub);
    margin-right: 1rem;
}

.btn-solid {
    background: var(--text-main);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-solid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-solid:hover::before {
    width: 300px;
    height: 300px;
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- 3. Hero Section --- */
.hero {
    min-height: 90vh;
    /* Mobile Default */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float-glow 8s ease-in-out infinite;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 0.8;
    }
}

.hero-text h1 {
    /* 响应式字体大小 clamp(最小值, 视口偏好, 最大值) */
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--brand-purple);
    position: relative;
    display: inline-block;
}

.hero-desc {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-sub);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

/* 3D Visual Container */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Isometric Stack */
.isometric-stack {
    position: relative;
    width: 280px;
    height: 280px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(45deg);
    animation: rotateFloat 12s linear infinite;
}

.iso-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--brand-purple);
    font-size: 1.5rem;
}

.layer-1 {
    transform: translateZ(0px);
    background: rgba(109, 40, 217, 0.05);
    left: 0;
    top: 0;
}

.layer-2 {
    transform: translateZ(40px);
    background: rgba(109, 40, 217, 0.1);
    width: 80%;
    height: 80%;
    left: 10%;
    top: 10%;
}

.layer-3 {
    transform: translateZ(80px);
    background: var(--brand-gradient);
    color: white;
    width: 60%;
    height: 60%;
    left: 20%;
    top: 20%;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.4);
}

/* --- 4. Ticker --- */
.ticker-wrap {
    background: var(--text-main);
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    transform: rotate(-1deg);
    margin: 2rem 0;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 1.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.ticker-item::before {
    content: '✦';
    color: var(--brand-accent);
    margin-right: 0.8rem;
}

/* --- 5. Feature Section (Device Mockups) --- */
.feature-section {
    padding: 4rem 5%;
    background: white;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    background: #F3E8FF;
    color: var(--brand-purple);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

/* 样机舞台容器 - 核心缩放逻辑 */
.device-stage-wrapper {
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
}

/* 实际样机组，固定宽度，通过 transform scale 适配 */
.device-group {
    position: relative;
    width: 1200px;
    /* 调整为适应平板和手机 */
    height: 700px;
    transform-origin: center center;
    /* 默认缩放，根据JS或媒体查询调整 */
}

/* 等比缩放系统：样机容器根据视口自适应 */
@media (max-width: 1024px) {
    .device-stage-wrapper {
        height: 500px;
    }
}

@media (max-width: 768px) {

    /* 移动端：放弃 3D 舞台整体缩放，改为上下堆叠的平板 + 大号手机样机 */
    .device-stage-wrapper {
        height: auto;
        padding: 2rem 0 1rem;
    }

    .device-group {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
        transform: none;
        /* 由 CSS 控制，不再整体 scale */
    }

    .tablet-scene {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: min(100%, 520px);
        height: auto;
        aspect-ratio: 820 / 580;
    }

    /* 移动端下，只展示一个大号手机样机，垂直居中堆叠在平板下方 */
    .iphone {
        position: relative;
        display: block;
        width: min(100%, 340px);
        height: auto;
        aspect-ratio: 375 / 812;
        bottom: auto;
        right: auto;
        margin: 0 auto 0.5rem;
        transform: none;
        transform-origin: center bottom;
    }
}

@media (max-width: 480px) {

    /* 小屏移动端：保持自适应高度，只在必要时微调间距 */
    .device-stage-wrapper {
        height: auto;
        padding-top: 1.5rem;
    }

    .device-group {
        height: auto;
    }

    .tablet-scene {
        max-width: 90%;
    }
}

/* --- 平板样机样式 --- */
.tablet-scene {
    width: 820px;
    height: 580px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    perspective: 2000px;
}

/* 手机端下，适当减薄平板边框与内屏圆角，让视觉更精致 */
@media (max-width: 768px) {
    .tablet-face-front {
        padding: 10px;
        border-radius: 32px;
    }

    .tablet-screen-glass {
        border-radius: 24px;
    }
}

/* 动态阴影 */
.tablet-floor-shadow {
    position: absolute;
    width: 80%;
    height: 20%;
    bottom: -80px;
    left: 10%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    transform: rotateX(90deg) translateZ(0px);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s;
    z-index: -1;
}

/* 平板容器 */
.tablet {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* 通用面材质 */
.tablet-face {
    position: absolute;
    background-color: #151516;
    backface-visibility: hidden;
}

/* 噪点纹理 */
.tablet-texture-layer {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyNTAnIGhlaWdodD0nMjUwJz48ZmlsdGVyIGlkPSdub2lzZSc+PGZlVHVyYnVsZW5jZSB0eXBlPSdmcmFjdGFsTm9pc2UnIGJhc2VGcmVxdWVuY3k9JzAuOScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlXI9J3VybCgjbm9pc2UpJyBvcGFjaXR5PScwLjA2Jy8+PC9zdmc+');
    opacity: 0.7;
    pointer-events: none;
}

/* 背面 */
.tablet-face-back {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    transform: rotateY(180deg) translateZ(8px);
    background: linear-gradient(135deg, #222 0%, #111 100%);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 2px 2px 4px rgba(255, 255, 255, 0.05);
}

/* 动态光泽带 */
.tablet-sheen-layer {
    position: absolute;
    inset: -50%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.03) 55%,
            transparent 60%);
    transform: rotate(15deg);
    opacity: 0.8;
    mix-blend-mode: color-dodge;
}

/* 摄像头模组 */
.tablet-camera-bump {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 90px;
    height: 90px;
    background: linear-gradient(145deg, #1f1f1f, #0d0d0d);
    border-radius: 22px;
    box-shadow:
        -1px -1px 2px rgba(255, 255, 255, 0.1),
        5px 5px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 手机端下，整体缩小摄像头与 UI 细节比例，让画面不显得“放大裁切” */
@media (max-width: 768px) {
    .tablet-camera-bump {
        top: 18px;
        right: 18px;
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .tablet-lens-ring {
        width: 42px;
        height: 42px;
    }

    .tablet-ui-sidebar {
        padding: 10px !important;
        width: 30px !important;
    }

    .tablet-ui-logo {
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 15px !important;
        border-radius: 6px !important;
    }

    .tablet-ui-logo2{
        width: 10px !important;
        height: 10px !important;
        margin-bottom: 6px !important;
        border-radius: 3px !important;
    }

    .tablet-ui-content {
        padding: 10px !important;
        gap: 8px !important;
    }

    .tablet-ui-stats {
        gap: 10px !important;
    }
    .tablet-stat-card {
        height: 40px !important;
        padding: 3px 15px !important;
        border-radius: 8px !important;
        justify-content: space-evenly !important;
        align-items: flex-start !important;
        display: flex !important;
    }
    .tablet-stat-lbl {
        font-size: 8px !important;
        transform: scale(0.8) !important;
    }

    .tablet-ui-chart {
        border-radius: 6px !important;
    }

    .tablet-stat-val {
        font-size: 10px !important;
    }
}

.tablet-lens-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #333;
    background: radial-gradient(circle at 70% 30%, #444, #000);
    position: relative;
    box-shadow: inset 0 0 6px #000;
}

.tablet-lens-glass {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(30, 60, 100, 0.4), black 60%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.tablet-lens-glass::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: 12px;
    left: 10px;
    filter: blur(1px);
}

.tablet-lens-glass::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 0, 255, 0.1));
}

.tablet-brand-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 侧面 */
.tablet-face-top {
    width: calc(100% - 60px);
    height: 16px;
    top: -8px;
    left: 30px;
    transform: rotateX(90deg);
    background: #222;
}

.tablet-face-bottom {
    width: calc(100% - 60px);
    height: 16px;
    bottom: -8px;
    left: 30px;
    transform: rotateX(-90deg);
    background: #111;
}

.tablet-face-left {
    width: 16px;
    height: calc(100% - 60px);
    left: -8px;
    top: 30px;
    transform: rotateY(-90deg);
    background: #1a1a1a;
}

.tablet-face-right {
    width: 16px;
    height: calc(100% - 60px);
    right: -8px;
    top: 30px;
    transform: rotateY(90deg);
    background: #1a1a1a;
}

.tablet-face-top::after,
.tablet-face-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* 圆角填补 */
.tablet-corner-filler {
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: 38px;
    transform: translateZ(0);
    box-shadow: 0 0 0 6px #111;
}

/* 正面 */
.tablet-face-front {
    width: 100%;
    height: 100%;
    transform: translateZ(8px);
    border-radius: 40px;
    background: #e4eafe;
    /* padding: 14px; */
    box-shadow: inset 0 0 0 1px #333;
}

.tablet-screen-glass {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* 强烈的玻璃反光 */
.tablet-glass-reflection {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent 45%, rgba(255, 255, 255, 0.7) 50%, transparent 55%);
    transform: rotate(25deg);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
}

/* 平板UI系统 */
.tablet-ui-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    display: flex;
}

/* 平板内部 UI 在手机端做整体等比缩放，保证内容完整展示 */
@media (max-width: 768px) {
    .tablet-ui-container {
        transform-origin: center center;
        /* 先压缩一点避免四周被边框裁切，再由外层 .tablet-scene 控制整体大小 */
        transform: scale(0.98);
    }
}

.tablet-ui-sidebar {
    width: 90px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.tablet-ui-logo {
    width: 44px;
    height: 44px;
    background: #2563eb;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.tablet-ui-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 顶部卡片 */
.tablet-ui-stats {
    display: flex;
    gap: 20px;
}

.tablet-stat-card {
    flex: 1;
    height: 110px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tablet-stat-val {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.tablet-stat-lbl {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
}

/* 图表区 */
.tablet-ui-chart {
    flex: 2;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 24px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 0;
    overflow: hidden;
}

.tablet-chart-col {
    width: 10%;
    background: #eff6ff;
    border-radius: 6px 6px 0 0;
    position: relative;
    height: 100%;
}

.tablet-col-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #2563eb, #60a5fa);
    border-radius: 6px 6px 0 0;
    height: 0%;
    transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* iPhone Drawing - 375*812 等比缩放 */
.iphone {
    /* 在桌面端以约 260px 宽展示，后续通过 .device-group 统一等比缩放 */
    width: 260px;
    height: auto;
    /* 由 aspect-ratio 控制高度 */
    aspect-ratio: 375 / 812;
    /* 锁定长宽比，防止被拉长 */
    background: #111;
    border-radius: 40px;
    position: absolute;
    bottom: 20px;
    /* 往上移动，避免被下方板块遮挡 */
    right: -400px;
    /* 初始位置在右侧外面 */
    border: 8px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 20;
    /* 仅做轻微旋转，具体缩放交由 .device-group 的 JS 统一控制 */
    transform: rotate(-5deg);
    transform-origin: center bottom;
    overflow: hidden;
    display: block;
    /* 确保默认显示 */
    opacity: 0;
    /* 初始状态完全不可见 */
    visibility: hidden;
    /* 初始状态完全隐藏 */
}

.iphone-screen {
    background: #f5f7fa;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 小程序样机内容容器 - 等比缩放 */
.phone-content-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    /* 内部UI根据样机尺寸等比缩放 */
    transform-origin: top left;
    background: #f5f7fa;
}

/* 隐藏滚动条但保持滚动功能 */
.phone-content-wrapper::-webkit-scrollbar {
    display: none;
}

.phone-content-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 手机状态栏 */
.phone-status-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    position: relative;
    z-index: 10;
}

.phone-status-bar .status-time {
    font-weight: 600;
}

.phone-status-bar .status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-signal {
    display: flex;
    gap: 2px;
    align-items: center;
}

.signal-bar {
    width: 3px;
    height: 4px;
    background: white;
    border-radius: 1px;
    opacity: 0.9;
}

.signal-bar:nth-child(1) {
    height: 3px;
}

.signal-bar:nth-child(2) {
    height: 4px;
}

.signal-bar:nth-child(3) {
    height: 5px;
}

.signal-bar:nth-child(4) {
    height: 6px;
}

.status-battery {
    width: 18px;
    height: 8px;
    border: 1px solid white;
    border-radius: 2px;
    position: relative;
    opacity: 0.9;
}

.status-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 4px;
    background: white;
    border-radius: 0 1px 1px 0;
}

.status-battery-fill {
    position: absolute;
    left: 1px;
    top: 1px;
    width: 85%;
    height: calc(100% - 2px);
    background: white;
    border-radius: 1px;
}

/* 小程序样机内的顶部 Tab 导航 */
.phone-tabs {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.phone-tab {
    flex: 1;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.phone-tab.active {
    background: #667eea;
    color: white;
}

/* 小程序首页UI样式 */
.mini-app-container {
    width: 100%;
    min-height: 100%;
    background: #f5f7fa;
}

/* 小程序首页头部 */
.mini-app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 10px;
    padding-top: 8px;
}

.mini-app-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mini-app-avatar {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mini-app-user-details h3 {
    font-size: 11px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.mini-app-user-level {
    font-size: 9px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.mini-app-level-badge {
    background: #ffd700;
    color: #333;
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: bold;
}

.mini-app-header-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.mini-app-stat {
    text-align: center;
}

.mini-app-stat-value {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 2px;
}

.mini-app-stat-label {
    font-size: 8px;
    opacity: 0.9;
}

/* 小程序内容区 */
.mini-app-content {
    padding: 8px;
    padding-bottom: 20px;
}

/* 快速操作 */
.mini-app-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.mini-app-quick-action {
    background: white;
    padding: 8px 4px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mini-app-action-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mini-app-action-icon.blue {
    background: #e3f2fd;
    color: #2196f3;
}

.mini-app-action-icon.green {
    background: #e8f5e8;
    color: #4caf50;
}

.mini-app-action-icon.orange {
    background: #fff3e0;
    color: #ff9800;
}

.mini-app-action-icon.purple {
    background: #f3e5f5;
    color: #9c27b0;
}

.mini-app-action-label {
    font-size: 9px;
    color: #333;
    font-weight: 500;
}

/* 数据卡片 */
.mini-app-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.mini-app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mini-app-card-title {
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

.mini-app-card-subtitle {
    font-size: 9px;
    color: #666;
    margin-top: 2px;
}

/* 任务列表 */
.mini-app-task-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-app-task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid;
}

.mini-app-task-item.urgent {
    border-left-color: #e74c3c;
}

.mini-app-task-item.normal {
    border-left-color: #3498db;
}

.mini-app-task-item.completed {
    border-left-color: #27ae60;
}

.mini-app-task-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.mini-app-task-content {
    flex: 1;
    min-width: 0;
}

.mini-app-task-title {
    font-size: 10px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.mini-app-task-desc {
    font-size: 8px;
    color: #666;
}

.mini-app-task-time {
    font-size: 7px;
    color: #999;
    margin-top: 2px;
}

.mini-app-task-status {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
    flex-shrink: 0;
}

.mini-app-status-urgent {
    background: #f8d7da;
    color: #721c24;
}

.mini-app-status-pending {
    background: #fff3cd;
    color: #856404;
}

.mini-app-status-completed {
    background: #d4edda;
    color: #155724;
}

/* 任务页面UI样式 */
.mini-app-task-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 10px;
    padding-top: 8px;
    text-align: center;
}

.mini-app-task-header-title {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
}

.mini-app-task-header-subtitle {
    font-size: 9px;
    opacity: 0.9;
}

.mini-app-task-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.mini-app-task-stat-card {
    background: white;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mini-app-task-stat-number {
    font-size: 14px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 2px;
}

.mini-app-task-stat-label {
    font-size: 8px;
    color: #666;
}

.mini-app-task-filters {
    display: flex;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mini-app-filter-btn {
    flex: 1;
    padding: 6px;
    text-align: center;
    background: white;
    border: none;
    font-size: 9px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.mini-app-filter-btn.active {
    background: #667eea;
    color: white;
}

.mini-app-task-card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border-left: 3px solid;
}

.mini-app-task-card.in-progress {
    border-left-color: #2196f3;
}

.mini-app-task-card.completed {
    border-left-color: #4caf50;
}

.mini-app-task-card.pending {
    border-left-color: #ff9800;
}

.mini-app-task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.mini-app-task-card-title {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.mini-app-task-priority {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: bold;
    margin-left: 6px;
}

.mini-app-priority-high {
    background: #ffebee;
    color: #f44336;
}

.mini-app-priority-medium {
    background: #fff3e0;
    color: #ff9800;
}

.mini-app-priority-low {
    background: #e8f5e8;
    color: #4caf50;
}

.mini-app-task-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 8px;
    color: #666;
}

.mini-app-task-card-description {
    font-size: 9px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 6px;
}

.mini-app-task-progress {
    margin-bottom: 8px;
}

.mini-app-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #666;
    margin-bottom: 4px;
}

.mini-app-progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.mini-app-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.mini-app-task-actions {
    display: flex;
    gap: 6px;
}

.mini-app-action-btn {
    flex: 1;
    padding: 4px 8px;
    border: none;
    border-radius: 12px;
    font-size: 8px;
    font-weight: bold;
    cursor: pointer;
}

.mini-app-btn-primary {
    background: #667eea;
    color: white;
}

.mini-app-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.mini-app-btn-success {
    background: #4caf50;
    color: white;
}

/* 确保样机内容可以滚动 */
.phone-content-wrapper {
    scroll-behavior: smooth;
}

/* 响应式调整：确保在小屏幕上UI仍然清晰 */
/* iPhone X 标准比例 375:812，使用 aspect-ratio 锁定长宽比 */
@media (max-width: 768px) {
    .iphone {
        width: 200px;
        height: auto;
        /* 由 aspect-ratio 自动计算 */
        aspect-ratio: 375 / 812;
        /* 锁定正确的长宽比 */
        display: block !important;
        /* 确保移动端显示 */
    }
}

@media (max-width: 480px) {
    .iphone {
        width: 180px;
        height: auto;
        /* 由 aspect-ratio 自动计算 */
        aspect-ratio: 375 / 812;
        /* 锁定正确的长宽比 */
        display: block !important;
        /* 确保移动端显示 */
    }
}

.phone-tab {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 0.7rem;
    padding: 4px 6px;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.25s var(--ease-out-expo);
}

.phone-tab.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.3);
}

.phone-header {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.65rem;
}

/* --- 6. Bento Grid (Responsive) --- */
.grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    display: grid;
    gap: 20px;
    /* 默认 Desktop: 3 cols */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 300px;
}

.bento-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

@media (hover: hover) {
    .bento-card {
        position: relative;
        overflow: hidden;
    }

    .bento-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .bento-card:hover::before {
        left: 100%;
    }

    .bento-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-float), var(--shadow-glow);
    }
}

.large-card {
    grid-column: span 2;
    background: var(--text-main);
    color: white;
}

.tall-card {
    grid-row: span 2;
    background: linear-gradient(180deg, #F3E8FF 0%, #FFFFFF 100%);
}

.bento-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bento-text {
    font-size: 0.95rem;
    opacity: 0.8;
}

.deco-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--brand-purple);
    filter: blur(60px);
    opacity: 0.2;
    top: -20px;
    right: -20px;
}

/* --- 7. Architecture Section --- */
.section {
    padding: 5rem 5%;
    position: relative;
    z-index: 1;
}

/* 视差滚动容器 */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
}

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

.arch-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.arch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.arch-card .icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--brand-purple);
    transition: all 0.4s var(--ease-out-expo);
}

@media (hover: hover) {
    .arch-card {
        position: relative;
        overflow: hidden;
    }

    .arch-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--brand-gradient);
        opacity: 0;
        transition: opacity 0.3s;
        z-index: -1;
    }

    .arch-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--shadow-float), var(--shadow-glow);
        border-color: rgba(109, 40, 217, 0.3);
    }

    .arch-card:hover::after {
        opacity: 0.05;
    }

    .arch-card:hover::before {
        transform: scaleX(1);
    }

    .arch-card:hover .icon-box {
        background: var(--brand-gradient);
        color: white;
        transform: scale(1.1) rotate(5deg);
    }
}

.arch-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.3;
}

.arch-card p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* --- 7.5. Value Metrics Section (Dark Background) --- */
.bg-dark {
    background: #0f172a;
    color: white;
}

.bg-dark p {
    color: #94a3b8;
}

.bg-dark .section-header h2 {
    color: white;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

@media (hover: hover) {
    .metric-card:hover {
        transform: translateY(-8px) scale(1.03);
        border-color: rgba(139, 92, 246, 0.5);
        box-shadow: 0 20px 60px -10px rgba(109, 40, 217, 0.4);
    }

    .metric-card:hover::before {
        opacity: 1;
    }

    .metric-card:hover::after {
        opacity: 1;
    }
}

.chart-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.metric-unit {
    font-size: 1.2rem;
    color: #94a3b8;
    -webkit-text-fill-color: #94a3b8;
    margin-left: 4px;
}

.metric-label {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* SVG Circle Chart */
.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.circle-progress {
    fill: none;
    stroke: url(#gradient-purple);
    stroke-width: 6;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 283;
    /* 2 * PI * 45 */
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s var(--ease-out-expo);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.chart-icon {
    color: white;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transform: scale(0.8);
    opacity: 0;
    animation: popIn 0.6s var(--ease-out-expo) forwards 0.5s;
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- 8. Footer --- */
.cta-section {
    text-align: center;
    padding: 6rem 1rem;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

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

footer {
    border-top: 1px solid var(--border-light);
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* =========================================
    📱 响应式断点 (Media Queries) 
    ========================================= */

/* 1. Tablet Landscape & Small Laptops (Max 900px) */
@media (max-width: 900px) {

    /* 导航菜单间距调整 */
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .hero {
        grid-template-columns: 1fr;
        /* 变为单列 */
        text-align: center;
        gap: 4rem;
        padding-top: 7rem;
    }

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

    /* 调整 Bento Grid 为 2 列 */
    .grid-section {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .large-card {
        grid-column: span 2;
        height: 300px;
    }

    .tall-card {
        grid-row: auto;
        grid-column: span 1;
        height: 350px;
    }

    /* 架构部分调整为 2 列 */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 样机整体缩放适应平板 - 由JS动态控制，这里不设置固定值 */
}

/* 对比区块响应式 */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 2rem 1.5rem !important;
    }

    .comparison-grid>div {
        border-right: none !important;
        border-bottom: 1px solid var(--border-light) !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        padding-bottom: 1.5rem !important;
    }

    .comparison-grid>div:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
}

/* 2. Tablet Portrait & Large Phones (Max 768px) */
@media (max-width: 768px) {

    /* 导航菜单移动端样式 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 5%;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--ease-out-expo);
        z-index: 998;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.1rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .brand span {
        display: none;
    }

    .hero-visual {
        height: 350px;
    }

    .isometric-stack {
        width: 220px;
        height: 220px;
    }

    /* 样机容器高度调整 */
    .device-stage-wrapper {
        height: 600px;
        /* 增加高度以容纳平板和手机 */
    }

    /* 移动端：显示手机，从斜方向飞入 */
    .iphone {
        display: block;
        width: 200px;
        height: auto;
        bottom: 40px;
        /* 往上移动，避免被下方板块遮挡 */
        right: -300px;
        /* 初始位置在右侧外面，准备斜向飞入 */
        transform: rotate(15deg) scale(0.35);
        /* 移动端更小的缩放 */
        transform-origin: center bottom;
        opacity: 0;
        /* 初始状态完全不可见 */
        visibility: hidden;
        /* 初始状态完全隐藏 */
    }

    /* 移动端平板居中显示 */
    .tablet-scene {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 820 / 580;
        left: 50%;
        top: 20%;
        transform: translate(-50%, -50%);
    }

    /* Bento Grid 变为单列 */
    .grid-section {
        grid-template-columns: 1fr;
    }

    .large-card,
    .tall-card {
        grid-column: span 1;
        height: auto;
        min-height: 280px;
    }

    /* 架构部分变为单列 */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 5%;
    }

    footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* 3. Small Mobile (Max 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 6rem 5% 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .device-stage-wrapper {
        height: 550px;
        /* 增加高度以容纳平板和手机 */
    }

    .device-group {
        /* height: 550px; */
    }

    .tablet-scene {
        max-width: 85%;
        top: 15%;
    }

    .iphone {
        width: 180px;
        transform: rotate(15deg) scale(0.3);
        /* 小屏更小的缩放 */
        bottom: 30px;
        /* 往上移动，避免被下方板块遮挡 */
        right: -300px;
        /* 初始位置在右侧外面 */
        opacity: 0;
        /* 初始状态完全不可见 */
        visibility: hidden;
        /* 初始状态完全隐藏 */
    }

    /* 缩放由JS动态控制 */

    .cta-section {
        padding: 4rem 1rem;
    }

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

    /* 按钮全宽 */
}