/* ============================================
   AI价值评级系统 - 主样式表
   ============================================ */

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

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --danger-color: #FF6B6B;
    --warning-color: #FFA500;
    --success-color: #28A745;
    --dark-bg: #1A1A2E;
    --light-bg: #F8F9FA;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --border-color: #E1E8ED;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
}

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

/* ============================================
   导航栏
   ============================================ */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.nav-brand .tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   按钮
   ============================================ */
.btn-primary, .btn-secondary, .btn-vote, .btn-icon {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #3A7BC8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-vote {
    background: var(--success-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-vote:hover {
    background: #218838;
}

.btn-vote.voted {
    background: #6C757D;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    font-size: 1.25rem;
}

/* ============================================
   搜索区域
   ============================================ */
.search-section {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    padding: 4rem 0;
    color: white;
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.quick-links {
    text-align: center;
    margin-top: 1rem;
}

.quick-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.9;
}

.quick-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================================
   Tab导航
   ============================================ */
.tab-navigation {
    background: white;
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 73px;
    z-index: 999;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-btn {
    flex: 1;
    max-width: 400px;
    background: white;
    border: none;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: var(--light-bg);
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-label {
    font-size: 1.125rem;
}

/* Tab内容区域 */
.tab-content-wrapper {
    min-height: 50vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

/* ============================================
   功能卡片
   ============================================ */
.features-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -2rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-tag {
    display: inline-block;
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   排行榜
   ============================================ */
.ranking-section {
    padding: 4rem 0;
    background: white;
}

/* 市值排行榜专用样式 */
.market-cap-ranking-section {
    padding: 4rem 0;
    background: #F5F7FA;
}

.market-cap-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.market-cap-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.market-cap-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.market-cap-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.market-cap-rank {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #5F9EF0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.market-cap-item.rank-1 .market-cap-rank {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.market-cap-item.rank-2 .market-cap-rank {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.market-cap-item.rank-3 .market-cap-rank {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.market-cap-company-info {
    flex: 1;
}

.market-cap-company-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.market-cap-company-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.market-cap-stat-card {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.market-cap-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.market-cap-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.market-cap-stat-value.positive {
    color: var(--success-color);
}

.market-cap-stat-value.negative {
    color: var(--danger-color);
}

.market-cap-chart {
    width: 100%;
    height: 450px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* 未来预测三场景显示 */
.forecast-scenarios {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.scenario-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scenario-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.scenario-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.scenario-bull .scenario-value {
    color: #4CAF50;
}

.scenario-base .scenario-value {
    color: #FFA500;
}

.scenario-bear .scenario-value {
    color: #f44336;
}

/* 图表控制器样式 */
.chart-controls-wrapper {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.chart-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kline-period-selector {
    display: flex;
    gap: 0.5rem;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.period-btn:hover {
    background: #f0f0f0;
}

.period-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.future-years-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.future-years-control label {
    font-size: 0.875rem;
    color: #666;
}

.future-years-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.time-range-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-range-selector label {
    font-size: 0.875rem;
    color: #666;
    margin-right: 0.5rem;
}

.range-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.range-btn:hover {
    background: #f0f0f0;
}

.range-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.market-cap-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.actual {
    background: #5470C6;
}

.legend-dot.ai-estimated {
    background: #91CC75;
}

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

.view-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.ranking-grid {
    display: grid;
    gap: 1rem;
}

.ranking-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s;
}

.ranking-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.ranking-card.top-1,
.ranking-card.top-2,
.ranking-card.top-3 {
    background: linear-gradient(135deg, #FFF5E1 0%, #FFE4B5 100%);
}

.rank-badge {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.company-info {
    flex: 1;
}

.company-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.company-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.vote-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vote-count {
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   报告卡片
   ============================================ */
.reports-section {
    padding: 4rem 0;
}

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

.report-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.report-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.report-badge.recommend {
    background: #E8F5E9;
    color: var(--success-color);
}

.report-badge.warning {
    background: #FFF3E0;
    color: var(--warning-color);
}

.report-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.report-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.report-data {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.data-item {
    flex: 1;
    text-align: center;
}

.data-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.data-item .value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
}

.data-item .value.green {
    color: var(--success-color);
}

.data-item .value.red {
    color: var(--danger-color);
}

.report-summary {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p,
.footer-section ul {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ============================================
   分析页面专用样式
   ============================================ */
.analysis-input-section {
    padding: 3rem 0;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.input-panel {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.analysis-result-section {
    padding: 3rem 0;
}

.analysis-progress {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.step.completed .step-icon {
    background: var(--success-color);
    color: white;
}

.step.active .step-icon {
    background: var(--primary-color);
    color: white;
    animation: pulse 1.5s infinite;
}

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

.result-summary {
    margin-bottom: 3rem;
}

.verdict-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border-left: 5px solid var(--success-color);
}

.verdict-card.recommend {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
}

.verdict-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.verdict-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

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

.verdict-label {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
}

.confidence {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    font-weight: 500;
}

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

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.metric-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
}

.analysis-module {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.module-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.analysis-cards {
    display: grid;
    gap: 1.5rem;
}

.analysis-card {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

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

.card-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.card-header h4 {
    flex: 1;
    font-size: 1.25rem;
}

.score {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.score.excellent {
    background: #E8F5E9;
    color: var(--success-color);
}

.score.good {
    background: #E3F2FD;
    color: var(--primary-color);
}

.overall-score {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    border-radius: 12px;
    text-align: center;
}

.overall-score .score-value {
    font-size: 3rem;
    font-weight: bold;
    margin: 0 1rem;
}

.overall-score .grade {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: bold;
}

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

.survival-card {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    text-align: center;
}

.survival-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 10px;
    background: #E0E0E0;
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    border-radius: 5px;
    transition: width 1s;
}

.progress-bar.danger .progress-fill {
    background: var(--danger-color);
}

.progress-text {
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.survival-conclusion {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ============================================
   对标分析页面
   ============================================ */
.benchmark-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, #4A90E2 0%, #5F9EF0 100%);
    color: white;
}

.benchmark-selector {
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto 0;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
}

.selector-group {
    flex: 1;
}

.selector-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.selector-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.radar-section {
    padding: 4rem 0;
    background: white;
}

.radar-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.radar-chart {
    margin: 2rem 0;
}

.radar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.radar-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.radar-labels .label {
    position: absolute;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.metrics-comparison-section {
    padding: 4rem 0;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table .subtext {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.9;
}

.comparison-table .metric-name {
    text-align: left;
    font-weight: 500;
}

.comparison-table .highlight {
    background: #E3F2FD;
    font-weight: bold;
    color: var(--primary-color);
}

.comparison-table .excellent {
    color: var(--success-color);
}

.global-benchmarks-section {
    padding: 4rem 0;
    background: white;
}

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

.benchmark-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.benchmark-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.company-info-header {
    flex: 1;
}

.company-info-header h4 {
    margin-bottom: 0.25rem;
}

.company-info-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.overall-score {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
}

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

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-label {
    flex: 0 0 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

.score-fill.excellent {
    background: var(--success-color);
}

.score-fill.good {
    background: var(--primary-color);
}

.score-num {
    flex: 0 0 40px;
    text-align: right;
    font-weight: 600;
}

.swot-section {
    padding: 4rem 0;
}

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

.swot-card {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.swot-card h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.swot-card ul {
    list-style: none;
}

.swot-card li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.swot-card.strengths {
    background: #E8F5E9;
    border-left: 4px solid var(--success-color);
}

.swot-card.weaknesses {
    background: #FFF3E0;
    border-left: 4px solid var(--warning-color);
}

.swot-card.opportunities {
    background: #E3F2FD;
    border-left: 4px solid var(--primary-color);
}

.swot-card.threats {
    background: #FFEBEE;
    border-left: 4px solid var(--danger-color);
}

/* ============================================
   投票页面
   ============================================ */
.voting-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
}

.voting-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.voting-list-section {
    padding: 4rem 0;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
}

.tab {
    padding: 0.5rem 1.5rem;
    border: none;
    background: var(--light-bg);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.voting-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.voting-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.voting-item:hover {
    box-shadow: var(--shadow-md);
}

.voting-item.rank-1 .rank-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.voting-item.rank-2 .rank-badge {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}

.voting-item.rank-3 .rank-badge {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

.rank-badge.gold,
.rank-badge.silver,
.rank-badge.bronze {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.company-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

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

.company-details {
    flex: 1;
}

.company-details h4 {
    margin-bottom: 0.25rem;
}

.company-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--light-bg);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.voting-progress {
    flex: 0 0 200px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.vote-percentage {
    color: var(--text-secondary);
}

.voting-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.generating {
    background: #FFF3E0;
    color: var(--warning-color);
}

.status-badge.completed {
    background: #E8F5E9;
    color: var(--success-color);
}

.status-badge.pending {
    background: var(--light-bg);
    color: var(--text-secondary);
}

.nominate-section {
    padding: 4rem 0;
    background: white;
}

.nominate-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EEF4 100%);
    border-radius: 12px;
    text-align: center;
}

.nominate-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.nominate-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 1rem;
}

.nominate-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.nominate-rules {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.generated-content-section {
    padding: 4rem 0;
}

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

.content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
}

.content-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.content-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
}

.content-card h4 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.125rem;
}

.content-meta {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.content-actions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.rules-section {
    padding: 4rem 0;
    background: white;
}

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

.rule-card {
    text-align: center;
    padding: 2rem;
}

.rule-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.rule-card h4 {
    margin-bottom: 1rem;
}

.rule-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   报告页面
   ============================================ */
.report-header {
    padding: 2rem 0;
    background: var(--light-bg);
}

.breadcrumb {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.report-title-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.company-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.company-logo-large {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.company-info-large h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.company-info-large p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.company-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    background: var(--light-bg);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.report-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.meta-item .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.meta-item .value {
    font-weight: 500;
}

.report-conclusion {
    padding: 3rem 0;
}

.conclusion-banner {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.conclusion-banner.recommend {
    border-left: 5px solid var(--success-color);
}

.conclusion-content {
    flex: 1;
}

.conclusion-content .verdict {
    color: var(--success-color);
}

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

.key-metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.key-metric-card.highlight {
    background: linear-gradient(135deg, #E3F2FD 0%, #E8F5E9 100%);
}

.metric-icon {
    font-size: 2.5rem;
}

.metric-content {
    flex: 1;
}

.report-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.nav-tab {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-tab:hover,
.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.report-content {
    padding: 3rem 0;
}

.report-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.report-section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.highlight-list,
.risk-list {
    list-style: none;
    margin: 1.5rem 0;
}

.highlight-list li,
.risk-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.highlight-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.risk-list li:before {
    content: "⚠";
    position: absolute;
    left: 0;
    font-size: 1.25rem;
}

.investment-advice {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
}

.investment-advice p {
    margin-bottom: 0.5rem;
}

.strategy-detailed,
.survival-detailed {
    margin-top: 2rem;
}

.strategy-item,
.survival-dimension {
    margin-bottom: 3rem;
}

.strategy-header,
.dimension-content h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.strategy-body {
    padding-left: 1rem;
}

.strategy-body h4 {
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

.strategy-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.strategy-body li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.revenue-breakdown {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

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

.revenue-item span:first-child {
    flex: 0 0 120px;
    font-size: 0.875rem;
}

.revenue-item span:last-child {
    flex: 0 0 50px;
    text-align: right;
    font-weight: 600;
}

.strategy-summary {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    border-radius: 12px;
}

.final-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.final-score .score-value {
    font-size: 3rem;
    font-weight: bold;
}

.data-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table thead {
    background: var(--light-bg);
}

.data-table .positive {
    color: var(--success-color);
    font-weight: 600;
}

.data-table .highlight-row {
    background: #E3F2FD;
    font-weight: 600;
}

.financial-tables {
    margin: 2rem 0;
}

.financial-tables h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.risk-card {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.risk-card.high {
    background: #FFEBEE;
    border-color: var(--danger-color);
}

.risk-card.medium {
    background: #FFF3E0;
    border-color: var(--warning-color);
}

.risk-card.low {
    background: #E8F5E9;
    border-color: var(--success-color);
}

.risk-level {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.risk-card h4 {
    margin-bottom: 1rem;
}

.report-footer-actions {
    padding: 3rem 0;
    background: var(--light-bg);
}

.action-panel {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.action-panel h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.action-panel p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .search-box {
        flex-direction: column;
    }

    .features-grid,
    .reports-grid,
    .benchmark-cards,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .voting-item {
        flex-direction: column;
        text-align: center;
    }

    .conclusion-banner {
        flex-direction: column;
    }

    .comparison-table {
        font-size: 0.875rem;
    }
}
