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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f8bbd9 0%, #c9a9dd 50%, #a8c8ec 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    position: relative;
}

/* 语言选择器 */
.language-selector {
    position: absolute;
    top: 0;
    right: 0;
}

.language-selector select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-selector select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-selector select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

.language-selector select option {
    background: #4a5568;
    color: white;
    padding: 8px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.calculator-section {
    margin-bottom: 30px;
}

.type-selector h3,
.selected-types h3,
.calculation-options h3 {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1.3em;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.type-btn {
    padding: 12px 20px;
    border: 2px solid #f3e8ff;
    border-radius: 30px;
    background: linear-gradient(45deg, #fdf2f8, #f3e8ff);
    color: #7c3aed;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
}

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

.type-btn.selected {
    background: linear-gradient(45deg, #d946ef, #c026d3);
    color: white;
    border-color: #c026d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 38, 211, 0.4);
}

.type-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.selected-types {
    margin-bottom: 30px;
}

#selected-display {
    min-height: 50px;
    padding: 15px;
    background: #fdf2f8;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-selection {
    color: #a0aec0;
    font-style: italic;
}

.selected-type {
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.remove-type {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.calculation-options {
    margin-bottom: 30px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #d946ef;
}

#calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #d946ef, #c026d3);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#calculate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 38, 211, 0.4);
}

#calculate-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.results-section {
    background: #fdf2f8;
    border-radius: 25px;
    padding: 25px;
    margin-top: 30px;
}

#results-title {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.4em;
}

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

.effectiveness-item {
    background: white;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.type-name {
    font-weight: bold;
    color: #4a5568;
}

.effectiveness-value {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.super-effective {
    background: #e53e3e;
    color: white;
}

.effective {
    background: #dd6b20;
    color: white;
}

.effective-coverage {
    background: #38a169;
    color: white;
}

.not-very-effective {
    background: #38a169;
    color: white;
}

.no-effect {
    background: #4a5568;
    color: white;
}

.normal-effective {
    background: #edf2f7;
    color: #4a5568;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    /* 语言选择器响应式 */
    .language-selector {
        position: static;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .language-selector select {
        font-size: 0.8em;
        padding: 6px 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .type-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .type-btn {
        padding: 10px 15px;
        font-size: 0.8em;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .effectiveness-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pokemon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mode-selector {
        flex-direction: column;
        gap: 10px;
    }
}

/* 模式切换 */
.mode-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.mode-btn {
    padding: 12px 30px;
    border: 2px solid #f3e8ff;
    border-radius: 30px;
    background: white;
    color: #7c3aed;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: linear-gradient(45deg, #d946ef, #c026d3);
    color: white;
    border-color: #c026d3;
}

.mode-btn:hover:not(.active) {
    background: #fdf2f8;
    transform: translateY(-1px);
}

/* 模式内容 */
.mode-content {
    display: block;
}

/* 队伍组建模式 */
.team-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.current-team {
    background: #fdf2f8;
    padding: 20px;
    border-radius: 25px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.team-slot {
    aspect-ratio: 1;
    border: 2px dashed #e9d5ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.team-slot.empty {
    background: #fdf2f8;
}

.team-slot.empty:hover {
    border-color: #d946ef;
    background: #f0e4ff;
}

.team-slot .slot-content {
    font-size: 1.5em;
    color: #a0aec0;
    font-weight: bold;
}

.team-slot.filled {
    border: 2px solid #d946ef;
    background: white;
}

.team-slot.filled .slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.pokemon-sprite,
.image-pokemon {
    width: 40px;
    height: 30px;
    background-image: url('/static/pokemonicons-sheet.png');
    background-repeat: no-repeat;
    display: inline-block;
}

.image-item {
    width: 24px;
    height: 24px;
    background-image: url('/static/itemicons-sheet.png');
    background-repeat: no-repeat;
    display: inline-block;
}

.pokemon-name {
    font-size: 0.7em;
    font-weight: bold;
    color: #4a5568;
    text-align: center;
    line-height: 1;
}

.remove-pokemon {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: none;
}

.team-slot.filled:hover .remove-pokemon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.team-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

#analyze-team-btn {
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
}

#recommend-btn {
    background: linear-gradient(45deg, #a855f7, #9333ea);
    color: white;
}

#clear-team-btn {
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
}

.team-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.team-actions button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

/* 宝可梦选择器 */
.pokemon-selector {
    background: #fdf2f8;
    padding: 20px;
    border-radius: 25px;
}

.pokemon-search {
    margin-bottom: 20px;
}

.pokemon-search input {
    width: 100%;
    padding: 12px;
    border: 2px solid #f3e8ff;
    border-radius: 30px;
    font-size: 1em;
    margin-bottom: 10px;
}

.pokemon-search input:focus {
    outline: none;
    border-color: #d946ef;
}

.filter-options select {
    padding: 8px 12px;
    border: 2px solid #f3e8ff;
    border-radius: 20px;
    background: white;
    font-size: 0.9em;
}

.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.pokemon-item {
    background: white;
    border: 2px solid #f3e8ff;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative; /* 为ban按钮定位 */
}

.pokemon-item:hover {
    border-color: #d946ef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pokemon-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Ban按钮样式 */
.ban-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border: none;
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.ban-button:hover {
    background: linear-gradient(45deg, #db2777, #be185d);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.ban-button svg {
    width: 10px;
    height: 10px;
}

.pokemon-item .pokemon-sprite {
    margin-bottom: 5px;
}

.pokemon-item .pokemon-name {
    font-size: 0.8em;
    font-weight: bold;
    color: #4a5568;
    text-align: center;
}

.pokemon-types {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

.pokemon-type {
    background: #e9d5ff;
    color: #7c3aed;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.6em;
    font-weight: bold;
}

/* 队伍分析 */
.team-analysis {
    background: #fdf2f8;
    border-radius: 25px;
    padding: 25px;
    margin-top: 30px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.analysis-section h4 {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1.2em;
}

/* 推荐弹窗 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 20px;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(45deg, #d946ef, #c026d3);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.recommendation-item {
    background: #fdf2f8;
    border: 2px solid #f3e8ff;
    border-radius: 20px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    border-color: #d946ef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.recommendation-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recommendation-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.recommendation-score {
    background: linear-gradient(45deg, #a855f7, #9333ea);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    align-self: flex-start;
}

.trick-room-tag {
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.recommendation-reasons {
    font-size: 0.8em;
    color: #718096;
    margin-top: 8px;
}

.recommendation-reasons ul {
    margin: 5px 0;
    padding-left: 15px;
}

/* 优化叉按钮样式 */
.dismiss-recommendation {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.9);
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
}

.recommendation-item {
    position: relative;
}

.recommendation-item:hover .dismiss-recommendation {
    opacity: 1;
    transform: scale(1);
}

.dismiss-recommendation:hover {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    transform: scale(1.1);
}

.dismiss-recommendation:active {
    transform: scale(0.95);
}

.dismiss-recommendation svg {
    transition: transform 0.2s ease;
}

.dismiss-recommendation:hover svg {
    transform: rotate(90deg);
}

/* 评分提示框样式 */
.score-tooltip {
    position: absolute;
    z-index: 1001;
    background: rgba(126, 58, 237, 0.95);
    color: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 250px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.score-tooltip[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-content {
    padding: 12px;
}

.tooltip-content h5 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #ddd6fe;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    font-size: 0.8em;
}

.score-label {
    color: #cbd5e0;
    font-weight: 500;
}

.score-value {
    color: #c084fc;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* 美化推荐分数悬停效果 */
.recommendation-score {
    cursor: help;
    position: relative;
    transition: all 0.2s ease;
}

.recommendation-score:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

/* 预设弹窗内的textarea样式 */
#preset-pokemon {
    width: 100%;
    min-height: 300px;
    padding: 10px;
    border: 2px solid #f3e8ff;
    border-radius: 15px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

#preset-pokemon:focus {
    outline: none;
    border-color: #d946ef;
}

/* 禁用宝可梦管理界面样式 */
.ban-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.ban-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 预设管理区域 */
.preset-section {
    background: #fdf2f8;
    padding: 25px;
    border-radius: 25px;
    border: 2px solid #f3e8ff;
}

.preset-section h4 {
    margin: 0 0 20px 0;
    color: #7c3aed;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}

.preset-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preset-controls select {
    padding: 12px 16px;
    border: 2px solid #e9d5ff;
    border-radius: 25px;
    background: white;
    color: #7c3aed;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-controls select:focus {
    outline: none;
    border-color: #d946ef;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.preset-controls button {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.preset-controls button:first-of-type {
    background: linear-gradient(45deg, #d946ef, #c026d3);
    color: white;
}

.preset-controls button:last-of-type {
    background: linear-gradient(45deg, #a855f7, #9333ea);
    color: white;
}

.preset-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 导入区域 */
.import-section {
    background: #fdf2f8;
    padding: 25px;
    border-radius: 25px;
    border: 2px solid #f3e8ff;
}

.import-section h4 {
    margin: 0 0 20px 0;
    color: #7c3aed;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}

.import-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e9d5ff;
    border-radius: 20px;
    font-family: 'Arial', sans-serif;
    font-size: 0.95em;
    resize: vertical;
    background: white;
    color: #4a5568;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.import-section textarea:focus {
    outline: none;
    border-color: #d946ef;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.import-section textarea::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.import-controls {
    display: flex;
    gap: 10px;
}

.import-controls button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.import-controls button:first-child {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
}

.import-controls button:last-child {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
}

.import-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 当前禁用列表显示 */
.current-bans {
    grid-column: 1 / -1;
    background: #fdf2f8;
    padding: 25px;
    border-radius: 25px;
    border: 2px solid #f3e8ff;
    margin-top: 20px;
}

.current-bans h4 {
    margin: 0 0 20px 0;
    color: #7c3aed;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}

.current-bans h4 span {
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-left: 8px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.banned-pokemon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.banned-pokemon-item,
.banned-item {
    background: white;
    border: 2px solid #e9d5ff;
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.banned-pokemon-item:hover,
.banned-item:hover {
    border-color: #d946ef;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banned-pokemon-name,
.banned-name {
    font-weight: 600;
    color: #7c3aed;
    font-size: 1em;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0.3px;
    flex: 1;
}

.unban-button,
.remove-ban {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.unban-button:hover,
.remove-ban:hover {
    background: #c53030;
    transform: scale(1.1);
}

.empty-ban-list {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 40px 20px;
    font-size: 1.1em;
}

/* 创建预设模态框表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #7c3aed;
    font-weight: 600;
    font-size: 1em;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9d5ff;
    border-radius: 25px;
    font-size: 1em;
    background: white;
    color: #4a5568;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #d946ef;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.form-group input[type="text"]::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f3e8ff;
}

.modal-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    min-width: 100px;
}

.modal-actions button:first-child {
    background: linear-gradient(45deg, #d946ef, #c026d3);
    color: white;
}

.modal-actions button:last-child {
    background: linear-gradient(45deg, #6b7280, #4b5563);
    color: white;
}

.modal-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 权重滑块样式 */
.team-weight-control {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.team-weight-control label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: #374151;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #d946ef, #c026d3);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #d946ef, #c026d3);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #6b7280;
}

.slider-labels span:nth-child(2) {
    font-weight: bold;
    color: #d946ef;
    background: white;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 响应式设计 - 禁用管理界面 */
@media (max-width: 768px) {
    .ban-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .preset-controls {
        gap: 12px;
    }
    
    .import-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .banned-pokemon-list {
        grid-template-columns: 1fr;
        max-height: 250px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-actions button {
        width: 100%;
    }
}