/* 全局样式 */
* {
    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-color: #f8f9fa;
}

/* 容器 - 响应式宽度 */
.container {
    max-width: 1600px; /* PC端加宽，展示更多信息 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 平板端 */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
        padding: 0 15px;
    }
}

/* 小平板 */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

/* 设备类型特定的头部样式 */
.device-mobile .header .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.device-mobile .logo {
    font-size: 1.5rem;
}

.device-mobile .logo i {
    font-size: 1.7rem;
}

.device-mobile .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.device-mobile .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.device-tablet .header .container {
    flex-direction: row;
    gap: 1rem;
}

.device-tablet .logo {
    font-size: 1.6rem;
}

.device-tablet .logo i {
    font-size: 1.8rem;
}

.device-tablet .nav {
    gap: 1.5rem;
}

.device-tablet .nav-link {
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
}

/* 主要内容区域 */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

/* 搜索区域样式 */
.search-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 设备类型特定的搜索区域样式 */
.device-mobile .search-section {
    padding: 1rem;
    margin-bottom: 1rem;
}

.device-mobile .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.device-mobile .form-group input,
.device-mobile .form-group select {
    padding: 0.6rem;
    font-size: 0.9rem;
}

.device-mobile .form-actions {
    flex-direction: column;
    gap: 0.8rem;
}

.device-mobile .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.95rem;
}

.device-tablet .search-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.device-tablet .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.device-tablet .form-group input,
.device-tablet .form-group select {
    padding: 0.7rem;
    font-size: 0.95rem;
}

.device-tablet .form-actions {
    gap: 1rem;
}

.device-tablet .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
}

/* 基本面指标筛选区域样式 */
.form-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.form-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .form-section h3 {
        font-size: 1rem;
    }
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: rgba(102, 126, 234, 0.12);
    color: #4c51bf;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

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

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

/* 股票列表区域 */
.stocks-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pagination-info {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    display: inline-block;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* 股票网格 */
/* 表格容器 */
.stocks-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    width: 100%;
    overflow-x: auto;
    position: relative;
}

/* PC端滚动条样式 */
.device-desktop .stocks-table-container::-webkit-scrollbar {
    height: 8px;
}

.device-desktop .stocks-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.device-desktop .stocks-table-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.device-desktop .stocks-table-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* 平板端滚动条样式 */
.device-tablet .stocks-table-container::-webkit-scrollbar {
    height: 6px;
}

.device-tablet .stocks-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.device-tablet .stocks-table-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.device-tablet .stocks-table-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* 手机端滚动条样式和提示 */
.device-mobile .stocks-table-container {
    margin: 0 -10px;
    padding: 0 10px;
}

.device-mobile .stocks-table-container::after {
    content: '← 左右滑动查看更多 →';
    position: sticky;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(102, 126, 234, 0.1), transparent);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #667eea;
    pointer-events: none;
    display: block;
}

.device-mobile .stocks-table-container::-webkit-scrollbar {
    height: 4px;
}

.device-mobile .stocks-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.device-mobile .stocks-table-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 2px;
}

.device-mobile .stocks-table-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* 股票表格 - 根据设备类型调整 */
.stocks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

/* PC端表格样式 */
.device-desktop .stocks-table {
    min-width: 1500px;
}

/* 平板端表格样式 */
.device-tablet .stocks-table {
    min-width: 1000px;
}

/* 手机端表格样式 */
.device-mobile .stocks-table {
    min-width: 600px;
    font-size: 0.8rem;
}

/* 超大屏幕优化 */
@media (min-width: 1920px) {
    .stocks-table {
        min-width: 1600px; /* 超大屏展示更多信息 */
    }
}

