/* 全局样式 - Green Bean Pet Gaming Theme */
:root {
    --primary-color: #4CAF50;   /* Green - Primary Brand Color */
    --secondary-color: #8BC34A; /* Light Green - Secondary */
    --accent-color: #CDDC39;    /* Lime - Accent */
    --background-color: #FFFFFF; /* Background */
    --card-bg-color: #FFFFFF;    /* Card Background same as BG for flat look */
    --text-color: #2E7D32;       /* Dark Green - Headline & Main text */
    --text-muted: #388E3C;       /* Medium Green - Subheadline & muted text */
    --border-color: #C8E6C9;     /* Light Green Border */
    --spacing-unit: 8px;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    /* Gaming Theme Additions */
    --gaming-accent: #FFD700;    /* Gold for rare items */
    --divine-glow: #9C27B0;      /* Purple for divine rarity */
    --success-color: #4CAF50;    /* Green for success */
    --warning-color: #FF9800;    /* Orange for warnings */
    --danger-color: #F44336;     /* Red for danger */
    
    /* 新增布局优化变量 */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--gaming-accent));
    
    /* 字体系统 - 优化可读性和层次感 */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* 字体大小系统 - 更大的字体，更好的可读性 */
    --font-size-xs: 0.875rem;      /* 14px */
    --font-size-sm: 1rem;          /* 16px - 基础字体 */
    --font-size-base: 1.125rem;    /* 18px - 正文 */
    --font-size-lg: 1.25rem;       /* 20px */
    --font-size-xl: 1.5rem;        /* 24px */
    --font-size-2xl: 1.875rem;     /* 30px */
    --font-size-3xl: 2.25rem;      /* 36px */
    --font-size-4xl: 3rem;         /* 48px */
    --font-size-5xl: 3.75rem;      /* 60px */
    --font-size-6xl: 4.5rem;       /* 72px */
    --font-size-7xl: 5.25rem;      /* 84px */
    --font-size-8xl: 6rem;         /* 96px */
    
    /* 行高系统 - 优化可读性 */
    --line-height-tight: 1.2;      /* 标题行高 */
    --line-height-normal: 1.5;     /* 正文行高 */
    --line-height-relaxed: 1.7;    /* 段落行高 */
    --line-height-loose: 2;        /* 长文本行高 */
    
    /* 字重系统 */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* 字间距系统 */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
    letter-spacing: var(--letter-spacing-normal);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-color);
}

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

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 calc(2 * var(--spacing-unit));
    position: relative;
}

/* 新增网格系统 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

ul {
    list-style: none;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* 新增背景装饰 */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.02) 0%, rgba(139, 195, 74, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 自定义光标 */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.1s ease;
}
    mix-blend-mode: difference;
    pointer-events: none;
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    z-index: 9999;
    opacity: 0.7;
    filter: blur(1px);
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    z-index: 10000;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* 导航栏容器 */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

nav.scrolled {
    padding: 0.8rem 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(40px);
}

/* 导航栏动画效果 */
@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    animation: navSlideDown 0.6s ease-out;
}

/* 导航链接动画 */
.nav-links li {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-links li:nth-child(5) { animation-delay: 0.5s; }
.nav-links li:nth-child(6) { animation-delay: 0.6s; }
.nav-links li:nth-child(7) { animation-delay: 0.7s; }
.nav-links li:nth-child(8) { animation-delay: 0.8s; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-speed) ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.3));
    transition: all var(--transition-speed) ease;
}

.logo:hover img {
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.4));
}

.logo span {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    font-family: var(--font-family-primary);
    position: relative;
    color: var(--text-color);
    padding: 0.5rem 0;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    letter-spacing: var(--letter-spacing-wide);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links li a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

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

.github-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--card-bg-color);
    padding: 8px 16px;
    border-radius: 30px;
    transition: all var(--transition-speed) ease;
    color: var(--text-color);
}

.github-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* 英雄区 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.02) 0%, rgba(255, 255, 255, 0) 50%, rgba(76, 175, 80, 0.01) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(76, 175, 80, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    display: flex;
    padding: 120px calc(6 * var(--spacing-unit)) calc(6 * var(--spacing-unit));
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding-bottom: calc(6 * var(--spacing-unit));
    position: relative;
    z-index: 1;
    min-height: 85vh;
}



