/* ============================================
   VIRTWISH — EDITORIAL BRUTALISM
   编辑野兽派 · 全局样式系统 v3.0
   ============================================ */

:root {
    --bg-primary: #FAFAF8;
    --bg-secondary: #FFFFFF;
    --bg-surface: #F5F5F3;
    --bg-elevated: #EDEDEC;
    --accent-red: #FF3366;
    --accent-red-dark: #D9264A;
    --accent-amber: #F59E0B;
    --text-black: #0A0A0A;
    --text-primary: #1A1A1A;
    --text-secondary: #5C5C5C;
    --text-muted: #9CA3AF;
    --border-black: rgba(10, 10, 10, 0.12);
    --border-bold: rgba(10, 10, 10, 0.25);
    --font-serif: 'Fraunces', 'Noto Serif SC', serif;
    --font-sans: 'DM Sans', 'Noto Sans SC', sans-serif;
    --font-mono: 'Space Mono', 'JetBrains Mono', monospace;
}

body.theme-light {
    --bg-primary: #FAFAF8;
    --bg-secondary: #FFFFFF;
    --bg-surface: #F5F5F3;
    --bg-elevated: #EDEDEC;
}

* {
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease;
    position: relative;
}

html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

::selection {
    background: var(--accent-red);
    color: white;
}

/* ============================================
   LOADER - 粒子汇聚加载动画
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #fff5f9 0%, #f5f7fa 50%, #ffffff 100%);
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#loading-particle-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    cursor: pointer;
}

/* ============================================
   CURSOR - 光标效果
   ============================================ */
body.virtwish-body { cursor: none; }
* { cursor: none !important; }

.virtwish-cursor {
    width: 28px; height: 28px;
    border: 2px solid var(--text-black);
    border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease,
                border-color 0.15s ease, margin 0.2s ease,
                background 0.2s ease, opacity 0.3s ease;
    margin-left: -14px; margin-top: -14px;
    will-change: transform;
    mix-blend-mode: difference;
}
.virtwish-cursor.hover {
    width: 60px; height: 60px;
    margin-left: -30px; margin-top: -30px;
    border-color: var(--accent-red);
    background: rgba(255, 51, 102, 0.08);
}
.virtwish-cursor-dot {
    width: 6px; height: 6px;
    background: var(--text-black);
    border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999;
    margin-left: -3px; margin-top: -3px;
    will-change: transform;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    body.virtwish-body, * { cursor: auto !important; }
    .virtwish-cursor, .virtwish-cursor-dot { display: none; }
}

/* ============================================
   TYPOGRAPHY - 排版系统
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-black);
}
.text-gradient {
    background: linear-gradient(135deg, var(--accent-red), #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS - 按钮（粗边框风格）
   ============================================ */
.btn-glow {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px;
    background: var(--text-black);
    color: white;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative; overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.btn-glow:hover {
    background: var(--accent-red);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text-black);
}
.btn-glow svg { margin-left: 8px; transition: transform 0.3s; }
.btn-glow:hover svg { transform: translateX(4px); }

.liquid-btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-black);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 2px solid var(--text-black);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.liquid-btn-secondary:hover {
    background: var(--text-black);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--accent-red);
}

/* ============================================
   CARDS - 卡片（锐利边框风格）
   ============================================ */
.product-card {
    display: block;
    color: inherit;
    background: var(--bg-secondary);
    border: 2px solid var(--border-black);
    border-bottom: 4px solid var(--text-black);
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--accent-red);
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: top;
}
.product-card:hover {
    transform: translate(-6px, -6px);
    border-color: var(--text-black);
    border-bottom-width: 6px;
    box-shadow: 12px 12px 0 var(--bg-elevated);
}
.product-card:hover::before { transform: scaleY(1); }

.feature-icon { transition: transform 0.3s ease; }
.product-card:hover .feature-icon { transform: scale(1.1) rotate(-3deg); }

.product-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    background: var(--text-black);
    color: white;
}
.card-arrow { transition: transform 0.3s ease; }
.product-card:hover .card-arrow { transform: translateX(4px); }

