/* 全局样式 */
:root {
    --primary-color: #8B5CF6;   /* Purple for Electro theme */
    --secondary-color: #A855F7; /* Light purple */
    --accent-color: #FCD34D;    /* Gold accent for 5-star */
    --background-color: #FFFFFF; /* Background */
    --card-bg-color: #FFFFFF;    /* Card Background same as BG for flat look */
    --text-color: #1f1235;       /* Headline & Main text */
    --text-muted: #1b1425;       /* Subheadline & muted text */
    --border-color: #e5e7eb;     /* Border color */
    --spacing-unit: 8px;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --electro-color: #8B5CF6;   /* Electro element color */
    --lunar-color: #C084FC;     /* Lunar-Charged effect color */
    --shield-color: #60A5FA;    /* Shield color */
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    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: 1100px;
    margin: 0 auto;
    padding: 0 calc(2 * var(--spacing-unit));
}

ul {
    list-style: none;
}

.section {
    padding: calc(12 * var(--spacing-unit)) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: calc(8 * var(--spacing-unit));
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 自定义光标 */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
    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: calc(2 * var(--spacing-unit)) calc(4 * var(--spacing-unit));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: padding var(--transition-speed) ease;
}

nav.scrolled {
    padding: var(--spacing-unit) calc(4 * var(--spacing-unit));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    position: relative;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    border-color: var(--accent-color);
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-links li a {
    font-weight: 500;
    position: relative;
    color: var(--text-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.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;
}

.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: 80px calc(12 * var(--spacing-unit)) calc(8 * var(--spacing-unit));
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: calc(6 * var(--spacing-unit));
    padding-bottom: calc(4 * var(--spacing-unit));
}

.hero-text {
    flex: 0 0 45%;
    max-width: 45%;
    text-align: left;
    margin-top: calc(6 * var(--spacing-unit));
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-unit);
    line-height: 1.1;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: calc(3 * var(--spacing-unit));
    color: var(--text-muted);
}

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

.hero-buttons {
    display: flex;
    gap: calc(2 * var(--spacing-unit));
    margin-top: calc(4 * var(--spacing-unit));
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

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

.btn.primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 故障文字效果 */
.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: 1 1 50%;
    max-width: 50%;
    height: auto;
    margin-top: calc(3 * var(--spacing-unit));
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #1f1235;
}

.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: 400px;
    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);
}

/* 概述部分 */
.section-overview {
    position: relative;
    overflow: hidden;
    padding: calc(8 * var(--spacing-unit)) 0;
}

.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: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(10 * var(--spacing-unit));
    align-items: center;
    min-height: 600px;
}

.overview-text {
    padding-right: calc(4 * var(--spacing-unit));
}

.character-intro {
    margin-bottom: calc(6 * var(--spacing-unit));
}

.character-intro h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: calc(3 * var(--spacing-unit));
    text-shadow: 0 0 20px rgba(252, 211, 77, 0.6);
    letter-spacing: 1px;
}

.character-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 0;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: calc(3 * var(--spacing-unit));
    font-size: 1.1rem;
    padding: calc(2 * var(--spacing-unit)) 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    transition: all var(--transition-speed) ease;
}

.feature-list li:hover {
    padding-left: calc(2 * var(--spacing-unit));
    border-bottom-color: rgba(139, 92, 246, 0.5);
    transform: translateX(5px);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.character-stats-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(3 * var(--spacing-unit));
    margin-top: calc(6 * var(--spacing-unit));
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(2 * var(--spacing-unit)) calc(3 * var(--spacing-unit));
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all var(--transition-speed) ease;
}

.stat-item:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.stat-label {
    font-size: 0.95rem;
    color: #b8b5b2;
    font-weight: 500;
}

.stat-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.stat-value.electro {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.stat-value.gold {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.6);
}

/* 角色展示容器 */
.overview-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: calc(4 * var(--spacing-unit));
}

.character-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    border-radius: calc(3 * var(--border-radius));
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(139, 92, 246, 0.4),
        0 0 100px rgba(139, 92, 246, 0.2),
        inset 0 0 50px rgba(252, 211, 77, 0.1);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-showcase:hover {
    transform: scale(1.03) rotateY(5deg);
    box-shadow: 
        0 35px 70px rgba(139, 92, 246, 0.6),
        0 0 150px rgba(139, 92, 246, 0.4),
        inset 0 0 80px rgba(252, 211, 77, 0.2);
}

.character-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-showcase:hover .character-main-image {
    transform: scale(1.08);
}

.character-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.electro-aura {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    animation: electro-pulse 4s ease-in-out infinite;
}

.lunar-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(252, 211, 77, 0.8), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(139, 92, 246, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(252, 211, 77, 0.7), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(139, 92, 246, 0.5), transparent);
    background-size: 100px 100px, 80px 80px, 120px 120px, 90px 90px;
    animation: particle-float 12s linear infinite;
}

.character-name-plate {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
    padding: calc(6 * var(--spacing-unit)) calc(4 * var(--spacing-unit)) calc(4 * var(--spacing-unit));
    text-align: center;
    backdrop-filter: blur(15px);
    z-index: 2;
}

