/* 仪表板布局 */
.dashboard-container {
    display: flex;
    height: 100vh;
    background: var(--bg-primary);
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 88px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-header {
    padding: 1.25rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .logo h2 {
    display: none;
}

/* 侧边栏导航 */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.sidebar-nav * {
    user-select: none;
    -webkit-user-drag: none;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-link span {
    font-weight: 500;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    gap: 0;
    padding: 0.875rem;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-footer {
    padding: 1rem 0.75rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar.collapsed .user-profile {
    flex-direction: column;
    justify-content: center;
}

.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-fallback {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.user-info {
    flex: 1;
}

.sidebar.collapsed .user-info {
    display: none;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.user-status {
    font-size: 0.75rem;
    color: #00c851;
}

.logout-btn {
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.logout-btn:hover {
    color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 68, 68, 0.05));
    border-color: #ff4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.2);
}

.logout-btn:hover::before {
    left: 100%;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部导航栏 */
.header {
    height: 70px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle svg,
.sidebar-toggle svg * {
    pointer-events: none;
}

.sidebar-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.sidebar-toggle:hover::before {
    left: 100%;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
}

.search-box input {
    width: 300px;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.notification-btn {
    position: relative;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification-btn svg,
.notification-btn svg * {
    pointer-events: none;
}

.notification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.notification-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.notification-btn:hover::before {
    left: 100%;
}

.notification-btn--pulse {
    border-color: rgba(255, 107, 53, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 12px 24px rgba(0, 0, 0, 0.35);
    animation: notificationPulse 1.8s ease-in-out infinite;
}

.notification-btn--pulse svg {
    color: #ffd8c0;
}

.notification-badge {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes notificationPulse {
    0% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.35);
    }
    70% {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 0 0 12px rgba(255, 107, 53, 0);
    }
    100% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.notification-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(420px, calc(100vw - 2rem));
    max-height: 520px;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    overflow: hidden;
    z-index: 40;
}

.notification-panel[hidden] {
    display: none !important;
}

.notification-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-panel__subtitle {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notification-panel__mark-read {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-panel__mark-read:hover {
    border-color: var(--primary-color);
    color: #fff;
    background: rgba(255, 107, 53, 0.14);
}

.notification-panel__list {
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.notification-item:hover {
    border-color: rgba(255, 107, 53, 0.45);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
}

.notification-item--unread {
    border-color: rgba(255, 107, 53, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.16);
}

.notification-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.notification-item__time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.support-btn--active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.24);
}

.support-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 4.5rem;
    width: min(420px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 53, 0.16), transparent 38%),
        rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    z-index: 41;
}

.support-panel[hidden] {
    display: none !important;
}

.support-panel__header {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.support-panel__subtitle {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.support-panel__list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.support-panel__empty {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.support-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.support-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.08);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.support-entry--group {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.03);
}

.support-entry--group:hover {
    background:
        linear-gradient(180deg, rgba(255, 107, 53, 0.12), rgba(255, 107, 53, 0.08)),
        rgba(255, 107, 53, 0.08);
}

.support-entry--disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.support-entry--disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.support-entry__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd6c8;
    background: rgba(255, 107, 53, 0.14);
    flex-shrink: 0;
}

.support-entry__content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.support-entry__eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 107, 53, 0.72);
}

.support-entry__content strong {
    font-size: 0.95rem;
}

.support-entry__content span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.support-entry__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 0.1rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.support-entry__preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.support-entry__action {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 0.2rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.14);
    color: #ffd6c8 !important;
    font-size: 0.72rem !important;
    font-weight: 800;
    line-height: 1;
}

.notification-item__title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.notification-item__content {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.notification-item__footer {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.notification-item__status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notification-item__action {
    border: none;
    background: rgba(255, 107, 53, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.notification-item__action:hover {
    background: rgba(255, 107, 53, 0.24);
    transform: translateY(-1px);
}

.notification-item__action--join {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.25);
}

.notification-item__action--join:hover {
    background: linear-gradient(135deg, #ff9550, #ffb37c);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 107, 53, 0.35);
}

.notification-empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 面板容器 */
.panel-container {
    --panel-gutter: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: var(--panel-gutter);
}

.panel-content {
    display: none;
}

.panel-content.active {
    display: block;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.panel-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.panel-body {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

/* 服务器控制面板样式 */
.server-control-actions {
    display: flex;
    gap: 1rem;
}

.btn-success {
    background: linear-gradient(135deg, #00c851, #00a046);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 200, 81, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ff8800, #ff6600);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 136, 0, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.3);
}

.server-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.control-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.control-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* 服务器状态 */
.server-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00c851;
    box-shadow: 0 0 10px rgba(0, 200, 81, 0.5);
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.status-indicator.warning {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.status-text {
    color: #00c851;
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 服务器指标 */
.server-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.metric-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* 玩家管理 */
.player-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.player-stats .stat-item {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.player-list h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.player-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.player-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.player-score {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.player-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* 服务器设置 */
.server-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-input,
.setting-select {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.setting-input:focus,
.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* 服务器日志 */
.server-logs {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.log-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.log-container {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.813rem;
}

.log-entry {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    line-height: 1.4;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    min-width: 60px;
    flex-shrink: 0;
}

.log-type {
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

.log-message {
    color: var(--text-secondary);
    flex: 1;
    word-break: break-word;
}

.log-entry.info .log-type {
    color: #17a2b8;
}

.log-entry.success .log-type {
    color: #00c851;
}

.log-entry.warning .log-type {
    color: #ff8800;
}

.log-entry.error .log-type {
    color: #ff4444;
}

/* 好友系统样式 */
.friends-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box-friends {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-friends svg {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
}

.search-box-friends input {
    width: 250px;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-box-friends input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.friends-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.friends-hint {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.friends-hint-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.12);
    display: grid;
    place-items: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.friends-hint-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.friends-hint-desc {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.friends-list {
    display: none;
}

.friends-list.active {
    display: block;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.friend-item.online {
    border-color: rgba(74, 222, 128, 0.2);
}

.friend-item.offline {
    border-color: rgba(148, 163, 184, 0.12);
    opacity: 0.95;
}

.friend-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
}

.friend-avatar {
    position: relative;
    flex-shrink: 0;
}

.friend-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-avatar .avatar-fallback {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.125rem;
}

.friend-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-tertiary);
}

.friend-status.online {
    background: #00c851;
}

.friend-status.offline {
    background: var(--text-muted);
}

.friend-info {
    flex: 1;
}

.friend-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.friend-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.friend-status-chip.online {
    background: rgba(74, 222, 128, 0.18);
    color: #86efac;
}

.friend-status-chip.offline {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5f5;
}

.friend-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.friend-status-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.friend-game {
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.friend-server-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.friend-server-pill--empty {
    border-style: dashed;
    color: var(--text-muted);
}

.friend-activity-hint {
    margin-top: 0.45rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.friend-meta {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.friend-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
}

.friend-meta-item code {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.7rem;
    color: var(--primary-color);
}

.friend-modal[hidden] {
    display: none;
}

.friend-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.friend-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.friend-modal-content {
    position: relative;
    width: min(420px, 92vw);
    background: var(--bg-secondary, #1d1f2b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.friend-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.friend-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.friend-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.friend-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.friend-modal-field input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.friend-modal-field label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.friend-modal-field small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.friend-modal-error {
    min-height: 1.25rem;
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.friend-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.friend-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.friend-actions .btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.friend-actions .btn {
    padding: 0.375rem 0.75rem;
    min-width: auto;
}

/* 好友请求样式 */
.friend-request {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.friend-request:hover {
    border-color: var(--primary-color);
}

.request-avatar {
    position: relative;
    flex-shrink: 0;
}

.request-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.request-avatar .avatar-fallback {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.125rem;
}

.request-info {
    flex: 1;
}

.request-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.request-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.request-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.request-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* 仪表板服务器面板样式 */
.servers-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.servers-filters-mini {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box-mini {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-mini svg {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-box-mini input {
    width: 250px;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-box-mini input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-select-mini {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select-mini:focus {
    outline: none;
    border-color: var(--primary-color);
}

.servers-panel-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 仪表板服务器表格样式 */
.servers-panel-body .servers-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.servers-panel-body .servers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.813rem;
}

.servers-panel-body .servers-table thead {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.servers-panel-body .servers-table th {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    user-select: none;
}

.servers-panel-body .servers-table th.sortable {
    cursor: pointer;
    transition: color 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.servers-panel-body .servers-table th.sortable:hover {
    color: var(--primary-color);
}

.servers-panel-body .servers-table th.sortable svg {
    opacity: 0.35;
    transform: rotate(180deg) scale(0.92);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    flex-shrink: 0;
}

.servers-panel-body .servers-table th.sortable:hover svg {
    opacity: 1;
}

.servers-panel-body .servers-table th.sortable.sort-asc svg {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    animation: dashboardSortChevronPulse 0.28s ease;
}

.servers-panel-body .servers-table th.sortable.sort-desc svg {
    opacity: 1;
    transform: rotate(180deg) scale(1);
    animation: dashboardSortChevronPulse 0.28s ease;
}

.servers-panel-body .servers-table th.sortable.sort-asc {
    --dashboard-sort-chevron-rotate: 0deg;
}

.servers-panel-body .servers-table th.sortable.sort-desc {
    --dashboard-sort-chevron-rotate: 180deg;
}

@keyframes dashboardSortChevronPulse {
    0% {
        transform: scale(0.82) rotate(var(--dashboard-sort-chevron-rotate, 0deg));
    }
    100% {
        transform: scale(1) rotate(var(--dashboard-sort-chevron-rotate, 0deg));
    }
}

.servers-panel-body .servers-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.servers-panel-body .servers-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.servers-panel-body .servers-table tbody tr:last-child {
    border-bottom: none;
}

.servers-panel-body .servers-table td {
    padding: 0.625rem 0.5rem;
    text-align: center;
    vertical-align: middle;
    color: var(--text-primary);
}

/* 服务器名称列 */
.servers-panel-body .servers-table th:nth-child(1),
.servers-panel-body .servers-table td:nth-child(1) {
    text-align: left;
}

.servers-panel-body .server-name-cell {
    font-weight: 500;
}

.servers-panel-body .server-name-primary {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.servers-panel-body .server-name-address {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.servers-panel-body .dashboard-copy-address {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.servers-panel-body .dashboard-copy-address:hover {
    color: var(--primary-color);
}

.servers-panel-body .dashboard-copy-address:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.45);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 地图列 */
.servers-panel-body .map-cell {
    text-align: center;
}

.servers-panel-body .map-name {
    font-weight: 500;
}

/* 玩家列 */
.servers-panel-body .players-cell {
    text-align: center;
    min-width: 80px;
}

.servers-panel-body .players-count {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
}

.servers-panel-body .players-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.servers-panel-body .players-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 延迟列 */
.servers-panel-body .ping-cell {
    text-align: center;
    min-width: 60px;
}

.servers-panel-body .ping-value {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.servers-panel-body .ping-excellent {
    background: rgba(0, 200, 81, 0.2);
    color: #00c851;
}

.servers-panel-body .ping-good {
    background: rgba(255, 136, 0, 0.2);
    color: #ff8800;
}

.servers-panel-body .ping-poor {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

/* 状态列 */
.servers-panel-body .status-cell {
    text-align: center;
    min-width: 80px;
}

.servers-panel-body .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.servers-panel-body .status-badge.online {
    background: rgba(0, 200, 81, 0.1);
    color: #00c851;
}

.servers-panel-body .status-badge.offline {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.servers-panel-body .status-badge.full {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.servers-panel-body .status-badge.maintenance {
    background: rgba(147, 51, 234, 0.14);
    color: #c084fc;
}

.servers-panel-body .status-dot-small {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* 操作列 */
.servers-panel-body .actions-cell {
    text-align: center;
    min-width: 170px;
    position: relative;
    overflow: hidden;
}

/* 地图背景图片样式 */
.servers-panel-body .table-row-with-map {
    position: relative;
}

.servers-panel-body .actions-cell .absolute {
    position: absolute;
}

.servers-panel-body .actions-cell .right-0 {
    right: 0;
}

.servers-panel-body .actions-cell .top-0 {
    top: 0;
}

.servers-panel-body .actions-cell .bottom-0 {
    bottom: 0;
}

.servers-panel-body .actions-cell .w-30 {
    width: 30%;
}

.servers-panel-body .actions-cell .w-230 {
    width: 230px;
}

.servers-panel-body .actions-cell .w-full {
    width: 100%;
}

.servers-panel-body .actions-cell .z-0 {
    z-index: 0;
}

.servers-panel-body .actions-cell .overflow-hidden {
    overflow: hidden;
}

.servers-panel-body .actions-cell .h-full {
    height: 100%;
}

.servers-panel-body .actions-cell .w-full {
    width: 100%;
}

.servers-panel-body .actions-cell .object-cover {
    object-fit: cover;
}

.servers-panel-body .actions-cell .opacity-30 {
    opacity: 0.3;
}

.servers-panel-body .actions-cell .image-map {
    pointer-events: none;
    filter: brightness(0.8) contrast(1.1);
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 45%,
        rgba(0, 0, 0, 1) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 45%,
        rgba(0, 0, 0, 1) 100%
    );
}

.servers-panel-body .btn-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.servers-panel-body .btn-join-small {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
}

.servers-panel-body .btn-join-small:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.servers-panel-body .btn-join-small:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.servers-panel-body .btn-fav-small {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servers-panel-body .btn-fav-small:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.servers-panel-body .btn-fav-small.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 服务器统计 */
.servers-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 服务器网格 */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.server-card.offline {
    opacity: 0.6;
}

.server-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c851;
}

.server-status.online {
    background: #00c851;
}

.server-card.offline .server-status {
    background: #ff4444;
}

.server-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.server-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
    font-family: 'Courier New', monospace;
}

.server-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.players {
    color: var(--text-secondary);
}

.ping {
    color: #00c851;
    font-weight: 600;
}

.server-card.offline .ping {
    color: var(--text-muted);
}

/* 武器换肤面板样式 */
.weapons-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weapons-panel-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 预设区域 */
.presets-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.presets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.presets-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.presets-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.preset-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.preset-tab:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.preset-tab.active {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.preset-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.preset-info {
    flex: 1;
}

.preset-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.preset-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.preset-action {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.3s ease;
}

.preset-tab:hover .preset-action {
    opacity: 1;
}

.preset-action:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.preset-add {
    border: 2px dashed var(--border-color);
    background: transparent;
}

.preset-add:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

/* 武器配置区域 */
.weapons-configuration {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.config-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.config-actions {
    display: flex;
    gap: 0.5rem;
}

/* 武器网格 */
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.weapon-card.current-skin {
    border: 2px solid var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
    position: relative;
}

.weapon-card.current-skin::before {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
}

.weapon-card.current-skin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

/* 武器统计 */
.weapons-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.weapons-stats .stat-item {
    text-align: center;
}

.weapons-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapons-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 皮肤选择模态框 */
.skin-selector {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.skin-selector.show {
    display: flex;
}

.skin-selector-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.skin-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.skin-selector-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.skin-selector-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.skin-selector-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.skins-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skin-option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.skin-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.skin-option.selected {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.skin-preview {
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.skin-option-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.skin-option-price {
    color: var(--primary-color);
    font-weight: 600;
}

.skin-selector-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.weapon-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.weapon-image {
    width: 100%;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.weapon-placeholder {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.weapon-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.skin-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.weapon-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* 重新发放武器按钮样式 */
#respawnWeaponBtn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

#respawnWeaponBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff8a5b, var(--primary-color));
}

#respawnWeaponBtn .btn-icon {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#respawnWeaponBtn .btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: #888888; /* 灰色 */
    transition: all 0.3s ease;
}

#respawnWeaponBtn:hover .btn-icon {
    transform: rotate(15deg);
}

#respawnWeaponBtn:hover .btn-icon svg {
    stroke: #ffffff; /* 悬停时变为白色 */
}

#respawnWeaponBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

#respawnWeaponBtn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#respawnWeaponBtn:hover::after {
    left: 100%;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.notification.error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.notification.info {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

.notification-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.info .notification-icon {
    color: var(--primary-color);
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.notification.error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.notification.info {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

.notification-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.info .notification-icon {
    color: var(--primary-color);
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 重新发放武器按钮样式 */
#respawnWeaponBtn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

#respawnWeaponBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff8a5b, var(--primary-color));
}

#respawnWeaponBtn .btn-icon {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#respawnWeaponBtn .btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: #888888; /* 灰色 */
    transition: all 0.3s ease;
}

#respawnWeaponBtn:hover .btn-icon {
    transform: rotate(15deg);
}

#respawnWeaponBtn:hover .btn-icon svg {
    stroke: #ffffff; /* 悬停时变为白色 */
}

#respawnWeaponBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

#respawnWeaponBtn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#respawnWeaponBtn:hover::after {
    left: 100%;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.notification.error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.notification.info {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

.notification-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.info .notification-icon {
    color: var(--primary-color);
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.notification.error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.notification.info {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

.notification-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.info .notification-icon {
    color: var(--primary-color);
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 训练模式 */
.training-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mode-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mode-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.mode-card p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* 六边形面板 */
.hexagon-container {
    padding: 2rem 0;
    overflow: hidden;
}

.hexagon-grid {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 520px;
    margin: 0 auto;
}

.hexagon {
    position: absolute;
    width: 160px;
    height: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: hexagonFloat 3s ease-in-out infinite;
}

.hexagon:hover {
    transform: scale(1.1) translateY(-5px);
    z-index: 10;
    filter: brightness(1.2);
}

/* 中心六边形 */
.hexagon-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    animation-delay: 0s;
}

.hexagon-center .hexagon-content {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

/* 周围六边形位置 */
.hexagon-1 {
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    animation-delay: 0.2s;
}

.hexagon-2 {
    right: 80px;
    top: 130px;
    animation-delay: 0.4s;
}

.hexagon-3 {
    right: 40px;
    bottom: 130px;
    animation-delay: 0.6s;
}

.hexagon-4 {
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    animation-delay: 0.8s;
}

.hexagon-5 {
    left: 40px;
    bottom: 130px;
    animation-delay: 1s;
}

.hexagon-6 {
    left: 80px;
    top: 130px;
    animation-delay: 1.2s;
}

/* 六边形内容样式 */
.hexagon-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid var(--primary-color);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hexagon-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.hexagon:hover .hexagon-content::before {
    animation: hexagonShine 0.6s ease;
}

.hexagon-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hexagon-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.hexagon-center .hexagon-value {
    color: white;
    font-size: 1.5rem;
}

.hexagon-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hexagon-center .hexagon-label {
    color: rgba(255, 255, 255, 0.9);
}

/* 六边形动画 */
@keyframes hexagonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* =============================================
   Leaderboard V2 React-like Replica
   ============================================= */

#leaderboard-panel {
    width: calc(100% + (var(--panel-gutter) * 2));
    min-height: calc(100% + (var(--panel-gutter) * 2));
    margin: calc(var(--panel-gutter) * -1);
    background: transparent;
}

.lb-react-shell {
    width: 100%;
    min-height: 100%;
    background: #0f1115;
    color: #ffffff;
    padding: 1rem;
    box-sizing: border-box;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lb-react-header,
.lb-react-mode-bar,
.lb-react-table-card,
.lb-react-bottom,
.lb-react-podium {
    max-width: 88rem;
    margin-left: auto;
    margin-right: auto;
}

.lb-react-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lb-react-title-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lb-react-trophy {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.12);
    color: #ff6b35;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(93, 34, 12, 0.18);
}

.lb-react-trophy.is-friends {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 16px 40px rgba(30, 64, 175, 0.18);
}

.lb-react-title {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.lb-react-season {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #262b35;
    background: #12161e;
    color: #5d6470;
    font-size: 0.7rem;
    font-family: Consolas, monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.lb-react-mode-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.55rem 0 0;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.lb-react-mode-line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lb-react-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.lb-react-scope {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 16px;
    border: 1px solid #262b35;
    background: #16191e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lb-react-scope-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.35rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    transition: all 0.22s ease;
}

.lb-react-scope-btn:hover {
    color: #d1d5db;
}

.lb-react-scope-btn.active {
    color: #ffffff;
    background: #ff6b35;
    box-shadow: 0 18px 30px rgba(124, 45, 18, 0.35);
}

.lb-react-scope-btn[data-scope="friends"].active {
    background: #2563eb;
    box-shadow: 0 18px 30px rgba(29, 78, 216, 0.35);
}

.lb-react-search {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
    padding: 0 1rem;
    height: 46px;
    border-radius: 16px;
    border: 1px solid #262b35;
    background: #16191e;
    color: #6b7280;
}

.lb-react-search:focus-within {
    border-color: rgba(255, 107, 53, 0.65);
    color: #ff6b35;
}

.lb-react-search input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    color: #f3f4f6;
    font-size: 0.78rem;
}

.lb-react-search input::placeholder {
    color: #6b7280;
}

.lb-react-mode-bar {
    position: relative;
    z-index: 30;
    display: block;
    margin-bottom: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: #121214;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.lb-react-filter-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(170px, 1.15fr) minmax(120px, 0.85fr) minmax(260px, 2.9fr) minmax(120px, 0.85fr);
    gap: 0;
    align-items: stretch;
}

.lb-react-custom-dropdown {
    position: relative;
    min-width: 0;
}

.lb-react-custom-trigger {
    position: relative;
    width: 100%;
    height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    min-width: 0;
    padding: 0 1.25rem;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s ease, color 0.25s ease;
}

.lb-react-custom-dropdown:last-child .lb-react-custom-trigger {
    border-right: 0;
}

.lb-react-custom-trigger:hover,
.lb-react-custom-dropdown.is-open .lb-react-custom-trigger {
    background: rgba(255, 255, 255, 0.03);
}

.lb-react-custom-trigger:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.55);
    outline-offset: -2px;
}

.lb-react-custom-meta {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    margin-bottom: 0.08rem;
    min-width: 0;
    color: #6b7280;
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.lb-react-custom-icon {
    flex: 0 0 auto;
    color: #6b7280;
    transition: color 0.25s ease;
}

.lb-react-custom-current {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.lb-react-custom-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d1d5db;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.lb-react-custom-chevron {
    flex: 0 0 auto;
    color: #4b5563;
    transition: color 0.25s ease, transform 0.35s ease;
}

.lb-react-custom-dropdown.is-open .lb-react-custom-meta,
.lb-react-custom-dropdown.is-open .lb-react-custom-icon,
.lb-react-custom-dropdown.is-open .lb-react-custom-chevron,
.lb-react-custom-trigger:hover .lb-react-custom-meta,
.lb-react-custom-trigger:hover .lb-react-custom-icon {
    color: #ff6b35;
}

.lb-react-custom-dropdown.is-open .lb-react-custom-value {
    color: #ffffff;
}

.lb-react-custom-dropdown.is-open .lb-react-custom-chevron {
    transform: rotate(180deg);
}

.lb-react-custom-underline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    opacity: 0;
    transition: width 0.35s ease, opacity 0.35s ease;
}

.lb-react-custom-dropdown.is-open .lb-react-custom-underline {
    width: 100%;
    opacity: 1;
}

.lb-react-custom-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 120;
    width: 100%;
    min-width: 220px;
    max-height: 300px;
    padding: 0.38rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #161618;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: lbDropdownIn 0.18s ease-out;
}

.lb-react-custom-menu::-webkit-scrollbar {
    width: 4px;
}

.lb-react-custom-menu::-webkit-scrollbar-track {
    background: transparent;
}

.lb-react-custom-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.lb-react-custom-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.55);
}

.lb-react-custom-option {
    width: 100%;
    display: block;
    margin: 0.12rem 0;
    padding: 0.66rem 1rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.lb-react-custom-option:hover,
.lb-react-custom-option:focus-visible {
    outline: 0;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.lb-react-custom-option.active {
    background: #ff6b35;
    color: #0b0b0c;
    font-weight: 900;
}

.lb-react-custom-empty {
    padding: 0.75rem 1rem;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 700;
}

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

.lb-react-dropdown {
    position: relative;
}

.lb-react-difficulty {
    position: relative;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 2.6rem 0.55rem 1rem;
    border: 1px solid #262b35;
    border-radius: 16px;
    background: #1a1d23;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lb-react-difficulty:hover,
.lb-react-difficulty:focus-within {
    border-color: rgba(255, 107, 53, 0.45);
}

.lb-react-difficulty::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    transition: border-color 0.2s ease;
}

.lb-react-difficulty:hover::after,
.lb-react-difficulty:focus-within::after {
    border-color: #ff6b35;
}

.lb-react-difficulty span {
    color: #6b7280;
    white-space: nowrap;
    pointer-events: none;
}

.lb-react-difficulty select {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    min-width: 74px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f3f4f6;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: none;
}

.rebuilt-dashboard-panel .lb-react-difficulty select#leaderboardDifficultySelect {
    width: auto !important;
    min-width: 74px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #f3f4f6 !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.lb-react-difficulty select option {
    background: #1a1d23;
    color: #f3f4f6;
}

.lb-react-dropdown-trigger {
    width: 256px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border: 1px solid #262b35;
    border-radius: 16px;
    background: #1a1d23;
    color: #f3f4f6;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lb-react-dropdown-trigger:hover {
    border-color: rgba(255, 107, 53, 0.45);
}

.lb-react-dropdown-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.lb-react-dropdown-left svg {
    color: #ff6b35;
}

.lb-react-dropdown-arrow {
    color: #6b7280;
    transition: transform 0.2s ease;
}

.lb-react-dropdown-arrow.is-open {
    transform: rotate(180deg);
}

.lb-react-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 30;
    width: 288px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
    border-radius: 18px;
    border: 1px solid #262b35;
    background: #1a1d23;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lb-react-dropdown-menu::-webkit-scrollbar {
    display: none;
}

.lb-react-menu-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 800;
}

.lb-react-menu-item small {
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.lb-react-menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.lb-react-menu-item.active {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.06);
}

.lb-react-menu-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.85);
}

.lb-react-submodes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lb-react-submodes-label {
    padding: 0.38rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.35);
    color: #6b7280;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lb-react-submodes-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lb-react-submode-btn {
    padding: 0.72rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #16191e;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.lb-react-submode-btn:hover {
    color: #e5e7eb;
    border-color: #262b35;
}

.lb-react-submode-btn.active {
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.08);
    box-shadow: 0 16px 30px rgba(124, 45, 18, 0.12);
}

.lb-react-status {
    max-width: 1280px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #d1d5db;
    font-size: 0.84rem;
}

.lb-react-status.is-error {
    background: rgba(220, 38, 38, 0.15);
    color: #fecaca;
}

.lb-react-status.is-success {
    background: rgba(22, 163, 74, 0.14);
    color: #bbf7d0;
}

.lb-react-podium {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.24fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 4rem;
}

.lb-react-podium-card {
    position: relative;
    border: 1px solid #262b35;
    border-radius: 30px;
    background: #1a1d23;
    text-align: center;
    padding: 1.75rem 1.5rem 1.6rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.lb-react-podium-card:hover {
    transform: translateY(-5px);
    border-color: #3b404d;
}

.lb-react-podium-card--first {
    width: 100%;
    max-width: 30rem;
    justify-self: center;
    padding: 2.7rem 2rem 2rem;
    border-width: 2px;
    border-color: rgba(255, 107, 53, 0.48);
    border-radius: 40px;
    transform: scale(1.1);
    box-shadow: 0 20px 60px -15px rgba(255, 107, 53, 0.3);
}

.lb-react-podium-card--first:hover {
    transform: scale(1.12);
}

.lb-react-podium-card--left {
    order: 1;
}

.lb-react-podium-card--center {
    order: 2;
}

.lb-react-podium-card--right {
    order: 3;
}

.lb-react-podium-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.lb-react-podium-badge--silver {
    background: #9ca3af;
    color: #0b0d11;
}

.lb-react-podium-badge--gold {
    top: -20px;
    padding: 0.55rem 1.35rem;
    background: linear-gradient(90deg, #eab308, #ea580c);
    color: #ffffff;
}

.lb-react-podium-badge--bronze {
    background: #cd7f32;
    color: #ffffff;
}

.lb-react-podium-avatar-wrap {
    position: relative;
    margin: 0 auto 1rem;
    width: fit-content;
}

.lb-react-podium-glow {
    position: absolute;
    inset: -16px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.22);
    filter: blur(24px);
    animation: lb-react-pulse 2.2s ease-in-out infinite;
}

.lb-react-avatar {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #ffffff;
    font-weight: 900;
}

.lb-react-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-react-avatar--podium {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 2px solid rgba(156, 163, 175, 0.5);
    padding: 4px;
}

.lb-react-avatar--first {
    width: 112px;
    height: 112px;
    border-width: 4px;
    border-radius: 32px;
    border-color: #ff6b35;
    padding: 6px;
}

.lb-react-avatar--third {
    border-color: rgba(205, 127, 50, 0.45);
}

.lb-react-avatar--row {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #262b35;
}

.lb-react-avatar--bottom {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.lb-react-podium-rank {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
}

.lb-react-podium-rank--gold {
    width: 36px;
    height: 36px;
    right: -10px;
    bottom: -10px;
    background: #ff6b35;
    color: #ffffff;
    border: 4px solid #1a1d23;
}

.lb-react-podium-rank--silver {
    background: #9ca3af;
    color: #0b0d11;
}

.lb-react-podium-rank--bronze {
    background: #cd7f32;
    color: #ffffff;
}

.lb-react-podium-name {
    margin: 0.65rem 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: #e5e7eb;
}

.lb-react-podium-card--first .lb-react-podium-name {
    font-size: 1.55rem;
    color: #ffffff;
}

.lb-react-podium-score {
    display: block;
    color: #9ca3af;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: Consolas, monospace;
}

.lb-react-podium-card--first .lb-react-podium-score {
    color: #ff6b35;
    font-size: 2.6rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.45);
}

.lb-react-podium-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.lb-react-podium-card--first .lb-react-podium-meta {
    margin-top: 1.3rem;
    gap: 1.5rem;
    color: #9ca3af;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
}

.lb-react-podium-meta span,
.lb-react-inline-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lb-react-meta-icon,
.lb-react-badge-icon,
.lb-react-gap-icon,
.lb-react-trend-icon {
    flex: 0 0 auto;
}

.lb-react-table-card {
    border: 1px solid rgba(31, 41, 55, 0.7);
    border-radius: 32px;
    background: #16191e;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lb-react-table-scroll {
    overflow-x: auto;
}

.lb-react-table {
    min-width: 1080px;
}

.lb-react-table-head,
.lb-react-row {
    display: grid;
    grid-template-columns: 110px minmax(290px, 1.65fr) minmax(150px, 0.8fr) minmax(190px, 0.9fr) minmax(220px, 1fr);
    align-items: center;
}

.lb-react-table-head {
    background: rgba(0, 0, 0, 0.35);
    color: #5d6470;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.lb-react-table-head > div,
.lb-react-row > div {
    padding: 1.45rem 2rem;
}

.lb-react-inline-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.lb-react-table-body {
    display: flex;
    flex-direction: column;
}

.lb-react-row {
    border-top: 1px solid rgba(31, 41, 55, 0.65);
    transition: background 0.2s ease;
}

.lb-react-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lb-react-rank-cell {
    color: #5d6470;
    font-size: 1.15rem;
    font-weight: 900;
    font-family: Consolas, monospace;
    letter-spacing: -0.04em;
}

.lb-react-row:hover .lb-react-rank-cell {
    color: #ff6b35;
}

.lb-react-player-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lb-react-player-avatar {
    position: relative;
}

.lb-react-player-status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #16191e;
}

.lb-react-player-meta strong {
    display: block;
    color: #d1d5db;
    font-size: 0.92rem;
    font-weight: 900;
}

.lb-react-row:hover .lb-react-player-meta strong {
    color: #ffffff;
}

.lb-react-player-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.lb-react-weapon-tag {
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid #262b35;
    color: #6b7280;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lb-react-premium-tag {
    color: rgba(255, 107, 53, 0.7);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lb-react-value-cell {
    color: #ff6b35;
    font-size: 1.28rem;
    font-weight: 900;
    font-family: Consolas, monospace;
    letter-spacing: -0.04em;
}

.lb-react-value-cell.is-time-mode,
.lb-react-shell.is-time-mode .lb-react-value-cell {
    color: #60a5fa;
}

.lb-react-accuracy-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lb-react-accuracy-bar {
    position: relative;
    width: 64px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #11151b;
}

.lb-react-accuracy-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ea580c, #fb923c);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

.lb-react-accuracy-cell strong {
    color: #6b7280;
    font-size: 0.72rem;
    font-family: Consolas, monospace;
    font-weight: 800;
}

.lb-react-accuracy-cell small {
    width: 100%;
    color: #4b5563;
    font-size: 0.64rem;
    font-weight: 800;
}

.lb-react-trend-cell {
    display: flex;
    justify-content: flex-start;
}

.lb-react-run-stack {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 800;
}

.lb-react-run-stack > span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.lb-react-pb-badge,
.lb-react-run-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.22rem 0.48rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 900;
}

.lb-react-pb-badge {
    color: #0f172a;
    background: #facc15;
}

.lb-react-run-note {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.lb-react-run-stack small {
    color: #6b7280;
    font-size: 0.62rem;
    font-weight: 700;
}

.lb-react-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.38rem 0.55rem;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 900;
}

.lb-react-trend--up {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.lb-react-trend--down {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.lb-react-trend--none {
    padding: 0;
    background: transparent;
    color: #1f2937;
}

.lb-react-empty {
    padding: 2.5rem 2rem;
    text-align: center;
    color: #9ca3af;
}

.lb-react-empty h3 {
    margin: 0 0 0.5rem;
    color: #f3f4f6;
}

.lb-react-bottom {
    position: sticky;
    bottom: 1.5rem;
    z-index: 10;
    margin-top: 2.5rem;
    padding: 1.25rem;
    border-radius: 28px;
    border: 1px solid rgba(251, 146, 60, 0.28);
    background: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
}

.lb-react-bottom.is-friends {
    background: #2563eb;
    border-color: rgba(96, 165, 250, 0.35);
}

.lb-react-bottom-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lb-react-bottom-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lb-react-bottom-rank span,
.lb-react-bottom-stat span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lb-react-bottom-rank strong,
.lb-react-bottom-stat strong {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 900;
    font-family: Consolas, monospace;
    letter-spacing: -0.06em;
}

.lb-react-bottom-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-react-bottom-avatar-wrap {
    position: relative;
    padding-top: 0.35rem;
    padding-left: 0.35rem;
}

.lb-react-bottom-pro {
    position: absolute;
    left: -0.45rem;
    top: -0.35rem;
    z-index: 2;
    padding: 0.18rem 0.38rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b0d11;
    color: #ffffff;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.lb-react-bottom-copy p {
    margin: 0;
}

.lb-react-bottom-copy p:first-child {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.lb-react-bottom-copy p:last-child {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lb-react-bottom-stats {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-react-bottom-stat {
    text-align: center;
}

.lb-react-table-head__hide-sm,
.lb-react-table-head__hide-md {
    display: block;
}

@keyframes lb-react-pulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@media (max-width: 1200px) {
    .lb-react-podium {
        gap: 1rem;
    }

    .lb-react-podium-card--first {
        transform: scale(1.03);
    }

    .lb-react-podium-card--first:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 1024px) {
    .lb-react-shell {
        padding: 1.25rem;
    }

    .lb-react-header {
        flex-direction: column;
    }

    .lb-react-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .lb-react-podium {
        grid-template-columns: 1fr;
        align-items: stretch;
        margin-bottom: 2.5rem;
    }

    .lb-react-podium {
        grid-template-columns: 1fr;
    }

    .lb-react-podium-card--left {
        order: 2;
    }

    .lb-react-podium-card--center {
        order: 1;
    }

    .lb-react-podium-card--right {
        order: 3;
    }

    .lb-react-podium-card,
    .lb-react-podium-card--first,
    .lb-react-podium-card--first:hover {
        transform: none;
    }

    .lb-react-bottom {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .lb-react-bottom-stats {
        justify-content: space-between;
    }

    .lb-react-filter-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .lb-react-custom-dropdown--collection,
    .lb-react-custom-dropdown:last-child {
        grid-column: span 2;
    }

    .lb-react-custom-dropdown:nth-child(2n) .lb-react-custom-trigger {
        border-right: 0;
    }

    .lb-react-custom-dropdown--collection .lb-react-custom-trigger,
    .lb-react-custom-dropdown:last-child .lb-react-custom-trigger {
        border-right: 0;
    }

    .lb-react-custom-dropdown:nth-child(-n+3) .lb-react-custom-trigger {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .lb-react-shell {
        padding: 1rem 0.75rem 1.25rem;
    }

    .lb-react-title-wrap {
        align-items: flex-start;
    }

    .lb-react-trophy {
        width: 54px;
        height: 54px;
    }

    .lb-react-title {
        font-size: 1.6rem;
        flex-wrap: wrap;
    }

    .lb-react-actions,
    .lb-react-mode-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lb-react-scope,
    .lb-react-search,
    .lb-react-filter-grid,
    .lb-react-custom-dropdown,
    .lb-react-custom-trigger,
    .lb-react-custom-menu,
    .lb-react-difficulty,
    .lb-react-dropdown-trigger,
    .lb-react-dropdown,
    .lb-react-dropdown-menu {
        width: 100%;
    }

    .lb-react-filter-grid {
        grid-template-columns: 1fr;
    }

    .lb-react-custom-dropdown--collection,
    .lb-react-custom-dropdown:last-child {
        grid-column: auto;
    }

    .lb-react-custom-dropdown .lb-react-custom-trigger {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .lb-react-custom-dropdown:last-child .lb-react-custom-trigger {
        border-bottom: 0;
    }

    .lb-react-table-head > div,
    .lb-react-row > div {
        padding: 1.1rem 1rem;
    }

    .lb-react-bottom-main,
    .lb-react-bottom-user,
    .lb-react-bottom-stats {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
        border-left: 0;
    }

    .lb-react-bottom-rank {
        align-items: flex-start;
    }

    .lb-react-table-head__hide-sm,
    .lb-react-table-head__hide-md {
        display: none;
    }
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

@keyframes hexagonShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* 详细统计信息 */
.detailed-stats {
    margin-top: 3rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stats-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
}

.stats-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* 武器统计样式 */
.weapon-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.weapon-stat-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.weapon-stat-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.weapon-name {
    font-weight: 500;
    color: var(--text-primary);
}

.weapon-kills {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.weapon-accuracy {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

/* 地图统计样式 */
.map-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-stat-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.map-stat-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.map-name {
    font-weight: 500;
    color: var(--text-primary);
}

.map-wins {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.map-winrate {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

/* 训练进度样式 */
.training-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    min-width: 80px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b35);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progressShine 2s ease-in-out infinite;
}

.progress-text {
    min-width: 40px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    font-size: 0.875rem;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* 六边形详细弹窗 */
.hexagon-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hexagon-detail-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.hexagon-detail-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

.hexagon-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 16px 16px 0 0;
}

.hexagon-detail-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hexagon-detail-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    flex: 1;
}

.hexagon-detail-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon-detail-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.hexagon-detail-body {
    padding: 2rem;
}

.hexagon-detail-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.hexagon-detail-value::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 107, 53, 0.1),
        transparent
    );
    animation: modalShine 3s ease-in-out infinite;
}

.hexagon-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.detail-stat-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.detail-stat-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-stat-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* 弹窗动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

@keyframes modalShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(0%) translateY(0%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hexagon-grid {
        max-width: 400px;
        height: 400px;
    }
    
    .hexagon {
        width: 120px;
        height: 120px;
    }
    
    .hexagon-center {
        width: 140px;
        height: 140px;
    }
    
    .hexagon-1 {
        top: 20px;
    }
    
    .hexagon-2 {
        right: 60px;
        top: 100px;
    }
    
    .hexagon-3 {
        right: 30px;
        bottom: 100px;
    }
    
    .hexagon-4 {
        bottom: 20px;
    }
    
    .hexagon-5 {
        left: 30px;
        bottom: 100px;
    }
    
    .hexagon-6 {
        left: 60px;
        top: 100px;
    }
    
    .hexagon-icon {
        font-size: 1.5rem;
    }
    
    .hexagon-value {
        font-size: 1rem;
    }
    
    .hexagon-center .hexagon-value {
        font-size: 1.25rem;
    }
    
    .hexagon-label {
        font-size: 0.625rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* 设置部分 */
.settings-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.settings-nav {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 1rem;
}

.settings-nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.938rem;
}

.settings-nav-item svg {
    opacity: 0.7;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.settings-nav-item.active svg {
    opacity: 1;
}

.settings-content-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-panel.active {
    display: block;
}

.settings-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-card-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.settings-card-title-group p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.settings-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-form-group.full-width {
    grid-column: 1 / -1;
}

.settings-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.settings-input, .settings-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.938rem;
    transition: all 0.3s ease;
}

.settings-input:focus, .settings-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.settings-info-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.25rem;
    border-radius: 4px 12px 12px 4px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.settings-info-box svg {
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.settings-info-box p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* VIP Status Card Specifics */
.vip-status-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.vip-status-icon-large {
    width: 64px;
    height: 64px;
    background: #ffd700;
    color: #000;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.2);
}

.vip-status-info-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.vip-status-info-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        position: static;
        padding: 0.5rem;
    }
    
    .settings-nav-item {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.setting-item input[type="range"] {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.setting-item select {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 筛选器 */
.stats-filter {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: 280px;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .servers-grid,
    .weapons-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }
    
    .panel-container {
        --panel-gutter: 1rem;
        padding: 1rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .servers-grid,
    .weapons-grid,
    .training-modes,
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .settings-sections {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        display: none;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.25rem;
    }
    
    .panel-header h2 {
        font-size: 1.5rem;
    }
    
    .sidebar {
        width: 260px;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* =============================================
   社区面板样式
   ============================================= */

.community-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.community-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
    font-weight: 500;
}

.community-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.community-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.community-panel {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.community-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* 帖子列表 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.post-item.hot {
    border-color: rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 107, 53, 0.05));
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.post-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.follow-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.follow-btn.following {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.hot-badge {
    background: linear-gradient(135deg, #ff6b35, #ff9558);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-content {
    margin-bottom: 1rem;
}

.post-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat svg {
    transition: color 0.3s ease;
}

.stat:hover svg {
    color: var(--primary-color);
}

/* =============================================
   排行榜样式
   ============================================= */

.leaderboard-filters {
    display: flex;
    gap: 1rem;
}

.leaderboard-mode,
.leaderboard-region {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.leaderboard-mode:focus,
.leaderboard-region:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-weight: 600;
}

.leaderboard-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 排行榜领奖台 (Podium) */
.leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.podium-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 200px;
}

.podium-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.podium-item.rank-1 {
    width: 240px;
    padding: 2.5rem 2rem;
    border-color: #ffd700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), var(--bg-secondary));
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
}

.podium-item.rank-2 {
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.1), var(--bg-secondary));
    border-color: #c0c0c0;
}

.podium-item.rank-3 {
    background: linear-gradient(145deg, rgba(205, 127, 50, 0.1), var(--bg-secondary));
    border-color: #cd7f32;
}

.podium-rank {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rank-1 .podium-rank { background: #ffd700; color: #000; }
.rank-2 .podium-rank { background: #c0c0c0; color: #000; }
.rank-3 .podium-rank { background: #cd7f32; color: #fff; }

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid transparent;
}

.rank-1 .podium-avatar { width: 100px; height: 100px; border-color: #ffd700; }
.rank-2 .podium-avatar { border-color: #c0c0c0; }
.rank-3 .podium-avatar { border-color: #cd7f32; }

.podium-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.podium-stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.rebuilt-sub-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.rebuilt-sub-panel.active {
    display: block;
}

.leaderboard-table {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px 100px 100px;
    background: var(--bg-tertiary);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.leaderboard-body {
    background: var(--bg-secondary);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px 100px 100px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard-row:hover {
    background: rgba(255, 107, 53, 0.08);
    transform: scale(1.005);
    z-index: 1;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row.your-rank {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.15), transparent);
    border-left: 4px solid var(--primary-color);
}

.rank-col {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.rank-medal {
    font-size: 1.5rem;
}

.player-col {
    display: flex;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-avatar.you {
    background: var(--bg-tertiary);
    border: 2px solid var(--primary-color);
}

.player-details {
    flex: 1;
}

.player-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.player-level {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.score-col {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.25rem;
    text-align: right;
    padding-right: 1.5rem;
}

.stats-col, .accuracy-col {
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.trend-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend {
    font-size: 0.813rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.trend.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.trend.stable {
    color: var(--text-secondary);
    background: rgba(160, 160, 160, 0.15);
}

.region-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.region-tag.asia {
    background: rgba(255, 107, 53, 0.15);
    color: #ff8a5b;
}

.region-tag.europe {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.region-tag.america {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 响应式设计 - 社区和排行榜 */
@media (max-width: 768px) {
    .community-tabs,
    .leaderboard-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .community-tab,
    .leaderboard-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .post-item {
        padding: 1rem;
    }
    
    .post-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .post-stats {
        gap: 1rem;
        font-size: 0.75rem;
    }
    
    .leaderboard-filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 80px 60px 60px 60px;
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .player-avatar {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* =============================================
   主页样式
   ============================================= */

.welcome-section {
    margin-bottom: 3rem;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #ff9558);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.user-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.user-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.info-card.premium {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 149, 88, 0.05));
    border-color: rgba(255, 107, 53, 0.3);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.player-avatar-card {
    position: relative;
    overflow: hidden;
}

.player-avatar-card--image {
    background: transparent;
}

.player-avatar-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.player-avatar-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-avatar-card {
    position: relative;
    overflow: hidden;
}

.player-avatar-card--image {
    background: transparent;
}

.player-avatar-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.player-avatar-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card.premium .card-icon {
    background: linear-gradient(135deg, #ff6b35, #ff9558);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.user-details,
.membership-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-item .value {
    color: var(--text-primary);
    font-weight: 600;
}

.steam-profile-link {
    color: #7fd0ff;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.steam-profile-link:hover {
    color: #a9e1ff;
    text-decoration: underline;
}

.steam-profile-link--disabled {
    color: var(--text-secondary);
    pointer-events: none;
    text-decoration: none;
    opacity: 0.85;
}

.premium-badge {
    background: linear-gradient(135deg, #ff6b35, #ff9558);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.membership-card {
    display: block;
}

.membership-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.membership-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.membership-card__title-group h3 {
    margin: 0;
}

.membership-card__title-group p {
    margin: 0.4rem 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.membership-card__details {
    gap: 0.75rem;
}

.membership-card__item {
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.membership-card__item .label {
    flex-shrink: 0;
    min-width: 4.5rem;
}

.membership-card__value {
    text-align: right;
    line-height: 1.5;
    word-break: break-word;
}

.membership-card__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.membership-card__cta {
    min-width: 132px;
    justify-content: center;
}

.membership-card__history-link {
    min-width: 132px;
    justify-content: center;
}

.vip-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.vip-quick-links .btn {
    min-width: 148px;
    justify-content: center;
}

.stats-overview-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 53, 0.22), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        rgba(17, 22, 33, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.stats-kicker,
.stats-section-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.12);
    color: #ffb08d;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stats-hero-copy h3 {
    margin: 0.9rem 0 0.7rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.stats-hero-copy p {
    max-width: 48rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

.stats-hero-trend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
    align-items: center;
}

.trend-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.trend-pill--up {
    background: rgba(52, 211, 153, 0.12);
    color: #7ef1c8;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.trend-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stats-score-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.35rem;
    border-radius: 20px;
    background: rgba(8, 12, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stats-score-label {
    color: var(--text-secondary);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stats-score-value {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

.stats-score-meta {
    display: grid;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.stats-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stats-metric-card,
.stats-spotlight-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
        rgba(17, 22, 33, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.stats-metric-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.15rem;
}

.stats-metric-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.24), rgba(255, 149, 88, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stats-metric-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.stats-metric-label {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.stats-metric-value {
    font-size: 1.7rem;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

.stats-metric-meta {
    color: var(--text-secondary);
    font-size: 0.83rem;
    line-height: 1.55;
}

.stats-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stats-spotlight-card {
    padding: 1.2rem;
}

.stats-spotlight-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stats-spotlight-header h4 {
    margin: 0.55rem 0 0;
    font-size: 1.08rem;
    color: var(--text-primary);
}

.stats-section-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.stats-ranked-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stats-ranked-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-ranked-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.stats-ranked-name {
    color: var(--text-primary);
    font-weight: 700;
}

.stats-ranked-sub {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.stats-ranked-value {
    font-weight: 800;
    color: #ffd7c2;
}

.stats-spotlight-card--progress .training-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.progress-label {
    color: var(--text-primary);
    font-weight: 600;
}

.progress-bar {
    height: 0.7rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff6b35, #ff9d67);
    box-shadow: 0 0 24px rgba(255, 107, 53, 0.3);
}

.progress-text {
    color: #ffd7c2;
    font-weight: 700;
    font-size: 0.84rem;
}

@media (max-width: 1180px) {
    .stats-metric-grid,
    .stats-spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .stats-hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .stats-metric-grid,
    .stats-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .stats-hero-card,
    .stats-metric-card,
    .stats-spotlight-card {
        padding: 1rem;
    }

    .stats-spotlight-header,
    .stats-hero-trend {
        flex-direction: column;
        align-items: flex-start;
    }
}

.membership-card {
    display: block;
}

.membership-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.membership-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.membership-card__title-group h3 {
    margin: 0;
}

.membership-card__title-group p {
    margin: 0.4rem 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.membership-card__details {
    gap: 0.75rem;
}

.membership-card__item {
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.membership-card__item .label {
    flex-shrink: 0;
    min-width: 4.5rem;
}

.membership-card__value {
    text-align: right;
    line-height: 1.5;
    word-break: break-word;
}

.latest-updates-section {
    margin-top: 2rem;
}

.home-news-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-dashboard-view[hidden],
.news-center-view[hidden] {
    display: none !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.update-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.update {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.card-badge.news {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.card-badge.event {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.card-badge.tip {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.card-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.news-center-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.news-center-back {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-center-back:hover {
    color: var(--text-primary);
    transform: translateX(-2px);
}

.news-center-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.news-center-hero h2 {
    margin: 0.35rem 0 0.5rem;
    font-size: 2.25rem;
    letter-spacing: -0.04em;
}

.news-center-hero p {
    margin: 0;
    color: var(--text-secondary);
}

.news-center-hero__eyebrow {
    color: #ff8a4c;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.news-center-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    flex-wrap: wrap;
}

.news-center-tab {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-center-tab:hover,
.news-center-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #ff9558);
    transform: translateY(-1px);
}

.news-center-list {
    display: grid;
    gap: 1rem;
}

.news-center-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.news-center-item:hover {
    border-color: rgba(255, 149, 88, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.news-center-item__main {
    min-width: 0;
    flex: 1;
}

.news-center-item__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.news-center-item__date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.news-center-item__title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.news-center-item__desc {
    margin: 0.6rem 0 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.news-center-item__side {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.news-center-item__author-block span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.news-center-item__author-block strong {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.news-center-item__action {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 149, 88, 0.22);
    background: rgba(255, 107, 53, 0.08);
    color: #ff9558;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-center-item__action:hover {
    background: rgba(255, 107, 53, 0.16);
    border-color: rgba(255, 149, 88, 0.42);
    color: #fff;
}

.news-center-empty,
.news-center-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.015);
    text-align: center;
}

.news-center-footer {
    padding: 1.25rem 1rem;
}

.news-center-footer p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .welcome-header h1 {
        font-size: 2rem;
    }
    
    .user-info-cards {
        grid-template-columns: 1fr;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }

    .news-center-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .news-center-item {
        flex-direction: column;
        align-items: stretch;
    }

    .news-center-item__side {
        padding-left: 0;
        padding-top: 1rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: space-between;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* =============================================
   主页样式
   ============================================= */

.welcome-section {
    margin-bottom: 3rem;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #ff9558);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.user-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.user-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.info-card.premium {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 149, 88, 0.05));
    border-color: rgba(255, 107, 53, 0.3);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card.premium .card-icon {
    background: linear-gradient(135deg, #ff6b35, #ff9558);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.user-details,
.membership-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-item .value {
    color: var(--text-primary);
    font-weight: 600;
}

.steam-profile-link {
    color: #7fd0ff;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.steam-profile-link:hover {
    color: #a9e1ff;
    text-decoration: underline;
}

.steam-profile-link--disabled {
    color: var(--text-secondary);
    pointer-events: none;
    text-decoration: none;
    opacity: 0.85;
}

.premium-badge {
    background: linear-gradient(135deg, #ff6b35, #ff9558);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.latest-updates-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.update-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.update {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.card-badge.news {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.card-badge.event {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.card-badge.tip {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.card-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .welcome-header h1 {
        font-size: 2rem;
    }
    
    .user-info-cards {
        grid-template-columns: 1fr;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* =============================================
   社区和排行榜模态框样式
   ============================================= */

.create-post-modal,
.post-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.create-post-modal.show,
.post-detail-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.create-post-content,
.post-detail-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

.create-post-header,
.post-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 16px 16px 0 0;
}

.create-post-header h3,
.post-detail-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.create-post-body,
.post-detail-body {
    padding: 1.5rem;
}

.create-post-body .form-group {
    margin-bottom: 1.5rem;
}

.create-post-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.create-post-body input,
.create-post-body textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.create-post-body input:focus,
.create-post-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.create-post-body textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.post-full-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* 响应式设计 - 模态框 */
@media (max-width: 768px) {
    .create-post-content,
    .post-detail-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem auto;
    }
    
    .create-post-header,
    .post-detail-header {
        padding: 1rem;
    }
    
    .create-post-body,
    .post-detail-body {
        padding: 1rem;
    }
    
    .form-actions,
    .post-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn,
    .post-actions .btn {
        width: 100%;
    }
}

/* =============================================
   指令控制界面样式
   ============================================= */

/* 指令搜索过滤 */
.command-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-search-input {
    width: 250px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.command-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 指令分类标签 */
.command-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.command-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.command-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.command-tab.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* 指令内容区域 */
.command-content {
    position: relative;
}

.command-category {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.command-category.active {
    display: block;
}

/* 指令子区域 */
.command-subsection {
    margin-bottom: 1.5rem;
}

.command-subsection h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 指令网格 */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.command-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.command-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.command-btn:hover::before {
    left: 100%;
}

.command-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* 服务器配置样式 */
.config-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-config-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.config-input,
.config-select {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-input:focus,
.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 4px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.config-input:hover,
.config-select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}



/* 地图选择器样式 */
.map-selector {
    width: 100%;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.map-option {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.map-option:hover::before {
    opacity: 1;
}

.map-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.map-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.map-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-option:hover img {
    transform: scale(1.05);
}

.map-placeholder {
    display: none;
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.map-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.map-option:hover .map-name {
    color: var(--primary-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模式选择器样式 */
.mode-selector {
    width: 100%;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-option {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.mode-option:hover::before {
    opacity: 1;
}

.mode-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.mode-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mode-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mode-option:hover .mode-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mode-info {
    flex: 1;
}

.mode-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mode-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 菜单系统样式 */
.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.menu-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.config-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.config-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开关按钮样式 - 美化版本 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.toggle-btn:active::after {
    width: 150px;
    height: 150px;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* 配置提示样式 */
.config-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* 武器选择器样式 */
.weapon-selector {
    margin-bottom: 1.5rem;
}

.current-weapon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weapon-slot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.weapon-slot label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weapon-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weapon-actions {
    display: flex;
    gap: 1rem;
}

.weapon-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-panel.hidden {
    display: none;
}

.weapon-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.weapon-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 138, 91, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

.weapon-card:hover::before {
    opacity: 1;
}

.weapon-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 138, 91, 0.1));
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.weapon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.weapon-icon {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover .weapon-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.weapon-name {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 地图预览样式 */
.map-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}



.bot-creation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spinner-down,
.spinner-up {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spinner-down:hover,
.spinner-up:hover {
    background: var(--primary-color);
    color: white;
}

.spinner-down {
    border-right: 1px solid var(--border-color);
}

.spinner-up {
    border-left: 1px solid var(--border-color);
}

.input-spinner input {
    border: none;
    text-align: center;
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 特殊功能样式 */
.beam-preview,
.glow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover::before {
    transform: translateX(100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 指令输入组 */
.command-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-btn-group input,
.input-btn-group select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-btn-group input:focus,
.input-btn-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-btn-group button {
    padding: 0.5rem 1rem;
    min-width: 60px;
}

/* 指令开关组 */
.command-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.command-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.command-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 - 指令界面 */
@media (max-width: 768px) {
    .command-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-search-input {
        width: 100%;
    }
    
    .command-tabs {
        gap: 0.25rem;
    }
    
    .command-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .command-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* =============================================
   命令提示Toast样式
   ============================================= */

.command-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.command-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.command-toast-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.command-toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.command-toast-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* 响应式设计 - Toast */
@media (max-width: 768px) {
    .command-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #4caf50;
}

.notification.error .notification-icon {
    background: #f44336;
}

.notification.info .notification-icon {
    background: #2196f3;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}


/* 游戏设置行（地图+模式+应用按钮） */
.game-settings-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-settings-row .config-item {
    flex: 1;
    min-width: 180px;
}

.game-settings-row .btn {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0 1.5rem;
}

.game-settings-row .config-select {
    width: 100%;
}

@media (max-width: 600px) {
    .game-settings-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .game-settings-row .config-item {
        min-width: 100%;
    }
    
    .game-settings-row .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==================== 自定义美化下拉框 ==================== */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-select-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--primary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.select-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.select-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.select-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.select-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* 下拉选项列表 */
.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.open .custom-select-options {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
}

/* 选项样式 */
.select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.select-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), transparent);
}

.select-option:hover::before {
    transform: scaleY(1);
}

.select-option.selected {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.05));
}

.select-option.selected::before {
    transform: scaleY(1);
}

.select-option.selected::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.option-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.select-option:hover .option-icon {
    transform: scale(1.1);
}

.option-emoji {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.select-option:hover .option-emoji {
    transform: scale(1.2);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.option-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* 滚动条美化 */
.custom-select-options {
    scrollbar-width: thin;
    scrollbar-color: var(--ui-scrollbar-thumb) var(--ui-scrollbar-track);
}

.custom-select-options::-webkit-scrollbar {
    width: var(--ui-scrollbar-size-thin);
}

.custom-select-options::-webkit-scrollbar-track {
    background: var(--ui-scrollbar-track);
    border-radius: 999px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ui-scrollbar-thumb), rgba(255, 107, 53, 0.24));
    border-radius: 999px;
    border: 1px solid var(--ui-scrollbar-thumb-border);
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--ui-scrollbar-thumb-hover), rgba(255, 107, 53, 0.36));
}

/* 选项进入动画 */
.custom-select.open .select-option {
    animation: optionSlideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
}

.custom-select.open .select-option:nth-child(1) { animation-delay: 0.02s; }
.custom-select.open .select-option:nth-child(2) { animation-delay: 0.04s; }
.custom-select.open .select-option:nth-child(3) { animation-delay: 0.06s; }
.custom-select.open .select-option:nth-child(4) { animation-delay: 0.08s; }
.custom-select.open .select-option:nth-child(5) { animation-delay: 0.1s; }
.custom-select.open .select-option:nth-child(6) { animation-delay: 0.12s; }
.custom-select.open .select-option:nth-child(7) { animation-delay: 0.14s; }
.custom-select.open .select-option:nth-child(8) { animation-delay: 0.16s; }
.custom-select.open .select-option:nth-child(9) { animation-delay: 0.18s; }
.custom-select.open .select-option:nth-child(10) { animation-delay: 0.2s; }

@keyframes optionSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式 */
@media (max-width: 600px) {
    .custom-select-options {
        max-height: 250px;
    }
    
    .option-desc {
        display: none;
    }
}


/* 简洁版下拉框 */
.custom-select.simple .custom-select-trigger {
    padding: 0.625rem 1rem;
}

/* 透明版下拉框 */
.custom-select.transparent .custom-select-trigger {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
}

.custom-select.transparent .custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary-color);
}

.custom-select.simple .select-option {
    padding: 0.625rem 1rem;
}

.custom-select.simple .select-option span {
    color: var(--text-primary);
    font-size: 0.875rem;
}


/* ==================== 苹果风格滑块开关 ==================== */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    cursor: pointer;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(120, 120, 128, 0.32);
    border-radius: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.toggle-switch:active .toggle-slider::before {
    width: 28px;
}

.toggle-switch input:checked + .toggle-slider:active::before {
    transform: translateX(18px);
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    user-select: none;
    transition: color 0.3s ease;
    margin-left: 0.5rem;
}

.toggle-container:has(input:checked) .toggle-label {
    color: var(--primary-color);
    font-weight: 500;
}

/* 隐藏旧的toggle-btn按钮 */
.toggle-btn {
    display: none !important;
}


/* 服务器控制检查页面 */
.server-control-check {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
}

.check-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.check-icon {
    font-size: 4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.check-container h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.check-container p {
    color: var(--text-secondary);
    margin: 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.check-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-height: 20px;
}

.check-status.error {
    color: #ef4444;
}

.check-status.success {
    color: #4ade80;
}

.server-control-content {
    display: block;
}

.server-control-content.hidden {
    display: none;
}


/* 刷新检测按钮 */
#refreshCheckBtn {
    transition: all 0.3s ease;
}

#refreshCheckBtn:hover:not([disabled]) {
    transform: translateY(-2px);
}

#refreshCheckBtn[disabled] {
    cursor: not-allowed;
}

#refreshCheckBtn svg {
    transition: transform 0.3s ease;
}

#refreshCheckBtn:hover:not([disabled]) svg {
    transform: rotate(180deg);
}

/* VIP激活区域样式 */
.vip-status-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.vip-status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vip-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.vip-icon.activated {
    background: linear-gradient(135deg, #00c851 0%, #00a844 100%);
}

.vip-icon.expired {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.vip-status-info {
    flex: 1;
}

.vip-status-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.vip-status-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.vip-activate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vip-activate-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vip-activate-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.vip-input {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.vip-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.vip-input::placeholder {
    color: var(--text-muted);
}

.vip-activate-form .btn {
    margin-top: 0.5rem;
}

.vip-result {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.vip-result.success {
    color: #00c851;
}

.vip-result.error {
    color: #ff4444;
}

.vip-activated-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 200, 81, 0.1);
    border: 1px solid rgba(0, 200, 81, 0.3);
    border-radius: 8px;
}

.vip-activated-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vip-activated-info .info-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.vip-activated-info .info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.vip-activated-info .info-value.highlight {
    color: #00c851;
}

/* ==================== Dashboard Leaderboard V2 ==================== */
.lb-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lb-panel .leaderboard-podium,
.lb-panel .leaderboard-content {
    display: none;
}

.lb-hero,
.lb-mode-panel,
.lb-table-card,
.lb-self-card {
    background: linear-gradient(180deg, rgba(22, 25, 30, 0.96), rgba(18, 20, 26, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.lb-hero,
.lb-mode-panel,
.lb-self-card {
    padding: 1.5rem;
}

.lb-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lb-hero__intro,
.lb-hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lb-hero__icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.24);
}

.lb-hero__icon.is-friends {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.24);
}

.lb-hero__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.lb-hero__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.lb-season,
.lb-current-mode,
.lb-submode-label,
.lb-self-rank span,
.lb-self-stat span {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.lb-season {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-scope-toggle {
    display: inline-flex;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.lb-scope-btn,
.lb-submode-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lb-scope-btn {
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    font-weight: 700;
}

.lb-scope-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #ff8a5b);
}

.lb-search {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.lb-search input,
.lb-mode-select select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

.lb-mode-panel {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.lb-mode-select {
    width: min(320px, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lb-mode-select label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lb-mode-select select {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-submode-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    min-width: 260px;
}

.lb-submode-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.lb-submode-btn {
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

.lb-submode-btn.active {
    color: #ffb28f;
    border-color: rgba(255, 107, 53, 0.35);
    background: rgba(255, 107, 53, 0.08);
}

.lb-feedback {
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.lb-feedback.is-error {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.26);
    background: rgba(127, 29, 29, 0.22);
}

.lb-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.lb-podium-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 29, 35, 0.98), rgba(18, 20, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-podium-card--first {
    border-color: rgba(255, 107, 53, 0.42);
    box-shadow: 0 18px 40px rgba(255, 107, 53, 0.18);
}

.lb-podium-card__badge {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.lb-podium-card h3,
.lb-self-user__title {
    margin: 0.6rem 0 0.25rem;
    color: var(--text-primary);
}

.lb-podium-card strong,
.lb-self-rank strong,
.lb-self-stat strong {
    color: #fff;
    font-size: 1.6rem;
}

.lb-podium-card__meta {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.lb-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(96, 165, 250, 0.2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    overflow: hidden;
}

.lb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-avatar--podium {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 26px;
}

.lb-avatar--self {
    width: 56px;
    height: 56px;
}

.lb-table-card {
    padding: 0;
    overflow: hidden;
}

.lb-table-scroll {
    overflow-x: auto;
}

.lb-table {
    min-width: 760px;
}

.lb-table__head,
.lb-row {
    display: grid;
    grid-template-columns: 120px minmax(240px, 1.5fr) minmax(160px, 1fr) minmax(140px, 0.8fr) 120px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
}

.lb-table__head {
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lb-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-row.is-placeholder {
    opacity: 0.78;
}

.lb-row__rank,
.lb-row__value {
    font-weight: 800;
    color: var(--text-primary);
}

.lb-row__player {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lb-row__player-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lb-row__player-meta strong {
    color: var(--text-primary);
}

.lb-row__player-meta span,
.lb-row__accuracy,
.lb-self-user__subtitle {
    color: var(--text-secondary);
}

.lb-trend {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lb-trend--up {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

.lb-trend--down {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}

.lb-trend--none {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
}

.lb-empty {
    padding: 2rem;
    text-align: center;
}

.lb-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.lb-empty h3 {
    margin-top: 1rem;
    color: var(--text-primary);
}

.lb-empty p {
    color: var(--text-secondary);
}

.lb-self-card {
    position: sticky;
    bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.92), rgba(234, 88, 12, 0.92));
    border-color: rgba(255, 255, 255, 0.16);
}

.lb-self-card__summary,
.lb-self-user,
.lb-self-card__stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lb-self-card__stats {
    margin-left: auto;
}

.lb-self-rank,
.lb-self-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lb-self-rank span,
.lb-self-stat span,
.lb-self-user__subtitle {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1024px) {
    .lb-podium {
        grid-template-columns: 1fr;
    }

    .lb-self-card {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .lb-self-card__stats {
        margin-left: 0;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .lb-hero,
    .lb-mode-panel,
    .lb-self-card {
        padding: 1.1rem;
    }

    .lb-hero__actions,
    .lb-self-card__summary,
    .lb-self-card__stats {
        width: 100%;
        flex-wrap: wrap;
    }

    .lb-search {
        width: 100%;
        min-width: 0;
    }
}

.profile-summary-card {
    overflow: hidden;
}

.profile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-summary__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-summary__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd8cb;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.22), rgba(255, 138, 91, 0.08));
    border: 1px solid rgba(255, 107, 53, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-summary__meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-summary__eyebrow {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.profile-summary__name {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-summary__note {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.profile-summary__status {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff1eb;
    background: rgba(255, 107, 53, 0.14);
    border: 1px solid rgba(255, 107, 53, 0.28);
}

.profile-status-badge--verified {
    color: #ddffef;
    background: rgba(0, 200, 81, 0.12);
    border-color: rgba(0, 200, 81, 0.32);
}

.profile-status-badge--warning {
    color: #ffe4d4;
    background: rgba(255, 171, 64, 0.12);
    border-color: rgba(255, 171, 64, 0.32);
}

.profile-status-badge--muted {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.account-section-card {
    padding-top: 1.4rem;
}

.account-section-card__header {
    margin-bottom: 0.75rem;
}

.account-section-card__header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.account-info-list {
    display: grid;
}

.account-info-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-info-row:first-child {
    padding-top: 0.25rem;
}

.account-info-row:last-child {
    padding-bottom: 0.2rem;
    border-bottom: none;
}

.account-info-row--muted .account-info-row__value {
    color: var(--text-secondary);
}

.account-info-row__meta {
    display: flex;
    align-items: flex-start;
}

.account-info-row__label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.account-info-row__content {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
}

.account-info-row__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.account-info-row__hint {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.account-info-row__link {
    text-decoration: none;
}

.account-info-row__link:hover {
    color: #ffb18d;
}

.profile-info-card__link--disabled,
.profile-info-card__link--disabled:hover {
    color: var(--text-secondary);
    cursor: default;
    pointer-events: none;
}

.feedback-center-layout {
    display: grid;
    gap: 1rem;
}

.feedback-center-card {
    min-height: 100%;
}

.feedback-note-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feedback-note-chip {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: #ffd4c2;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.18);
    font-size: 0.82rem;
}

.feedback-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.feedback-hero__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.feedback-hero__item strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.feedback-hero__item span {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.6;
}

.feedback-quota-hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feedback-center-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .support-panel {
        right: 0;
    }

    .profile-info-grid,
    .feedback-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 0.75rem;
    }

    .support-panel {
        position: fixed;
        top: auto;
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        width: auto;
        max-height: min(70vh, 480px);
        overflow-y: auto;
    }

    .profile-summary {
        align-items: flex-start;
    }

    .profile-summary__identity {
        width: 100%;
    }

    .profile-summary__status {
        width: 100%;
    }

    .account-info-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

.messages-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.92fr);
    gap: 1.3rem;
    margin-bottom: 1.3rem;
    padding: 1.65rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top left, rgba(255, 107, 53, 0.28), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 183, 77, 0.12), transparent 28%),
        linear-gradient(155deg, rgba(17, 20, 28, 0.97), rgba(8, 11, 18, 0.96));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.messages-hero__content {
    display: grid;
    gap: 0.95rem;
    align-content: start;
}

.messages-hero__content h2 {
    margin: 0.35rem 0 0;
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.messages-hero__content p,
.message-detail__empty p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.messages-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd6c7;
    border: 1px solid rgba(255, 107, 53, 0.28);
    background: rgba(255, 107, 53, 0.12);
}

.messages-hero__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.messages-signal-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.68rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 181, 141, 0.18);
    background: rgba(255, 107, 53, 0.1);
    color: #ffe0d1;
    font-size: 0.82rem;
    line-height: 1.5;
}

.messages-signal-chip--muted {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.messages-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.messages-stat-card {
    display: grid;
    gap: 0.5rem;
    padding: 1.05rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.messages-stat-card span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.messages-stat-card strong {
    font-size: 1.7rem;
    color: var(--text-primary);
}

.messages-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.98fr) minmax(420px, 1.08fr);
    gap: 1.25rem;
    align-items: start;
}

.messages-layout--minimal {
    grid-template-columns: minmax(340px, 0.92fr) minmax(420px, 1.08fr);
    gap: 1rem;
}

.messages-list-shell,
.message-detail-shell {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.94), rgba(8, 11, 18, 0.91));
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.2);
}

body.message-center-open {
    overflow: hidden;
}

body.message-center-open .dashboard-container {
    filter: blur(14px) saturate(0.82);
    transform: scale(0.992);
    pointer-events: none;
    user-select: none;
    transition: filter 0.22s ease, transform 0.22s ease;
}

body.message-popup-open {
    overflow: hidden;
}

body.message-popup-open .dashboard-container {
    filter: blur(14px) saturate(0.84);
    transform: scale(0.994);
    pointer-events: none;
    user-select: none;
    transition: filter 0.22s ease, transform 0.22s ease;
}

.message-center-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(3, 5, 10, 0.55);
    backdrop-filter: blur(10px);
    z-index: 1150;
}

.message-center-window {
    position: relative;
    width: min(1320px, 100%);
    max-height: calc(100vh - 2.4rem);
    overflow: auto;
    padding: 0.2rem;
}

.message-center-window--minimal {
    width: min(1120px, 100%);
    max-height: calc(100vh - 3rem);
    padding: 0;
}

.message-center-window__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}

.messages-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.2rem 0;
}

.messages-filter-group {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.messages-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.62rem 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.messages-filter-btn.active,
.messages-filter-btn:hover {
    color: #fff;
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.14);
}

.messages-list-headline {
    padding: 1rem 1.2rem 0.2rem;
}

.messages-list-headline strong {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.messages-list-headline p {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.7;
}

.messages-list {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.2rem 1.2rem;
}

.message-list-section {
    display: grid;
    gap: 0.8rem;
}

.message-list-section__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.message-list-section__title::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.9);
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.1);
}

.message-card {
    display: grid;
    gap: 0.78rem;
    position: relative;
    overflow: hidden;
    padding: 1.02rem 1.06rem 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.message-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.message-card:hover,
.message-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 53, 0.28);
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.14), rgba(255, 255, 255, 0.03));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.message-card--priority-high::before,
.message-card.is-unread::before {
    background: linear-gradient(180deg, #ff6b35, #ff9d63);
}

.message-card--priority-low::before {
    background: rgba(134, 239, 172, 0.7);
}

.message-card__meta,
.message-detail__meta,
.message-popup-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.message-card__title,
.message-detail__title {
    margin: 0;
    color: var(--text-primary);
}

.message-card__excerpt,
.message-detail__content,
.message-popup-content {
    color: var(--text-secondary);
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-card__footer,
.message-detail__actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
}

.message-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.message-pill--priority-high,
.message-pill--status-unread,
.message-pill--delivery-popup {
    color: #ffd6c7;
    border-color: rgba(255, 107, 53, 0.28);
    background: rgba(255, 107, 53, 0.12);
}

.message-pill--status-ack {
    color: #fff0b3;
    border-color: rgba(245, 186, 57, 0.26);
    background: rgba(245, 186, 57, 0.12);
}

.message-pill--status-read {
    color: #c6f6d5;
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.11);
}

.message-detail-shell {
    min-height: 560px;
    padding: 1.3rem;
}

.message-detail__empty {
    display: grid;
    gap: 0.8rem;
    align-content: center;
    min-height: 100%;
    justify-items: center;
    text-align: center;
}

.message-detail__empty strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.message-detail__body {
    display: grid;
    gap: 1rem;
}

.message-detail__banner {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.message-detail__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.message-fact {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.message-fact span {
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.message-fact strong {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.message-detail__content {
    padding: 1.1rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.message-detail__gate-note {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(245, 186, 57, 0.26);
    background: rgba(245, 186, 57, 0.1);
    color: #fff0b3;
    line-height: 1.7;
    font-size: 0.84rem;
}

.messages-empty {
    padding: 1.25rem;
    border-radius: 16px;
    color: var(--text-secondary);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

body.message-gate-active {
    overflow: hidden;
}

body.message-gate-active .dashboard-container {
    opacity: 0.12;
    filter: blur(18px) saturate(0.78);
    pointer-events: none;
    user-select: none;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.message-popup-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top center, rgba(255, 107, 53, 0.12), transparent 35%),
        rgba(3, 5, 10, 0.88);
    z-index: 1200;
}

.message-popup-modal.show {
    display: flex;
}

.message-popup-modal[data-mode="notice"] {
    background:
        radial-gradient(circle at top center, rgba(148, 163, 184, 0.1), transparent 35%),
        rgba(3, 5, 10, 0.78);
}

.message-popup-card {
    position: relative;
    width: min(760px, 100%);
    padding: 1.55rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(circle at top left, rgba(255, 107, 53, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(15, 17, 23, 0.985), rgba(10, 12, 18, 0.975));
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.52);
}

.message-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.message-popup-close:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.message-popup-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.message-popup-card__header h3 {
    margin: 0.5rem 0 0;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.message-popup-progress {
    margin-top: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.message-popup-callout {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 107, 53, 0.22);
    background: rgba(255, 107, 53, 0.1);
    color: #ffe0d1;
    line-height: 1.7;
    font-size: 0.88rem;
}

.message-popup-content {
    margin: 1rem 0 1.2rem;
    max-height: min(44vh, 380px);
    overflow-y: auto;
    padding: 1rem 0.1rem 0.2rem 0;
}

.message-popup-error {
    margin-top: 0.25rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.1);
    color: #fecaca;
    line-height: 1.65;
}

.message-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.message-popup-dismiss-btn {
    min-width: 132px;
}

.message-popup-ack-btn {
    min-width: 240px;
}

.message-popup-modal[data-mode="gate"] .message-popup-close,
.message-popup-modal[data-mode="gate"] .message-popup-dismiss-btn {
    display: none;
}

.message-popup-modal[data-mode="notice"] .message-popup-card {
    width: min(640px, 100%);
    border-color: rgba(148, 163, 184, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 38%),
        linear-gradient(180deg, rgba(14, 19, 31, 0.985), rgba(8, 12, 22, 0.975));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
}

.message-popup-modal[data-mode="notice"] .message-popup-progress {
    color: rgba(203, 213, 225, 0.82);
}

.message-popup-modal[data-mode="notice"] .message-popup-callout {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.08);
    color: rgba(226, 232, 240, 0.96);
}

.message-popup-modal[data-mode="notice"] .message-popup-ack-btn {
    display: none;
}

.message-popup-modal[data-mode="notice"] .message-popup-actions {
    justify-content: space-between;
}

.message-popup-modal[data-mode="notice"] .message-popup-dismiss-btn,
.message-popup-modal[data-mode="notice"] .message-popup-close {
    display: inline-flex;
}

@media (max-width: 1024px) {
    .messages-hero,
    .messages-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .messages-hero__stats,
    .message-detail__facts {
        grid-template-columns: 1fr;
    }

    .messages-toolbar,
    .message-popup-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .message-popup-card {
        width: min(100%, 100%);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        padding: 1.2rem;
    }

    .message-center-window {
        max-height: calc(100vh - 1.2rem);
    }

    .message-center-window__close {
        top: 1rem;
        right: 1rem;
    }

    .message-popup-ack-btn {
        min-width: 0;
        width: 100%;
    }

    .message-popup-dismiss-btn {
        width: 100%;
    }
}

body.news-detail-open {
    overflow: hidden;
}

body.news-detail-open .dashboard-container {
    filter: blur(12px) saturate(0.82);
    transform: scale(0.993);
    pointer-events: none;
    user-select: none;
    transition: filter 0.22s ease, transform 0.22s ease;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #111111;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

.update-card {
    cursor: pointer;
}

.news-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1180;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.news-detail-modal[hidden] {
    display: none !important;
}

.news-detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.news-detail-card {
    position: relative;
    width: min(100%, 68rem);
    min-height: 620px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: #151515;
    box-shadow: 0 42px 108px rgba(0, 0, 0, 0.62);
    animation: newsDetailEnter 0.2s ease;
}

.news-detail-card__accent {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #ea580c 0%, #fb923c 100%);
}

.news-detail-card__body {
    padding: 2.65rem;
    min-height: 616px;
    display: flex;
    flex-direction: column;
}

.news-detail-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.news-detail-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.news-detail-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #1f2937;
    color: #9ca3af;
    border: 1px solid #374151;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-detail-title {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.18;
    font-weight: 800;
}

.news-detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6b7280;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.news-detail-close:hover {
    background: #1f2937;
    color: #ffffff;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1.3rem;
    margin-bottom: 1.95rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.6);
    color: #6b7280;
    font-size: 0.82rem;
}

.news-detail-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-detail-meta__item svg {
    width: 14px;
    height: 14px;
}

.news-detail-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.85rem;
    margin-bottom: 1.95rem;
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.95;
}

.news-detail-content p {
    margin: 0;
}

.news-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: auto;
}

.news-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 54px;
    padding: 1rem 1.3rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
    font-size: 0.92rem;
    font-weight: 800;
}

.news-detail-btn:active {
    transform: scale(0.98);
}

.news-detail-btn--secondary {
    background: #1f2937;
    color: #ffffff;
}

.news-detail-btn--secondary:hover {
    background: #374151;
}

.news-detail-btn--primary {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(124, 45, 18, 0.28);
}

.news-detail-btn--primary:hover {
    background: #f97316;
    box-shadow: 0 20px 40px rgba(124, 45, 18, 0.36);
}

.news-detail-btn--primary svg {
    width: 14px;
    height: 14px;
}

.message-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.message-popup-modal.show {
    display: flex;
}

.message-popup-card {
    position: relative;
    width: min(100%, 25rem);
    padding: 2rem 2rem 1.75rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: #1a1a1a;
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.15);
    animation: messagePopupEnter 0.3s ease;
    text-align: center;
}

.message-popup-modal[data-mode="notice"] .message-popup-card {
    border-color: rgba(55, 65, 81, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.message-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #6b7280;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.message-popup-close:hover {
    background: rgba(31, 41, 55, 0.9);
    color: #ffffff;
}

.message-popup-modal[data-mode="gate"] .message-popup-close,
.message-popup-modal[data-mode="gate"] .message-popup-dismiss-btn {
    display: none;
}

.message-popup-corner-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.6rem;
    color: #1f2937;
}

.message-popup-corner-icon svg {
    width: 12px;
    height: 12px;
}

.message-popup-signal {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

.message-popup-signal__ring,
.message-popup-signal__core {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.message-popup-signal__ring {
    background: rgba(249, 115, 22, 0.2);
    animation: messagePulse 1.8s ease-out infinite;
}

.message-popup-signal__core {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.message-popup-signal__core svg {
    width: 32px;
    height: 32px;
}

.message-popup-label {
    margin-bottom: 0.65rem;
    color: #f97316;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.message-popup-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.message-popup-divider {
    width: 48px;
    height: 4px;
    margin: 1rem auto 1rem;
    border-radius: 999px;
    background: #ea580c;
}

.message-popup-progress {
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.message-popup-meta {
    justify-content: center;
    margin-bottom: 0.9rem;
}

.message-popup-callout {
    margin: 0 0 1rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.92rem;
    line-height: 1.8;
}

.message-popup-content {
    margin: 0 0 1.5rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0;
    color: #9ca3af;
    font-size: 0.92rem;
    line-height: 1.8;
}

.message-popup-error {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.22);
    background: rgba(127, 29, 29, 0.26);
    color: #fecaca;
    text-align: left;
}

.message-popup-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.message-popup-dismiss-btn,
.message-popup-ack-btn {
    min-width: 100%;
    min-height: 56px;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 900;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.message-popup-dismiss-btn:active,
.message-popup-ack-btn:active {
    transform: scale(0.98);
}

.message-popup-dismiss-btn {
    background: #1f2937;
    border-color: #374151;
    color: #ffffff;
}

.message-popup-dismiss-btn:hover {
    background: #374151;
}

.message-popup-ack-btn {
    background: #ea580c;
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 24px 42px rgba(124, 45, 18, 0.42);
}

.message-popup-ack-btn:hover {
    background: #f97316;
    box-shadow: 0 28px 48px rgba(124, 45, 18, 0.54);
}

.message-popup-ack-btn[disabled] {
    background: rgba(234, 88, 12, 0.55);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.message-popup-branding {
    margin: 0.9rem 0 0;
    color: #4b5563;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.message-popup-modal[data-mode="notice"] .message-popup-signal__ring {
    background: rgba(148, 163, 184, 0.16);
}

.message-popup-modal[data-mode="notice"] .message-popup-signal__core {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

.message-popup-modal[data-mode="notice"] .message-popup-label {
    color: #cbd5e1;
}

.message-popup-modal[data-mode="notice"] .message-popup-divider {
    background: #64748b;
}

.message-popup-modal[data-mode="notice"] .message-popup-dismiss-btn {
    min-width: 100%;
}

@keyframes messagePulse {
    0% {
        transform: scale(0.92);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.16);
        opacity: 0;
    }
    100% {
        transform: scale(1.16);
        opacity: 0;
    }
}

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

@keyframes newsDetailEnter {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .news-detail-card__body,
    .message-popup-card {
        padding: 1.2rem;
    }

    .news-detail-actions {
        grid-template-columns: 1fr;
    }

    .news-detail-card {
        width: min(100%, 100%);
    }

    .news-detail-content {
        max-height: 360px;
    }

    .message-popup-title {
        font-size: 1.28rem;
    }

    .message-popup-signal {
        margin-bottom: 1.2rem;
    }
}