.product-icon-img {
    width: 56px; height: 56px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
@media (min-width: 768px) { .product-icon-img { width: 64px; height: 64px; } }
.product-card:hover .product-icon-img { transform: scale(1.1) rotate(-3deg); }

@media (hover: none) {
    .product-card:active { transform: scale(0.98); }
}

/* ============================================
   STATS - 统计数据
   ============================================ */
.liquid-stat-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-black);
    border-left: 4px solid var(--text-black);
    padding: 20px;
    transition: all 0.3s ease;
}
.liquid-stat-item:hover {
    border-left-color: var(--accent-red);
    transform: translateX(4px);
    box-shadow: 8px 8px 0 var(--bg-elevated);
}

.stat-number {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: inherit;
    color: var(--accent-red);
}
.stat-number.animate { animation: statPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes statPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ============================================
   NAVIGATION - 导航栏
   ============================================ */
.nav-glass {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-black);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: relative;
}
.nav-glass::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: var(--accent-red);
    width: 80px;
    transition: width 0.3s ease;
}
.nav-glass:hover::after { width: 200px; }

.text-gradient {
    background: linear-gradient(135deg, var(--accent-red), #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dropdown */
.nav-dropdown-menu {
    position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    opacity: 0; visibility: hidden;
    transition: all 0.25s ease;
    margin-top: 12px; z-index: 100;
}
.nav-dropdown-menu.show {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-content {
    background: var(--bg-secondary);
    border: 2px solid var(--text-black);
    border-radius: 0;
    padding: 8px;
    min-width: 220px;
    box-shadow: 12px 12px 0 var(--bg-elevated);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}
.nav-dropdown-item:hover {
    background: var(--bg-surface);
    color: var(--accent-red);
    padding-left: 20px;
}
.nav-dropdown-item-icon {
    min-width: 28px; height: 28px;
    background: var(--bg-elevated);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
}
.nav-dropdown-item-icon svg { width: 16px; height: 16px; color: var(--accent-red); }

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--bg-secondary);
    border-left: 3px solid var(--text-black);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a, .mobile-menu button, .mobile-menu .mobile-dropdown-toggle {
    background-color: var(--bg-surface) !important;
    margin-bottom: 2px;
    font-weight: 600;
}
.mobile-menu a:hover, .mobile-menu button:hover, .mobile-menu .mobile-dropdown-toggle:hover {
    background-color: var(--bg-elevated) !important;
    color: var(--accent-red) !important;
}
.mobile-submenu-item {
    background-color: var(--bg-surface) !important;
    margin-bottom: 1px;
}
.mobile-submenu-item:hover {
    background-color: var(--bg-elevated) !important;
    color: var(--accent-red) !important;
}
.mobile-dropdown-toggle.active .mobile-dropdown-arrow { transform: rotate(180deg); }

body.theme-light .nav-glass {
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--border-black);
}
body.theme-light .nav-glass a, body.theme-light .nav-glass button, body.theme-light .nav-glass span { color: var(--text-black); }
body.theme-light .nav-glass a:hover, body.theme-light .nav-glass button:hover { color: var(--accent-red); }

/* ============================================
   BADGES & TAGS - 徽章标签
   ============================================ */
.liquid-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    background: var(--text-black);
    color: white;
    border: none;
}
.liquid-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    background: var(--accent-red);
    color: white;
    border: none;
}

/* ============================================
   FOOTER - 页脚
   ============================================ */