.hero-text {
    flex: 0 0 35%;
    max-width: 35%;
    text-align: left;
    position: relative;
    z-index: 3;
    padding: 0 2rem 0 0;
}

.hero-text h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: var(--font-weight-extrabold);
    font-family: var(--font-family-display);
    margin-bottom: 2rem;
    line-height: var(--line-height-tight);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    letter-spacing: var(--letter-spacing-tight);
    text-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    text-align: left;
}

.hero-text h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: calc(4 * var(--spacing-unit));
    color: var(--text-muted);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    opacity: 0.9;
    text-align: left;
}

.hero-text p {
    font-size: var(--font-size-lg);
    margin-bottom: calc(5 * var(--spacing-unit));
    color: var(--text-muted);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
    max-width: 100%;
    opacity: 0.85;
    text-align: left;
}

.hero-buttons {
    display: flex !important;
    gap: calc(3 * var(--spacing-unit));
    margin-top: calc(5 * var(--spacing-unit));
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    font-family: var(--font-family-primary);
    transition: all var(--transition-speed) ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    cursor: pointer;
    letter-spacing: var(--letter-spacing-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn.primary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
    position: relative;
    overflow: hidden;
}

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

.btn.primary:hover::before {
    left: 100%;
}

.btn.primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.5);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
}

/* 故障文字效果 */
.glitch {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.glitch::before,
.glitch::after {
    content: none;
}

.hero-animation {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    position: relative;
}

.frame-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: all var(--transition-speed) ease;
}

.frame-container:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) scale(1.02);
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: var(--card-bg-color);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.1));
    z-index: 1;
    pointer-events: none;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 新增：Hero区域视频容器样式 */
.hero-video-container {
    flex: 0 0 55%;
    max-width: 55%;
    height: auto;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    background-color: #1f1235;
    z-index: 0;
    transform: perspective(1000px) rotateY(0deg);
    transition: all var(--transition-speed) ease;
    min-height: 600px;
}

.hero-video-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 26px;
    z-index: -1;
    opacity: 0.3;
    transition: opacity var(--transition-speed) ease;
}

.hero-video-container:hover::before {
    opacity: 0.6;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

.hero-video-container:hover {
    transform: perspective(1000px) rotateY(-3deg) scale(1.03);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.35);
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Video Wrapper Styles */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
    z-index: 0;
    transition: all var(--transition-speed) ease;
}

.hero-video-container:hover .hero-video-wrapper iframe {
    transform: scale(1.02);
}



/* 概述部分 */
.section-overview {
    position: relative;
    overflow: hidden;
}

.section-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at right bottom, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

.overview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(8 * var(--spacing-unit));
}

.overview-text {
    flex: 1;
}

