/* 裁音魔方 · 页面样式（自 pages/auto-edit.html 抽取，修改后请同步对应页面） */
        /* ===== 全局重置 & 变量 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Segoe UI', sans-serif;
        }

        :root {
            --primary: #4CAF50;
            --primary-light: #81C784;
            --primary-dark: #388E3C;
            --secondary: #8BC34A;
            --accent: #CDDC39;
            --dark-bg: #121212;
            --darker-bg: #0A0A0A;
            --card-bg: #1E1E1E;
            --card-light: #252525;
            --card-border: #333333;
            --text-primary: #FFFFFF;
            --text-secondary: #B0B0B0;
            --text-muted: #6B6B6B;
            --warning: #FF9800;
            --error: #F44336;
            --gold: #FFD700;
            --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
            --radius: 24px;
            --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }

        body {
            background-color: var(--darker-bg);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* ===== 导航栏 ===== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 20px 0;
            border-bottom: 1px solid rgba(76, 175, 80, 0.1);
            transition: all 0.3s ease;
        }
        .navbar.scrolled {
            padding: 15px 0;
            background-color: rgba(10, 10, 10, 0.98);
        }
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            flex-shrink: 0;
        }
        .logo i {
            font-size: 28px;
        }
        .logo span {
            color: white;
        }

        .nav-links {
            display: flex;
            gap: 30px;
            align-items: center;
        }
        .nav-links a {
            font-weight: 500;
            font-size: 16px;
            transition: color 0.3s;
            position: relative;
            color: var(--text-primary);
        }
        .nav-links a:hover {
            color: var(--primary);
        }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary);
            transition: width 0.3s;
        }
        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-buttons {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-shrink: 0;
        }
        .btn {
            padding: 12px 28px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 16px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-primary {
            background: var(--gradient);
            color: white;
        }
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
        }
        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .btn-secondary {
            background-color: transparent;
            color: var(--text-primary);
            border: 1px solid var(--card-border);
        }
        .btn-secondary:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        .btn-secondary:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .btn-sm {
            padding: 6px 14px;
            font-size: 13px;
        }
        .btn-gold {
            background: linear-gradient(135deg, #FFD700, #F4A460);
            color: #1a1a1a;
        }
        .btn-gold:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
        }
        .mobile-menu {
            position: fixed;
            top: 70px;
            left: 0;
            width: 100%;
            background-color: var(--darker-bg);
            padding: 20px;
            border-top: 1px solid var(--card-border);
            transform: translateY(-100%);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 999;
        }
        .mobile-menu.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }
        .mobile-nav-links {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 30px;
        }
        .mobile-nav-links a {
            font-size: 18px;
            padding: 10px 0;
            border-bottom: 1px solid var(--card-border);
            color: var(--text-secondary);
        }
        .mobile-nav-links a:hover {
            color: var(--primary);
        }
        .mobile-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* ===== Hero ===== */
        .hero {
            padding: 140px 0 50px;
            background: linear-gradient(180deg, var(--darker-bg) 0%, rgba(18, 18, 18, 0.95) 100%);
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid var(--card-border);
        }
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 40%, rgba(76, 175, 80, 0.06) 0%, transparent 50%);
        }
        .hero .container {
            position: relative;
            z-index: 1;
        }
        .hero-content {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }
        .hero-content h1 {
            font-size: 44px;
            font-weight: 700;
            line-height: 1.15;
            margin-bottom: 12px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .hero-content p {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 24px;
        }
        .hero-content .hero-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* ===== 信任数据 ===== */
        .trust-bar {
            padding: 30px 0 20px;
            border-bottom: 1px solid var(--card-border);
        }
        .trust-bar .trust-grid {
            display: flex;
            justify-content: center;
            gap: 60px;
            flex-wrap: wrap;
        }
        .trust-bar .trust-item {
            text-align: center;
        }
        .trust-bar .trust-item .number {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary);
        }
        .trust-bar .trust-item .label {
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* ===== 功能特色 ===== */
        .section {
            padding: 80px 0;
        }
        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }
        .section-title h2 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 12px;
        }
        .section-title p {
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 28px;
        }
        .feature-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 32px 28px;
            transition: all 0.3s;
            text-align: center;
        }
        .feature-card:hover {
            border-color: var(--primary);
            transform: translateY(-6px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }
        .feature-card .icon {
            width: 64px;
            height: 64px;
            background: rgba(76, 175, 80, 0.12);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 18px;
            font-size: 28px;
            color: var(--primary);
        }
        .feature-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
        }
        .feature-card p {
            color: var(--text-secondary);
            font-size: 15px;
            line-height: 1.7;
        }

        /* ===== 主工具卡片 ===== */
        .main-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 2.5rem 2.8rem;
            margin: 2.5rem 0 3rem;
            border: 1px solid var(--card-border);
            box-shadow: var(--shadow);
            transition: border-color 0.3s;
        }
        .main-card:hover {
            border-color: rgba(76, 175, 80, 0.25);
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-bottom: 1.8rem;
            flex-wrap: wrap;
        }
        .section-header i {
            font-size: 2.2rem;
            color: var(--primary);
        }
        .section-header h2 {
            font-weight: 600;
            font-size: 1.9rem;
        }
        .section-header .badge {
            background: var(--primary);
            padding: 2px 16px;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .desc {
            color: var(--text-secondary);
            margin-bottom: 2.2rem;
            font-size: 1rem;
            line-height: 1.8;
            text-align: center;
        }
        .desc .highlight-text {
            color: var(--gold);
            font-weight: 500;
        }

        /* ===== 上传区域 ===== */
        .upload-zone {
            background: rgba(255, 255, 255, 0.02);
            border: 2px dashed var(--card-border);
            border-radius: 20px;
            padding: 2.8rem 2rem;
            text-align: center;
            transition: all 0.3s;
            cursor: default;
        }
        .upload-zone:hover {
            border-color: var(--primary);
            background: rgba(76, 175, 80, 0.04);
        }
        .upload-zone.dragover {
            border-color: var(--primary);
            background: rgba(76, 175, 80, 0.08);
        }
        .upload-icon {
            font-size: 64px;
            color: var(--primary);
            margin-bottom: 20px;
            transition: all 0.3s;
        }
        .upload-icon.has-files {
            color: var(--gold);
        }
        .upload-zone h3 {
            font-weight: 500;
            font-size: 1.4rem;
        }
        .upload-zone p {
            color: var(--text-secondary);
            margin: 0.4rem 0 1.6rem;
        }

        .file-input-wrap {
            display: inline-block;
            position: relative;
        }
        .file-input-wrap input[type="file"] {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        /* ===== 文件列表 ===== */
        .file-list-container {
            margin-top: 1.5rem;
            display: none;
            max-height: 600px;
            overflow-y: auto;
            border-radius: 16px;
            border: 1px solid var(--card-border);
            background: rgba(0, 0, 0, 0.2);
        }
        .file-list-container.active {
            display: block;
        }

        .file-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 16px;
            border-bottom: 1px solid var(--card-border);
            font-size: 14px;
            color: var(--text-secondary);
            background: rgba(0, 0, 0, 0.15);
        }
        .file-list-header .count {
            color: var(--primary);
            font-weight: 600;
        }
        .file-list-header .clear-all {
            color: var(--error);
            cursor: pointer;
            transition: color 0.3s;
            background: none;
            border: none;
            font-size: 13px;
        }
        .file-list-header .clear-all:hover {
            color: #ff6b6b;
        }

        .file-list-items {
            list-style: none;
            padding: 4px;
        }
        .file-list-item {
            display: flex;
            align-items: center;
            padding: 8px 14px;
            border-radius: 8px;
            margin-bottom: 3px;
            background: rgba(255, 255, 255, 0.02);
            transition: background 0.2s;
            gap: 10px;
            flex-wrap: wrap;
        }
        .file-list-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        .file-list-item .file-icon {
            font-size: 18px;
            color: var(--primary);
            flex-shrink: 0;
            width: 28px;
            text-align: center;
        }
        .file-list-item .file-name {
            flex: 1;
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: left;
            min-width: 60px;
        }
        .file-list-item .file-size {
            font-size: 11px;
            color: var(--text-secondary);
            flex-shrink: 0;
        }
        .file-list-item .file-status {
            font-size: 11px;
            padding: 1px 10px;
            border-radius: 20px;
            flex-shrink: 0;
        }
        .file-list-item .file-status.ready {
            background: rgba(76, 175, 80, 0.15);
            color: var(--primary);
        }
        .file-list-item .file-status.done {
            background: rgba(76, 175, 80, 0.25);
            color: var(--primary);
        }
        .file-list-item .file-status.processing {
            background: rgba(255, 152, 0, 0.2);
            color: var(--warning);
            animation: pulse-text 1s infinite;
        }
        @keyframes pulse-text {
            0%,
            100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }
        .file-list-item .file-status.error {
            background: rgba(244, 67, 54, 0.2);
            color: var(--error);
        }
        .file-list-item .file-status.unlocked {
            background: rgba(255, 215, 0, 0.2);
            color: var(--gold);
        }
        .file-list-item .remove-file {
            color: var(--text-secondary);
            cursor: pointer;
            transition: color 0.3s;
            background: none;
            border: none;
            font-size: 14px;
            padding: 0 4px;
        }
        .file-list-item .remove-file:hover {
            color: var(--error);
        }

        /* ===== 文件编辑行（边听边调：每文件独立播放器 + 波形 + 起止时间） ===== */
        .file-editor-row {
            background: var(--card-bg);
            margin-bottom: 16px;
            border-radius: 12px;
            padding: 16px;
            border: 1px solid var(--card-border);
        }
        .file-info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 12px;
        }
        .file-editor-row .file-name {
            font-size: 14px;
            font-weight: 600;
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .file-tools {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .remove-file {
            color: var(--text-secondary);
            cursor: pointer;
            background: none;
            border: none;
            font-size: 18px;
        }
        .remove-file:hover {
            color: var(--error);
        }

        /* 播放器控制 */
        .player-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            margin-bottom: 16px;
        }
        .player-controls .play-btn-simple.playing {
            background: var(--warning);
        }
        .player-controls .progress-container-simple {
            flex-grow: 1;
            height: 20px;
            cursor: pointer;
            position: relative;
            display: flex;
            align-items: center;
            min-width: 50px;
            background: transparent;
        }
        .player-controls .progress-track {
            width: 100%;
            height: 6px;
            background: var(--card-border);
            border-radius: 3px;
            position: relative;
        }
        .playhead-dot {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 14px;
            height: 14px;
            background: var(--gold);
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
            z-index: 10;
            pointer-events: none;
        }
        .player-controls .time-display {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            font-weight: 500;
            min-width: 110px;
            justify-content: flex-end;
        }
        .player-controls .time-display .current {
            color: var(--primary);
        }

        /* 频谱可视化 */
        .waveform-container {
            position: relative;
            width: 100%;
            height: 80px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--card-border);
            margin-bottom: 8px;
            cursor: crosshair;
            user-select: none;
        }
        .waveform-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 0 4px;
        }
        .waveform-bar {
            width: 3px;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 2px;
        }
        .selection-highlight {
            position: absolute;
            top: 0;
            bottom: 0;
            background: rgba(76, 175, 80, 0.35);
            border-left: 2px solid var(--primary);
            border-right: 2px solid var(--primary);
            z-index: 2;
            pointer-events: none;
        }
        .playhead-line {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--gold);
            z-index: 3;
            pointer-events: none;
        }
        /* 波形选区拖拽手柄 */
        .sel-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 10px;
            z-index: 5;
            cursor: ew-resize;
        }
        .sel-handle::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 4px;
            height: 28px;
            background: var(--primary);
            border-radius: 3px;
            box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
            transition: height 0.15s;
        }
        .sel-handle:hover::after {
            height: 40px;
        }

        /* 横排时间输入 */
        .time-inputs-row {
            display: flex;
            gap: 12px;
            justify-content: space-between;
        }
        .input-group {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--darker-bg);
            border-radius: 30px;
            padding: 8px 16px;
            border: 1px solid var(--card-border);
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
        }
        .input-group label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            display: inline-block;
            min-width: 30px;
            text-align: right;
        }
        .input-group input {
            background: transparent;
            border: none;
            color: white;
            font-size: 16px;
            width: 100%;
            outline: none;
            font-weight: 600;
            -moz-appearance: textfield;
            appearance: textfield;
        }
        .input-group input::-webkit-outer-spin-button,
        .input-group input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .input-group .unit {
            font-size: 12px;
            color: var(--text-muted);
            display: inline-block;
        }
        .input-group:focus-within {
            border-color: var(--primary);
        }

        @media (max-width: 768px) {
            .time-inputs-row {
                flex-direction: column;
            }
            .player-controls {
                flex-wrap: wrap;
            }
        }

        /* ===== 时间控制 (初始隐藏) ===== */
        .clip-timeline {
            margin: 2.2rem 0 1.8rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 28px;
            padding: 1.8rem 2rem;
            border: 1px solid var(--card-border);
            display: none;
        }
        .clip-timeline.active {
            display: block;
        }

        .time-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 1.2rem 2rem;
        }
        .time-item {
            flex: 1 1 160px;
            min-width: 130px;
        }
        .time-item label {
            display: block;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 4px;
            letter-spacing: 0.3px;
        }
        .time-item .value-input {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--darker-bg);
            border-radius: 60px;
            padding: 0.2rem 0.2rem 0.2rem 1.2rem;
            border: 1px solid var(--card-border);
            transition: border 0.2s;
        }
        .time-item .value-input:focus-within {
            border-color: var(--primary);
        }
        .time-item .value-input input[type="number"] {
            background: transparent;
            border: none;
            color: white;
            font-weight: 600;
            font-size: 1.2rem;
            width: 90px;
            padding: 0.5rem 0;
            outline: none;
        }
        .time-item .value-input .unit {
            color: var(--text-secondary);
            font-size: 0.9rem;
            padding-right: 10px;
        }

        .range-slider-wrap {
            margin-top: 0;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.2rem 0 0.8rem;
        }
        .range-slider-wrap .slider-container {
            flex: 1;
            position: relative;
            height: 32px;
            display: flex;
            align-items: center;
        }
        .range-slider-wrap input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            position: absolute;
            width: 100%;
            height: 6px;
            background: transparent;
            /* 双滑块叠放：整体不响应指针，仅拇指（thumb）可拖，
               否则上层 endSlider 会吞掉全部事件导致 startSlider 拖不动 */
            pointer-events: none;
            z-index: 2;
            bottom: 4px;
        }
        /* 拇指启用指针事件：头/尾两个手柄均可独立拖动 */
        .range-slider-wrap input[type="range"]::-webkit-slider-thumb {
            pointer-events: auto;
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--gradient);
            cursor: grab;
            border: 2px solid white;
            box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
            position: relative;
        }
        .range-slider-wrap input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }
        .range-slider-wrap input[type="range"]::-moz-range-thumb {
            pointer-events: auto;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--gradient);
            cursor: grab;
            border: 2px solid white;
        }
        /* Firefox 默认轨道不透明，会盖住高亮条，需置透明 */
        .range-slider-wrap input[type="range"]::-moz-range-track {
            background: transparent;
        }
        /* 两拇指拖到右端重叠时，把 startSlider 提到最上层保证仍可拖（JS 动态切换） */
        .range-slider-wrap input[type="range"].top-z {
            z-index: 4;
        }
        .range-slider-wrap .track-bg {
            position: absolute;
            bottom: 8px;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--card-border);
            border-radius: 4px;
            z-index: 0;
        }
        .range-slider-wrap .track-highlight {
            position: absolute;
            bottom: 8px;
            height: 4px;
            background: var(--gradient);
            border-radius: 4px;
            z-index: 1;
            transition: left 0.05s, width 0.05s;
            box-shadow: 0 0 12px rgba(76, 175, 80, 0.2);
        }
        .range-slider-wrap .range-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            min-width: 28px;
        }

        .time-summary {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 60px;
            padding: 0.7rem 1.8rem;
            justify-content: center;
            margin-top: 1rem;
            border: 1px solid var(--card-border);
        }
        .time-summary span {
            font-weight: 400;
            font-size: 14px;
        }
        .time-summary .highlight {
            color: var(--primary);
            font-weight: 600;
        }
        .time-summary .hint {
            color: var(--text-secondary);
            font-size: 0.8rem;
        }
        .time-summary .total-duration {
            color: var(--text-muted);
            font-size: 13px;
        }

        .action-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 1.2rem;
            justify-content: center;
            margin-top: 1.2rem;
        }

        /* ===== 全屏进度弹窗 ===== */
        .processing-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .processing-content {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 50px;
            text-align: center;
            max-width: 500px;
            width: 90%;
            border: 1px solid var(--card-border);
        }

        .processing-content h3 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .processing-content .sub {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .processing-spinner {
            width: 80px;
            height: 80px;
            border: 5px solid rgba(76, 175, 80, 0.2);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 1s linear infinite;
            margin: 0 auto 30px;
        }
        @keyframes spin {
            100% {
                transform: rotate(360deg);
            }
        }

        .progress-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 24px;
        }
        .progress-track {
            flex: 1;
            height: 8px;
            border-radius: 999px;
            background: rgba(76, 175, 80, 0.15);
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            width: 0%;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--primary), #81C784);
            transition: width 0.6s ease;
        }
        .progress-text {
            min-width: 44px;
            color: var(--primary);
            font-size: 14px;
            font-weight: 600;
            text-align: right;
        }

        .processing-details {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid var(--card-border);
        }
        .processing-step {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            color: var(--text-secondary);
        }
        .processing-step.active {
            color: var(--primary);
        }
        .processing-step.completed i {
            color: var(--success, #4CAF50);
        }

        /* ===== 播放器 (精简版) ===== */
        .audio-player-wrapper {
            width: 100%;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 12px;
            padding: 10px 14px;
            border: 1px solid var(--card-border);
            margin-top: 8px;
        }
        .audio-player-simple {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .play-btn-simple {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--gradient);
            border: none;
            color: white;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            flex-shrink: 0;
        }
        .play-btn-simple:hover {
            transform: scale(1.08);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
        }
        .play-btn-simple:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
        }