.liquid-footer {
    background: var(--text-black);
    color: white;
    border-top: 3px solid var(--text-black);
    padding: 60px 0 40px;
}
.liquid-footer h3, .liquid-footer h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: white;
}
.liquid-footer p, .liquid-footer a { color: #999; }
.liquid-footer a:hover { color: var(--accent-red); }
.liquid-footer .bg-gray-800 {
    background: rgba(255,255,255,0.1) !important;
}
.liquid-footer .bg-gray-800:hover {
    background: var(--accent-red) !important;
}
.liquid-footer .bg-gray-800 svg { color: white !important; }

/* ============================================
   TIMELINE - 时间线
   ============================================ */
.timeline-line {
    background: var(--text-black);
    width: 3px !important;
}
.timeline-dot {
    box-shadow: 0 0 0 5px var(--bg-elevated), 0 0 0 7px var(--text-black);
}

/* ============================================
   TYPEWRITER - 打字机效果
   ============================================ */
.typewriter-text { display: inline; }
.typewriter-cursor {
    display: inline; color: var(--accent-red);
    font-weight: 400; animation: blink 0.8s infinite;
    font-family: var(--font-mono);
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.typewriter-desc { height: 3em; line-height: 1.5em; overflow: hidden; contain: layout style; }
.typewriter-desc::after {
    content: '|'; color: var(--accent-red); font-weight: 300;
    animation: blink 0.8s infinite; margin-left: 2px; font-family: var(--font-mono);
}
.typewriter-multi { height: 1.5em; line-height: 1.5em; overflow: hidden; contain: layout style; }
.typewriter-multi::after {
    content: '|'; color: var(--accent-red); font-weight: 300;
    animation: blink 0.8s infinite; margin-left: 2px; font-family: var(--font-mono);
}
.typewriter-once { height: 3em; line-height: 1.5em; overflow: hidden; contain: layout style; }
.typewriter-once::after {
    content: '|'; color: var(--accent-red); font-weight: 300;
    animation: blink 0.8s infinite; margin-left: 2px; font-family: var(--font-mono);
}

/* ============================================
   REVEAL ANIMATION - 滚动显示
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb {
    background: var(--text-black);
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* ============================================
   LOGO & ICONS
   ============================================ */
.logo-img {
    width: 40px; height: 40px;
    object-fit: contain; border-radius: 6px;
}

/* ============================================
   MUSIC PLAYER
   ============================================ */
.music-player-card {
    position: relative; overflow: hidden;
    border: 2px solid var(--border-black);
    background: var(--bg-secondary);
}
.music-cover {
    width: 112px; height: 112px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-black);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) { .music-cover { width: 144px; height: 144px; } }
.music-cover:hover { transform: scale(1.05) rotate(1deg); }

/* ============================================
   PWA INSTALL
   ============================================ */
.pwa-install-mask {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
}
.pwa-install-popup {
    width: 90%; max-width: 340px;
    background: var(--bg-secondary);
    border: 3px solid var(--text-black);
    border-radius: 0;
    padding: 32px 24px;
    text-align: center;
    color: var(--text-black);
    box-shadow: 16px 16px 0 var(--bg-elevated);
    position: relative; overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.pwa-install-title {
    font-family: var(--font-serif);
    font-size: 20px; font-weight: 800;
    margin-bottom: 8px; color: var(--accent-red);
}
.pwa-install-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.pwa-install-actions { display: flex; gap: 12px; }
.pwa-install-btn {
    flex: 1; border: none;
    padding: 14px 0; font-size: 14px;
    font-weight: 700; cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}
.pwa-install-cancel {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 2px solid var(--border-black);
}
.pwa-install-cancel:hover { background: var(--bg-elevated); }
.pwa-install-ok {
    background: var(--text-black); color: white;
    border: 2px solid var(--text-black);
}
.pwa-install-ok:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--bg-elevated);
}
.pwa-install-icon-img {
    width: 56px; height: 56px;
    object-fit: contain; border-radius: 8px;
    margin: 0 auto 16px; display: block;
    border: 2px solid var(--border-black);
}

/* ============================================
   QR CODE
   ============================================ */
