/* ========================================
   凯歌智教云 - 产品宣传网站样式
   ======================================== */

/* CSS Variables */
:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #3730A3;
    --secondary: #7C3AED;
    --accent: #06B6D4;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #0F172A;
    --gray-900: #1E293B;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748B;
    --gray-500: #94A3B8;
    --gray-400: #CBD5E1;
    --gray-300: #E2E8F0;
    --gray-200: #F1F5F9;
    --gray-100: #F8FAFC;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #4F46E5, #7C3AED);
    --gradient-secondary: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-accent: linear-gradient(135deg, #06B6D4, #3B82F6);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0 24px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0F0B2E 0%, #1a1145 30%, #0F172A 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.particle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.particle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent);
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.particle-4 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent);
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.particle-5 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06), transparent);
    bottom: 30%;
    right: 40%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #a5b4fc;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-gradient {
    display: block;
    background: linear-gradient(135deg, #818CF8, #A78BFA, #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: -10px;
}

.avatar:first-child { margin-left: 0; }
.avatar-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.avatar-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.avatar-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.avatar-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.avatar-5 { background: linear-gradient(135deg, #fa709a, #fee140); }

.trust-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.trust-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.trust-info strong {
    color: var(--white);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-dashboard {
    position: relative;
}

.dashboard-window {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 首屏工作台为界面示意，数字非真实运营数据 */
.window-mock-tag {
    margin-left: auto;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

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

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.window-title {
    margin-left: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.window-body {
    display: flex;
    min-height: 320px;
}

.dash-sidebar {
    width: 140px;
    padding: 16px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dash-nav-item.active {
    color: var(--white);
    background: rgba(79, 70, 229, 0.2);
    border-right: 2px solid var(--primary-light);
}

.nav-icon {
    font-size: 1rem;
}

.dash-main {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}

.dash-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.trend-up {
    color: #10B981;
    font-size: 0.7rem;
}

.card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.card-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1.5s ease;
}

.bar-fill.green { background: linear-gradient(90deg, #10B981, #34D399); }
.bar-fill.purple { background: linear-gradient(90deg, #7C3AED, #A78BFA); }

.dash-chart {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.chart-bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
    animation: growBar 1.5s ease forwards;
    transform-origin: bottom;
}

@keyframes growBar {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--white);
    animation: floatCard 4s ease-in-out infinite;
}

.card-ai {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.card-score {
    bottom: 40px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-icon {
    font-size: 1.5rem;
}

.float-text {
    display: flex;
    flex-direction: column;
}

.float-text strong {
    font-size: 0.85rem;
}

.float-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Section Common
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header.light .section-title {
    color: var(--white);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 120px 0;
    background: var(--gray-100);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tags span {
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ========================================
   Products Section
   ======================================== */
.products {
    padding: 120px 0;
    background: var(--white);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.product-showcase:last-child {
    margin-bottom: 0;
}

.product-showcase.reverse {
    direction: rtl;
}

.product-showcase.reverse > * {
    direction: ltr;
}

.product-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.product-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 28px;
}

.product-features {
    margin-bottom: 32px;
}

.product-features li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-features li strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.product-features li span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Product Mockup */
.product-mockup {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.mockup-body {
    padding: 24px;
}

/* Grading Demo */
.grading-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.demo-step.active {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.03);
}

.demo-step.processing {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.03);
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-600);
    flex-shrink: 0;
}

.demo-step.active .step-num {
    background: var(--success);
    color: var(--white);
}

.demo-step.processing .step-num {
    background: var(--warning);
    color: var(--white);
    animation: pulse 1.5s ease infinite;
}

.step-info {
    flex: 1;
}

.step-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.step-info span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.step-status {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
}

.demo-step.active .step-status { color: var(--success); }
.demo-step.processing .step-status { color: var(--warning); }

.demo-result {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 24px;
    align-items: center;
}

.result-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.result-score span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-400);
}

.result-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
}

.result-item {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.result-item.correct { color: var(--success); background: rgba(16, 185, 129, 0.08); }
.result-item.partial { color: var(--warning); background: rgba(245, 158, 11, 0.08); }
.result-item.wrong { color: var(--danger); background: rgba(239, 68, 68, 0.08); }

/* Analytics Demo */
.analytics-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.badge-live {
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s ease infinite;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.metric-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.metric-trend.up { color: var(--success); }
.metric-trend.down { color: var(--danger); }

.knowledge-radar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radar-label {
    width: 40px;
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
}

.radar-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.radar-bar div {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* Chat Mockup */
.chat-mockup .chat-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
}

.chat-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.online-dot {
    font-size: 0.75rem;
    color: var(--success);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--gray-100);
}

.msg {
    display: flex;
}

.msg-user {
    justify-content: flex-end;
}

.msg-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.6;
}

.msg-user .msg-bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.msg-ai .msg-bubble {
    background: var(--white);
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.chat-input span {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.chat-send {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, #0F0B2E 0%, #1a1145 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
}

.stats-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

/* 共建目标：口径说明（阶段目标，非实测运营数据） */
.stats-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.62);
    max-width: 720px;
    margin: 18px auto 0;
    line-height: 1.7;
}

.stats-note {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 40px auto 0;
    padding: 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.85;
    text-align: center;
}

.stats-note strong {
    color: var(--primary-light);
    font-weight: 600;
}

.stats-note a {
    color: #a5d8ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .stats-subtitle { font-size: 0.86rem; }
    .stats-note { font-size: 0.8rem; padding: 14px 16px; margin-top: 28px; }
}

/* ========================================
   Scenarios Section
   ======================================== */
.scenarios {
    padding: 120px 0;
    background: var(--gray-100);
}

.scenarios-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scenario-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.scenario-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
}

.scenario-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.scenario-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.scenario-item:hover {
    background: rgba(79, 70, 229, 0.05);
    transform: translateX(4px);
}

.scenario-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.scenario-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.scenario-item p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   Advantage Section
   ======================================== */
.advantage {
    padding: 120px 0;
    background: var(--white);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.advantage-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

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

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.advantage-card > * {
    position: relative;
    z-index: 1;
}

.advantage-card:hover .adv-number,
.advantage-card:hover h3,
.advantage-card:hover p {
    color: var(--white);
}

.adv-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    transition: var(--transition);
}

.advantage-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    transition: var(--transition);
}

.advantage-card p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.6;
    transition: var(--transition);
}

/* ========================================
   Architecture Section
   ======================================== */
.architecture {
    padding: 120px 0;
    background: var(--gray-100);
}

.arch-diagram {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.arch-layer:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.layer-label {
    width: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
}

.layer-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.arch-tag {
    padding: 6px 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.arch-layer:hover .arch-tag {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.arch-frontend { border-left: 4px solid #61DAFB; }
.arch-backend { border-left: 4px solid #4F46E5; }
.arch-ai { border-left: 4px solid #10B981; }
.arch-infra { border-left: 4px solid #F59E0B; }

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.contact-item span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.9rem;
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    font-size: 1.1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        max-width: 560px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .product-showcase.reverse {
        direction: ltr;
    }

    .product-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .advantage-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-subtitle br {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .scenario-list {
        grid-template-columns: 1fr;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 40%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .floating-card {
        display: none;
    }

    .arch-layer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

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

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

    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* ========================================
   Latest News Section
   ======================================== */
.latest-news {
    padding: 120px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.latest-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.latest-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.latest-news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.latest-news-card:hover::before {
    opacity: 1;
}

.latest-news-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.latest-news-date {
    font-size: 0.82rem;
    color: var(--gray-500);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.latest-news-cat {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.latest-news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
}

.latest-news-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 22px;
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.7;
}

.latest-news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.latest-news-card:hover .latest-news-link {
    gap: 10px;
}

.latest-news-more {
    margin-top: 48px;
    text-align: center;
}

.latest-news-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.latest-news-loading,
.latest-news-empty {
    grid-column: 1 / -1;
    padding: 48px 0;
    color: var(--gray-500);
    font-size: 0.9rem;
    text-align: center;
}

.latest-news-loading::after {
    content: '';
    display: block;
    width: 26px;
    height: 26px;
    margin: 14px auto 0;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: latestNewsSpin 0.8s linear infinite;
}

@keyframes latestNewsSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .latest-news { padding: 80px 0; }
    .latest-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .latest-news { padding: 64px 0; }
    .latest-news-grid { grid-template-columns: 1fr; }
}

/* ========================================
   登录入口：宣传站 → 完整版平台
   ======================================== */
.btn-nav-login {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(79, 70, 229, 0.35);
}

.btn-nav-login:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.nav-mobile-only { display: none; }

.hero-login-hint {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.hero-login-hint a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-login-hint a:hover { color: #C7D2FE; }

@media (max-width: 1024px) {
    .nav-actions { gap: 8px; }
    .nav-actions .btn-sm { padding: 7px 12px; font-size: 0.8rem; }
}

@media (max-width: 768px) {
    .nav-mobile-only { display: block; }
    .nav-mobile-only .nav-link {
        color: var(--primary);
        font-weight: 600;
        background: rgba(79, 70, 229, 0.08);
        border-radius: 8px;
    }
}

/* ============================================================
   移动端自适应补丁 v1（2026-11-09）
   作用范围：仅 <= 768px 窄屏；桌面端所有规则保持不变。
   修复问题：首屏「工作台界面示意」以固定像素撑出最小内容宽度，
            使 .hero-container 被撑到 444px，手机右侧约 30px 被裁切。
   ============================================================ */
@media (max-width: 768px) {
    /* 1. 全局兜底：任何盒子都不允许超出视口 */
    html, body { max-width: 100%; }
    body { overflow-x: hidden; }
    .container { padding-left: 16px; padding-right: 16px; }
    h1, h2, h3, p, li, a, span, div { overflow-wrap: break-word; }

    /* 2. 导航：压缩高度、菜单可滚动、点击热区加大 */
    .navbar, .navbar.scrolled { padding: 0 16px; }
    .nav-container { height: 64px; }
    .nav-menu {
        top: 64px;
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 12px 16px;
    }
    .nav-menu .nav-link { display: block; padding: 11px 10px; font-size: 0.95rem; }
    .nav-toggle { padding: 10px; }
    .btn { white-space: normal; text-align: center; }

    /* 3. 首屏：改为单列块流，避开 grid/flex 的 min-content 撑破 */
    .hero { min-height: 0; }
    .hero-container {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 100px 16px 56px;
    }
    .hero-content, .hero-visual { min-width: 0; max-width: 100%; }
    .hero-title {
        font-size: clamp(1.8rem, 8.2vw, 2.4rem);
        line-height: 1.25;
        margin-bottom: 18px;
    }
    .hero-subtitle { font-size: 0.92rem; line-height: 1.75; margin-bottom: 26px; }
    .hero-actions { gap: 12px; margin-bottom: 24px; }
    .hero-actions .btn-lg { flex: 1 1 100%; width: 100%; }
    .hero-login-hint { margin-top: 4px; font-size: 0.85rem; line-height: 1.7; }
    .hero-trust { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .hero-content > div[style*="inline-block"] {
        display: block !important;
        width: 100%;
        padding: 16px !important;
        margin-top: 24px !important;
        text-align: center;
    }
    .hero-content > div[style*="inline-block"] a { max-width: 100%; }
    .hero-visual { margin-top: 40px; }

    /* 4. 工作台示意图：等比压缩内部尺寸，保留全部信息 */
    .hero-dashboard, .dashboard-window { width: 100%; max-width: 100%; }
    .window-header { padding: 10px 12px; gap: 6px; flex-wrap: wrap; }
    .window-title { margin-left: 6px; font-size: 0.72rem; }
    .window-mock-tag {
        flex: 0 0 100%;
        max-width: none;
        margin: 4px 0 0;
        padding: 3px 8px;
        font-size: 0.62rem;
        line-height: 1.4;
        text-align: center;
        white-space: nowrap;
    }
    .window-body { min-height: 0; }
    .dash-sidebar { width: 92px; padding: 10px 0; }
    .dash-nav-item { padding: 7px 8px; gap: 5px; font-size: 0.68rem; }
    .nav-icon { font-size: 0.82rem; }
    .dash-main {
        min-width: 0;
        padding: 10px;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dash-card { min-width: 0; padding: 9px; }
    .card-header { gap: 4px; font-size: 0.62rem; }
    .trend-up { font-size: 0.58rem; }
    .card-number { font-size: 1.05rem; margin-bottom: 6px; }
    .dash-chart { height: 62px; padding: 8px; gap: 5px; }
    .chart-bar { min-width: 0; }

    /* 5. 内容节奏：桌面 120px 的区块留白在手机上过冗长 */
    .features, .products, .scenarios, .advantage,
    .architecture, .contact, .latest-news { padding-top: 60px; padding-bottom: 60px; }
    .stats { padding-top: 56px; padding-bottom: 56px; }
    .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
    .section-desc { font-size: 0.9rem; }
    .section-header { margin-bottom: 36px; }
    .footer { padding-top: 56px; }
    .footer-grid { gap: 28px; }

    /* 6. 其它示意图 / 表单统一防溢出 */
    .product-visual, .chat-mockup, .arch-diagram, .contact-wrapper {
        min-width: 0;
        max-width: 100%;
    }
    .chat-mockup .chat-body { min-height: 0; }
    input, select, textarea { font-size: 16px; } /* 防 iOS 聚焦自动放大 */

    /* 7. 动画兜底：窄屏直接显示全部内容，避免滚动未触发时「看不见」 */
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 1.7rem; }
    .hero-container, .container { padding-left: 14px; padding-right: 14px; }
    .dash-sidebar { width: 78px; }
    .dash-nav-item { font-size: 0.62rem; padding: 6px; }
    .dash-main { padding: 8px; gap: 6px; }
    .dash-card { padding: 7px; }
    .window-mock-tag { font-size: 0.56rem; }
}

/* ============================================================
   顶部导航修复（2026-11-09 第 2 轮）
   问题：9 个菜单项 + 右侧 2 个按钮总宽超过 1200px 容器，
        flex 子项默认允许压缩，中文被挤成竖排、文字逐个换行。
   方案：文字强制不折行 + 子项禁止压缩；宽屏收紧间距；
        中屏（<=1200）切汉堡菜单，菜单行为由 js/nav.js 统一。
   ============================================================ */

/* A. 所有宽度：导航文字不折行，flex 子项不被压缩 */
.nav-link, .logo-text { white-space: nowrap; }
.nav-container > .nav-logo,
.nav-container > .nav-menu,
.nav-container > .nav-actions { flex-shrink: 0; }
.nav-menu > li { flex-shrink: 0; }

/* B. 宽屏：收紧间距，保证 9 项 + 2 按钮在一行内放得下 */
@media (min-width: 1201px) {
    .nav-menu { gap: 4px; }
    .nav-link { padding: 8px 10px; font-size: 0.86rem; }
    .nav-actions { gap: 8px; }
    .nav-actions .btn-sm { padding: 7px 12px; font-size: 0.8rem; }
}

/* C. 中屏 / 小屏：汉堡菜单，避免拥挤与文字换行 */
@media (max-width: 1200px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        right: 24px;
        min-width: 260px;
        max-width: 340px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 18px;
        max-height: calc(100vh - 88px);
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: 12px;
        box-shadow: var(--shadow-xl);
        z-index: 1001;
    }
    .nav-menu.open { display: flex; }
    .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    .nav-mobile-only { display: block; }
    .nav-menu .nav-link {
        display: block;
        padding: 11px 12px;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    .nav-mobile-only .nav-link {
        color: var(--primary);
        font-weight: 600;
        background: rgba(79, 70, 229, 0.08);
        border-radius: 8px;
    }
}

/* D. 手机：菜单恢复全宽并与 64px 导航栏对齐 */
@media (max-width: 768px) {
    .nav-menu {
        top: 64px;
        left: 0;
        right: 0;
        min-width: 0;
        max-width: none;
        border: none;
        border-top: 1px solid var(--gray-200);
        border-radius: 0;
        max-height: calc(100dvh - 64px);
    }
    .nav-menu .nav-link { padding: 11px 10px; }
}
