/*小辰科技*/
        :root {
            --primary: #4C51BF;
            --primary-dark: #434190;
            --secondary: #38a169;
            --secondary-dark: #2f855a;
            --background: #f5f7fa;
            --card-bg: #ffffff;
            --text: #2d3748;
            --text-light: #718096;
            --border: #e2e8f0;
            --shadow: rgba(0, 0, 0, 0.1);
            --gold: linear-gradient(145deg, #FFD700 20%, #D4AF37);
            --silver: linear-gradient(145deg, #E2E2E2 20%, #C0C0C0);
            --bronze: linear-gradient(145deg, #CD7F32 20%, #B87333);
            --infantry: linear-gradient(145deg, #8bc34a, #689f38);
            --armor: linear-gradient(145deg, #9e9e9e, #616161);
            --artillery: linear-gradient(145deg, #f57c00, #e65100);
            --navy: linear-gradient(145deg, #03a9f4, #0288d1);
            --airforce: linear-gradient(145deg, #4fc3f7, #039be5);
            --success: #48BB78;
            --warning: #ED8936;
            --danger: #F56565;
        }

        .dark-theme {
            --background: #1a202c;
            --card-bg: #2d3748;
            --text: #e2e8f0;
            --text-light: #a0aec0;
            --border: #4a5568;
            --shadow: rgba(0, 0, 0, 0.3);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            background-color: var(--background);
            color: var(--text);
            padding: 1rem;
            line-height: 1.6;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding: 1rem 0;
            border-bottom: 2px solid var(--border);
        }

        .header h1 {
            font-size: 1.8rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .header h1 i {
            font-size: 1.6rem;
        }

        .theme-toggle {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .theme-toggle:hover {
            background: var(--primary-dark);
        }

        .form-container {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px var(--shadow);
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .section {
            background: var(--card-bg);
            padding: 1.25rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px var(--shadow);
            border: 1px solid var(--border);
        }

        .section-title {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .input-group {
            margin-bottom: 1rem;
        }

        label {
            font-weight: 500;
            color: var(--text);
            margin-bottom: 0.5rem;
            display: block;
            font-size: 0.9rem;
        }

        input, select {
            width: 100%;
            padding: 0.75rem;
            background: var(--card-bg);
            color: var(--text);
            border: 2px solid var(--border);
            border-radius: 8px;
            transition: all 0.2s;
            font-size: 1rem;
        }

        input:focus, select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
            outline: none;
        }

        input[disabled] {
            background: var(--background);
            color: var(--text-light);
        }

        .radio-group {
            display: flex;
            gap: 0.75rem;
            padding: 0.5rem 0;
        }

        .radio-group label {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            transition: all 0.2s;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            flex: 1;
            margin-bottom: 0;
        }

        .radio-group input:checked + label {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            border-width: 2px;
            transform: translateY(-2px);
        }

        .radio-group label:hover {
            filter: brightness(1.1);
            transform: scale(1.05);
        }

        .radio-group label.gold {
            background: var(--gold);
            color: #654a07;
            border: 1px solid #e5c100;
        }

        .radio-group label.silver {
            background: var(--silver);
            color: #4a4a4a;
            border: 1px solid #b0b0b0;
        }

        .radio-group label.bronze {
            background: var(--bronze);
            color: #422d1b;
            border: 1px solid #a86422;
        }

        .button-container {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 1.5rem 0;
        }

        button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: all 0.3s;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
            min-width: 180px;
        }

        button:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 4px 6px var(--shadow);
        }

        .generate-btn {
            background: var(--secondary);
        }

        .generate-btn:hover {
            background: var(--secondary-dark);
        }

        .param-btn {
            background: var(--primary);
        }

        .template-btn {
            background: var(--bronze);
        }

        .template-btn.infantry {
            background: var(--infantry);
        }

        .template-btn.armor {
            background: var(--armor);
        }

        .template-btn.artillery {
            background: var(--artillery);
        }

        .template-btn.navy {
            background: var(--navy);
        }

        .template-btn.airforce {
            background: var(--airforce);
        }

        .skill-search-box {
            margin-top: 1rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1rem;
            background: var(--background);
        }

        .search-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .skill-results {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-top: 0.75rem;
        }

        .skill-item {
            padding: 0.75rem;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
        }

        .skill-item:last-child {
            border-bottom: none;
        }

        .skill-item:hover {
            background: rgba(76, 81, 191, 0.1);
        }

        .skill-item.selected {
            background: rgba(76, 81, 191, 0.2);
            border-left: 3px solid var(--primary);
        }

        .skill-meta {
            color: var(--text-light);
            font-size: 0.85em;
            margin-top: 4px;
        }

        .selected-count {
            font-weight: 500;
            color: var(--primary);
        }

        #output {
            background: var(--background);
            color: var(--text);
            padding: 1rem;
            border-radius: 8px;
            margin-top: 1.5rem;
            overflow-x: auto;
            font-family: monospace;
            white-space: pre-wrap;
            border: 1px solid var(--border);
            max-height: 300px;
            overflow-y: auto;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
        }

        .template-section {
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .author {
            position: absolute;
            top: 10px;
            right: 20px;
            font-style: italic;
            color: var(--text-light);
            font-size: 0.85rem;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .stat-pair {
            display: flex;
            gap: 1rem;
        }

        .stat-pair .input-group {
            flex: 1;
        }

        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: 1fr;
            }
            
            .form-container {
                padding: 1rem;
            }
            
            .button-container {
                flex-direction: column;
            }
            
            button {
                width: 100%;
            }
            
            .stat-pair {
                flex-direction: column;
                gap: 0.5rem;
            }
         footer {
            text-align: center;
            margin-top: 40px;
            color: #a0a0c0;
            font-size: 0.9rem;
            padding: 20px;
        }
    