.character-name-plate h3 {
    margin: 0 0 calc(1 * var(--spacing-unit)) 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(252, 211, 77, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.character-name-plate p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes electro-pulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1) rotate(180deg); 
    }
}

@keyframes particle-float {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateY(-30px) rotate(360deg); 
        opacity: 0.6;
    }
}

/* 角色信息覆盖层样式 */
.character-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: all var(--transition-speed) ease;
}

.overview-image:hover .character-info-overlay {
    transform: translateY(0);
}

.character-info-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.character-info-overlay p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 元素徽章样式 */
.element-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.element-badge.electro {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    border: 1px solid #C084FC;
    animation: electro-pulse 2s ease-in-out infinite;
}

@keyframes electro-pulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.6);
        transform: scale(1.05);
    }
}

/* 5星评级样式 */
.star-rating {
    color: var(--accent-color);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.5);
    margin-right: 0.5rem;
}

/* Logo在不同上下文中的适配 */
.nav-logo-context .character-avatar {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.footer-logo-context .character-avatar {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.overview-context .character-avatar {
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(252, 211, 77, 0.5);
}

/* 角色卡片悬停效果增强 */
.character-showcase-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(252, 211, 77, 0.1));
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.character-showcase-card::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.6s ease;
}

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

.character-showcase-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* 特性部分 */
.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(4, 1fr);
    gap: calc(3 * var(--spacing-unit));
}

.feature-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: var(--border-radius);
    padding: calc(4 * var(--spacing-unit));
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

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

.feature-icon {
    margin-bottom: calc(2 * var(--spacing-unit));
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: calc(1 * var(--spacing-unit));
    color: #ffffff;
}

.feature-card p {
    color: #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 演示部分 */
.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;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transition: all var(--transition-speed) ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

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

.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: calc(2 * var(--spacing-unit));
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: var(--card-bg-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    color: var(--text-color);
}

.lang-switcher-btn:hover {
    background-color: rgba(30, 41, 59, 0.8);
}

.lang-switcher-icon {
    font-size: 1rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    min-width: 120px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    z-index: 1001;
}

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

.lang-option {
    padding: 8px 16px;
    display: block;
    text-align: left;
    transition: all var(--transition-speed) ease;
}

.lang-option:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.lang-option.active {
    background-color: rgba(99, 102, 241, 0.2);
}

/* 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;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        padding-top: 100px; /* Adjusted from 120px, can be tweaked further if text is too high/low */
        text-align: center;
        align-items: center;
        padding-left: calc(4 * var(--spacing-unit)); /* Adjusted for tighter mobile padding */
        padding-right: calc(4 * var(--spacing-unit)); /* Adjusted for tighter mobile padding */
        padding-bottom: calc(6 * var(--spacing-unit));
    }

    .hero-text {
        /* Reset PC top margin that might push it down too much or cause alignment issues with video */
        margin-top: 0;
        /* Space below the text block, before the video */
        margin-bottom: calc(4 * var(--spacing-unit)); /* e.g., 32px if unit is 8px */
        width: 100%; /* Ensure it takes full width for centering its content */
        max-width: 500px; /* Constrain text block width for readability on mobile */
    }

    .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-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .hero-content {
        padding-top: 80px; /* Further fine-tune for very small screens */
        padding-left: calc(2 * var(--spacing-unit));
        padding-right: calc(2 * var(--spacing-unit));
    }

    .hero-text h1 {
        font-size: 2.5rem; /* Adjusted for smaller screens */
    }

    .hero-text h2 {
        font-size: 1.3rem; /* Adjusted for smaller screens */
    }

    .hero-video-container {
        max-width: 90%; /* More relative width for smaller screens */
    }

    .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 {
        grid-template-columns: 1fr;
        gap: calc(6 * var(--spacing-unit));
        min-height: auto;
    }

    .overview-text {
        padding-right: 0;
        text-align: left;
        order: 2;
    }

    .character-intro {
        text-align: center;
        margin-bottom: calc(4 * var(--spacing-unit));
    }

    .character-intro h3 {
        font-size: 1.6rem;
        margin-bottom: calc(2 * var(--spacing-unit));
    }

    .feature-list {
        margin: calc(4 * var(--spacing-unit)) 0;
        gap: calc(2 * var(--spacing-unit));
    }

    .feature-list li {
        gap: calc(2 * var(--spacing-unit));
        padding: calc(1.5 * var(--spacing-unit)) 0;
        font-size: 1rem;
    }

    .feature-list li i {
        font-size: 1.2rem;
    }

    .character-stats-preview {
        grid-template-columns: 1fr;
        gap: calc(2 * var(--spacing-unit));
        margin-top: calc(4 * var(--spacing-unit));
    }

    .overview-image-container {
        order: 1;
        padding-left: 0;
        margin-bottom: calc(4 * var(--spacing-unit));
    }

    .character-showcase {
        max-width: 400px;
        height: 500px;
        margin: 0 auto;
    }

    .character-name-plate h3 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .character-name-plate p {
        font-size: 1rem;
    }
}

