/**
 * 公共样式
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* ==================== 容器 ==================== */

/* 默认容器 - 用于大部分页面 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px 40px 60px;
}

/* 列表容器 - 与默认容器保持一致 */
.list-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px 40px 60px;
}

/* 宽容器 - 用于表格等需要更多空间的页面 */
.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 60px 40px 60px;
}

/* ==================== 顶部导航栏 ==================== */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.top-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 5px;
    flex: 1;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.nav-link.active {
    background: rgba(255,255,255,0.25);
    color: white;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 50px;
}

/* ==================== 移动端汉堡菜单 ==================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-nav-drawer.show {
    left: 0;
}

.mobile-nav-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-brand {
    font-size: 18px;
    font-weight: bold;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.15);
}

.mobile-nav-links {
    padding: 20px 0;
}

.mobile-nav-link {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
}

.mobile-nav-link.active {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}

.mobile-nav-section {
    margin-top: 10px;
}

.mobile-nav-section-title {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-user-info {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.mobile-user-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.mobile-user-role {
    font-size: 12px;
    color: #666;
}

.nav-brand {
    margin-right: 20px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-brand:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.brand-text {
    display: inline-block;
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 发光效果 */
.brand-text::after {
    content: '神算Ai量化';
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(4px);
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

/* ==================== 移除旧的头部样式 ==================== */

.header {
    display: none;
}

/* ==================== 移除旧的导航菜单 ==================== */

.nav-menu {
    display: none;
}

/* ==================== 卡片 ==================== */

.card {
    background: white;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 12px;
    font-size: 1.4em;
}

.card h3 {
    color: #555;
    margin: 15px 0 10px 0;
    font-size: 1.1em;
}

/* 列表卡片 - 用于推荐、板块、自选股等列表项 */
.list-card {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 18px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-left-color: #5a67d8;
}

.list-card.hot {
    border-left-color: #f56c6c;
}

.list-card.hot:hover {
    border-left-color: #ff4d4f;
}

/* ==================== 表单 ==================== */

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    height: 42px;
    background: white;
}

.input-group textarea {
    height: auto;
    min-height: 80px;
}

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* ==================== 按钮组件 ==================== */

/* 基础按钮 */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #d9d9d9;
}

/* 小按钮 */
.btn-small {
    min-width: 70px;  /* 最小宽度70px，内容多时自动扩展 */
    padding: 5px 12px;
    font-size: 14px;
    margin-right: 5px;
    text-align: center;
    white-space: nowrap;
}

.btn-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #d9d9d9;
}