.overview-text p {
    margin-bottom: calc(4 * var(--spacing-unit));
    font-size: 1.1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--spacing-unit));
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: calc(2 * var(--spacing-unit));
    font-size: 1.1rem;
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.overview-image {
    width: 50%;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

.overview-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.overview-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 特性部分 */
.section-features {
    position: relative;
    background-color: var(--card-bg-color);
    padding: calc(16 * var(--spacing-unit)) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

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

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

.feature-icon {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-display);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
}

.feature-card p {
    color: var(--text-muted);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

/* 演示部分 */
.section-demos {
    padding: calc(16 * var(--spacing-unit)) 0;
    position: relative;
    overflow: hidden;
}

.section-demos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at left bottom, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

.demos-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: calc(2 * var(--spacing-unit));
    margin-bottom: calc(6 * var(--spacing-unit));
}

.demo-tab {
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.demo-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.demo-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.demo-content {
    position: relative;
}

.demo-panel {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.demo-panel.active {
    display: block;
    opacity: 1;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: calc(6 * var(--spacing-unit));
}

.demo-item {
    border-radius: var(--border-radius);
    overflow: visible;
    background-color: var(--card-bg-color);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.demo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.demo-video {
    width: 100%;
}

.demo-video video {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.demo-info {
    padding: calc(3 * var(--spacing-unit));
}

.demo-info h3 {
    margin-bottom: var(--spacing-unit);
    font-size: 1.3rem;
}

.demo-info p {
    color: var(--text-muted);
}

/* Demo Note Styles */
.demo-note {
    font-size: 0.9em;
    color: #4b5563; /* Consider using a CSS variable */
    margin-top: calc(4 * var(--spacing-unit)); /* Adjusted from negative margin */
    margin-bottom: calc(4 * var(--spacing-unit));
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 安装部分 */
.section-installation {
    background-color: var(--card-bg-color);
    padding: calc(16 * var(--spacing-unit)) 0;
}

.installation-content {
    max-width: 800px;
    margin: 0 auto;
}

.installation-tabs {
    display: flex;
    justify-content: center;
    gap: calc(2 * var(--spacing-unit));
    margin-bottom: calc(4 * var(--spacing-unit));
}

.installation-tab {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.installation-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.installation-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.installation-panel {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.installation-panel.active {
    display: block;
    opacity: 1;
}

.code-block {
    background-color: #0f172a;
    border-radius: var(--border-radius);
    padding: calc(4 * var(--spacing-unit));
    margin-top: calc(2 * var(--spacing-unit));
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.code-block pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block code {
    font-family: 'Source Code Pro', monospace;
    color: var(--text-color);
    line-height: 1.8;
}

/* 论文部分 */
.section-paper {
    padding: calc(16 * var(--spacing-unit)) 0;
    position: relative;
    overflow: hidden;
}

.section-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at right center, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

.paper-content {
    display: flex;
    align-items: center;
    gap: calc(8 * var(--spacing-unit));
}

.paper-image {
    flex: 1;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    transform: perspective(1000px) rotateY(5deg);
}

.paper-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.paper-info {
    flex: 1;
}

.paper-info h3 {
    font-size: 1.8rem;
    margin-bottom: calc(3 * var(--spacing-unit));
}

.paper-info p {
    color: var(--text-muted);
    margin-bottom: calc(4 * var(--spacing-unit));
}

.paper-links {
    display: flex;
    gap: calc(2 * var(--spacing-unit));
}

/* 页脚 */
.footer {
    background-color: var(--card-bg-color);
    padding: calc(8 * var(--spacing-unit)) 0 calc(4 * var(--spacing-unit));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: calc(6 * var(--spacing-unit));
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: calc(2 * var(--spacing-unit));
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: calc(8 * var(--spacing-unit));
}

.footer-column h3 {
    margin-bottom: calc(3 * var(--spacing-unit));
    font-size: 1.2rem;
    color: var(--text-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--spacing-unit));
}

.footer-column ul li a {
    color: var(--text-muted);
    transition: color var(--transition-speed) ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: calc(4 * var(--spacing-unit));
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* 语言切换器 */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-primary);
    transition: all var(--transition-speed) ease;
    color: var(--text-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    letter-spacing: var(--letter-spacing-normal);
}

.lang-switcher-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.lang-switcher-icon {
    font-size: 1rem;
    transition: transform var(--transition-speed) ease;
}

.lang-switcher-btn:hover .lang-switcher-icon {
    transform: rotate(15deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    min-width: 140px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-top: 1rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    z-index: 9999;
    border: 1px solid rgba(76, 175, 80, 0.1);
    padding: 0.5rem 0;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1.25rem;
    display: block;
    text-align: left;
    transition: all var(--transition-speed) ease;
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-primary);
    border-radius: 8px;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: var(--letter-spacing-normal);
}

.lang-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-speed) ease;
    z-index: -1;
}

.lang-option:hover {
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.lang-option:hover::before {
    left: 0;
    opacity: 1;
}

.lang-option.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Main Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    padding: 0.5rem 0;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    font-family: var(--font-family-primary);
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: var(--letter-spacing-wide);
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform var(--transition-speed) ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-toggle:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    min-width: 280px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-top: 1rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 9999;
    border: 1px solid rgba(76, 175, 80, 0.1);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0.25rem 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-primary);
    border-radius: 8px;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: var(--letter-spacing-normal);
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-speed) ease;
    z-index: -1;
}

.dropdown-menu a:hover {
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.dropdown-menu a:hover::before {
    left: 0;
    opacity: 1;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        margin-top: 0;
        min-width: auto;
    }
    
    .dropdown-menu li {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 8px 16px;
        color: var(--text-muted);
    }
}

/* Article and Story Page Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.article-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-body {
    line-height: 1.8;
}

.article-body h2 {
    color: var(--text-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

.article-body h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.story-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.story-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-factors {
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.success-factors h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.success-factors ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.success-factors li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.lesson-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.lesson-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lesson-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.call-to-action {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.call-to-action h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-buttons .btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons .btn:hover {
    background: transparent;
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--card-bg-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--text-color);
    font-weight: 500;
}

/* 404页面 */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 10rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.home-button {
    margin-top: 2rem;
}

/* 新增布局优化样式 */
.content-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

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

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

.content-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    transition: all var(--transition-speed) ease;
}

.content-card:hover .content-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

/* 新增动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 新增滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .scroll-arrow {
    width: 2px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 1px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

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

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

.content-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    transition: all var(--transition-speed) ease;
}

.content-card:hover .content-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        padding-top: 80px;
        text-align: center;
        align-items: center;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-bottom: 3rem;
        gap: 3rem;
    }

    .hero-text {
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        max-width: 600px;
    }
    
    .hero-text h1 {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .hero-text h2 {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .hero-text p {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
    }

    .hero-video-container {
        /* Reset PC top margin */
        margin-top: 0; /* Space above video is controlled by .hero-text's margin-bottom */
        width: 100%;   /* Video container takes full available width */
        max-width: 400px; /* Example: Constrain video width on mobile. Adjust as needed. */
                       /* Could also be something like 90vw or similar percentage */
        /* Aspect-ratio and other styles are global and should apply */
    }

    .paper-content {
        flex-direction: column;
    }

    .paper-info {
        order: 2;
    }

    .paper-image {
        order: 1;
        margin-bottom: calc(6 * var(--spacing-unit));
    }

    .frame-container,
    .paper-image {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }
    
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
    
    .logo span {
        font-size: var(--font-size-xl);
    }
    
    .logo img {
        height: 36px;
    }
    
    .lang-switcher {
        margin-left: 1rem;
    }
    
    .lang-switcher-btn {
        padding: 0.6rem 1rem;
        font-size: var(--font-size-xs);
    }

    .section-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 100px 1rem 2rem;
        gap: 3rem;
        min-height: auto;
    }

    .hero-text {
        flex: 1;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }
    
    .hero-image-container {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .hero-pet-image {
        max-width: 100%;
        height: auto;
    }

    .hero-video-container {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 400px;
    }

    .hero-video-wrapper {
        height: 400px;
    }

    .hero-text h1 {
        font-size: clamp(3rem, 10vw, 4.5rem);
    }

    .hero-text h2 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-text p {
        font-size: var(--font-size-lg);
        max-width: 100%;
    }

    .hero-video-container {
        flex: 1;
        max-width: 100%;
        transform: none;
        min-height: 400px;
    }
    
    .hero-video-container:hover {
        transform: scale(1.02);
    }
    
    .hero-video-wrapper {
        height: 400px;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: var(--font-size-base);
        min-height: 48px;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .feature-card h3 {
        font-size: var(--font-size-lg);
    }
    
    .feature-card p {
        font-size: var(--font-size-sm);
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: calc(6 * var(--spacing-unit));
    }

    .footer-logo {
        align-items: center;
        margin-bottom: calc(4 * var(--spacing-unit));
    }

    .footer-links {
        justify-content: center;
    }

    .overview-content {
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally */
        gap: calc(4 * var(--spacing-unit)); /* Adjust gap for vertical stacking */
    }

    .overview-text {
        text-align: center; /* Center align text within this block */
        width: 100%;        /* Allow it to take full width to center its content */
        max-width: 500px;   /* Optional: constrain width for readability */
    }

    .feature-list {
        display: inline-flex; /* Allows centering of the list itself if text-align:center on parent */
        flex-direction: column; /* Stack list items vertically */
        align-items: center;    /* Center list items if they have varying widths */
                                /* Or use align-items: flex-start; if you want text to align left within each item */
        gap: var(--spacing-unit); /* Adjust gap between list items */
    }

    .feature-list li {
        justify-content: center; /* Center content (icon and text) within each list item */
        /* If icons and text are misaligned, ensure they are vertically aligned too */
        /* display: flex; align-items: center; is already on .feature-list li globally */
    }

    .overview-image {
        width: 90%;         /* Adjust image width for mobile */
        max-width: 400px;   /* Max width for image */
        margin-top: calc(2 * var(--spacing-unit)); /* Add some space above image if it's below text */
    }
}

.hero-gif {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(4 * var(--spacing-unit));
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: calc(3 * var(--spacing-unit));
    }
}

.how-it-works-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: calc(4 * var(--spacing-unit));
}

