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

        html {
            overflow-y: scroll;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 15px 20px;
        }

        .title-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        h1 {
            text-align: center;
            margin-bottom: 0;
            color: #2c3e50;
            font-size: 1.5em;
        }

        .github-link {
            display: inline-flex;
            align-items: center;
            color: #333;
            transition: color 0.2s, transform 0.2s;
        }

        .github-link:hover {
            color: #3498db;
            transform: scale(1.1);
        }

        .tabs {
            display: flex;
            border-bottom: 1px solid #e0e0e0;
            justify-content: center;
        }

        .tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
        }

        .tab.active {
            border-bottom-color: #3498db;
            color: #3498db;
            font-weight: 500;
        }

        .main-wrapper {
            display: flex;
            margin-top: 120px;
            margin-bottom: 70px;
            min-height: calc(100vh - 190px);
            padding: 0 3.75%;
            gap: 5%;
        }

        .preview-area {
            width: 37.5%;
            background-color: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 20px;
            position: sticky;
            top: 120px;
            height: calc(100vh - 190px);
            display: flex;
            flex-direction: column;
        }

        .preview-area h3 {
            margin: 0;
            color: #34495e;
            font-size: 16px;
        }

        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 10px;
            margin-bottom: 15px;
            flex-shrink: 0;
        }

        .preview-tabs {
            display: flex;
            gap: 5px;
            flex-shrink: 0;
        }

        .preview-tab {
            padding: 8px 12px;
            cursor: pointer;
            font-size: 13px;
            color: #666;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .preview-tab:hover {
            color: #3498db;
        }

        .preview-tab.active {
            color: #3498db;
            border-bottom-color: #3498db;
            font-weight: 500;
        }

        .preview-contents {
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .preview-content {
            display: none;
            flex: 1;
            overflow: auto;
            background-color: white;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 15px;
            white-space: pre-wrap;
            font-family: 'Courier New', Courier, monospace;
            font-size: 12px;
        }

        .preview-content.active {
            display: block;
        }

        .output-content {
            background-color: white;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 15px;
            white-space: pre-wrap;
            font-family: 'Courier New', Courier, monospace;
            font-size: 12px;
            flex: 1;
            overflow-y: auto;
        }

        .config-area {
            width: 50%;
            padding: 0;
            overflow-y: auto;
        }

        .form-section {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        h2 {
            margin-bottom: 15px;
            color: #34495e;
            font-size: 1.2em;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 5px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }

        input[type="text"],
        input[type="number"],
        input[type="url"],
        select,
        textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }

        input[type="checkbox"] {
            margin-right: 5px;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
        }

        .checkbox-group label {
            margin-bottom: 0;
        }

        .sub-section {
            margin-left: 20px;
            margin-top: 10px;
        }

        .section-hint {
            color: #666;
            font-size: 13px;
            margin-bottom: 15px;
        }

        .hint-text {
            color: #888;
            font-size: 12px;
            font-weight: normal;
        }

        .info-text {
            background: #e8f4f8;
            padding: 10px 15px;
            border-radius: 4px;
            color: #2c3e50;
            font-size: 14px;
            margin-bottom: 15px;
            border-left: 3px solid #3498db;
        }

        .password-entry {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 15px;
            border: 1px solid #e9ecef;
        }

        .password-entry .form-group {
            margin-bottom: 10px;
        }

        .password-entry .form-group:last-of-type {
            margin-bottom: 0;
        }

        .password-entry input {
            width: 100%;
        }

        /* 路径输入框包装器 - 按钮在输入框内 */
        .path-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .path-input-wrapper input {
            width: 100%;
            padding-right: 50px;
        }

        .path-fix-btn {
            position: absolute;
            right: 6px;
            padding: 4px 8px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            font-size: 11px;
            white-space: nowrap;
            transition: background 0.2s;
            line-height: 1.2;
        }

        .path-fix-btn:hover {
            background: #2980b9;
        }

        .path-fix-btn.success {
            background: #27ae60;
        }

        /* 社交图标输入框组 - 多个输入框一行 */
        .social-icon-item {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .social-icon-item>input {
            flex: 1;
            min-width: 80px;
        }

        .social-icon-item .input-with-fix {
            position: relative;
            flex: 2;
            min-width: 140px;
        }

        .social-icon-item .input-with-fix input {
            width: 100%;
            padding-right: 45px;
            box-sizing: border-box;
        }

        .social-icon-item .input-with-fix .path-fix-btn {
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
        }

        .social-icon-item .remove-button {
            margin-top: 0;
            flex-shrink: 0;
        }

        /* 按钮列表输入框组 */
        .button-item {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            align-items: center;
        }

        .button-item input {
            flex: 1;
        }

        .button-item .remove-button {
            margin-top: 0;
            flex-shrink: 0;
        }

        .language-entry {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 15px;
            border: 1px solid #e9ecef;
        }

        .language-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-weight: 500;
            color: #34495e;
        }

        .language-fields {
            display: flex;
            gap: 10px;
            align-items: flex-end;
        }

        .language-fields .field-group {
            display: flex;
            flex-direction: column;
        }

        .language-fields .field-group.lang-code-group {
            flex: 2;
        }

        .language-fields .field-group.lang-name-group {
            flex: 3;
        }

        .language-fields .field-group.lang-weight-group {
            flex: 1;
        }

        .language-fields .field-group.lang-content-group {
            flex: 3;
        }

        .language-fields .field-group label {
            font-size: 12px;
            margin-bottom: 3px;
            color: #666;
        }

        .language-fields .field-group input {
            padding: 6px 8px;
            font-size: 13px;
            width: 100%;
        }

        .remove-btn {
            background-color: #e74c3c;
            color: white;
            padding: 6px 12px;
            font-size: 12px;
            margin-top: 10px;
        }

        .remove-btn:hover {
            background-color: #c0392b;
        }

        .secondary-btn {
            background-color: #3498db;
            color: white;
            padding: 8px 16px;
            font-size: 13px;
        }

        .secondary-btn:hover {
            background-color: #2980b9;
        }

        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        .button-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 15px 20px;
            max-width: 1400px;
            margin: 0 auto;
            justify-content: center;
        }

        button {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        button.primary {
            background-color: #3498db;
            color: white;
        }

        button.primary:hover {
            background-color: #2980b9;
        }

        button.secondary {
            background-color: #95a5a6;
            color: white;
        }

        button.secondary:hover {
            background-color: #7f8c8d;
        }

        button.preview-btn {
            background-color: #9b59b6;
            color: white;
        }

        button.preview-btn:hover {
            background-color: #8e44ad;
        }

        .disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        .menu-item {
            margin-bottom: 15px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .menu-item h4 {
            margin-bottom: 10px;
            color: #34495e;
        }

        .menu-item .form-group {
            margin-bottom: 10px;
        }

        .menu-item .submenu-items {
            margin-left: 20px;
            margin-top: 10px;
        }

        .add-button {
            background-color: #27ae60;
            color: white;
            padding: 5px 10px;
            font-size: 12px;
            margin-top: 5px;
        }

        .remove-button {
            background-color: #e74c3c;
            color: white;
            padding: 5px 10px;
            font-size: 12px;
            margin-top: 5px;
        }

        .add-button:hover {
            background-color: #229954;
        }

        .remove-button:hover {
            background-color: #c0392b;
        }

        .menu-block {
            background-color: white;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 15px;
            overflow: hidden;
        }

        .menu-block.selected {
            border-color: #3498db;
        }

        .menu-header {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #e0e0e0;
            cursor: pointer;
        }

        .menu-header:hover {
            background-color: #eef0f2;
        }

        .menu-header .menu-name {
            flex: 1;
            font-weight: 500;
        }

        .menu-header .menu-identifier {
            color: #7f8c8d;
            font-size: 0.85em;
            margin-right: 15px;
        }

        .menu-header .menu-actions {
            display: flex;
            gap: 5px;
        }

        .menu-body {
            padding: 15px;
        }

        .menu-fields {
            display: flex;
            gap: 10px;
            align-items: flex-end;
        }

        .menu-fields .field-group {
            display: flex;
            flex-direction: column;
        }

        .menu-fields .field-group.identifier,
        .menu-fields .field-group.name,
        .menu-fields .field-group.url {
            flex: 3;
        }

        .menu-fields .field-group.weight {
            flex: 1;
        }

        .menu-fields .field-group label {
            font-size: 12px;
            margin-bottom: 3px;
            color: #666;
        }

        .menu-fields .field-group input {
            padding: 6px 8px;
            font-size: 13px;
        }

        .submenu-container {
            margin-top: 15px;
            padding-left: 20px;
            border-left: 3px solid #3498db;
        }

        .submenu-header {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            background-color: #f0f7ff;
            border-radius: 4px;
            margin-bottom: 10px;
        }

        .submenu-header .submenu-name {
            flex: 1;
            font-weight: 500;
            color: #2980b9;
        }

        .submenu-body {
            padding: 10px;
            background-color: #fafafa;
            border-radius: 4px;
            margin-bottom: 10px;
        }

        .small-btn {
            padding: 3px 8px;
            font-size: 11px;
            border-radius: 3px;
            cursor: pointer;
        }

        .menu-block.dragging {
            opacity: 0.5;
        }

        .menu-block.drag-over {
            border-color: #27ae60;
            background-color: #f0fff0;
        }

        .submenu-block.dragging {
            opacity: 0.5;
        }

        .submenu-container.drag-over {
            background-color: #f0fff0;
        }

        .drag-handle {
            cursor: grab;
            padding: 0 8px;
            color: #999;
            font-size: 14px;
        }

        .drag-handle:active {
            cursor: grabbing;
        }

        #menuContainer.drag-over {
            background-color: #f0fff0;
            border: 2px dashed #27ae60;
            border-radius: 8px;
            padding: 10px;
        }

        .drop-zone {
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            color: #999;
            margin-top: 10px;
            transition: all 0.2s ease;
            display: none;
        }

        .drop-zone.active {
            display: block;
        }

        .drop-zone.drag-over {
            border-color: #27ae60;
            background-color: #f0fff0;
            color: #27ae60;
        }

        .drop-indicator {
            display: none;
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            z-index: 100;
            pointer-events: none;
        }

        .drop-indicator.left {
            left: 0;
            background: linear-gradient(90deg, rgba(52, 152, 219, 0.15) 0%, transparent 100%);
        }

        .drop-indicator.right {
            right: 0;
            background: linear-gradient(-90deg, rgba(155, 89, 182, 0.15) 0%, transparent 100%);
        }

        .drop-indicator.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .drop-indicator.drag-over.left {
            background: linear-gradient(90deg, rgba(52, 152, 219, 0.35) 0%, transparent 100%);
        }

        .drop-indicator.drag-over.right {
            background: linear-gradient(-90deg, rgba(155, 89, 182, 0.35) 0%, transparent 100%);
        }

        .drop-indicator-label {
            padding: 10px 20px;
            background: rgba(52, 152, 219, 0.9);
            color: white;
            font-size: 16px;
            border-radius: 25px;
            white-space: nowrap;
            font-weight: 600;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
        }

        .drop-indicator.right .drop-indicator-label {
            background: rgba(155, 89, 182, 0.9);
        }

        .menu-block {
            position: relative;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .config-key {
            color: #7f8c8d;
            font-size: 0.85em;
            font-weight: normal;
        }

        @media (max-width: 1200px) {
            .main-wrapper {
                padding: 0 5%;
            }

            .preview-area {
                width: 30%;
            }

            .config-area {
                width: 55%;
            }
        }

        @media (max-width: 900px) {
            .main-wrapper {
                flex-direction: column;
                padding: 0 20px;
            }

            .preview-area {
                width: 100%;
                position: relative;
                top: 0;
                height: auto;
                order: 2;
            }

            .config-area {
                width: 100%;
                order: 1;
            }

            .output-content {
                height: 300px;
                flex: none;
            }
        }

/* 移动端警告样式 */
.mobile-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.95), rgba(195, 207, 226, 0.95));
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.warning-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: cardAppear 0.5s ease-out;
}

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

.warning-icon {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: #333;
}

.warning-icon svg {
    width: 40px;
    height: 40px;
}

.warning-card h2 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: none;
    font-size: 1.5em;
    padding-bottom: 0;
}

.warning-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.back-btn {
    background: #333;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.back-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-btn:active {
    transform: translateY(0);
}
