/* ============================================   Apple-Style Design System   ============================================ */

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

/* 移动端性能优化：基础平衡 */
@media (max-width: 768px) {

    /* 开启惯性滑动 */
    html,
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* 优化阴影和模糊效果，保留核心美感 */
    .glass-card,
    .feature-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        /* 移动端保留轻微模糊 */
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* 禁用复杂的渲染动画以节省电量 */
    .avatar-glow {
        animation-duration: 4s !important;
    }
}

/* 修复模块高度自适应问题，移除固定最小高度 */
.feature-card,
.glass-card {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
}

:root {
    /* Alice Bot Color Palette - Refreshing Dark Mode */
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-secondary: #60a5fa;
    --color-accent: #38bdf8;
    --color-success: #10b981;
    --color-warning: #fb7185;

    /* Neutral Colors - Dark Theme */
    --color-bg-primary: #0f172a;
    --color-bg-secondary: transparent;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;

    /* Premium Glass Effect - Dark Theme */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.16);

    /* Transitions - 移动端优化：缩短过渡时间 */
    --transition-fast: 100ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
    height: 100%;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@700;900&display=swap');

body {
    font-family: "HYWenHei-85W", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Segoe UI", "Helvetica Neue", "Helvetica", "Arial",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: var(--spacing-lg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--color-text-primary);
    line-height: 1.7;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 全屏背景图片 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('IMG_20251214_224412_4c58188b37.png') center center / cover no-repeat;
    background-attachment: fixed;
    z-index: -3; /* Deepest layer */
    pointer-events: none;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) contrast(1.1);
}
/* ============================================
   Navigation Styles
   ============================================ */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    white-space: nowrap;
}
/* --- Premium Utility Classes --- */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover,
[class*="glass-"]:hover {
    background: rgba(30, 41, 59, 0.7) !important; /* Force visibility on hover with a solid-ish dark tint */
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.neon-text {
    color: #fff;
    text-shadow: 
        0 0 7px rgba(59, 130, 246, 0.3),
        0 0 10px rgba(59, 130, 246, 0.3),
        0 0 21px rgba(59, 130, 246, 0.2);
}

.premium-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    filter: brightness(1.1);
}

.premium-button:active {
    transform: translateY(0);
}

/* Lively Animations */
@keyframes neon-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
    }
}

.neon-pulse {
    animation: neon-pulse 2s infinite ease-in-out;
}

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

.float-slow {
    animation: float-slow 4s infinite ease-in-out;
}

/* Sakura Falling Effect */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Above mask (-2), but below content (10) */
    overflow: hidden;
}

.sakura-petal {
    position: absolute;
    background-color: #ffb7c5; /* Pink fallback */
    border-radius: 50% 0 50% 50%; /* Petal shape */
    box-shadow: 0 0 5px rgba(255, 183, 197, 0.5);
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translate(0, -10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translate(100px, 100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Base style consistency for subpages */
.subpage-container {
    max-width: 1400px;
    margin: 100px auto 100px;
    padding: 0 20px 60px;
}

.section-card {
    margin-bottom: 30px;
    padding: 30px;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
}

.nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .top-nav {
        padding: 8px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-logo {
        font-size: 1.6rem;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* 移动端背景优化 */
@media (max-width: 768px) {
    body::before {
        position: fixed;
        background-attachment: scroll;
        filter: brightness(0.6); /* 稍微调暗，提升文字可读性 */
    }
}

/* 毛玻璃遮罩层 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Refreshing dark theme mask - less oppressive */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(59, 130, 246, 0.15) 0%, 
                transparent 50%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(var(--bg-blur, 15px)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--bg-blur, 15px)) saturate(120%);
    z-index: -2;
    pointer-events: none;
    transition: background 0.2s ease;
}

.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 移除重复的背景装饰 */

.decoration-image {
    position: absolute;
    opacity: 0;
    filter: blur(30px);
    transform-origin: center;
    transition: opacity 1s ease-in, all 20s ease-in-out;
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
}

.decoration-image.loaded {
    opacity: 0.12;
}

.decoration-bg {
    display: none;
}

.decoration-left {
    position: absolute;
    left: -10%;
    top: 20%;
    width: 500px;
    height: 600px;
    max-width: 40vw;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0.15;
    filter: blur(25px) brightness(0.8);
    transform-origin: center;
    z-index: 0;
    animation: floatLeft 30s ease-in-out infinite;
}

.decoration-left.loaded {
    opacity: 0.2;
}

@keyframes floatLeft {

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

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.decoration-1 {
    top: 10%;
    right: 5%;
    animation: floatDecoration1 25s ease-in-out infinite;
}

.decoration-2 {
    bottom: 15%;
    right: 3%;
    animation: floatDecoration2 30s ease-in-out infinite;
}

.decoration-3 {
    top: 50%;
    right: 10%;
    animation: floatDecoration3 35s ease-in-out infinite;
}

@keyframes floatDecoration1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-30px, 30px) rotate(5deg) scale(1.1);
    }

    66% {
        transform: translate(20px, -20px) rotate(-5deg) scale(0.9);
    }
}

@keyframes floatDecoration2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(40px, -40px) rotate(-8deg) scale(1.15);
    }

    66% {
        transform: translate(-20px, 30px) rotate(8deg) scale(0.85);
    }
}