/* Style for the iframe and its wrapper */
#online-run-iframe-anchor {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: calc(4 * var(--spacing-unit));
}

#main-iframe {
    width: 100%;
    height: 2100px; /* Further increased height for mobile, with scrolling="no" */
    border: none;
    border-radius: var(--border-radius, 12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Desktop layout for hero */
@media (min-width: 1024px) {
    .hero {
        min-height: auto; 
        padding-bottom: calc(4 * var(--spacing-unit)); /* MODIFIED: Significantly reduced bottom padding */
    }

    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start; 
        gap: calc(6 * var(--spacing-unit));
        padding-bottom: calc(4 * var(--spacing-unit)); /* ADDED: Explicitly set a small bottom padding for PC */
    }

    .hero-text {
        flex: 0 0 45%; /* 左侧文本区域占比 */
        max-width: 45%;
        text-align: left; /* 确保文本在桌面端左对齐 */
    }

    /* 新增：桌面端Hero视频容器样式 */
    .hero-video-container {
        flex: 1 1 50%; /* 右侧视频区域占比，允许伸缩 */
        max-width: 50%; /* 最大宽度 */
        height: auto; /* 高度自适应，由aspect-ratio控制 */
    }

    #online-run-iframe-anchor {
        /* 移除之前的flex布局，因为它不再是hero-content的子元素 */
        /* flex: 1 1 50%; */ /*  被移除 */
        /* max-width: 50%; */ /* 被移除 */
        /* 以下为移到页面下方后的样式，确保其在新位置正常展示 */
        width: 100%; /* 在其新的父容器（如.container）中占据全部宽度 */
        max-width: 1100px; /* 可以根据需要设置最大宽度，与.container一致 */
        margin-left: auto;
        margin-right: auto;
    }

    #main-iframe {
        height: 1350px;
    }
}