/* 图标按钮 */
.btn-icon {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

/* 颜色变体 */
.btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.btn-primary:disabled {
    background: #d9d9d9;
    color: #999;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #f5222d 100%);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff7875 0%, #ff4d4f 100%);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}

.btn-danger:disabled {
    background: #d9d9d9;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffc53d 0%, #faad14 100%);
    box-shadow: 0 4px 12px rgba(250, 173, 20, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #909399 0%, #606266 100%);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(144, 147, 153, 0.4);
}

.btn-secondary:disabled {
    background: #d9d9d9;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-default {
    background: white;
    color: #333;
    border: 1px solid #d9d9d9;
}

.btn-default:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #40a9ff;
    color: #40a9ff;
}

.btn-cancel {
    background: white;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-cancel:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #40a9ff;
    color: #40a9ff;
}

.btn-cancel:disabled {
    background: #f5f5f5;
    color: #d9d9d9;
}

/* 特殊按钮 */
.btn-switch {
    margin-top: 10px;
    width: 100%;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-switch:hover:not(:disabled) {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
}

.btn-switch:disabled {
    background: #d9d9d9;
    color: #999;
    cursor: not-allowed;
}

/* ==================== 表格 ==================== */

/* ==================== 响应式表格 ==================== */

/* 桌面端表格 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px; /* 确保表格最小宽度 */
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f5f7fa;
    color: #333;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:hover {
    background: #f9f9f9;
}

/* 移动端卡片视图 */
.mobile-card-view {
    display: none;
}

.mobile-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.mobile-card-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

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

.mobile-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.mobile-card-item {
    display: flex;
    flex-direction: column;
}

.mobile-card-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.mobile-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.mobile-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 移动端表格滚动提示 */
.table-scroll-hint {
    display: none;
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* ==================== 移动端触摸优化 ==================== */

/* 触摸友好的按钮尺寸 */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px;
        touch-action: manipulation; /* 防止双击缩放 */
    }
    
    .btn-small {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* 触摸友好的链接 */
    .nav-link,
    .mobile-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* 触摸友好的表单元素 */
    .input-group input,
    .input-group select,
    .input-group textarea {
        min-height: 44px;
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 12px 16px;
    }
}

/* ==================== 下拉刷新 ==================== */

.pull-to-refresh {
    position: relative;
    overflow: hidden;
}

.pull-to-refresh-indicator {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

.pull-to-refresh-indicator.pulling {
    top: 10px;
}

.pull-to-refresh-indicator.refreshing {
    top: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* ==================== 长按菜单 ==================== */

.long-press-menu {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 2000;
    min-width: 150px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s ease;
}

.long-press-menu.show {
    opacity: 1;
    transform: scale(1);
}

.long-press-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
}

.long-press-menu-item:hover {
    background: #f8f9fa;
}

.long-press-menu-item.danger {
    color: #f56c6c;
}

.long-press-menu-item.danger:hover {
    background: #fef0f0;
}

.long-press-menu-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* ==================== 加载状态 ==================== */

.loading {
    text-align: center;
    padding: 40px;
    color: #909399;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ==================== 骨架屏 ==================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.large {
    height: 24px;
}

.skeleton-text.small {
    height: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 18px;
}

.skeleton-table-row {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.skeleton-table-cell {
    flex: 1;
    height: 20px;
}

/* 骨架屏容器 */
.skeleton-container {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.skeleton-container.loaded {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

/* 实际内容容器 */
.content-container {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-container.loaded {
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #909399;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* ==================== 页面加载优化 ==================== */

/* 页面内容平滑显示 */
.container {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== 响应式 ==================== */

/* 平板和小屏幕 (768px以下) */
@media (max-width: 768px) {
    /* ========== 移动端导航系统 ========== */
    
    /* 隐藏PC端导航链接，显示汉堡菜单 */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* 调整导航栏布局 */
    .top-nav-container {
        padding: 0 15px;
        height: 60px;
        justify-content: space-between;
    }
    
    .nav-brand {
        font-size: 16px;
        margin-right: 0;
        padding: 6px 10px;
    }
    
    .nav-actions {
        margin-left: 15px;
        order: 3;
    }
    
    /* ========== 移动端表格适配 ========== */
    
    /* 显示移动端卡片视图，隐藏表格 */
    .table-container {
        display: none;
    }
    
    .mobile-card-view {
        display: block;
    }
    
    .table-scroll-hint {
        display: block;
    }
    
    /* 如果需要显示表格，添加滚动提示 */
    .force-table-view .table-container {
        display: block;
    }
    
    .force-table-view .mobile-card-view {
        display: none;
    }
    
    /* ========== 移动端容器调整 ========== */
    
    /* 容器 - 移动端保持合理的左右间距 */
    .container,
    .list-container,
    .wide-container {
        padding: 80px 16px 20px 16px; /* 增加顶部间距适应导航栏 */
    }
    
    /* ========== 移动端卡片优化 ========== */
    
    /* 卡片 */
    .card {
        padding: 18px;
        margin-bottom: 14px;
        border-radius: 10px;
    }
    
    .card h2 {
        font-size: 1.15em;
        margin-bottom: 16px;
    }
    
    .list-card {
        padding: 18px 20px;
        margin-bottom: 14px;
    }
    
    /* ========== 移动端表单优化 ========== */
    
    /* 表单 - 触摸友好 */
    .input-group input,
    .input-group select,
    .input-group textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* ========== 移动端按钮优化 ========== */
    
    /* 按钮 - 触摸友好 */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px;
        touch-action: manipulation; /* 防止双击缩放 */
    }
    
    .btn-small {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* ========== 移动端模态框优化 ========== */
    
    /* 模态框 */
    .modal-content {
        width: 95%;
        max-width: 420px;
        margin: 20px auto;
    }
    
    /* ========== 移动端表格优化 ========== */
    
    /* 表格 */
    table {
        font-size: 13px;
    }
    
    /* ========== 移动端骨架屏优化 ========== */
    
    /* 骨架屏卡片 - 移动端全宽显示，无边距 */
    .skeleton-card {
        width: 100%;
        padding: 16px;
        margin: 0 0 12px 0;
        box-sizing: border-box;
        border-radius: 0;
    }
    
    /* 骨架屏容器 - 确保全宽，无边距 */
    .skeleton-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* 骨架屏内的元素也要响应式 */
    .skeleton-text {
        max-width: 100%;
    }
    
    /* 确保所有页面的骨架屏容器都是全宽 */
    #recommendSkeleton,
    #potentialSkeleton,
    #sectorSkeleton,
    #watchlistSkeleton,
    #tasksSkeleton,
    #usersSkeleton,
    #statsSkeleton,
    #tableSkeleton,
    #logsSkeleton {
        width: 100%;
    }
    
    #skeletonCards,
    #skeletonRows,
    #tableSkeletonContent,
    #logsSkeletonRows {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* 统计面板骨架屏 */
    .stats-grid .stat-card {
        min-width: auto;
    }
    
    /* 表格骨架屏 */
    .skeleton-table-row {
        padding: 10px 8px;
        gap: 8px;
    }

    
    table th,
    table td {
        padding: 10px 8px;
    }
    
    /* ========== 移动端用户菜单优化 ========== */
    
    /* 用户下拉菜单 */
    .user-dropdown {
        right: 0;
        min-width: 150px;
    }
    
    /* ========== 移动端筛选按钮优化 ========== */
    
    /* 指数筛选按钮 */
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
        min-height: 40px;
    }
    
    /* ========== 移动端布局优化 ========== */
    
    /* 推荐页面布局调整 */
    .main-layout {
        flex-direction: column;
    }

    .config-sidebar {
        width: 100%;
        order: 2;
    }

    .content-main {
        order: 1;
        padding: 15px;
    }
}

/* 手机小屏幕 (480px以下) */
@media (max-width: 480px) {
    /* ========== 超小屏幕优化 ========== */
    
    .nav-brand {
        font-size: 14px;
        padding: 5px 8px;
    }
    
    /* 容器 - 小屏幕进一步减少间距 */
    .container,
    .list-container,
    .wide-container {
        padding: 90px 12px 16px 12px;
    }
    
    .card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .card h2 {
        font-size: 1.05em;
    }
    
    .list-card {
        padding: 16px 18px;
    }
    
    /* 表格 */
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px 6px;
    }
    
    /* 按钮 */
    .btn {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .btn-small {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 移动端卡片内容调整 */
    .mobile-card-content {
        grid-template-columns: 1fr; /* 单列布局 */
        gap: 8px;
    }
    
    .mobile-card {
        padding: 16px;
    }
}

/* ==================== 响应式按钮文本 ==================== */

/* 默认显示桌面版文本，隐藏移动版文本 */
.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

/* 移动端显示移动版文本，隐藏桌面版文本 */
@media (max-width: 768px) {
    .btn-text-desktop {
        display: none;
    }
    
    .btn-text-mobile {
        display: inline;
    }
}

/* ==================== 移动端配置交互系统 ==================== */

/* 浮动配置按钮 - 默认隐藏，移动端显示 */
.mobile-config-fab {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.mobile-config-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.mobile-config-fab.active {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    transform: rotate(45deg);
}

/* 移动端配置抽屉 - 默认隐藏 */
.mobile-config-drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow: hidden;
}

.mobile-config-drawer.show {
    transform: translateY(0);
}

.mobile-config-drawer-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 12px auto 8px;
    cursor: pointer;
}

.mobile-config-drawer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-config-drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mobile-config-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-config-drawer-close:hover {
    background: #f5f5f5;
}

.mobile-config-drawer-content {
    padding: 0 20px 20px;
    overflow-y: auto;
    max-height: calc(70vh - 80px);
}

/* 移动端配置区域样式 */
.mobile-config-section {
    margin-bottom: 24px;
}

.mobile-config-section:last-child {
    margin-bottom: 0;
}

.mobile-config-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-config-section-icon {
    font-size: 18px;
}

/* 移动端选项样式 */
.mobile-config-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative;
    touch-action: manipulation;
}

.mobile-config-option:hover {
    border-color: #667eea;
    background: #f8fafc;
}

.mobile-config-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.mobile-config-option input {
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
    transform: scale(1.2);
}

.mobile-config-option-info {
    flex: 1;
    min-width: 0;
}

.mobile-config-option-name {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    line-height: 1.3;
}

.mobile-config-option-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
}

/* 移动端配置遮罩 */
.mobile-config-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-config-overlay.show {
    display: block;
    opacity: 1;
}

/* 移动端配置状态指示器 */
.mobile-config-status {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-config-status.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 移动端配置快捷标签 */
.mobile-config-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mobile-config-tag {
    background: #e0e7ff;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.mobile-config-tag.active {
    background: #667eea;
    color: white;
}

.long-press-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 2000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    min-width: 140px;
}

.long-press-menu.show {
    opacity: 1;
    transform: scale(1);
}

.long-press-menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    touch-action: manipulation;
}

.long-press-menu-item:last-child {
    border-bottom: none;
}

.long-press-menu-item:hover {
    background: #f8f9fa;
}

.long-press-menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ==================== 移动端响应式表格卡片 ==================== */

.mobile-card-view {
    display: none;
}

@media (max-width: 768px) {
    .mobile-card-view {
        display: block;
    }
    
    .table-scroll-hint {
        background: #e3f2fd;
        color: #1976d2;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        margin-bottom: 16px;
        text-align: center;
    }
    
    .mobile-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-card-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
    }
    
    .mobile-card-subtitle {
        font-size: 12px;
        color: #666;
    }
    
    .mobile-card-content {
        margin-bottom: 12px;
    }
    
    .mobile-card-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .mobile-card-item:last-child {
        border-bottom: none;
    }
    
    .mobile-card-label {
        font-size: 14px;
        color: #666;
        flex-shrink: 0;
        margin-right: 12px;
    }
    
    .mobile-card-value {
        font-size: 14px;
        color: #333;
        text-align: right;
        flex: 1;
    }
    
    .mobile-card-actions {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }
    
    .mobile-card-actions .btn {
        font-size: 12px;
        padding: 6px 12px;
        min-height: 32px;
    }
    
    /* 强制表格视图（用于导出等功能） */
    .force-table-view .mobile-card-view {
        display: none !important;
    }
    
    .force-table-view table {
        display: table !important;
    }
}

/* ==================== 指数筛选按钮 ==================== */

.index-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: #f5f7fa;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    color: #606266;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.filter-btn:hover {
    background: #e0e7ff;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}


/* ==================== 用户菜单 ==================== */

.user-menu {
    position: relative;
}

/* ==================== 头像组件 ==================== */

/* 基础头像样式 */
.avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

/* 头像尺寸变体 */
.avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 28px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 36px;
}

.avatar-2xl {
    width: 100px;
    height: 100px;
    font-size: 42px;
}

/* 头像颜色变体 */
.avatar-primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.avatar-success {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

.avatar-warning {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
}

.avatar-danger {
    background: linear-gradient(135deg, #f5222d 0%, #cf1322 100%);
}

.avatar-white {
    background: white;
    color: #667eea;
    border: 2px solid #e0e0e0;
}

/* 导航栏头像（保持向后兼容） */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

.user-avatar:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    z-index: 1001;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
}

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

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.user-dropdown-item:hover {
    background: linear-gradient(90deg, #f0f7ff 0%, #e6f4ff 100%);
    color: #1890ff;
}

.user-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
    margin: 4px 0;
}

/* ==================== 模态框 ==================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
    overflow-y: auto; /* 允许模态框内容滚动 */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.2s ease-out;
    position: relative;
    margin: auto; /* 确保居中 */
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #909399;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f7fa;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==================== 自定义确认框 ==================== */

.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-confirm-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    z-index: 10001;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.custom-confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #eee;
}

.custom-confirm-icon {
    font-size: 28px;
    line-height: 1;
}

.custom-confirm-icon.warning {
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.custom-confirm-icon.danger {
    filter: drop-shadow(0 2px 4px rgba(244, 67, 54, 0.3));
}

.custom-confirm-icon.info {
    filter: drop-shadow(0 2px 4px rgba(33, 150, 243, 0.3));
}

.custom-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.custom-confirm-body {
    padding: 24px;
    color: #606266;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.custom-confirm-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.custom-confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.custom-confirm-btn-cancel {
    background: #f5f7fa;
    color: #606266;
}

.custom-confirm-btn-cancel:hover {
    background: #e4e7ed;
}
.custom-confirm-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.custom-confirm-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.custom-confirm-btn-confirm.danger {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
}

.custom-confirm-btn-confirm.danger:hover {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
    .custom-confirm-box {
        min-width: 90%;
        max-width: 90%;
        margin: 0 20px;
    }
    
    .custom-confirm-header {
        padding: 20px 20px 12px 20px;
    }
    
    .custom-confirm-body {
        padding: 20px;
        font-size: 14px;
    }
    
    .custom-confirm-footer {
        padding: 12px 20px 20px 20px;
    }
}



/* ==================== 全局加载指示器 ==================== */

.global-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== 权限标识徽章（PermissionRenderer 组件） ==================== */

.permission-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 6px;
}

.permission-badge.role {
    background: #e6f7ff;
    color: #1890ff;
}

.permission-badge.user {
    background: #f6ffed;
    color: #52c41a;
}

.permission-badge.expired {
    background: #fff1f0;
    color: #ff4d4f;
}

/* ==================== 股票详情通用样式 ==================== */

/* 详情项容器 */
.detail-item {
    text-align: center;
    padding: 6px 8px;
    background: #fafbfc;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.detail-item:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
}

/* 详情标签 */
.detail-label {
    font-size: 11px;
    color: #909399;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 详情值 */
.detail-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* 详情值包装器 - 固定高度防止抖动 */
.detail-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 24px;
    position: relative;
}

/* 价格和涨跌值样式 */
.price-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    min-width: 70px;
    text-align: center;
    line-height: 24px;
    height: 24px;
    position: relative;
    font-variant-numeric: tabular-nums;  /* 等宽数字 */
    font-feature-settings: "tnum";  /* 备用方案 */
}

.change-value {
    font-size: 16px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
    line-height: 24px;
    height: 24px;
    position: relative;
    font-variant-numeric: tabular-nums;  /* 等宽数字 */
    font-feature-settings: "tnum";  /* 备用方案 */
}

/* 价格加载状态 - 使用伪元素覆盖，不改变布局 */
.price-value.loading::after,
.change-value.loading::after {
    content: '···';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #409eff;
    font-size: 18px;
    letter-spacing: 2px;
    z-index: 2;
    animation: loading-pulse 1.5s ease-in-out infinite;
}

/* 隐藏占位文本 */
.price-value.loading,
.change-value.loading {
    color: transparent;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

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


/* ========================================
   策略选择器公共样式
   ======================================== */

/* 策略选项样式 */
.strategy-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.strategy-option {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.strategy-option:hover {
    border-color: #c7d2fe;
    background: #f1f5f9;
}

.strategy-option.selected {
    border-color: #667eea;
    background: transparent;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.strategy-option input[type="radio"] {
    margin: 1px 6px 0 0;
    accent-color: #667eea;
}

.strategy-info {
    flex: 1;
    min-width: 0;
}

.strategy-name {
    font-size: 11px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.strategy-level {
    display: inline-block;
    padding: 1px 4px;
    background: #667eea;
    color: white;
    border-radius: 2px;
    font-size: 9px;
    font-weight: bold;
}

.strategy-desc {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.3;
}

/* 范围选项样式 */
.scope-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scope-option {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scope-option:hover {
    border-color: #c7d2fe;
    background: #f1f5f9;
}

.scope-option.selected {
    border-color: #667eea;
    background: transparent;
}

.scope-option input[type="checkbox"],
.sector-option input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #667eea;
}

.scope-info {
    flex: 1;
    min-width: 0;
}

.scope-name {
    font-size: 11px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 1px;
}

.scope-desc {
    font-size: 9px;
    color: #6b7280;
    line-height: 1.2;
}