@keyframes floatDecoration3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-50px, 20px) rotate(10deg) scale(1.2);
    }

    66% {
        transform: translate(30px, -30px) rotate(-10deg) scale(0.8);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 10;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   Glass Card Effect
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* ============================================
   Header
   ============================================ */

.header-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--glass-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.header-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
}

.header-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.avatar-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
    opacity: 1;
    background: transparent;
}

.avatar-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.25);
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(102, 126, 234, 0.4) 0%,
            rgba(118, 75, 162, 0.3) 50%,
            transparent 70%);
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

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

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.header-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.info-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 120px;
    transition: all var(--transition-base);
}

.info-badge:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.badge-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.badge-value {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

/* ============================================
   Navigation
   ============================================ */

.main-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transition: left var(--transition-slow);
    z-index: 1;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.7);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-color: rgba(102, 126, 234, 0.5);
    color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.nav-item:active {
    transform: translateY(-2px) scale(0.98);
}

.nav-icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform var(--transition-base);
    position: relative;
    z-index: 2;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: color var(--transition-base);
}

/* ============================================
   Main Content - Card Grid Layout
   ============================================ */

main {
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: var(--spacing-xl);
    align-items: start;
}

/* Edit Toolbar Global Styles */
.edit-toolbar {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: none;
    gap: 10px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

.edit-toolbar button {
    border: 1px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-toolbar button:hover {
    background: var(--color-primary);
    color: #fff;
}

.edit-toolbar button.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border: none;
}

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

/* Scanline Effect */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 5;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(59, 130, 246, 0.05) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0.1;
    position: fixed;
    bottom: 100%;
    left: 0;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

/* Floating Blobs */
.bg-blob {
    position: fixed;
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: blobFloat 20s infinite alternate;
}

@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

.feature-card {
    padding: 20px;
    animation: fadeInUp 0.6s ease-out;
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #f093fb);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.6);
}

.feature-card-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
}

.feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.feature-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.feature-count {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.section {
    padding: var(--spacing-xl);
    animation: fadeInUp 0.6s ease-out;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: var(--radius-full);
    margin-top: var(--spacing-sm);
}

/* ============================================
   Command Groups
   ============================================ */

.command-group {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
}

.command-group:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
}

.group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ============================================
   Commands
   ============================================ */