/* 新增：为包含移出iframe的新section的样式 (如果按建议添加了section) */
#online-run-section {
    padding-top: calc(4 * var(--spacing-unit)); /* MODIFIED: Further reduced top padding */
    /* padding-bottom will inherit from .section or can be set here if different */
}

#online-run-section .section-title {
    margin-bottom: calc(6 * var(--spacing-unit));
}

/* === Enhancements for Flowchart-like Sections === */

/* Adjust spacing for main flow containers */
.installation-flow,
.technical-flow {
    display: flex;
    flex-direction: column;
    gap: 0; /* Gap will be controlled by margin on steps */
}

.flow-step,
.tech-step {
    background-color: #f8f9fa; /* Slightly lighter card background */
    border: 1px solid #dee2e6; /* Softer border color */
    border-radius: 8px;
    padding: 20px 25px; /* Adjusted padding */
    box-shadow: 0 2px 4px rgba(0,0,0,0.04); /* Softer shadow */
    position: relative;
    margin-bottom: 35px; /* Increased space for dashed line and separation */
}

/* Dashed line separator for all but the last step/category */
.flow-step:not(:last-child)::after,
.tech-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -18px; /* Position line in the margin space */
    left: 20%;   /* Start line a bit from the left */
    width: 60%;  /* Width of the dashed line */
    height: 1px; /* Thickness of the line */
    background-image: linear-gradient(to right, #adb5bd 60%, transparent 40%); /* Dashed line effect */
    background-size: 12px 1px; /* Dash length and gap */
    background-repeat: repeat-x;
}

