/* 股票筛选系统 - 现代化样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 登录页面样式 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-container {
    z-index: 10;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 90vw;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.login-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
}

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

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

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-btn i {
    margin-right: 8px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.error-message i {
    margin-right: 8px;
}

.test-accounts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.test-accounts h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.test-accounts h3 i {
    margin-right: 8px;
    color: #667eea;
}

.accounts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.account-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    color: #666;
    font-family: 'Courier New', monospace;
}

/* 背景动画 */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 控制面板样式 */
.dashboard-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.logo h1 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-text {
    color: #666;
    font-weight: 500;
}

.welcome-text i {
    margin-right: 8px;
    color: #667eea;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.logout-btn i {
    margin-right: 8px;
}

.dashboard-main {
    padding: 40px 20px;
}

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

.dashboard-title {
    text-align: center;
    margin-bottom: 50px;
}

.dashboard-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.dashboard-title h2 i {
    margin-right: 15px;
    color: #667eea;
}

.dashboard-title p {
    font-size: 1.2rem;
    color: #666;
}

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

.function-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header i {
    font-size: 2rem;
    color: #667eea;
}

.card-header h3 {
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
}

.card-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #e8f2ff;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-tag i {
    margin-right: 5px;
}

.execute-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.execute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.execute-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.execute-btn.external {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.execute-btn.external:hover {
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.execute-btn i {
    margin-right: 8px;
}

/* 状态面板 */
.status-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

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

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.status-header h3 {
    color: #333;
    font-size: 1.3rem;
}

.status-header h3 i {
    margin-right: 10px;
    color: #667eea;
}

.close-status {
    background: #f8f9fa;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.close-status:hover {
    background: #e9ecef;
    color: #333;
}

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

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.status-item span {
    color: #333;
    font-size: 1rem;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.status-badge.running {
    background: #fff3cd;
    color: #856404;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
}

/* 停止按钮样式 */
.stop-btn {
    background: linear-gradient(135deg, #ff4d4f 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

.stop-btn:disabled {
    background: #ffb3b5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.output-header h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.output-header h4 i {
    margin-right: 8px;
    color: #667eea;
}

.toggle-output {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
}

.toggle-output:hover {
    background: #e9ecef;
    color: #333;
}

.toggle-output i {
    transition: transform 0.3s ease;
}

.toggle-output.expanded i {
    transform: rotate(180deg);
}

.output-container {
    background: #1e1e1e;
    color: #00ff00;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.output-container.collapsed {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    border: none;
}

.output-line {
    margin-bottom: 5px;
    word-wrap: break-word;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.loading i {
    margin-right: 10px;
    color: #667eea;
}

/* 结果查看 */
.results-section {
    text-align: center;
    margin-top: 40px;
}

.results-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(23, 162, 184, 0.3);
}

.results-btn i {
    margin-right: 10px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

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

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

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    font-size: 1.4rem;
}

.modal-header h3 i {
    margin-right: 10px;
    color: #667eea;
}

.close-modal {
    background: #f8f9fa;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 结果标签页 */
.results-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    gap: 5px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

/* 结果摘要 */
.results-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

/* 股票列表 */
.results-list {
    max-height: 400px;
    overflow-y: auto;
}

.stock-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stock-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.stock-code {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.metric-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.metric-value.positive {
    color: #28a745;
}

.metric-value.negative {
    color: #dc3545;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #c33;
    margin-bottom: 15px;
}

.error-message i {
    margin-right: 8px;
}

/* 通知系统 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.notification {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #667eea;
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

.notification.warning i {
    color: #ffc107;
}

.notification-text {
    flex: 1;
    color: #333;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .functions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-title h2 {
        font-size: 2rem;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .status-info {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .notification {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 20px 10px;
    }
    
    .function-card {
        padding: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* 状态面板增强样式 */
.completion-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
    border-left: 4px solid #2e7d32;
}

.error-message {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
    border-left: 4px solid #c62828;
}

/* 按钮状态样式 */
.btn-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-warning::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border: none;
    color: white;
}

/* 输出容器样式增强 */
.output-line {
    padding: 5px 10px;
    margin: 2px 0;
    border-radius: 4px;
    background: rgba(248, 249, 250, 0.8);
    border-left: 3px solid #007bff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    transition: background-color 0.3s ease;
}

.output-line:hover {
    background: rgba(248, 249, 250, 1);
}

/* 日志输出样式 - 支持不同级别的颜色 */
.log-container {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.log-entry {
    margin: 2px 0;
    padding: 2px 0;
    word-wrap: break-word;
    white-space: pre-wrap;
    display: flex;
    align-items: baseline;
}

/* 日志级别颜色 - 深色背景适配 */
.log-info {
    color: #61dafb;  /* 浅蓝色 - 信息 */
}

.log-success {
    color: #98fb98;  /* 浅绿色 - 成功 */
}

.log-warning {
    color: #ffd700;  /* 金黄色 - 警告 */
}

.log-error {
    color: #ff6b6b;  /* 浅红色 - 错误 */
    font-weight: bold;
}

.log-debug {
    color: #dda0dd;  /* 浅紫色 - 调试 */
}

/* 日志时间戳样式 */
.log-timestamp {
    color: #888;
    font-size: 11px;
    margin-right: 8px;
    min-width: 60px;
    flex-shrink: 0;
}

.log-level {
    font-weight: bold;
    margin-right: 8px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.log-level.info {
    background: rgba(97, 218, 251, 0.2);
    color: #61dafb;
    border: 1px solid rgba(97, 218, 251, 0.3);
}

.log-level.success {
    background: rgba(152, 251, 152, 0.2);
    color: #98fb98;
    border: 1px solid rgba(152, 251, 152, 0.3);
}

.log-level.warning {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.log-level.error {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.log-level.debug {
    background: rgba(221, 160, 221, 0.2);
    color: #dda0dd;
    border: 1px solid rgba(221, 160, 221, 0.3);
}

.log-message {
    flex: 1;
    word-break: break-word;
}

/* 浅色主题日志样式（可选） */
.log-container.light-theme {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.light-theme .log-info {
    color: #0066cc;
}

.light-theme .log-success {
    color: #28a745;
}

.light-theme .log-warning {
    color: #856404;
}

.light-theme .log-error {
    color: #dc3545;
}

.light-theme .log-debug {
    color: #6f42c1;
}

.light-theme .log-timestamp {
    color: #6c757d;
}

/* 脚本执行状态样式 */
.status-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.status-label {
    font-weight: 600;
    color: #555;
}

.status-value {
    color: #333;
}

.status-running {
    color: #ffc107;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.status-completed {
    color: #28a745;
    font-weight: bold;
}

.status-error {
    color: #dc3545;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 进度条样式 */
.progress-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar.running {
    background: linear-gradient(90deg, #ffc107 0%, #ff8c00 100%);
    animation: progressShine 2s infinite;
}

.progress-bar.completed {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.progress-bar.error {
    background: linear-gradient(90deg, #dc3545 0%, #e74c3c 100%);
}

@keyframes progressShine {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* 按钮状态样式增强 */
.execute-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

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

.execute-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.execute-btn.executing {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    position: relative;
}

.execute-btn.executing::before {
    content: '执行中...';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

.execute-btn.executing::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

.log-container::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    color: white;
    font-size: 20px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .log-container {
        font-size: 12px;
        padding: 10px;
        max-height: 300px;
    }
    
    .status-panel {
        padding: 15px;
    }
    
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .log-entry {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .log-timestamp,
    .log-level {
        margin-bottom: 2px;
    }
}

/* 日志自动滚动指示器 */
.log-auto-scroll {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.log-auto-scroll:hover {
    background: rgba(0, 0, 0, 0.9);
}

.log-auto-scroll.active {
    background: #28a745;
}

/* 股票信息增强显示 */
.stock-extra-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.ma-info {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    border: 1px solid #dee2e6;
}

/* 网络状态指示器 */
.network-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1000;
    transition: all 0.3s ease;
}

.network-status.online {
    background: #4CAF50;
    color: white;
}

.network-status.offline {
    background: #f44336;
    color: white;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* 响应式改进 */
@media (max-width: 768px) {
    .status-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        border-radius: 0;
        margin: 0;
    }
    
    .output-container {
        max-height: calc(100vh - 200px);
    }
}

/* 模态框居中显示和遮罩层 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

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

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

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

/* 优化的股票信息显示 */
.result-category {
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.category-header h4 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.stocks-container {
    padding: 20px;
    background: #fafafa;
}

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

.stock-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stock-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f4;
}

.stock-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #007bff;
    font-size: 1rem;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.stock-name {
    font-weight: 600;
    color: #343a40;
    font-size: 0.95rem;
}

.stock-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #343a40;
}

.change-percent {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.change-percent.positive {
    color: #dc3545;
    background: #f8d7da;
}

.change-percent.negative {
    color: #28a745;
    background: #d4edda;
}

.change-percent.neutral {
    color: #6c757d;
    background: #e2e3e5;
}

.volume-info,
.range-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.volume-label,
.range-label {
    color: #6c757d;
    font-weight: 500;
}

.volume-value,
.range-value {
    color: #495057;
    font-weight: 600;
}

/* 结果统计信息 */
.result-meta {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #90caf9;
}

.stock-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1976d2;
}

.update-time {
    color: #424242;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .stocks-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .price-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .stocks-container {
        padding: 15px;
    }
    
    .stock-item {
        padding: 12px;
    }
}

/* 结果显示样式 */
.result-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.result-section.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.result-section.empty {
    border-left-color: #6c757d;
    background: #f8f9fa;
}

.result-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.stock-count {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.update-time {
    color: #888;
}

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

.stock-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.stock-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.stock-code {
    font-weight: bold;
    color: #007bff;
    font-size: 0.9rem;
}

.stock-name {
    color: #333;
    font-size: 0.85rem;
    margin: 2px 0;
}

.stock-price {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}

.more-stocks {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 6px;
}

.error-message {
    color: #dc3545;
    background: #fff5f5;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

.empty-message {
    color: #6c757d;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading i {
    margin-right: 8px;
    color: #007bff;
}