    * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background: linear-gradient(145deg, #f4f9fe 0%, #eef2f7 100%);
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            padding: 1.5rem;
            min-height: 100vh;
            color: #1a2c3e;
        }
a.top-tab-btn {
    text-decoration: unset;
}

        .tool-container { max-width: 1600px; margin: 0 auto; }
        .hero { text-align: center; margin-bottom: 1rem; }
        .hero h1 { font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, #1e6f3f, #2c9b5e); background-clip: text; -webkit-background-clip: text; color: transparent; }
        .hero p { color: #4a627a; font-size: 0.85rem; margin-top: 6px; }
        .top-tabs {
            display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
            margin-bottom: 1.5rem; background: rgba(255,255,255,0.6);
            padding: 6px 16px; border-radius: 60px; backdrop-filter: blur(4px);
        }
        .top-tab-btn {
            background: transparent; border: none; padding: 6px 18px;
            font-size: 0.8rem; font-weight: 500; color: #2c5a7a;
            border-radius: 40px; cursor: pointer; transition: 0.2s;
        }
        .top-tab-btn:hover { background: #eef2f7; color: #1f5e3c; }
        .top-tab-btn.active { background: #1e6f3f; color: white; box-shadow: 0 4px 10px rgba(30,111,63,0.2); }
        .main-layout { display: flex; flex-wrap: wrap; gap: 1.5rem; }
        .left-panel { flex: 4; min-width: 300px; background: white; border-radius: 32px; box-shadow: 0 12px 28px rgba(0,0,0,0.05); border: 1px solid #eef2f8; display: flex; flex-direction: column; overflow: visible; }
        .right-panel { flex: 1.2; min-width: 260px; display: flex; flex-direction: column; gap: 1.5rem; }
        
        .editor-wrapper { position: relative; }
        .editor-area {
            padding: 0.8rem 1.2rem 0.6rem;
            border-bottom: 1px solid #eef2f8;
            background: #fefef7;
            transition: all 0.3s ease;
        }
        .editor-area.floating {
            position: fixed;
            top: 0;
            z-index: 1000;
            background: rgba(254, 254, 247, 0.98);
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
            border-radius: 0 0 24px 24px;
            border-bottom: 1px solid #e2edf2;
        }
        
        .editor-label {
            font-size: 0.65rem;
            font-weight: 600;
            color: #2c9b5e;
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
        }
        .no-scrollbar {
            width: 100%;
            padding: 8px 12px;
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 0.75rem;
            line-height: 1.4;
            background: #ffffff;
            border: 1px solid #dce5ec;
            border-radius: 16px;
            outline: none;
            color: #1c3b4f;
            overflow: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            height: 80px;
            resize: vertical;
            min-height: 60px;
            max-height: 150px;
        }
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .info-tip { font-size: 0.6rem; color: #6f8faa; margin-top: 4px; text-align: right; }
        
        .tags-container { padding: 1rem 1.2rem; flex: 1; }
        .tag-pane { display: none; animation: fade 0.2s; }
        .tag-pane.active-pane { display: block; }
        @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
        
        .radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 16px;
            align-items: center;
        }
        .radio-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.7rem;
            font-family: monospace;
            background: #f8fafc;
            padding: 4px 12px;
            border-radius: 40px;
            border: 1px solid #e2edf2;
            cursor: pointer;
            transition: 0.1s;
        }
        .radio-item:hover { background: #eef2f7; }
        .radio-item input { margin: 0; cursor: pointer; width: 14px; height: 14px; accent-color: #1e6f3f; }
        .radio-item span { color: #1e4663; font-size: 0.7rem; }
        
        .section-subtitle { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: #6c8eaa; margin: 6px 0 8px 0; font-weight: 600; }
        
        .inline-tool { background: #f9fbfd; border-radius: 20px; padding: 12px; margin-top: 16px; border: 1px solid #eef2f8; }
        .tool-header {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .tool-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: #1e6f3f;
            font-family: monospace;
        }
        .help-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 18px; height: 18px; background: #9b59b6; border-radius: 50%;
            font-size: 12px; font-weight: bold; color: white; margin-left: 2px;
            cursor: help; transition: 0.1s;
        }
        .help-icon:hover { background: #8e44ad; }
        .param-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 12px;
            align-items: flex-end;
        }
        .param-item {
            display: flex;
            gap: 6px;
            align-items: flex-end;
            flex-wrap: wrap;
        }
        .param-item label {
            font-size: 0.6rem;
            font-weight: 600;
            color: #2c5a7a;
            display: block;
            margin-bottom: 2px;
        }
        .param-item input, .param-item select {
            width: 100px;
            padding: 5px 8px;
            border: 1px solid #dce5ec;
            border-radius: 28px;
            font-size: 0.65rem;
            font-family: monospace;
            background: white;
        }
        .param-item .gen-simple-btn {
            background: #eef2f7;
            border: 1px solid #d0dce6;
            font-size: 0.7rem;
            padding: 4px 10px;
            border-radius: 30px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .param-item .gen-simple-btn:hover { background: #e2eaf2; }
        
        .field-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 8px 0 4px;
            align-items: center;
        }
        
        .tool-card { background: white; border-radius: 28px; box-shadow: 0 8px 20px rgba(0,0,0,0.03); border: 1px solid #eef2f8; overflow: hidden; }
        .card-header { background: #f8fbfe; padding: 10px 16px; font-weight: 700; font-size: 0.9rem; border-bottom: 1px solid #eef2f8; display: flex; align-items: center; gap: 8px; color: #1e6f3f; }
        .resource-card .res-tabs { display: flex; gap: 6px; padding: 0 1rem; border-bottom: 1px solid #eef2f8; }
        .res-tab { background: transparent; border: none; padding: 6px 12px; font-size: 0.7rem; font-weight: 500; cursor: pointer; color: #5c7f9c; }
        .res-tab.active { color: #1e6f3f; border-bottom: 2px solid #1e6f3f; }
        .res-pane { display: none; padding: 0.8rem; }
        .res-pane.active-pane { display: block; }
        .article-list { list-style: none; }
        .article-list li { margin-bottom: 10px; }
        .article-list a { text-decoration: none; font-size: 0.7rem; color: #2c7a5e; display: block; }
        .article-list .link-desc { font-size: 0.55rem; color: #6f8faa; }
        .footer-hint { margin-top: 1.5rem; text-align: center; font-size: 0.65rem; color: #6f8faa; border-top: 1px solid #dce5ec; padding-top: 1rem; }
        .toast-msg { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #1a2c3ee6; backdrop-filter: blur(8px); color: white; padding: 6px 20px; border-radius: 40px; font-size: 0.75rem; opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 999; }
        @media (max-width: 860px) { body { padding: 1rem; } .param-item input, .param-item select { width: 80px; } }
                /* pagelist 复选框组紧凑样式 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 0.7rem;
    cursor: pointer;
    user-select: none;
}
.checkbox-group input {
    margin: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/*夜间模式*/
/* ========== 夜间模式 ========== */
body.night-mode {
    background: #1a1e2a;
    color: #e0e0e0;
}

body.night-mode .tool-card,
body.night-mode .left-panel,
body.night-mode .right-panel .tool-card,
body.night-mode .inline-tool,
body.night-mode .editor-area,
body.night-mode .tags-container {
    background: #252a36;
    border-color: #3d4455;
}

body.night-mode .hero h1 {
    background: linear-gradient(135deg, #6c7a89, #4a5b6e);
    background-clip: text;
    -webkit-background-clip: text;
}

body.night-mode .top-tabs {
    background: rgba(30, 34, 48, 0.8);
}

body.night-mode .top-tab-btn {
    color: #b0b8c5;
}

body.night-mode .top-tab-btn.active {
    background: #3b82f6;
    color: white;
}

body.night-mode .radio-item {
    background: #2d3343;
    border-color: #4a5268;
    color: #ddd;
}

body.night-mode .radio-item span {
    color: #ddd;
}

body.night-mode .radio-item:hover {
    background: #3a4055;
}

body.night-mode .param-item input,
body.night-mode .param-item select,
body.night-mode .no-scrollbar {
    background: #1e222f;
    border-color: #3d4455;
    color: #eee;
}

body.night-mode .gen-simple-btn {
    background: #2d3343;
    border-color: #4a5268;
    color: #ddd;
}

body.night-mode .gen-simple-btn:hover {
    background: #3a4055;
}

body.night-mode .gen-btn {
    background: #2c5a7a;
    color: white;
}

body.night-mode .gen-btn:hover {
    background: #1e6f3f;
}

body.night-mode .section-subtitle {
    color: #9aa9b9;
}

body.night-mode .tool-header .tool-title {
    color: #7aa2f7;
}

body.night-mode .help-icon {
    background: #6c7a89;
}

body.night-mode .help-icon:hover {
    background: #8a9bb0;
}

body.night-mode .editor-label,
body.night-mode .info-tip {
    color: #b0b8c5;
}

body.night-mode .footer-hint {
    color: #8a9bb0;
    border-top-color: #3d4455;
}

body.night-mode .toast-msg {
    background: #2d3343e6;
}

body.night-mode .checkbox-group label {
    color: #ddd;
}

/* 夜间模式切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #fff;
    border: none;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    transform: scale(1.05);
}
body.night-mode .theme-toggle {
    background: #2d3343;
    color: #ffd966;
}