/* Remove bottom margin from the very last card in each flow */
.installation-flow > .flow-step:last-child,
.technical-flow > .tech-step:last-child {
    margin-bottom: 0;
}
/* Ensure no dashed line for the last child */
.installation-flow > .flow-step:last-child::after,
.technical-flow > .tech-step:last-child::after {
    display: none;
}


/* Headings within steps/categories */
.flow-step h4,
.tech-step h4 {
    margin-top: 0;
    color: #212529; /* Darker heading color */
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* More space below heading */
    font-size: 1.15em; /* Slightly larger heading */
}

.flow-step h4 i,
.tech-step h4 i {
    margin-right: 12px;
    color: #7c5dfa; /* Adjusted icon color to be a bit brighter */
    font-size: 1.35em; /* Slightly larger icon */
    min-width: 25px; /* Ensure icons align well if text wraps */
}

/* List items (the "要点") */
.flow-step ul, .tech-step ul {
    list-style-type: none; /* Remove default bullets if we add custom ones or just want spacing */
    padding-left: 5px; /* Slight overall indent for the list */
}

.flow-step ul li,
.tech-step ul li {
    margin-bottom: 16px; /* Increased space BETWEEN bullet points */
    line-height: 1.7;   /* Increased line height for multi-line bullet points */
    padding-left: 0px; /* Adjust if using custom bullets with ::before */
    color: #495057; /* Slightly softer text color for list items */
}

.flow-step ul li strong,
.tech-step ul li strong {
    color: #343a40; /* Make bolded text more distinct */
    font-weight: 600; /* Slightly bolder */
}


/* Code blocks styling within installation guide */
.installation-flow .code-block-inline pre,
.installation-flow .code-block pre {
    padding: 12px 15px;
    background-color: #2d2d2d; /* Dark background for code */
    color: #e6e6e6; /* Light text for dark background */
    border: 1px solid #444;
    border-radius: 6px;
    overflow-x: auto; /* Horizontal scroll for long code lines */
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9em;
    margin-top: 8px;
    margin-bottom: 15px; /* More space after code block */
    white-space: pre; /* Preserve spaces and line breaks, use with overflow-x */
}
/* For inline code within list items if any */
.flow-step ul li code,
.tech-step ul li code {
    background-color: #e9ecef;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #2c3e50;
}


/* Specific to Technical Highlights Diagram */
.tech-diagram {
    max-width: 160px; /* Adjusted size */
    float: right;
    margin-left: 25px;
    margin-top: 5px; /* Align better with the start of the list */
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 4px;
    background-color: #ffffff;
}

/* Clearfix for floated diagram - applies to .tech-step */
.tech-step::after { /* This was for the dashed line, let's ensure clearfix is also handled */
    /* The dashed line pseudo-element is already here */
    /* For clearfix, if the diagram is the only floated element: */
    /* content: ""; clear: both; display: table; */
    /* Simpler is to ensure the parent .tech-step has overflow: hidden or auto if needed, but float usually works with subsequent block elements */
}
.tech-step > ul { /* Ensure list below diagram clears it if diagram is tall */
    /* clear: right; */ /* Can be too aggressive, usually natural flow is okay */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-diagram {
        float: none;
        display: block;
        max-width: 60%;
        margin: 10px auto 20px auto;
    }

    .flow-step:not(:last-child)::after,
    .tech-step:not(:last-child)::after {
        width: 75%; /* Wider dashed line on mobile */
        left: 12.5%;
    }

    .flow-step h4, .tech-step h4 {
        font-size: 1.1em;
    }
    .flow-step h4 i, .tech-step h4 i {
        font-size: 1.25em;
    }
}

/* 视频展示区块样式 */
.section-video-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.section-video-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: calc(8 * var(--spacing-unit));
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: calc(6 * var(--spacing-unit));
    margin-top: calc(8 * var(--spacing-unit));
}

.video-container {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: calc(4 * var(--spacing-unit));
}