.stocks-table th {
    background: #667eea;
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* PC端表格列宽度设置 */
.device-desktop .stocks-table th:nth-child(1), .device-desktop .stocks-table td:nth-child(1) { width: 8.5%; min-width: 120px; }   /* 股票名称 */
.device-desktop .stocks-table th:nth-child(2), .device-desktop .stocks-table td:nth-child(2) { width: 8%; min-width: 90px; white-space: nowrap; }   /* 代码 */
.device-desktop .stocks-table th:nth-child(3), .device-desktop .stocks-table td:nth-child(3) { width: 6.5%; min-width: 80px; } /* 行业 */
.device-desktop .stocks-table th:nth-child(4), .device-desktop .stocks-table td:nth-child(4) { width: 5%; min-width: 70px; } /* 当前价 */
.device-desktop .stocks-table th:nth-child(5), .device-desktop .stocks-table td:nth-child(5) { width: 5%; min-width: 70px; } /* 涨跌幅 */
.device-desktop .stocks-table th:nth-child(6), .device-desktop .stocks-table td:nth-child(6) { width: 5%; min-width: 65px; } /* 巴菲特 */
.device-desktop .stocks-table th:nth-child(7), .device-desktop .stocks-table td:nth-child(7) { width: 5.5%; min-width: 65px; } /* 格雷厄姆 */
.device-desktop .stocks-table th:nth-child(8), .device-desktop .stocks-table td:nth-child(8) { width: 5.5%; min-width: 65px; } /* 彼得林奇 */
.device-desktop .stocks-table th:nth-child(9), .device-desktop .stocks-table td:nth-child(9) { width: 5%; min-width: 60px; } /* 费雪 */
.device-desktop .stocks-table th:nth-child(10), .device-desktop .stocks-table td:nth-child(10) { width: 5%; min-width: 60px; } /* 芒格 */
.device-desktop .stocks-table th:nth-child(11), .device-desktop .stocks-table td:nth-child(11) { width: 5.5%; min-width: 65px; } /* 段永平 */
.device-desktop .stocks-table th:nth-child(12), .device-desktop .stocks-table td:nth-child(12) { width: 5.5%; min-width: 70px; } /* AI评分 */
.device-desktop .stocks-table th:nth-child(13), .device-desktop .stocks-table td:nth-child(13) { width: 4.5%; min-width: 60px; } /* Trump */
.device-desktop .stocks-table th:nth-child(14), .device-desktop .stocks-table td:nth-child(14) { width: 4.5%; min-width: 55px; } /* 评级 */
.device-desktop .stocks-table th:nth-child(15), .device-desktop .stocks-table td:nth-child(15) { width: 7%; min-width: 100px; } /* 建议 */
.device-desktop .stocks-table th:nth-child(16), .device-desktop .stocks-table td:nth-child(16) { width: 4%; min-width: 55px; } /* PE */
.device-desktop .stocks-table th:nth-child(17), .device-desktop .stocks-table td:nth-child(17) { width: 4%; min-width: 55px; } /* PB */
.device-desktop .stocks-table th:nth-child(18), .device-desktop .stocks-table td:nth-child(18) { width: 4.5%; min-width: 60px; } /* ROE */
.device-desktop .stocks-table th:nth-child(19), .device-desktop .stocks-table td:nth-child(19) { width: 6%; min-width: 80px; } /* 市值(亿) */
.device-desktop .stocks-table th:nth-child(20), .device-desktop .stocks-table td:nth-child(20) { width: 5%; min-width: 70px; } /* 操作 */

/* 平板端表格列宽度设置 */
.device-tablet .stocks-table th:nth-child(1), .device-tablet .stocks-table td:nth-child(1) { width: 12%; }  /* 股票名称 */
.device-tablet .stocks-table th:nth-child(2), .device-tablet .stocks-table td:nth-child(2) { width: 8%; }   /* 代码 */
.device-tablet .stocks-table th:nth-child(3), .device-tablet .stocks-table td:nth-child(3) { width: 7%; }  /* 交易所 */
.device-tablet .stocks-table th:nth-child(4), .device-tablet .stocks-table td:nth-child(4) { width: 10%; }  /* 行业 */
.device-tablet .stocks-table th:nth-child(5), .device-tablet .stocks-table td:nth-child(5) { width: 7%; }   /* 当前价 */
.device-tablet .stocks-table th:nth-child(6), .device-tablet .stocks-table td:nth-child(6) { width: 7%; }   /* 涨跌幅 */
.device-tablet .stocks-table th:nth-child(7), .device-tablet .stocks-table td:nth-child(7) { width: 7%; }   /* 巴菲特 */
.device-tablet .stocks-table th:nth-child(8), .device-tablet .stocks-table td:nth-child(8) { width: 7%; }   /* 彼得林奇 */
.device-tablet .stocks-table th:nth-child(9), .device-tablet .stocks-table td:nth-child(9) { width: 7%; }   /* AI评分 */
.device-tablet .stocks-table th:nth-child(10), .device-tablet .stocks-table td:nth-child(10) { width: 6%; }  /* 评级 */
.device-tablet .stocks-table th:nth-child(11), .device-tablet .stocks-table td:nth-child(11) { width: 8%; }  /* 建议 */
.device-tablet .stocks-table th:nth-child(12), .device-tablet .stocks-table td:nth-child(12) { width: 6%; }  /* PE */
.device-tablet .stocks-table th:nth-child(13), .device-tablet .stocks-table td:nth-child(13) { width: 6%; }  /* ROE */
.device-tablet .stocks-table th:nth-child(14), .device-tablet .stocks-table td:nth-child(14) { width: 8%; }  /* 操作 */

/* 手机端表格列宽度设置 */
.device-mobile .stocks-table th:nth-child(1), .device-mobile .stocks-table td:nth-child(1) { width: 20%; } /* 股票名称 */
.device-mobile .stocks-table th:nth-child(2), .device-mobile .stocks-table td:nth-child(2) { width: 12%; } /* 代码 */
.device-mobile .stocks-table th:nth-child(3), .device-mobile .stocks-table td:nth-child(3) { width: 12%; } /* 当前价 */
.device-mobile .stocks-table th:nth-child(4), .device-mobile .stocks-table td:nth-child(4) { width: 12%; } /* 涨跌幅 */
.device-mobile .stocks-table th:nth-child(5), .device-mobile .stocks-table td:nth-child(5) { width: 12%; } /* AI评分 */
.device-mobile .stocks-table th:nth-child(6), .device-mobile .stocks-table td:nth-child(6) { width: 12%; } /* 评级 */
.device-mobile .stocks-table th:nth-child(7), .device-mobile .stocks-table td:nth-child(7) { width: 20%; } /* 操作 */

.stocks-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 代码列特殊处理，防止换行 */
.device-desktop .stocks-table td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.stocks-table tbody tr {
    transition: background-color 0.2s;
    cursor: pointer;
}

.stocks-table tbody tr:hover {
    background-color: #f8f9ff;
}

.stocks-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格列样式 */
.stocks-table .text-center {
    text-align: center;
}

.stocks-table .text-right {
    text-align: right;
}

.stocks-table .stock-name {
    font-weight: 600;
    color: #333;
}

.stocks-table .stock-code {
    font-family: monospace;
    color: #666;
    font-size: 0.85rem;
}

.stocks-table .exchange-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stocks-table .rating-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stocks-table .rating-A { background: #4CAF50; color: white; }
.stocks-table .rating-B { background: #2196F3; color: white; }
.stocks-table .rating-C { background: #FF9800; color: white; }
.stocks-table .rating-D { background: #F44336; color: white; }

.stocks-table .recommendation-buy { color: #4CAF50; font-weight: 600; }
.stocks-table .recommendation-sell { color: #F44336; font-weight: 600; }
.stocks-table .recommendation-hold { color: #FF9800; font-weight: 600; }

/* 价格涨跌颜色 */
.stocks-table .price-up {
    color: #F44336;
    font-weight: 600;
}

.stocks-table .price-down {
    color: #4CAF50;
    font-weight: 600;
}

/* 投资大师评分样式 */
.stocks-table .master-score {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    min-width: 2.5rem;
    text-align: center;
}

.stocks-table .score-excellent {
    background: #4CAF50;
    color: white;
}

.stocks-table .score-good {
    background: #2196F3;
    color: white;
}

.stocks-table .score-fair {
    background: #FF9800;
    color: white;
}

.stocks-table .score-poor {
    background: #9E9E9E;
    color: white;
}

.stocks-table .ai-score {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    min-width: 3rem;
    text-align: center;
}

.stocks-table .numeric {
    font-family: monospace;
    text-align: right;
}

.stocks-table .btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: #667eea;
    color: white;
    transition: background-color 0.2s;
}

.stocks-table .btn-small:hover {
    background: #5a6fd8;
}

/* ========== 响应式设计 - 股票列表 ========== */

/* 大屏幕 (1440px - 1920px+) */
@media (min-width: 1440px) and (max-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .stocks-table {
        min-width: 1400px;
        font-size: 0.95rem;
    }
}

/* 中等屏幕 (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .stocks-table {
        min-width: 1200px;
        font-size: 0.9rem;
    }
    
    .stocks-table th,
    .stocks-table td {
        padding: 0.7rem 0.5rem;
    }
}

/* 平板横屏 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .stocks-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stocks-table {
        min-width: 1100px;
        font-size: 0.85rem;
    }
    
    .stocks-table th,
    .stocks-table td {
        padding: 0.6rem 0.4rem;
    }
}

/* 手机和小平板 (< 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }
    
    .stocks-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px; /* 让表格占满屏幕宽度 */
        padding: 0 10px;
    }
    
    .stocks-table {
        min-width: 900px; /* 手机端缩小最小宽度 */
        width: 100%;
        font-size: 0.75rem;
    }
    
    .stocks-table th,
    .stocks-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .stocks-table .stock-name {
        font-size: 0.8rem;
    }
    
    .stocks-table .stock-code {
        font-size: 0.7rem;
    }
    
    .stocks-table .exchange-badge,
    .stocks-table .rating-badge,
    .stocks-table .ai-score {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .stocks-table .btn-small {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .stocks-table .master-score {
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
    }
}

/* 超小屏幕 (< 480px) */
@media (max-width: 479px) {
    .stocks-table {
        min-width: 800px; /* 进一步缩小 */
    }
    
    .stocks-table th,
    .stocks-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }
    
    .stocks-table .stock-name {
        font-size: 0.75rem;
    }
}

.stock-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.stock-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stock-info h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.stock-code {
    color: #666;
    font-size: 0.9rem;
    font-family: monospace;
}

.stock-exchange {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-details {
    margin-bottom: 1rem;
}

.stock-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stock-detail-label {
    color: #666;
}

.stock-detail-value {
    color: #333;
    font-weight: 600;
}

.stock-scores {
    border-top: 1px solid #e1e5e9;
    padding-top: 1rem;
}

.scores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.scores-title {
    font-weight: 600;
    color: #333;
}

.ai-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.master-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.master-score {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.master-name {
    color: #666;
}

.master-value {
    color: #333;
    font-weight: 600;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 设备类型特定的分页样式 */
.device-mobile .pagination {
    gap: 0.3rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.device-mobile .pagination button {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: 2.5rem;
}

.device-tablet .pagination {
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.device-tablet .pagination button {
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
}

.device-desktop .pagination {
    gap: 0.5rem;
    margin-top: 2rem;
}

.device-desktop .pagination button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

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

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

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

#analysisContent {
    line-height: 1.8;
    color: #333;
}

#analysisContent h3 {
    color: #667eea;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

#analysisContent h3:first-child {
    margin-top: 0;
}

#analysisContent p {
    margin-bottom: 1rem;
    text-align: justify;
}

#analysisContent ul, #analysisContent ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#analysisContent li {
    margin-bottom: 0.5rem;
}

#analysisContent strong {
    color: #667eea;
}

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

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

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

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

.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* ========== 响应式设计 - 全局元素 ========== */

/* 手机端 (< 768px) */
@media (max-width: 767px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.7rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-section {
        padding: 1.5rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stocks-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .master-scores {
        grid-template-columns: 1fr;
    }
}

/* 平板端 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 股票详情页面样式 */
.stock-detail-page {
    max-width: 1400px; /* PC端加宽 */
    margin: 0 auto;
}

/* 详情页响应式宽度 */
@media (max-width: 1440px) {
    .stock-detail-page {
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .stock-detail-page {
        max-width: 100%;
    }
}

.stock-detail-header {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stock-detail-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stock-detail-title h1 {
    color: #333;
    font-size: 2rem;
}

.back-btn {
    background: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background: #5a6268;
    color: white;
}

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

.detail-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detail-section h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5e9;
}

.score-chart {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1rem 0;
}

.score-item {
    text-align: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.score-circle.ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.score-circle.master {
    background: #f8f9fa;
    color: #333;
    border: 3px solid #667eea;
}

.score-label {
    font-size: 0.9rem;
    color: #666;
}

/* 错误和空状态样式 */
.error-message,
.empty-message {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.error-message {
    color: #dc3545;
}

.empty-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #ccc;
}

/* 关于页面样式 */
.about-page {
    max-width: 1200px; /* PC端加宽 */
    margin: 0 auto;
}

/* 关于页响应式宽度 */
@media (max-width: 1280px) {
    .about-page {
        max-width: 1000px;
    }
}

@media (max-width: 1024px) {
    .about-page {
        max-width: 100%;
    }
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-subtitle {
    color: #666;
    font-size: 1.2rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section h2 i {
    color: #667eea;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tech-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-item ul {
    list-style: none;
    padding: 0;
}

.tech-item li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #e1e5e9;
}

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

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.master-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s;
}

.master-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.master-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.master-card p {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
}

.disclaimer p {
    color: #856404;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

/* 响应式设计 - 关于页面 */
@media (max-width: 768px) {
    .about-header h1 {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .masters-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}

/* ========== 股票详情页样式 ========== */

/* 详情头部 */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.detail-header-left .stock-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #1a237e;
}

.detail-header-left .stock-code {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* 价格面板 */
.price-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.price-main {
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.price-change {
    font-size: 1.3rem;
    font-weight: 600;
}

.price-change.price-up {
    color: #4caf50;
}

.price-change.price-down {
    color: #f44336;
}

.price-change .change-amount {
    margin-right: 1rem;
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.price-stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.price-stat-item .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.price-stat-item .value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
}

/* 区块卡片 */
.section-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #667eea;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

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

.info-item .value {
    font-weight: bold;
    color: #1a237e;
    font-size: 1.1rem;
}

/* 总体推荐徽章 */
.overall-recommend {
    margin-bottom: 2rem;
}

.recommend-badge {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recommend-badge.recommend-excellent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.recommend-badge.recommend-good {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.recommend-badge.recommend-neutral {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.recommend-badge.recommend-poor {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.recommend-level {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.recommend-score {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.recommend-desc {
    font-size: 1rem;
    margin: 0.3rem 0;
    opacity: 0.95;
}

.ai-score-formula {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ai-score-formula i {
    margin-right: 0.3rem;
}

/* 投资大师Tab标签页 */
.master-tabs {
    margin-top: 2rem;
}

/* Tab导航栏 */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 3px solid #e0e0e0;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0;
}

/* Tab按钮 */
.tab-button {
    background: #f5f7fa;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-bottom: -3px;
    min-width: 140px;
    text-align: center;
    font-weight: 500;
}

.tab-button:hover {
    background: #e8eaf6;
    transform: translateY(-2px);
}

.tab-button.active {
    background: white;
    border-bottom: 3px solid #667eea;
    font-weight: bold;
}

/* Tab按钮根据推荐等级着色 */
.tab-button.recommend-excellent {
    background: linear-gradient(135deg, #f0e6ff 0%, #e8d9ff 100%);
    color: #5e35b1;
}

.tab-button.recommend-excellent.active {
    background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 100%);
    border-bottom-color: #7e57c2;
}

.tab-button.recommend-good {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.tab-button.recommend-good.active {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border-bottom-color: #0288d1;
}

.tab-button.recommend-neutral {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57c00;
}

.tab-button.recommend-neutral.active {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    border-bottom-color: #ffa726;
}

.tab-button.recommend-poor {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.tab-button.recommend-poor.active {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-bottom-color: #e53935;
}

.tab-master-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.tab-master-score {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Tab内容区 */
.tab-content {
    position: relative;
    min-height: 400px;
}

/* Tab面板 */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block;
}

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

/* Tab面板头部 */
.tab-pane-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.tab-pane-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tab-pane-title h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a237e;
}

.master-score-badge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.master-score-badge-large.recommend-excellent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.master-score-badge-large.recommend-good {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.master-score-badge-large.recommend-neutral {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.master-score-badge-large.recommend-poor {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.master-score-badge-large .score-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.master-score-badge-large .score-level {
    font-size: 1rem;
    font-weight: 600;
}

.tab-pane-body {
    padding: 0;
}

/* 投资大师评分卡片网格（保留旧版样式以防需要） */
.master-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* 投资大师评分卡片 */
.master-score-card {
    background: white;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.master-score-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.master-score-card .card-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e7ff 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
}

.master-score-card .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #1a237e;
}

.master-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    min-width: 100px;
}

.master-score-badge.recommend-excellent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.master-score-badge.recommend-good {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.master-score-badge.recommend-neutral {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.master-score-badge.recommend-poor {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.master-score-badge .score-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.master-score-badge .score-level {
    font-size: 0.9rem;
    font-weight: 600;
}

.master-score-card .card-body {
    padding: 1.5rem;
}

.recommend-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* 指标分类区域 */
.indicators-section {
    margin: 1.5rem 0;
}

.indicators-section h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.indicator-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.indicator-tag.strength {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.indicator-tag.weakness {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* 指标详情 */
.indicator-details {
    margin-top: 1.5rem;
}

.indicator-details h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.indicator-name {
    font-weight: 600;
    color: #333;
}

.indicator-evaluation {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.indicator-evaluation.eval-excellent {
    background: #e8f5e9;
    color: #2e7d32;
}

.indicator-evaluation.eval-good {
    background: #e3f2fd;
    color: #1565c0;
}

.indicator-evaluation.eval-fair {
    background: #fff3e0;
    color: #e65100;
}

.indicator-evaluation.eval-poor {
    background: #ffebee;
    color: #c62828;
}

.indicator-body {
    margin-top: 0.5rem;
}

/* 指标元数据 */
.indicator-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.actual-value,
.recommended-value {
    font-size: 0.9rem;
    color: #555;
}

.actual-value strong,
.recommended-value strong {
    color: #333;
    margin-right: 0.3rem;
}

.recommended-value {
    color: #667eea;
    font-weight: 500;
}

/* 指标得分条 */
.indicator-score-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.score-bar-fill {
    height: 100%;
    border-radius: 15px;
    transition: width 0.5s ease;
    position: relative;
}

.score-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.indicator-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 更新信息 */
.update-info {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.update-info p {
    margin: 0.5rem 0;
    color: #555;
}

.update-info strong {
    color: #333;
}

/* 公司业务介绍样式 */
.company-description {
    padding: 1.5rem 0;
}

.description-content {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.description-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
    text-align: justify;
    min-height: 100px;
}

.description-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-small.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-small.btn-secondary:hover {
    background: #5a6268;
}

.btn-small.btn-primary {
    background: #007bff;
    color: white;
}

.btn-small.btn-primary:hover {
    background: #0056b3;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title .btn-small {
    margin-left: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .detail-header-left .stock-name {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .master-scores-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tab按钮在移动端调整 */
    .tab-button {
        min-width: 100px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-master-name {
        font-size: 1rem;
    }
    
    .tab-master-score {
        font-size: 1.1rem;
    }
    
    .tab-pane-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .master-score-badge-large {
        align-self: stretch;
    }
    
    .indicator-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Tab导航样式 */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid transparent;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 130px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.tab-btn.active::before {
    opacity: 0;
}

.tab-btn span {
    position: relative;
    z-index: 1;
}

/* 关注按钮样式 */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-small i {
    font-size: 0.875rem;
}

.btn-favorite {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3) !important;
}

.btn-favorite:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.4) !important;
}

.btn-favorite i {
    color: white !important;
}

/* ========== ESG评分样式 ========== */
.esg-panel {
    padding: 1.5rem;
}

.esg-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.esg-total-score {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.esg-total-score.esg-excellent {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.esg-total-score.esg-good {
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
    color: white;
}

.esg-total-score.esg-fair {
    background: linear-gradient(135deg, #ffc107 0%, #fbc02d 100%);
    color: #333;
}

.esg-total-score.esg-poor {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.esg-total-score .score-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.esg-total-score .score-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.esg-total-score .score-level {
    font-size: 1.2rem;
    font-weight: 600;
}

.esg-total-score .score-rating {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.esg-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.esg-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.esg-item-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #555;
}

.esg-item-score {
    font-size: 1.5rem;
    font-weight: bold;
}

.esg-controversy {
    padding: 1rem;
    background: #fff3cd;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.esg-controversy .label {
    font-weight: 600;
    color: #856404;
}

.esg-controversy .value {
    color: #856404;
}

.esg-controversy .value.high-controversy {
    color: #d32f2f;
    font-weight: bold;
}

.esg-explanation {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* ========== 研发与创新样式 ========== */
.rd-excellent { color: #4caf50 !important; }
.rd-good { color: #8bc34a !important; }
.rd-fair { color: #ffc107 !important; }
.rd-poor { color: #ff9800 !important; }
.rd-very-poor { color: #f44336 !important; }

/* ========== 护城河评分样式 ========== */
.moat-panel {
    padding: 1.5rem;
}

.moat-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.moat-score-display {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.moat-score-display.moat-strong {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.moat-score-display.moat-medium {
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
    color: white;
}

.moat-score-display.moat-weak {
    background: linear-gradient(135deg, #ffc107 0%, #fbc02d 100%);
    color: #333;
}

.moat-score-display.moat-none {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.moat-score-display .score-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.moat-score-display .score-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.moat-score-display .score-level {
    font-size: 1.2rem;
    font-weight: 600;
}

.moat-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.moat-type {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.moat-type .label {
    font-weight: 600;
    color: #555;
    margin-right: 0.5rem;
}

.moat-type .value {
    color: #1a237e;
    font-weight: 600;
}

.moat-explanation {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
}

.moat-explanation ul {
    margin-top: 0.5rem;
}

.moat-explanation li {
    margin-bottom: 0.5rem;
}

/* ========== 行业对比样式 ========== */
.industry-comparison-panel {
    padding: 1.5rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.comparison-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.comparison-label {
    font-weight: 600;
    color: #1a237e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.comparison-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-value {
    font-weight: 600;
    color: #333;
}

.industry-value {
    color: #666;
    font-size: 0.95rem;
}

.comparison-result {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
}

.comparison-result.compare-excellent {
    background: #e8f5e9;
    color: #2e7d32;
}

.comparison-result.compare-good {
    background: #f1f8e9;
    color: #558b2f;
}

.comparison-result.compare-fair {
    background: #fff9c4;
    color: #f57f17;
}

.comparison-result.compare-poor {
    background: #ffebee;
    color: #c62828;
}

.comparison-result.compare-very-poor {
    background: #ffcdd2;
    color: #b71c1c;
}

.comparison-explanation {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* ========== 投资建议报告样式 ========== */
.recommendations-container {
    padding: 1rem 0;
}

.recommendations-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.recommendations-header h3 {
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.report-date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.report-summary {
    color: #999;
    font-size: 0.9rem;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recommendation-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

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

.recommendation-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.recommendation-rank {
    flex-shrink: 0;
}

.rank-badge {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
}

.recommendation-title {
    flex: 1;
}

.recommendation-title h4 {
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.stock-code {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
    margin-right: 0.5rem;
}

.stock-industry {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e3f2fd;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #1976d2;
}

.recommendation-score {
    text-align: center;
    flex-shrink: 0;
}

.recommendation-score .score-value {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

.recommendation-score .score-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.rating-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.recommendation-body {
    margin-bottom: 1.5rem;
}

.recommendation-section {
    margin-bottom: 1.5rem;
}

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

.recommendation-section h5 {
    font-size: 1.1rem;
    color: #1a237e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-section h5 i {
    color: #667eea;
}

.recommendation-reasons,
.markdown-content {
    line-height: 1.8;
    color: #555;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* Markdown 内容样式 */
.markdown-content p {
    margin: 0.75rem 0;
}

.markdown-content p:first-child {
    margin-top: 0;
}

.markdown-content p:last-child {
    margin-bottom: 0;
}

.markdown-content strong,
.markdown-content b {
    color: #333;
    font-weight: 600;
}

.markdown-content em,
.markdown-content i {
    font-style: italic;
}

.markdown-content ul,
.markdown-content ol {
    margin: 0.75rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 1rem 0 0.5rem 0;
    color: #1a237e;
    font-weight: 600;
}

.markdown-content h1 { font-size: 1.5rem; }
.markdown-content h2 { font-size: 1.3rem; }
.markdown-content h3 { font-size: 1.1rem; }
.markdown-content h4 { font-size: 1rem; }
.markdown-content h5 { font-size: 0.95rem; }
.markdown-content h6 { font-size: 0.9rem; }

.markdown-content code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

.double-price-possibility {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.possibility-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.possibility-value {
    font-size: 2rem;
    font-weight: bold;
}

.possibility-level {
    font-size: 1.2rem;
    font-weight: 600;
}

.possibility-detail {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
    color: #555;
    line-height: 1.6;
}

.possibility-detail strong {
    color: #333;
}

.price-analysis {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

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

.price-label {
    color: #666;
    font-weight: 600;
}

.price-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a237e;
}

.price-value.target {
    color: #4caf50;
}

.risk-warning {
    padding: 1rem;
    background: #fff3cd;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.risk-warning p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

.recommendation-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* AI选股快捷按钮样式 */
.suggestion-chip {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.tab-content {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .esg-overview,
    .moat-overview {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .esg-total-score .score-value,
    .moat-score-display .score-value {
        font-size: 2rem;
    }
    
    .recommendation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recommendation-score {
        width: 100%;
        text-align: left;
    }
    
    .recommendation-card {
        padding: 1.5rem;
    }
}