/* ===== 音量控制（播放键旁） ===== */
.volume-control { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.volume-icon { color: var(--text-secondary); font-size: 13px; cursor: pointer; width: 14px; text-align: center; transition: color .2s; }
.volume-icon:hover { color: var(--primary); }
.volume-slider { -webkit-appearance: none; appearance: none; width: 64px; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--vol-pct, 100%), rgba(255,255,255,0.15) var(--vol-pct, 100%), rgba(255,255,255,0.15) 100%); outline: none; cursor: pointer; margin: 0; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: none; cursor: pointer; }
.volume-slider::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: none; cursor: pointer; }
.volume-step { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--card-border); background: transparent; color: var(--text-secondary); font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: all .2s; flex-shrink: 0; }
.volume-step:hover { border-color: var(--primary); color: var(--primary); }
        .progress-container-simple {
            flex-grow: 1;
            height: 4px;
            background-color: var(--card-border);
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            min-width: 50px;
        }
        .progress-bar-simple {
            height: 100%;
            background: var(--gradient);
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s;
        }
        .time-display-simple {
            font-size: 12px;
            color: var(--text-secondary);
            flex-shrink: 0;
            min-width: 70px;
            text-align: right;
        }
        .time-display-simple .current {
            color: var(--text-primary);
        }

        /* ===== 结果区 ===== */
        .result-box {
            margin-top: 2.8rem;
            border-top: 1px solid var(--card-border);
            padding-top: 2.2rem;
            display: none;
        }
        .result-box.active {
            display: block;
        }

        .result-item {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 20px;
            padding: 1.2rem 1.5rem;
            border: 1px solid var(--card-border);
            transition: 0.3s;
            margin-bottom: 0.8rem;
        }
        .result-item:last-child {
            margin-bottom: 0;
        }
        .result-item:hover {
            border-color: var(--primary);
        }

        .result-header-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .result-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 120px;
        }
        .result-meta .file-icon {
            font-size: 1.2rem;
            color: var(--primary);
            flex-shrink: 0;
        }
        .result-meta .info {
            min-width: 0;
        }
        .result-meta .info .file-name {
            font-weight: 500;
            font-size: 0.85rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .result-badge {
            padding: 1px 12px;
            border-radius: 40px;
            font-size: 0.65rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
            background: rgba(255, 152, 0, 0.2);
            color: var(--warning);
        }
        .result-badge.unlocked {
            background: rgba(255, 215, 0, 0.2);
            color: var(--gold);
        }

        .result-actions-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 10px;
            align-items: center;
        }
        .unlock-btn {
            background: linear-gradient(135deg, #FFD700, #F4A460);
            color: #1a1a1a;
            border: none;
            padding: 5px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .unlock-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
        }
        .unlock-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        .download-btn-single {
            background: var(--gradient);
            color: white;
            border: none;
            padding: 5px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .download-btn-single:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
        }
        .download-btn-single:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
        }

        /* ===== 技术优势 (独立区域) ===== */
        .tech-section {
            padding: 80px 0;
            background: rgba(255, 255, 255, 0.02);
            border-top: 1px solid var(--card-border);
            border-bottom: 1px solid var(--card-border);
        }
        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 28px;
        }
        .tech-item {
            text-align: center;
            padding: 24px 20px;
            background: var(--card-bg);
            border-radius: 16px;
            border: 1px solid var(--card-border);
            transition: 0.3s;
        }
        .tech-item:hover {
            border-color: var(--primary);
        }
        .tech-item .icon {
            font-size: 36px;
            color: var(--primary);
            margin-bottom: 12px;
        }
        .tech-item h4 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .tech-item p {
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* ===== CTA ===== */
        .cta-section {
            padding: 80px 0;
            text-align: center;
            background: linear-gradient(180deg, var(--darker-bg), rgba(18, 18, 18, 0.9));
            border-top: 1px solid var(--card-border);
        }
        .cta-section h2 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 12px;
        }
        .cta-section p {
            color: var(--text-secondary);
            max-width: 500px;
            margin: 0 auto 28px;
        }
        .cta-section .cta-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* ===== 点数确认弹窗 ===== */
        .payment-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3000;
            backdrop-filter: blur(6px);
        }
        .payment-overlay.active {
            display: flex;
        }

        .payment-modal {
            background: var(--card-bg);
            border-radius: 24px;
            padding: 32px 36px;
            max-width: 380px;
            width: 92%;
            border: 1px solid var(--card-border);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
            text-align: center;
        }
        .payment-modal .lock-icon {
            font-size: 40px;
            color: var(--gold);
            margin-bottom: 8px;
        }
        .payment-modal h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 4px;
        }




        /* ===== Toast ===== */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--card-bg);
            border: 1px solid var(--primary);
            border-radius: 16px;
            padding: 0.7rem 1.6rem;
            box-shadow: var(--shadow);
            color: var(--text-primary);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 999;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.4s ease;
            pointer-events: none;
            max-width: 90vw;
        }
        .toast.show {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }
        .toast i {
            font-size: 1.2rem;
            color: var(--primary);
        }
        .toast.error {
            border-color: var(--error);
        }
        .toast.error i {
            color: var(--error);
        }

        /* ===== 页脚 ===== */
        .footer {
            background-color: var(--dark-bg);
            padding: 50px 0 30px;
            border-top: 1px solid var(--card-border);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }
        .footer-column h3 {
            font-size: 17px;
            margin-bottom: 16px;
            color: var(--primary);
        }
        .footer-links {
            list-style: none;
        }
        .footer-links li {
            margin-bottom: 8px;
        }
        .footer-links a {
            color: var(--text-secondary);
            transition: color 0.3s;
            font-size: 14px;
        }
        .footer-links a:hover {
            color: var(--primary);
        }
        .copyright {
            text-align: center;
            padding-top: 24px;
            border-top: 1px solid var(--card-border);
            color: var(--text-secondary);
            font-size: 13px;
        }
        .beian-link {
            color: var(--text-secondary);
            text-decoration: none;
            margin: 0 5px;
        }
        .beian-link:hover {
            color: var(--primary);
            text-decoration: underline;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 992px) {
            .hero-content h1 {
                font-size: 36px;
            }
            .nav-links {
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 15px 0;
            }
            .nav-links,
            .nav-buttons {
                display: none;
            }
            .mobile-menu-btn {
                display: block;
            }
            .hero {
                padding: 110px 0 30px;
            }
            .hero-content h1 {
                font-size: 28px;
            }
            .trust-bar .trust-grid {
                gap: 20px;
            }
            .trust-bar .trust-item .number {
                font-size: 26px;
            }
            .main-card {
                padding: 1.5rem;
            }
            .time-row {
                flex-direction: column;
                align-items: stretch;
            }
            .time-item {
                flex: 1 1 auto;
            }
            .time-summary {
                padding: 0.6rem 1rem;
                gap: 0.6rem;
                flex-direction: column;
                align-items: center;
            }
            .range-slider-wrap {
                flex-wrap: wrap;
                justify-content: center;
            }
            .range-slider-wrap .slider-container {
                min-width: 150px;
            }
            .toast {
                right: 16px;
                left: 16px;
                bottom: 16px;
            }
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
            .processing-content {
                padding: 28px 20px;
            }
            .audio-player-simple {
                flex-wrap: wrap;
                gap: 8px;
            }
            .time-display-simple {
                min-width: auto;
                font-size: 11px;
            }
            .file-list-item {
                flex-wrap: wrap;
                gap: 4px;
            }
            .file-list-item .file-size {
                display: none;
            }
            .result-header-row {
                flex-direction: column;
                align-items: flex-start;
            }
            .payment-modal {
                padding: 28px 20px;
            }
            .result-item {
                padding: 1rem;
            }
            .features-grid {
                grid-template-columns: 1fr 1fr;
            }
            .tech-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 480px) {
            .hero-content h1 {
                font-size: 26px;
            }
            .section-header h2 {
                font-size: 1.3rem;
            }
            .upload-zone {
                padding: 1.5rem 1rem;
            }
            .clip-timeline {
                padding: 1rem;
            }
            .btn {
                padding: 8px 16px;
                font-size: 0.85rem;
            }
            .time-item .value-input input[type="number"] {
                width: 60px;
                font-size: 1rem;
            }
            .footer-grid {
                grid-template-columns: 1fr;
            }
            .result-meta .file-icon {
                font-size: 1rem;
            }
            .play-btn-simple {
                width: 32px;
                height: 32px;
                font-size: 12px;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }
            .tech-grid {
                grid-template-columns: 1fr;
            }
            .trust-bar .trust-grid {
                flex-direction: column;
                gap: 12px;
            }
        }
