        /* 核心布局与 UI 样式 */
        :root {
            --primary-color: #09F;
            --primary-hover: #2d2c2c;
            --bg-gray: #f8fafc;
            --border-color: #e2e8f0;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --panel-bg: #ffffff;
        }

             html,body{ font-size:inherit;}
        .mnav {   font-size: 13px;}

       .container{ width:100%; margin: 0 auto; padding: 1rem; box-sizing: border-box;}
               header { text-align: center; margin-bottom: 1rem; }
        header h1 { font-size: 2.25rem; font-weight: 800; color: #0f172a; letter-spacing: -0.025em; }
        header p { color: var(--text-muted); margin-top: 0.5rem; font-weight: 500; }
        
        
         /* 紧凑型 Tab 导航栏 */
        .tab-wrapper {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
        }
        .nav-tabs {
            background: #f1f5f9;
            padding: 4px;
            border-radius: 12px;
            display: inline-flex;
            gap: 4px;
        }
        .nav-tab-item {
            padding: 8px 20px;
            font-size: 20px;
            font-weight: 600;
            color: var(--text-muted);
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.2s;
        }
        .nav-tab-item:hover {
            color: var(--primary-color);
        }
        .nav-tab-item.active {
            background: #ffffff;
            color: var(--primary-color);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        .app-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
        @media (min-width: 1024px) { .app-grid { grid-template-columns: 380px 1fr; } }

        .control-panel { background: var(--panel-bg); border-radius: 1.25rem; padding: 1.75rem; border: 1px solid #f1f5f9; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); height: fit-content; }
        .section-title { font-size: 0.875rem; font-weight: 700; color: #334155; margin-bottom: 1.25rem; display: flex; align-items: center; }
        .section-title::before { content: ""; display: inline-block; width: 4px; height: 16px; background: var(--primary-color); margin-right: 8px; border-radius: 2px; }

        .field-group { margin-bottom: 1.5rem; }
        label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }

        select, textarea, input[type="number"] { 
            width: 100%; box-sizing: border-box; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: 0.75rem; 
            outline: none; transition: all 0.2s; font-size: 0.95rem; background-color: #fff;
        }
        select:focus, textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
        
        .range-container { margin-top: 0.5rem; }
        input[type="range"] { width: 100%; height: 6px; background: #e2e8f0; border-radius: 999px; appearance: none; cursor: pointer; outline: none; }
        input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; background: var(--primary-color); border-radius: 50%; border: 3px solid white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.1s; }
        input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }

        .color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        .color-input-wrapper { position: relative; display: flex; align-items: center; gap: 8px; }
        input[type="color"] { width: 100%; height: 44px; border: 1px solid var(--border-color); border-radius: 0.75rem; cursor: pointer; background: white; padding: 4px; }
        .btn-small { padding: 6px 12px; font-size: 0.75rem; font-weight: 600; background: #f1f5f9; border: 1px solid var(--border-color); border-radius: 6px; cursor: pointer; transition: all 0.2s; }
        .btn-small:hover { background: #e2e8f0; }

        .download-btn { 
            width: 100%; padding: 1.125rem; background: var(--primary-color); color: white; border: none; 
            border-radius: 0.75rem; font-weight: 700; font-size: 1rem; cursor: pointer; 
            transition: all 0.2s; 
            display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 2rem;
        }
        .download-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
        .download-btn:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; }

        .info-section { border-top: 1px dashed var(--border-color); padding-top: 1.5rem; margin-top: 1rem; }
        .info-section h3 { font-size: 0.9rem; color: #1e293b; margin-bottom: 0.75rem; font-weight: 800; }
        .info-list { list-style: none; }
        .info-item { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; }
        .info-item span { color: var(--primary-color); font-weight: bold; }

        /* 常见问题样式 */
        .fontfaq-section { margin-top: 1.5rem; padding-top: 1.5rem; }
        .fontfaq-item { margin-bottom: 1rem; }
        .fontfaq-question { font-size: 0.8rem; font-weight: 700; color: #334155; margin-bottom: 0.25rem; cursor: pointer; display: flex; align-items: center; gap: 4px; }
        .fontfaq-answer { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; display: none; padding-left: 12px; border-left: 2px solid #e2e8f0; }
        .fontfaq-item.active .fontfaq-answer { display: block; }

        .preview-wrapper { display: flex; flex-direction: column; height: 100%; }
        .preview-container { 
            flex-grow: 1; min-height: 500px; background: white; border-radius: 1.5rem; border: 1px solid var(--border-color);
            display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
            background-color: transparent; 
            background-image: radial-gradient(#e5e7eb 1.5px, transparent 1.5px);
            background-size: 24px 24px;
        }
        
        #fontPreview { 
            padding: 60px; text-align: center; word-break: break-all; white-space: pre-wrap; 
            max-width: 90%; z-index: 1;
        }

        .preview-footer { margin-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.8rem; padding: 0 0.5rem; }
        .status-badge { display: flex; align-items: center; gap: 6px; font-weight: 600; }
        .dot { width: 8px; height: 8px; border-radius: 50%; }

        #toast { position:fixed; bottom:2.5rem; left:50%; transform:translateX(-50%); background:rgba(30, 41, 59, 0.85); backdrop-filter: blur(8px); color:white; padding:0.8rem 2.2rem; border-radius:3rem; opacity:0; transition:all 0.3s ease; pointer-events:none; z-index:100; box-shadow:0 20px 25px -5px rgba(0,0,0,0.2) }