.commands {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.commands-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.command-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.command-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.count-badge {
    background: rgba(102, 126, 234, 0.15);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: var(--spacing-xs);
}

.feature-subsection {
    margin-top: var(--spacing-md);
}

.subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.info-note {
    background: rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.info-note p {
    margin: var(--spacing-xs) 0;
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.info-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    font-style: italic;
}

.feature-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.feature-highlight h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.feature-highlight p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.command {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.command:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* ============================================
   Command Items
   ============================================ */

.command-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.command-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-left: 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.command-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6, #60a5fa, #f093fb);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.command-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.command-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.7);
}

.command-item:hover::before {
    opacity: 1;
}

.command-item:hover::after {
    opacity: 1;
}

.command-item:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.command-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    transition: color var(--transition-base);
    position: relative;
    z-index: 2;
}

.command-item:hover h4 {
    color: var(--color-primary);
}

.command-item code {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 500;
    margin: var(--spacing-xs) 0;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.command-item code:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.command-item p {
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.example {
    color: var(--color-text-secondary);
    font-style: italic;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    position: relative;
    z-index: 2;
}

.command-item code:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.command-item p {
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    line-height: 1.4;
}

.example {
    color: var(--color-text-secondary);
    font-style: italic;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* ============================================
   Nested Command Framework
   ============================================ */

.nested-commands {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.nested-command-item {
    padding: 16px;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.nested-command-item:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.nested-command-item h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nested-command-item h5::before {
    content: "•";
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.nested-command-item:hover h5::before {
    transform: translateX(3px);
}

.nested-command-item code {
    display: inline-block;
    font-size: 0.82rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    margin: 6px 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-family: 'SFMono-Regular', Consolas, monospace;
    width: fit-content;
}

.nested-command-item p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

/* 嵌套功能组样式 */
.command-subgroup {
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #3b82f6;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 8px;
}

.command-subgroup-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.command-subgroup-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
}

.command-subitem {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 0.7rem;
    color: #4a5568;
    transition: all 0.2s ease;
}

.command-subitem:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.4);
    color: #3b82f6;
}

/* ============================================
   Enhanced Feature Grid
   ============================================ */

.feature-card .commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.feature-card .command-group {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card .group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ============================================
   Responsive Command Layout
   ============================================ */

@media (max-width: 768px) {
    .command-list {
        grid-template-columns: 1fr;
    }

    .feature-card .commands-grid {
        grid-template-columns: 1fr;
    }

    /* 手机端：指令列表统一单列显示，保证方框清晰、不拥挤 */
    .nested-commands {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Info Boxes
   ============================================ */

.note {
    padding: var(--spacing-lg);
    background: rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.note p {
    margin: var(--spacing-xs) 0;
    color: var(--color-text-primary);
}

.note ul {
    margin-left: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.info-box {
    padding: var(--spacing-lg);
    background: rgba(52, 199, 89, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.info-box h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.info-box p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-box {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.feature-box h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-box p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */

.footer-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.trigger-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.info-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* ============================================
   Background Opacity Control
   ============================================ */

.background-opacity-control {
    position: fixed;
    left: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    pointer-events: none;
}

@media (min-width: 769px) {
    .background-opacity-control {
        left: var(--spacing-lg);
        top: 50%;
        transform: translateY(-50%);
    }
}

.opacity-control-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    min-width: 180px;
    transition: all var(--transition-base);
}

.opacity-control-panel:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.opacity-control-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.control-icon {
    font-size: 1.25rem;
}

.control-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.opacity-control-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.opacity-slider {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all var(--transition-fast);
}

.opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.opacity-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all var(--transition-fast);
}

.opacity-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.opacity-value {
    text-align: center;
    margin-top: var(--spacing-xs);
}

#opacity-display {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(102, 126, 234, 0.1);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    display: inline-block;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ============================================
   Responsive Design
   ============================================ */

/* 移动端性能优化：禁用不必要的动画 */
@media (max-width: 768px) {

    /* 禁用装饰性动画，提升性能 */
    .decoration-image,
    .avatar-image,
    .header-bg-image {
        animation: none !important;
        transition: none !important;
    }

    /* 简化过度频繁的背景动画 */
    .bg-blob {
        animation-duration: 40s !important; /* 变得更慢且稳定 */
    }

    /* 禁用浮动动画 */
    @keyframes floatLeft { from, to { transform: none; } }
    @keyframes floatDecoration1 { from, to { transform: none; } }
    @keyframes floatDecoration2 { from, to { transform: none; } }
    @keyframes floatDecoration3 { from, to { transform: none; } }
    @keyframes float { from, to { transform: none; } }
    @keyframes pulse { from, to { transform: none; } }

    body {
        /* 减小手机端整体留白，提高信息密度 */
        padding: var(--spacing-sm);
    }

    .header-glass {
        /* 头图区域更紧凑一些，便于尽快看到下方功能区 */
        padding: var(--spacing-lg);
        min-height: 320px;
    }

    .avatar-image {
        width: 120px;
        height: 120px;
    }

    .avatar-glow {
        width: 140px;
        height: 140px;
    }

    .decoration-image {
        max-width: 250px;
        max-height: 250px;
        opacity: 0.05;
    }

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

    .feature-card {
        max-height: none;
    }

    .background-opacity-control {
        left: var(--spacing-sm);
        top: auto;
        bottom: var(--spacing-lg);
        transform: none;
    }

    .opacity-control-panel {
        min-width: 160px;
        padding: var(--spacing-sm);
    }

    .main-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .nav-item {
        padding: var(--spacing-sm);
    }

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

    .nav-text {
        font-size: 0.75rem;
    }

    .section {
        padding: var(--spacing-lg);
    }

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

    .trigger-info {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .command-item {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .main-nav {
        grid-template-columns: 1fr;
    }

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

    .header-info {
        flex-direction: column;
        align-items: stretch;
    }

    .info-badge {
        width: 100%;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

code {
    word-break: break-all;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
}

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

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

/* ============================================
   Scrollbar Styling
   ============================================ */

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Image Loading Optimization
   ============================================ */

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.avatar-image,
.header-bg-image,
.decoration-image {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 移动端优化：减少will-change使用 */
@media (max-width: 768px) {

    .avatar-image,
    .header-bg-image,
    .decoration-image {
        will-change: auto;
    }
}

/* ============================================
   Enhanced Visual Effects
   ============================================ */

.header-glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    z-index: 2;
}

/* Reduce decoration visibility on smaller screens */
@media (max-width: 1024px) {
    .decoration-image {
        opacity: 0.05;
        filter: blur(40px);
    }
}

@media (max-width: 480px) {
    .decoration-image {
        display: none;
    }

    .header-glass {
        /* 超小屏进一步压缩高度与内边距 */
        min-height: 260px;
        padding: var(--spacing-md);
    }

    body {
        padding: var(--spacing-xs);
    }

    .avatar-image {
        width: 100px;
        height: 100px;
    }

    .avatar-glow {
        width: 120px;
        height: 120px;
    }
}
.small-action { display: none; background: rgba(0,0,0,0.5); color: #fff; border:none; padding:4px 8px; border-radius:4px; font-size:11px; cursor:pointer; }
body.editing .small-action { display: inline-block; }

/* ======== Side Illustrations (立绘) ======== */
@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
    }
    to {
        opacity: 0.75; /* 增加透明度 */
        transform: translateY(0) scale(0.8); /* 整体缩小 20% */
    }
}

.side-illust {
    position: fixed;
    bottom: -15px; /* Slight offset to ensure "贴底" */
    height: auto;
    max-height: 85vh; /* Responsive height constraint */
    width: auto;
    max-width: 30vw;
    z-index: -1; /* Ensures it sits below the text/modules but over the background */
    pointer-events: none; /* Allows user to click through the image */
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.15));
    animation: fadeUpIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.side-illust.left {
    left: 0;
    transform-origin: bottom left;
}

.side-illust.right {
    right: 0;
    transform-origin: bottom right;
}

@media (max-width: 1400px) {
    .side-illust {
        max-width: 25vw;
    }
}
@media (max-width: 1024px) {
    .side-illust.left { left: -10%; }
    .side-illust.right { right: -10%; }
}
@media (max-width: 768px) {
    .side-illust {
        display: none; /* Hide on extremely small mobile screens to save layout */
    }
}
