* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Fredoka', -apple-system, sans-serif;
            background-color: #f7f9fa;
            color: #333;
            padding: 40px 20px;
        }
        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: #fff;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }
        h1 {
            color: #4a7c59;
            margin-bottom: 10px;
            font-size: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        p.subtitle {
            color: #666;
            margin-bottom: 25px;
            font-size: 14px;
        }
        /* 拖拽上传区 */
        .upload-area {
            border: 3px dashed #cbd5e1;
            border-radius: 12px;
            padding: 40px;
            text-align: center;
            background: #f8fafc;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 20px;
        }
        .upload-area:hover, .upload-area.dragover {
            border-color: #4a7c59;
            background: #f0fdf4;
        }
        .upload-area p {
            font-weight: 600;
            color: #475569;
        }
        .upload-area span {
            font-size: 12px;
            color: #94a3b8;
            display: block;
            margin-top: 5px;
        }
        /* 文本粘贴区 */
        .or-divider {
            text-align: center;
            margin: 15px 0;
            color: #94a3b8;
            position: relative;
        }
        .or-divider::before, .or-divider::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 45%;
            height: 1px;
            background: #e2e8f0;
        }
        .or-divider::before { left: 0; }
        .or-divider::after { right: 0; }

        textarea {
            width: 100%;
            height: 150px;
            padding: 12px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-family: monospace;
            font-size: 12px;
            resize: vertical;
            outline: none;
            margin-bottom: 20px;
        }
        textarea:focus {
            border-color: #4a7c59;
        }

        button.action-btn {
            background: #4a7c59;
            color: white;
            border: none;
            padding: 12px 24px;
            font-size: 15px;
            font-weight: bold;
            border-radius: 8px;
            cursor: pointer;
            width: 100%;
            transition: background 0.2s;
        }
        button.action-btn:hover {
            background: #386043;
        }

        /* 结果展示区 */
        .results {
            margin-top: 35px;
            display: none;
        }
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .results-title {
            font-weight: bold;
            color: #334155;
            font-size: 18px;
        }
        .file-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        .tab {
            padding: 8px 16px;
            background: #e2e8f0;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: #475569;
        }
        .tab.active {
            background: #4a7c59;
            color: white;
        }
        .code-container {
            position: relative;
        }
        .code-preview {
            width: 100%;
            height: 350px;
            background: #1e293b;
            color: #f8fafc;
            padding: 20px;
            border-radius: 8px;
            overflow: auto;
            font-family: monospace;
            font-size: 13px;
            white-space: pre;
        }
        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        .sub-btn {
            flex: 1;
            padding: 10px;
            border: 2px solid #4a7c59;
            background: white;
            color: #4a7c59;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }
        .sub-btn:hover {
            background: #f0fdf4;
        }
        #download-all {
            background: #4a7c59;
            color: white;
        }
        #download-all:hover {
            background: #386043;
        }