.video-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: calc(2 * var(--spacing-unit));
}

.video-info p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: calc(4 * var(--spacing-unit));
    }
    
    .video-container {
        margin: 0 calc(2 * var(--spacing-unit));
    }
    
    .video-info {
        padding: calc(3 * var(--spacing-unit));
    }
    
    .video-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        margin: 0;
    }
}

/* Products区块样式 */
.section-products {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.section-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.section-products .section-title {
    color: white;
}

.section-products .section-title::after {
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: calc(6 * var(--spacing-unit));
    margin-top: calc(8 * var(--spacing-unit));
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: calc(6 * var(--spacing-unit));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(4 * var(--spacing-unit));
    transition: all var(--transition-speed) ease;
}

.product-icon i {
    font-size: 2rem;
    color: white;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: calc(3 * var(--spacing-unit));
    color: var(--text-color);
}

.product-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: calc(4 * var(--spacing-unit));
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: calc(1 * var(--spacing-unit)) 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: calc(4 * var(--spacing-unit));
    color: var(--text-muted);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: calc(1 * var(--spacing-unit));
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: calc(4 * var(--spacing-unit));
    }
    
    .product-card {
        padding: calc(4 * var(--spacing-unit));
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-icon i {
        font-size: 1.5rem;
    }
}

/* 指南中心页面样式 */
.search-section {
    background: var(--bg-color);
    padding: calc(4 * var(--spacing-unit)) 0;
    border-bottom: 1px solid var(--border-color);
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    padding: 0.75rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--text-muted);
    margin-left: 1rem;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem;
    font-size: var(--font-size-base);
    background: transparent;
}

.search-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.guides-main {
    padding: calc(6 * var(--spacing-unit)) 0;
    position: relative;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

.guides-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.guide-category {
    margin-bottom: calc(10 * var(--spacing-unit));
    padding: calc(4 * var(--spacing-unit)) 0;
    position: relative;
}

.guide-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.3;
}

.category-title {
    font-size: var(--font-size-4xl);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-display);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: calc(2 * var(--spacing-unit)) 0;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.category-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.category-title i {
    color: var(--primary-color);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

.category-description {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin-bottom: calc(4 * var(--spacing-unit));
    line-height: var(--line-height-relaxed);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(4 * var(--spacing-unit));
    margin-bottom: calc(6 * var(--spacing-unit));
}

.guide-card {
    background: white;
    border-radius: 20px;
    padding: calc(4 * var(--spacing-unit));
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.guide-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(76, 175, 80, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(255, 255, 255, 1));
}

.guide-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.guide-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.guide-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.guide-card:hover .guide-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(76, 175, 80, 0.3));
}

.guide-card h3 {
    font-size: var(--font-size-xl);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-display);
}

.guide-card p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
    flex: 1;
}

.guide-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.guide-tag::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 ease;
}

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

.coming-soon .guide-tag {
    background: var(--text-muted);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: var(--font-size-base);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

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

/* 指南中心响应式设计 */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem;
        max-width: 90%;
    }
    
    .search-input {
        margin: 0.5rem 0;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: calc(3 * var(--spacing-unit));
    }
    
    .category-title {
        font-size: var(--font-size-2xl);
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .guide-card {
        padding: calc(3 * var(--spacing-unit));
    }
    
    .guide-icon {
        font-size: 3rem;
    }
    
    .guide-category {
        margin-bottom: calc(6 * var(--spacing-unit));
        padding: calc(2 * var(--spacing-unit)) 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 80px 1rem 2rem;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .hero-text h2 {
        font-size: var(--font-size-lg);
    }
    
    .hero-text p {
        font-size: var(--font-size-base);
    }
    
    .hero-image-container {
        margin-top: 1rem;
    }
    
    .hero-pet-image {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.8rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: var(--font-size-sm);
        min-height: 44px;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: calc(2 * var(--spacing-unit));
    }
    
    .guide-card {
        padding: calc(2 * var(--spacing-unit));
    }
    
    .category-title {
        font-size: var(--font-size-xl);
    }
    
    .guide-icon {
        font-size: 2.5rem;
    }
}