/* Admin Dashboard Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #333;
    font-size: 28px;
}

.back-btn {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #764ba2;
}

.player-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.player-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.currency-value {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}

.gold-value {
    background: #ffd700;
    color: #b8860b;
}

.diamond-value {
    background: #b9f2ff;
    color: #0066cc;
}

.section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
}

.section-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.section-header p {
    opacity: 0.9;
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: white;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

tbody tr {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left-color: #667eea;
}

tbody tr:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.ship-id, .wave-id, .wrekcage-id, .prop-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.ship-name, .wave-name, .wrekcage-name, .prop-name {
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.level-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    background: #667eea;
}

.rarity-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.rarity-common { background: #95a5a6; }
.rarity-rare { background: #3498db; }
.rarity-epic { background: #9b59b6; }
.rarity-legendary { background: #f39c12; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.icon-small {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.story-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.from-desc {
    font-size: 12px;
    color: #888;
}

.rotation-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    color: white;
    background: #e74c3c;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.grant-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.grant-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.edit-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.edit-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.owned-btn {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.level-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.save-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.save-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* 登录页面样式 */
body:has(.login-container) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.login-header p {
    opacity: 0.9;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.login-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    background: #ff4757;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.remember-me input {
    width: auto;
    margin: 0;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::after {
    width: 300px;
    height: 300px;
}

.info-section {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
}

.info-section h3 {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 10px;
}

.info-section p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.game-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 仪表盘页面样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card h3 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

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

.menu-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card a {
    color: #667eea;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.menu-card a:hover {
    color: #764ba2;
}

.logout-btn {
    background: #ff6b6b;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #ff5252;
}

/* 表格样式增强 */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
}

.table-header h2 {
    color: #495057;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-stats {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

.search-container {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-box {
    width: 100%;
    max-width: 350px;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236c757d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 45px;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.search-box::placeholder {
    color: #6c757d;
    font-style: italic;
}

.player-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.player-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.user-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.currency {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
}

.currency.gold {
    background: #ffd700;
    color: #b8860b;
}

.currency.diamond {
    background: #b9f2ff;
    color: #0066cc;
}

.actions {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-1px);
}

/* 直接删除：跳过注销冷静期的高风险操作，用红色警示 */
.delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .table-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    th, td {
        padding: 10px;
        font-size: 14px;
    }
    
    .login-container {
        margin: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        padding: 15px;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* 玩家搜索页面新样式 */
.search-container {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.search-input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbfc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-box::placeholder {
    color: #8b949e;
    font-weight: 400;
}

.search-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
    background: linear-gradient(135deg, #7c8ff9 0%, #8a5bb8 100%);
}

.search-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.search-btn:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.search-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    margin-right: 6px;
    font-size: 14px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.search-btn:hover:not(:disabled) .search-icon {
    transform: scale(1.1);
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-empty, .search-initial {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    margin: 20px 0;
    border: 2px dashed #e5e7eb;
}

.empty-icon, .initial-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-message, .initial-message {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-hint, .initial-hint {
    font-size: 14px;
    color: #999;
}

/* 搜索结果淡入动画 */
.search-result-row {
    animation: fadeInUp 0.3s ease;
}

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

/* 搜索状态优化 */
.table-stats {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.table-stats.loading {
    color: #667eea;
}

.table-stats.error {
    color: #e74c3c;
}

.table-stats.success {
    color: #27ae60;
}

/* 搜索历史记录 */
.search-history {
    margin-top: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(102, 126, 234, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.search-history-title {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.clear-history {
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 12px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

.clear-history:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.search-history-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-history-item {
    background: white;
    color: #4a5568;
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-history-item::before {
    content: '🔍';
    font-size: 11px;
}

.search-history-item:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* 搜索历史为空时的样式 */
.search-history-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

.search-history-empty::before {
    content: '📭';
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        gap: 15px;
    }

    .search-btn {
        width: 100%;
        padding: 16px 24px;
    }

    .search-container {
        padding: 20px;
        margin-bottom: 25px;
    }

    .search-empty, .search-initial {
        padding: 60px 20px;
        margin: 15px 0;
    }

    .empty-icon, .initial-icon {
        font-size: 36px;
    }

    .search-history {
        margin-top: 15px;
        padding: 20px;
    }

    .search-history-items {
        gap: 6px;
    }

    .search-history-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 快速选择按钮样式 */
.quick-select-buttons button {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-select-buttons button:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quick-select-buttons button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quick-select-buttons button:last-child {
    margin-right: 0;
}

/* ============ 玩家列表分页 ============ */

.stat-hint {
    margin-top: 6px;
    color: #8b93a7;
    font-size: 12px;
    font-weight: 400;
}

.list-back-btn {
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.98);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.list-back-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-1px);
}

.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(102, 126, 234, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 9px 14px;
    background: #fff;
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.page-btn:disabled {
    color: #b4b2a9;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-number {
    min-width: 34px;
    padding: 8px 10px;
    background: #fff;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.page-number:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    cursor: default;
}

.page-dots {
    color: #adb5bd;
    font-size: 13px;
    padding: 0 2px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 13px;
}

.page-input {
    width: 64px;
    padding: 8px 10px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    outline: none;
    transition: all 0.25s ease;
}

.page-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.sort-btn {
    margin-left: 4px;
}

.col-index {
    width: 64px;
}

.row-index {
    color: #adb5bd;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-controls {
        justify-content: center;
    }

    .list-back-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
}
