/* Component Styles - Navbar, Buttons, Sliders, Modal, Toast, Footer */

        /* 顶部导航 */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 40px;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(232, 232, 232, 0.2);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(232, 232, 232, 0.1);
        }

        .logo {
            font-size: 22px;
            font-weight: 800;
            background: linear-gradient(135deg, #E8E8E8, #FBBF24);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
            text-decoration: none;
            transition: all 0.3s;
            cursor: pointer;
        }

        .logo:hover {
            filter: brightness(1.2);
            transform: translateY(-1px);
        }

        .nav-links {
            display: flex;
            gap: 40px;
            align-items: center;
        }

        .nav-links a {
            color: #AAA;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 15px;
            font-weight: 500;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #FBBF24, #E8E8E8);
            transition: width 0.3s;
        }

        .nav-links a:hover {
            color: #FFF;
        }

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

        .nav-cta-btn {
            padding: 10px 24px;
            background: linear-gradient(135deg, #E8E8E8, #FBBF24);
            border: none;
            border-radius: 8px;
            color: #000;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
        }

        .nav-cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
            filter: brightness(1.1);
        }

        .mobile-menu-btn {
            display: none; /* Hidden by default on desktop */
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        .mobile-menu-btn span {
            width: 25px;
            height: 2px;
            background: #E8E8E8;
            transition: all 0.3s;
        }

        /* Main Content Wrapper */
        .main-content-wrapper {
            padding: 60px 0 80px;
            position: relative;
        }

        /* Scroll offset for fixed navbar */
        section {
            scroll-margin-top: 80px;
        }

        /* Hero 区域 */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 40px 20px;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(232, 232, 232, 0.03) 50%, rgba(0, 0, 0, 0.95) 100%),
                        linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%),
                        url('../images/bg1.png') center/cover no-repeat;
            background-attachment: fixed;
            margin-bottom: 120px;
            position: relative;
            z-index: 1;
            scroll-margin-top: 0;
            will-change: background;
        }

        .hero h1 {
            font-size: 64px;
            margin: 0 0 20px 0;
            font-weight: 800;
            background: linear-gradient(135deg, #E8E8E8, #FBBF24);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px rgba(232, 232, 232, 0.3);
            letter-spacing: 1px;
            animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
            will-change: transform, opacity;
            line-height: 1.2;
        }

        .hero h2 {
            font-size: 18px;
            color: #CCC;
            margin: 0 auto 30px;
            line-height: 1.8;
            max-width: 900px;
            animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s backwards;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
            font-weight: 300;
            text-align: center;
            will-change: transform, opacity;
        }

        /* CTA Buttons Container */
        .cta-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-top: 40px;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
        }

        .btn {
            padding: 14px 40px;
            font-size: 16px;
            font-weight: 700;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            will-change: transform, box-shadow;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
            transition: left 0.3s ease;
            z-index: -1;
        }

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

        .btn-primary {
            background: linear-gradient(135deg, #E8E8E8, #FBBF24);
            color: #000;
            box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5),
                        0 0 12px rgba(192, 192, 192, 0.2);
            filter: brightness(1.1);
        }

        .btn-primary:active {
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #FFF;
            border: 2px solid rgba(232, 232, 232, 0.3);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-secondary:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(232, 232, 232, 0.6);
            box-shadow: 0 8px 25px rgba(232, 232, 232, 0.2),
                        0 0 10px rgba(192, 192, 192, 0.15);
        }

        .btn-secondary:active {
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .hero {
                padding: 30px 16px;
                margin-bottom: 80px;
            }

            .hero h1 {
                font-size: 40px;
                margin-bottom: 16px;
            }

            .hero h2 {
                font-size: 16px;
                margin-bottom: 20px;
            }

            .cta-buttons {
                gap: 12px;
                margin-top: 30px;
            }

            .btn {
                padding: 12px 28px;
                font-size: 14px;
            }
        }

        /* Narrative Counter */
        .counter-simple {
            display: inline-block;
            min-width: 40px;
            padding: 4px 10px;
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid #FBBF24;
            border-radius: 6px;
            color: #FBBF24;
            font-weight: 700;
            font-size: 20px;
            text-align: center;
            margin: 0 6px;
            box-shadow: 
                inset 0 1px 3px rgba(0, 0, 0, 0.6),
                0 0 12px rgba(251, 191, 36, 0.3);
            transition: all 0.3s ease;
            will-change: transform;
        }

        .counter-simple.flip {
            animation: numberFlip 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes numberFlip {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.15);
                color: #FFF;
                box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
            }
            100% {
                transform: scale(1);
            }
        }

        /* 四大卖点 */
        .goods-grid {
            max-width: 1200px;
            margin: 0 auto 60px;
            padding: 40px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            background: rgba(10, 10, 10, 0.75);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(232, 232, 232, 0.15);
            border-radius: 20px;
            position: relative;
            z-index: 1;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                        0 0 0 1px rgba(232, 232, 232, 0.05) inset;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .goods-grid:hover {
            transform: translateY(-2px);
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6),
                        0 0 0 1px rgba(232, 232, 232, 0.1) inset;
        }

        .goods-card {
            background: rgba(232, 232, 232, 0.03);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(232, 232, 232, 0.2);
            border-radius: 12px;
            padding: 30px;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;
            overflow: hidden;
            will-change: transform, box-shadow, background;
        }

        .goods-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.15), transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .goods-card:nth-child(1) {
            border-color: rgba(232, 232, 232, 0.35);
            background: rgba(232, 232, 232, 0.05);
        }

        .goods-card:nth-child(1):hover {
            background: rgba(232, 232, 232, 0.12);
            box-shadow: 0 15px 40px rgba(232, 232, 232, 0.25), 0 0 0 1px rgba(232, 232, 232, 0.5);
            transform: translateY(-6px);
            border-color: rgba(232, 232, 232, 0.5);
        }

        .goods-card:nth-child(2) {
            border-color: rgba(221, 202, 128, 0.35);
            background: rgba(221, 202, 128, 0.05);
        }

        .goods-card:nth-child(2):hover {
            background: rgba(221, 202, 128, 0.12);
            box-shadow: 0 15px 40px rgba(221, 202, 128, 0.25), 0 0 0 1px rgba(221, 202, 128, 0.5);
            transform: translateY(-6px);
            border-color: rgba(221, 202, 128, 0.5);
        }

        .goods-card:nth-child(3) {
            border-color: rgba(251, 191, 36, 0.35);
            background: rgba(251, 191, 36, 0.05);
        }

        .goods-card:nth-child(3):hover {
            background: rgba(251, 191, 36, 0.12);
            box-shadow: 0 15px 40px rgba(251, 191, 36, 0.25), 0 0 0 1px rgba(251, 191, 36, 0.5);
            transform: translateY(-6px);
            border-color: rgba(251, 191, 36, 0.5);
        }

        .goods-card:nth-child(4) {
            border-color: rgba(245, 158, 11, 0.35);
            background: rgba(245, 158, 11, 0.05);
        }

        .goods-card:nth-child(4):hover {
            background: rgba(245, 158, 11, 0.12);
            box-shadow: 0 15px 40px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.5);
            transform: translateY(-6px);
            border-color: rgba(245, 158, 11, 0.5);
        }

        .goods-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #E8E8E8, transparent);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .goods-card:nth-child(1) { animation-delay: 0.1s; }
        .goods-card:nth-child(2) { animation-delay: 0.2s; }
        .goods-card:nth-child(3) { animation-delay: 0.3s; }
        .goods-card:nth-child(4) { animation-delay: 0.4s; }

        .goods-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 40px rgba(232, 232, 232, 0.2),
                        0 0 15px rgba(192, 192, 192, 0.12);
            border-color: #E8E8E8;
        }

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

        .goods-card:hover::after {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .goods-grid {
                grid-template-columns: 1fr;
                gap: 16px;
                padding: 24px;
                margin-bottom: 40px;
            }

            .goods-card {
                padding: 20px;
            }
        }

        /* Feature Icon */
        .feature-icon-wrapper {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 4px;
            transition: all 0.4s;
        }

        .goods-card:hover .feature-icon-wrapper {
            transform: scale(1.05) rotate(3deg);
        }

        .orange-gradient {
            background: linear-gradient(135deg, rgba(232, 232, 232, 0.25), rgba(212, 212, 212, 0.1));
            border: 1px solid rgba(232, 232, 232, 0.35);
        }

        .pink-gradient {
            background: linear-gradient(135deg, rgba(212, 212, 212, 0.25), rgba(251, 191, 36, 0.15));
            border: 1px solid rgba(221, 202, 128, 0.35);
        }

        .gold-gradient {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
            border: 1px solid rgba(251, 191, 36, 0.35);
        }

        .silver-gradient {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
            border: 1px solid rgba(245, 158, 11, 0.35);
        }

        .feature-icon {
            width: 28px;
            height: 28px;
            color: #E8E8E8;
        }

        /* Feature Header */
        .feature-header {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .goods-card h3 {
            font-size: 17px;
            font-weight: 700;
            margin: 0;
            color: #FFFFFF;
            line-height: 1.3;
        }

        /* Feature Badges */
        .feature-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .badge {
            font-size: 10px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            backdrop-filter: blur(5px);
        }

        .badge-orange {
            background: rgba(232, 232, 232, 0.15);
            color: #E8E8E8;
            border: 1px solid rgba(232, 232, 232, 0.35);
        }

        .badge-pink {
            background: rgba(221, 202, 128, 0.15);
            color: #DDC680;
            border: 1px solid rgba(221, 202, 128, 0.35);
        }

        .badge-gold {
            background: rgba(251, 191, 36, 0.15);
            color: #FBBF24;
            border: 1px solid rgba(251, 191, 36, 0.35);
        }

        .badge-silver {
            background: rgba(245, 158, 11, 0.15);
            color: #F59E0B;
            border: 1px solid rgba(245, 158, 11, 0.35);
        }

        /* Feature Metrics */
        .feature-metrics {
            display: flex;
            gap: 20px;
            padding: 12px 0;
            border-top: 1px solid rgba(232, 232, 232, 0.1);
            border-bottom: 1px solid rgba(232, 232, 232, 0.1);
        }

        .metric {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .metric-value {
            font-size: 20px;
            font-weight: 700;
            color: #FFF;
            line-height: 1;
        }

        .metric-label {
            font-size: 10px;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .goods-card p {
            font-size: 13px;
            color: #AAAAAA;
            line-height: 1.6;
            margin: 0;
            flex: 1;
        }

        /* Learn More Button */
        .feature-learn-more {
            background: rgba(232, 232, 232, 0.05);
            border: 1px solid rgba(232, 232, 232, 0.2);
            color: #E8E8E8;
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: auto;
        }

        .feature-learn-more:hover {
            background: rgba(232, 232, 232, 0.1);
            border-color: rgba(232, 232, 232, 0.4);
            transform: translateX(2px);
        }

        .feature-learn-more .arrow {
            transition: transform 0.3s;
        }

        .feature-learn-more:hover .arrow {
            transform: translateX(4px);
        }

        .goods-card:nth-child(1) .feature-learn-more:hover {
            border-color: rgba(232, 232, 232, 0.6);
            background: rgba(232, 232, 232, 0.1);
            color: #E8E8E8;
        }

        .goods-card:nth-child(2) .feature-learn-more:hover {
            border-color: rgba(221, 202, 128, 0.6);
            background: rgba(221, 202, 128, 0.1);
            color: #DDC680;
        }

        .goods-card:nth-child(3) .feature-learn-more:hover {
            border-color: rgba(251, 191, 36, 0.6);
            background: rgba(251, 191, 36, 0.1);
            color: #FBBF24;
        }

        .goods-card:nth-child(4) .feature-learn-more:hover {
            border-color: rgba(245, 158, 11, 0.6);
            background: rgba(245, 158, 11, 0.1);
            color: #F59E0B;
        }

        /* 核心工作区 */
        .workspace {
            max-width: 1440px;
            margin: 0 auto 60px;
            padding: 40px;
            background: rgba(10, 10, 10, 0.7);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(221, 202, 128, 0.15);
            border-radius: 20px;
            position: relative;
            z-index: 1;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                        0 0 0 1px rgba(221, 202, 128, 0.05) inset,
                        0 0 20px rgba(176, 176, 176, 0.12);
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .workspace:hover {
            transform: translateY(-2px);
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6),
                        0 0 0 1px rgba(221, 202, 128, 0.1) inset,
                        0 0 25px rgba(176, 176, 176, 0.2);
        }

        .workspace-title {
            text-align: center;
            margin-bottom: 18px;
            animation: fadeInUp 1s ease-out;
        }

        .workspace-title-main {
            font-size: 26px;
            font-weight: 700;
            background: linear-gradient(135deg, #DDD280, #B8A860);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 6px;
            letter-spacing: 1px;
        }

        .workspace-title-divider {
            width: 120px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #DDD280 20%, #B8A860 80%, transparent);
            margin: 0 auto 8px;
            border-radius: 1px;
        }

        .workspace-title-subtitle {
            font-size: 11px;
            color: #8A8A8A;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        /* Section subtitle */
        .section-subtitle {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #DDD280;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Video players in right panel */
        .video-preview-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 16px;
        }

        .video-preview-section {
            flex: 1;
        }

        .video-preview-section h4 {
            font-size: 10px;
            margin-bottom: 8px;
            color: #DDD280;
        }

        .video-player-compact {
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(221, 202, 128, 0.2);
            border-radius: 8px;
            overflow: hidden;
        }

        .video-player-compact .video-placeholder {
            width: 100%;
            aspect-ratio: 16 / 9;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            font-size: 11px;
        }

        .video-controls {
            padding: 5px 8px;
            background: rgba(0, 0, 0, 0.4);
            border-top: 1px solid rgba(221, 202, 128, 0.1);
            font-size: 9px;
        }

        /* Parameter preview cards */
        .param-preview-card {
            background: rgba(221, 202, 128, 0.05);
            border: 1px solid rgba(221, 202, 128, 0.15);
            border-radius: 6px;
            padding: 10px;
            margin-top: 8px;
            box-shadow: 0 0 6px rgba(176, 176, 176, 0.08);
        }

        .param-preview-card.custom {
            background: rgba(251, 191, 36, 0.05);
            border-color: rgba(251, 191, 36, 0.15);
        }

        .param-preview-title {
            font-size: 9px;
            color: #8A8A8A;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .param-mini-bars {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .param-mini-bar {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .param-mini-label {
            font-size: 9px;
            color: #FFFFFF;
            min-width: 50px;
        }

        .param-mini-track {
            flex: 1;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            overflow: hidden;
        }

        .param-mini-fill {
            height: 100%;
            background: linear-gradient(90deg, #E8E8E8, #FBBF24);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .param-mini-value {
            font-size: 8px;
            color: #8A8A8A;
            min-width: 20px;
            text-align: right;
        }

        /* Quick actions */
        .quick-actions {
            display: flex;
            gap: 6px;
            margin-top: 8px;
        }

        .quick-action-btn {
            flex: 1;
            padding: 6px 8px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(232, 232, 232, 0.3);
            border-radius: 4px;
            color: #E8E8E8;
            font-size: 9px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .quick-action-btn:hover {
            background: rgba(232, 232, 232, 0.1);
            border-color: #E8E8E8;
        }

        .quick-action-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .quick-action-btn.success {
            border-color: rgba(251, 191, 36, 0.5);
            color: #FBBF24;
        }

        /* Generation History */
        .generation-history {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid rgba(221, 202, 128, 0.1);
            overflow: visible;
        }

        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .history-title {
            font-size: 10px;
            color: #DDD280;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .history-count {
            font-size: 9px;
            color: #8A8A8A;
        }

        .history-scroll {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            overflow-y: visible;
            padding-bottom: 8px;
            padding-top: 4px;
            scrollbar-width: thin;
            scrollbar-color: rgba(232, 232, 232, 0.3) rgba(0, 0, 0, 0.2);
        }

        .history-scroll::-webkit-scrollbar {
            height: 4px;
        }

        .history-scroll::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 2px;
        }

        .history-scroll::-webkit-scrollbar-thumb {
            background: rgba(232, 232, 232, 0.3);
            border-radius: 2px;
        }

        .history-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(232, 232, 232, 0.5);
        }

        .history-item {
            flex-shrink: 0;
            width: 140px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(221, 202, 128, 0.2);
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .history-item:hover {
            border-color: rgba(221, 202, 128, 0.5);
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(221, 202, 128, 0.3);
            z-index: 10;
        }

        .history-item.active {
            border-color: #DDD280;
            box-shadow: 0 0 15px rgba(221, 202, 128, 0.3);
        }

        .history-thumbnail {
            width: 100%;
            aspect-ratio: 16 / 9;
            background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            position: relative;
            overflow: hidden;
        }

        .history-video-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .history-item:hover .history-video-preview {
            transform: scale(1.05);
        }

        .history-play-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: rgba(255, 255, 255, 0.7);
            font-size: 24px;
            pointer-events: none;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            transition: all 0.3s;
        }

        .history-item:hover .history-play-overlay {
            color: #FBBF24;
            transform: translate(-50%, -50%) scale(1.2);
        }

        .history-badge {
            position: absolute;
            top: 4px;
            right: 4px;
            background: rgba(251, 191, 36, 0.9);
            color: #000;
            font-size: 8px;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 700;
            z-index: 10;
        }

        .history-source-badge {
            position: absolute;
            bottom: 4px;
            left: 4px;
            background: rgba(0, 0, 0, 0.85);
            font-size: 8px;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 600;
            backdrop-filter: blur(4px);
            z-index: 10;
        }

        .history-source-badge.generated {
            color: #FBBF24;
            border: 1px solid rgba(251, 191, 36, 0.4);
        }

        .history-source-badge.preset {
            color: #8A8A8A;
            border: 1px solid rgba(138, 138, 138, 0.4);
        }

        .history-info {
            padding: 6px 8px;
        }

        .history-persona {
            font-size: 10px;
            font-weight: 700;
            color: #E8E8E8;
            line-height: 1.2;
            margin-bottom: 3px;
        }

        .history-time {
            font-size: 8px;
            color: #8A8A8A;
            margin-bottom: 4px;
        }

        .history-params {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
        }

        .history-param-pill {
            font-size: 7px;
            background: rgba(138, 138, 138, 0.08);
            border: 1px solid rgba(138, 138, 138, 0.25);
            padding: 2px 4px;
            border-radius: 3px;
            color: #8A8A8A;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .history-param-pill.modified {
            background: rgba(251, 191, 36, 0.15);
            border: 1px solid rgba(251, 191, 36, 0.5);
            color: #FBBF24;
            font-weight: 600;
        }

        .history-actions {
            display: flex;
            gap: 4px;
        }

        .history-action-btn {
            flex: 1;
            font-size: 8px;
            padding: 3px;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.2);
            border-radius: 3px;
            color: #FBBF24;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }

        .history-action-btn:hover {
            background: rgba(251, 191, 36, 0.2);
            border-color: #FBBF24;
        }

        .history-empty {
            text-align: center;
            padding: 20px;
            color: #8A8A8A;
            font-size: 10px;
            display: block;
        }

        .history-empty.hidden {
            display: none;
        }

        .history-empty-icon {
            font-size: 24px;
            margin-bottom: 8px;
            opacity: 0.5;
        }

        .history-scroll {
            display: none;
        }

        .history-scroll.visible {
            display: flex;
        }

        .delete-history-btn {
            position: absolute;
            top: 4px;
            left: 4px;
            width: 18px;
            height: 18px;
            background: rgba(255, 0, 0, 0.8);
            border: 1px solid rgba(255, 0, 0, 0.5);
            border-radius: 3px;
            color: white;
            font-size: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .history-item:hover .delete-history-btn {
            opacity: 1;
        }

        .delete-history-btn:hover {
            background: rgba(255, 0, 0, 1);
        }

        /* Floating Navigation */
        .floating-nav {
            position: fixed;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 12px;
            opacity: 0.7;
            transition: opacity 0.3s;
        }

        .floating-nav:hover {
            opacity: 1;
        }

        .nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(232, 232, 232, 0.3);
            border: 2px solid rgba(232, 232, 232, 0.5);
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .nav-dot:hover,
        .nav-dot.active {
            background: #E8E8E8;
            box-shadow: 0 0 12px rgba(232, 232, 232, 0.6);
            transform: scale(1.3);
        }

        .nav-dot::after {
            content: attr(data-label);
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.9);
            color: #E8E8E8;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .nav-dot:hover::after {
            opacity: 1;
        }