.liquid-qrcode-section {
    background: var(--bg-surface);
    border: 2px solid var(--border-black);
    border-left: 4px solid var(--text-black);
}
.liquid-qrcode-box {
    background: var(--bg-secondary);
    border: 3px solid var(--text-black);
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
body.theme-light {
    color: var(--text-primary);
}
body.theme-light h1, body.theme-light h2, body.theme-light h3,
body.theme-light h4, body.theme-light h5, body.theme-light h6 {
    color: var(--text-black);
}
body.theme-light p { color: var(--text-secondary); }
/* 注意：不再强制覆盖.text-white，让背景色决定文字颜色 */
body.theme-light .text-gray-400 { color: var(--text-secondary) !important; }
body.theme-light .text-gray-300 { color: var(--text-secondary) !important; }
body.theme-light .text-gray-500 { color: var(--text-muted) !important; }
body.theme-light .text-muted { color: var(--text-muted) !important; }
body.theme-light .bg-pink-500\/20,
body.theme-light .bg-rose-500\/20,
body.theme-light .bg-fuchsia-500\/20 {
    background-color: var(--bg-elevated) !important;
}
body.theme-light .product-card {
    background: var(--bg-secondary);
    border-color: var(--border-black);
}
body.theme-light .liquid-stat-item {
    background: var(--bg-secondary);
    border-color: var(--border-black);
}
body.theme-light .liquid-qrcode-section {
    background: var(--bg-surface);
    border-color: var(--border-black);
}
body.theme-light .liquid-qrcode-box {
    background: var(--bg-secondary);
    border-color: var(--border-black);
}
body.theme-light .liquid-tag { background: var(--accent-red); color: white; }
body.theme-light .liquid-badge { background: var(--text-black); color: white; }
body.theme-light .product-tag { background: var(--text-black); color: white; }
body.theme-light .liquid-footer h3, body.theme-light .liquid-footer h4 { color: white; }
body.theme-light #features .text-gray-400 { color: var(--text-secondary) !important; }
body.theme-light #features .text-gray-500 { color: var(--text-muted) !important; }

/* 确保深色背景上的文字保持白色 */
body.theme-light .bg-black,
body.theme-light [class*="bg-black"],
body.theme-dark,
body.theme-light button.bg-black,
body.theme-light a.bg-black,
body.theme-light .bg-gray-900 {
    color: #ffffff !important;
}

body.theme-light .bg-black .text-white,
body.theme-light .bg-black * {
    color: inherit;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .timeline-item { flex-direction: column !important; align-items: flex-start !important; }
    .timeline-content-left, .timeline-content-right {
        width: 100% !important; padding: 0 0 0 2rem !important;
        text-align: left !important;
    }
    .timeline-dot-mobile { left: 0 !important; transform: none !important; }
    .timeline-line { left: 7px !important; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .solutions-grid { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
    .products-grid { gap: 1rem !important; }
    .nav-container { padding: 0 1rem !important; }
    .hero-title { font-size: 2.5rem !important; line-height: 1.1 !important; }
    .hero-subtitle { font-size: 1rem !important; }
    .hero-buttons { flex-direction: column !important; width: 100% !important; }
    .hero-buttons a { width: 100% !important; text-align: center !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .solutions-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .contact-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (pointer: coarse) {
    .btn-glow:hover { transform: none; box-shadow: none; }
    .product-card:hover { transform: translateY(-4px); }
    .liquid-btn-secondary:hover { transform: none; box-shadow: none; }
}

/* ============================================
   MISCELLANEOUS
   ============================================ */
.skeleton-loader {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.img-fade-in { opacity: 0; transition: opacity 0.5s ease; }
.img-fade-in.loaded { opacity: 1; }

.video-player-card:hover .video-wrapper { transform: scale(1.02); transition: transform 0.3s ease; }
.video-wrapper { transition: transform 0.3s ease; }

.video-play-pulse {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--accent-red);
    opacity: 0.2;
    animation: playPulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes playPulse {
    0% { width: 52px; height: 52px; opacity: 0.25; }
    100% { width: 96px; height: 96px; opacity: 0; }
}
.video-play-btn-wrapper { position: relative; }
.video-play-btn-wrapper::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent-red);
    opacity: 0.18;
    animation: playPulseRing 2s ease-out infinite;
    pointer-events: none;
}
@keyframes playPulseRing {
    0% { width: 44px; height: 44px; opacity: 0.2; }
    100% { width: 88px; height: 88px; opacity: 0; }
}

/* 3D Canvas */
#canvas-bg {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
    transition: opacity 0.5s ease;
}
body.theme-light #canvas-bg { opacity: 0; pointer-events: none; }
body:not(.theme-light) #canvas-bg { opacity: 0.03; }
body { position: relative; z-index: 1; }

/* Utility: line-clamp */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