.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;
    }
}

/* 伤害计算器样式 */
.section-calculator {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: white;
}

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

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.calculator-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.calculator-panel h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.calculator-results {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.damage-breakdown {
    margin-bottom: 2rem;
}

.damage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.damage-item.highlight {
    background: linear-gradient(90deg, rgba(192, 132, 252, 0.2), transparent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--lunar-color);
}

.damage-item.total {
    background: linear-gradient(90deg, rgba(252, 211, 77, 0.2), transparent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.damage-label {
    color: #e2e8f0;
}

.damage-value {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* 配装推荐样式 */
.section-builds {
    background: #f8fafc;
}

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

.builds-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.build-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
}

.build-tab.active,
.build-tab:hover {
    background: var(--primary-color);
    color: white;
}

.build-panels {
    position: relative;
}

.build-panel {
    display: none;
}

.build-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.build-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.weapon-recommendation,
.artifact-recommendation {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.weapon-recommendation h3,
.artifact-recommendation h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.weapon-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weapon-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
}

.weapon-item.best {
    border-color: var(--accent-color);
    background: linear-gradient(90deg, rgba(252, 211, 77, 0.1), transparent);
}

.weapon-item.good {
    border-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
}

.weapon-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    min-width: 80px;
    text-align: center;
}

.weapon-info h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.weapon-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.weapon-passive {
    font-style: italic;
    color: var(--primary-color) !important;
}

.artifact-sets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.artifact-set {
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
}

.artifact-set.best {
    border-color: var(--accent-color);
    background: linear-gradient(90deg, rgba(252, 211, 77, 0.1), transparent);
}

.artifact-set.alternative {
    border-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
}

.artifact-set h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.artifact-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.artifact-stats p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 社区功能样式 */
.section-community {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

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

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.community-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.community-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.build-submission-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.community-builds {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-build-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
}

.community-build-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.build-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.build-header h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.build-author {
    color: #94a3b8;
    font-size: 0.9rem;
}

.build-summary {
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.build-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calculator-grid,
    .build-grid,
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .builds-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .build-tab {
        width: 200px;
        text-align: center;
    }
    
    .weapon-item {
        flex-direction: column;
        text-align: center;
    }
    
    .build-stats {
        justify-content: center;
    }
}

/* Hero区域的角色展示 */
.hero-character-showcase {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 300px;
    height: 400px;
    background: url('images/ineffa-character-full.webp') no-repeat center;
    background-size: contain;
    opacity: 0.8;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

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

/* 角色卡片中的头像样式 */
.character-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transition: all var(--transition-speed) ease;
}

.character-avatar:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(252, 211, 77, 0.5);
}

/* 品牌标识动画效果 */
.brand-glow {
    position: relative;
}

.brand-glow::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: 50%;
    opacity: 0;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

/* 响应式Logo调整 */
@media (max-width: 768px) {
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo span {
        font-size: 1.3rem;
    }
    
    .footer-logo img {
        width: 50px;
        height: 50px;
    }
    
    .footer-logo h2 {
        font-size: 1.5rem;
    }
    
    .hero-character-showcase {
        display: none; /* 移动端隐藏大图 */
    }
}

/* 视频播放列表样式 */
.video-playlist-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(252, 211, 77, 0.05));
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.playlist-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.playlist-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.playlist-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
}

.playlist-item.featured {
    border: 3px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.1), rgba(139, 92, 246, 0.1));
    position: relative;
}

.playlist-item.featured::before {
    content: '⭐ FEATURED';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(252, 211, 77, 0.4);
}

.playlist-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.playlist-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: transform var(--transition-speed) ease;
}

.playlist-item:hover .playlist-thumbnail iframe {
    transform: scale(1.05);
}

.playlist-info {
    padding: 1.5rem;
}

.playlist-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.playlist-item.featured .playlist-info h4 {
    color: var(--primary-color);
}

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

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all var(--transition-speed) ease;
}

.video-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.video-link::after {
    content: '↗';
    font-size: 1rem;
    transition: transform var(--transition-speed) ease;
}

.video-link:hover::after {
    transform: rotate(45deg);
}

/* 视频统计信息 */
.video-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-item i {
    color: var(--primary-color);
}

/* 视频类型标签 */
.video-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-type-badge.showcase {
    background: rgba(252, 211, 77, 0.2);
    color: #D97706;
}

.video-type-badge.guide {
    background: rgba(34, 197, 94, 0.2);
    color: #059669;
}

.video-type-badge.strategy {
    background: rgba(239, 68, 68, 0.2);
    color: #DC2626;
}

/* 响应式视频播放列表 */
@media (max-width: 768px) {
    .playlist-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .playlist-title {
        font-size: 1.5rem;
    }
    
    .playlist-thumbnail {
        height: 180px;
    }
    
    .playlist-info {
        padding: 1rem;
    }
    
    .playlist-info h4 {
        font-size: 1.1rem;
    }
    
    .video-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .video-playlist-section {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .playlist-thumbnail {