/* 主体样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f0f4f8;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-fluid {
    flex: 1;
}

/* 页面标题样式 */
h1.fs-4 {
    font-weight: 600;
    color: #2c3e50;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}

.card-body {
    padding: 1.5rem;
}

/* 按钮样式 */
.btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

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

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    color: #fff;
}

/* 表单元素样式 */
.form-control, .form-select {
    border-radius: 20px;
    border: 1px solid #ced4da;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* 列表组样式 */
.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    color: #34495e;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #ecf0f1;
}

.list-group-item.active {
    background-color: #3498db;
    color: #fff;
    border-radius: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 工作偏好样式 */
.selected-work-item {
    display: inline-flex;
    align-items: center;
    margin: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.selected-work-item span {
    margin-right: 0.5rem;
}

.selected-work-item .remove-work {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
}

.work-preferences-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

/* 技能列表样式 */
.skill-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.5rem;
    background-color: #fff;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.skill-item:hover {
    background-color: #f5f9ff;
    transform: translateY(-2px);
}

.skill-item.selected {
    background-color: #e1f5fe;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 滚动条样式 */
.skill-list::-webkit-scrollbar {
    width: 8px;
}

.skill-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.skill-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.skill-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 已选技能样式 */
.selected-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem;
    background-color: #fff;
}

.selected-skill {
    display: inline-flex;
    align-items: center;
    background-color: #e1f5fe;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-skill:hover {
    background-color: #b3e5fc;
    transform: translateY(-2px);
}

.selected-skill .remove-skill {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.selected-skill .remove-skill:hover {
    color: #c0392b;
    transform: scale(1.2);
}

/* 技能类型样式 */
.skill-category {
    font-weight: bold;
    padding: 0.5rem;
    background-color: #e9ecef;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skill-category:first-child {
    margin-top: 0;
}

/* 技能类型颜色 */
.skill-dragon {
    border-left: 4px solid #7038F8;
}

.skill-fire {
    border-left: 4px solid #F08030;
}

.skill-water {
    border-left: 4px solid #6890F0;
}

.skill-grass {
    border-left: 4px solid #78C850;
}

.skill-electric {
    border-left: 4px solid #F8D030;
}

.skill-ice {
    border-left: 4px solid #98D8D8;
}

.skill-ground {
    border-left: 4px solid #E0C068;
}

.skill-dark {
    border-left: 4px solid #705848;
}

.skill-wind {
    border-left: 4px solid #A890F0;
}

.skill-special {
    border-left: 4px solid #F85888;
}

.skill-unique {
    border-left: 4px solid #EE99AC;
}

/* 被动技能类型颜色 */
.passive-movement {
    border-left: 4px solid #A8A878;
}

.passive-legendary {
    border-left: 4px solid #B8A038;
}

.passive-elementBoost {
    border-left: 4px solid #F08030;
}

.passive-elementResist {
    border-left: 4px solid #6890F0;
}

.passive-combat {
    border-left: 4px solid #C03028;
}

.passive-work {
    border-left: 4px solid #A040A0;
}

.passive-survival {
    border-left: 4px solid #A8B820;
}

.passive-special {
    border-left: 4px solid #F85888;
}

.passive-mount {
    border-left: 4px solid #78C850;
}

.passive-negative {
    border-left: 4px solid #705848;
}

.passive-composite {
    border-left: 4px solid #A890F0;
}

.passive-playerBuff {
    border-left: 4px solid #EE99AC;
}

.passive-weight {
    border-left: 4px solid #E0C068;
}

.passive-temperatureResist {
    border-left: 4px solid #98D8D8;
}

.passive-elementResist2 {
    border-left: 4px solid #6890F0;
}

.passive-sphereModule {
    border-left: 4px solid #F8D030;
}

.passive-capture {
    border-left: 4px solid #D8B058;
}

.passive-mobility {
    border-left: 4px solid #F85888;
}

.passive-other {
    border-left: 4px solid #68A090;
}

/* 提示框容器 */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* 提示框基本样式 */
.toast {
    min-width: 320px;
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 提示框类型样式 */
.toast.success {
    background: #28a745;
    border-color: rgba(40, 167, 69, 0.2);
    color: white;
}

.toast.danger {
    background: rgba(220, 53, 69, 0.95);
    border-color: rgba(220, 53, 69, 0.2);
    color: white;
}

.toast.warning {
    background: rgba(255, 193, 7, 0.95);
    border-color: rgba(255, 193, 7, 0.2);
    color: #000;
}

.toast.info {
    background: rgba(23, 162, 184, 0.95);
    border-color: rgba(23, 162, 184, 0.2);
    color: white;
}

/* 提示框图标 */
.toast-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.toast.success .toast-icon::before {
    content: "✓";
    font-weight: bold;
}

.toast.danger .toast-icon::before {
    content: "✕";
    font-weight: bold;
}

.toast.warning .toast-icon::before {
    content: "!";
    font-weight: bold;
}

.toast.info .toast-icon::before {
    content: "i";
    font-weight: bold;
    font-style: italic;
}

/* 提示框内容 */
.toast-content {
    flex: 1;
    margin-right: 8px;
    font-weight: 500;
}

/* 提示框关闭按钮 */
.toast-close {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 8px;
    margin: -8px;
    color: inherit;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* 提示框关闭按钮图标 */
.toast-close::before {
    content: "×";
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

/* 提示框动画 */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 移动端适配 */
@media (max-width: 576px) {
    .toast-container {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* 友情链接样式 */
.friend-links {
    background-color: #f8f9fa;
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
}

.friend-links:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 50px;
    height: 3px;
    background-color: #3498db;
    margin: 1rem auto;
}

.section-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.friend-link {
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 12px !important;
    margin-bottom: 15px;
    background-color: white;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #34495e;
}

.friend-link:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #3498db !important;
    text-decoration: none;
    border-color: rgba(52, 152, 219, 0.3) !important;
}

/* 搜索结果高亮 */
.highlight {
    background-color: #fff3cd;
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
    font-weight: bold;
}

/* 搜索框样式 */
.search-wrapper {
    position: relative;
}

.search-wrapper .form-control {
    padding-right: 2.5rem;
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    display: none;
}

.search-clear-btn:hover {
    color: #343a40;
}

/* 选中技能样式 */
.selected-skill-badge {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.selected-skill-badge:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.selected-skill-badge .badge {
    font-size: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* JSON预览 */
#jsonPreview {
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
}

/* Select2 样式调整 */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #3498db;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 15px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 15px;
}

.select2-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.select2-results__option {
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e1f5fe;
    color: #333;
}