/* ===== css/style_jnd.css ===== */
/* 完全复制 jianadaycpc.com.cn 的布局样式 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ===== 导航栏 ===== */
.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.3rem;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

/* ===== Hero区域 ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 0;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.hero-section .lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.8rem;
}

.hero-section .btn-light {
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    color: var(--primary-color);
}

.hero-section .btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.img-placeholder {
    background-color: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    height: 220px;
    border: 2px dashed rgba(255,255,255,0.3);
}

.img-placeholder-light {
    background-color: #f1f1f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    height: 200px;
}

/* ===== 区块标题 ===== */
.section-title {
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* ===== 内容区块 ===== */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background-color: #f8f9fa;
}

/* ===== 功能卡片 ===== */
.feature-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: #fff;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

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

.faq-question {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ===== 数据表格 ===== */
.data-table-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.data-table-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

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

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table td {
    vertical-align: middle;
    color: #555;
    font-size: 0.95rem;
}

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

/* ===== 徽章 ===== */
.badge-big {
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-small {
    background: #cce5ff;
    color: #004085;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-odd {
    background: #f8d7da;
    color: #721c24;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-even {
    background: #e2d9f3;
    color: #432874;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-hit {
    background: #d4edda;
    color: #155724;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== 统计卡片 ===== */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
}

.stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== 预测卡片 ===== */
.predict-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.predict-result {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem 0;
}

/* ===== 进度条 ===== */
.progress {
    height: 10px;
    border-radius: 5px;
    background: #e9ecef;
    margin: 0.5rem 0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

/* ===== 走势图 ===== */
.trend-chart {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 150px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 18px;
}

.bar-fill {
    width: 14px;
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
}

.bar-label {
    font-size: 9px;
    color: #999;
    margin-top: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ===== 关键词标签 ===== */
.keyword-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    transition: all 0.2s;
    text-decoration: none;
    margin: 0.25rem;
}

.keyword-tag:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
    text-decoration: none;
}

/* ===== 页脚 ===== */
.footer {
    background-color: var(--primary-color);
    color: #ccc;
    padding: 40px 0 20px;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

.footer p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer hr {
    border-color: #3d5166;
    margin: 1.5rem 0;
}

.footer-bottom {
    font-size: 0.8125rem;
    color: #aaa;
}

/* ===== 关于我们页 ===== */
.about-section {
    padding: 60px 0;
}

.about-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    height: 100%;
}

/* ===== 策略社区 ===== */
.strategy-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.strategy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.strategy-tag {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .content-section {
        padding: 40px 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .predict-result {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }

    .data-table-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
