/**
 * ChangoPSS - 定量研究入门必读页面样式
 * 版本: 20260103_v1
 * 更新日期: 2026-01-03
 */

/* 页面布局 */
.rg-page {
    display: flex;
    min-height: calc(100vh - 60px);
    background: #f5f7fa;
}

/* 侧边导航 */
.rg-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    flex-shrink: 0;
}

.rg-sidebar-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rg-nav {
    padding: 1rem 0;
}

.rg-nav-section {
    margin-bottom: 1rem;
}

.rg-nav-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rg-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.rg-nav-item:hover {
    background: #f5f7fa;
    color: #667eea;
}

.rg-nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 500;
}

.rg-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

/* 主内容区 */
.rg-content {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* 页面标题 */
.rg-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.rg-header h1 {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.rg-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* 章节样式 */
.rg-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.rg-section h2 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
}

.rg-section h2 i {
    color: #667eea;
}

.rg-section h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 1rem 0;
    color: #444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rg-section h3 i {
    color: #667eea;
    font-size: 1rem;
}

/* 介绍卡片 */
.rg-intro-card {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-bottom: 1.5rem;
}

.intro-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.intro-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.intro-content p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* 对比表格 */
.rg-compare-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.rg-compare-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.rg-compare-table th,
.rg-compare-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rg-compare-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
}

.rg-compare-table th:first-child {
    border-radius: 8px 0 0 0;
}

.rg-compare-table th:last-child {
    border-radius: 0 8px 0 0;
}

.rg-compare-table tr:hover td {
    background: #f8f9fa;
}

.rg-compare-table td.highlight {
    background: #e8f5e9 !important;
    color: #2e7d32;
    font-weight: 500;
}

/* 流程图 */
.rg-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 140px;
    text-align: center;
}

.flow-step .step-num {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.flow-step .step-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #333;
}

.flow-step .step-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.flow-arrow {
    color: #667eea;
    font-size: 1.2rem;
}

/* 时间线 */
.rg-timeline {
    position: relative;
    padding-left: 2rem;
}

.rg-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-item.highlight::before {
    background: #f5576c;
    box-shadow: 0 0 0 2px #f5576c;
}

.timeline-date {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* 先驱卡片 */
.rg-pioneers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pioneer-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pioneer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.pioneer-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.pioneer-card h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #333;
}

.pioneer-title {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 0.5rem 0;
}

.pioneer-contribution {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.pioneer-card ul {
    text-align: left;
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: #555;
}

.pioneer-card ul li {
    margin-bottom: 0.25rem;
}

.pioneer-quote {
    font-style: italic;
    font-size: 0.85rem;
    color: #666;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

/* 术语卡片 */
.rg-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.term-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid #667eea;
}

.term-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.term-explain {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.term-plain {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}

.term-plain i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* 方法介绍 */
.method-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.method-what,
.method-when {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
}

.method-what h3,
.method-when h3 {
    margin-top: 0;
}

.method-what p,
.method-when p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.method-when ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #555;
}

.method-when ul li {
    margin-bottom: 0.25rem;
}

/* 公式区 */
.method-formula {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.formula-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.formula-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.formula-math {
    font-family: 'Times New Roman', serif;
    font-size: 1.2rem;
    color: #667eea;
    padding: 0.5rem;
    background: #f0f4ff;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.formula-desc {
    font-size: 0.85rem;
    color: #666;
}

/* 示例区 */
.method-example {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #4caf50;
    margin-bottom: 1.5rem;
}

.example-scenario {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #a5d6a7;
}

.example-result ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.example-result ul li {
    margin-bottom: 0.25rem;
    color: #2e7d32;
}

/* ChangoPSS操作指南 */
.method-changopss {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.method-changopss ol {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.method-changopss ol li {
    margin-bottom: 0.25rem;
    color: #333;
}

/* 解读标准表格 */
.method-interpret {
    margin-bottom: 1.5rem;
}

.interpret-table {
    width: 100%;
    border-collapse: collapse;
}

.interpret-table th,
.interpret-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.interpret-table th {
    background: #667eea;
    color: white;
}

.interpret-table th:first-child {
    border-radius: 8px 0 0 0;
}

.interpret-table th:last-child {
    border-radius: 0 8px 0 0;
}

/* 警示框 */
.method-caution {
    margin-bottom: 1.5rem;
}

.caution-box {
    background: #fff3e0;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
}

.caution-box strong {
    color: #e65100;
}

.caution-box p {
    margin: 0.5rem 0 0 0;
    color: #795548;
}

/* 类型卡片 */
.method-types {
    margin-bottom: 1.5rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.type-card {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
    border-top: 3px solid #667eea;
}

.type-card h4 {
    margin: 0 0 0.75rem 0;
    color: #333;
}

.type-card p {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #555;
}

/* 事后检验说明 */
.method-posthoc {
    margin-bottom: 1.5rem;
}

.posthoc-explain {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
}

.posthoc-explain p {
    margin: 0 0 0.5rem 0;
    color: #555;
    line-height: 1.6;
}

.posthoc-explain em {
    color: #667eea;
}

/* 碎石图说明 */
.method-scree {
    margin-bottom: 1.5rem;
}

.scree-explain {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
}

.scree-explain p {
    margin: 0 0 0.75rem 0;
    color: #555;
}

.scree-explain ul {
    margin: 0;
    padding-left: 1.25rem;
}

.scree-explain ul li {
    margin-bottom: 0.25rem;
    color: #444;
}

/* OR值说明 */
.method-or {
    margin-bottom: 1.5rem;
}

.or-examples {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
}

.or-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.or-item:last-child {
    margin-bottom: 0;
}

.or-item em {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* CITC说明 */
.method-citc {
    margin-bottom: 1.5rem;
}

.citc-explain {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
}

.citc-explain p {
    margin: 0 0 0.75rem 0;
    color: #555;
}

.citc-explain ul {
    margin: 0;
    padding-left: 1.25rem;
}

.citc-explain ul li {
    margin-bottom: 0.25rem;
    color: #444;
}

/* 对比介绍 */
.compare-intro {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.compare-intro p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

/* 对比总结 */
.compare-summary {
    margin-top: 1.5rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.summary-card {
    padding: 1.25rem;
    border-radius: 12px;
}

.summary-card.spss {
    background: #f5f5f5;
    border-top: 3px solid #607d8b;
}

.summary-card.changopss {
    background: linear-gradient(135deg, #e8f5e9 0%, #f3e5f5 100%);
    border-top: 3px solid #667eea;
}

.summary-card h4 {
    margin: 0 0 0.75rem 0;
    color: #333;
}

.summary-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.summary-card ul li {
    margin-bottom: 0.25rem;
    color: #555;
}

/* 练习区 */
.practice-intro {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.practice-intro p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

.practice-tasks {
    margin-bottom: 1.5rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
}

.task-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.task-content h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.task-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.practice-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.practice-cta h3 {
    margin: 0 0 0.5rem 0;
}

.practice-cta p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.btn-start-practice {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.btn-start-practice:hover {
    transform: scale(1.05);
}

/* 返回顶部 */
.rg-back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 100;
}

.rg-back-top.show {
    opacity: 1;
    visibility: visible;
}

.rg-back-top:hover {
    transform: scale(1.1);
}

/* 响应式 */
@media (max-width: 992px) {
    .rg-sidebar {
        display: none;
    }
    
    .rg-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .rg-header h1 {
        font-size: 1.5rem;
    }
    
    .rg-section {
        padding: 1.5rem;
    }
    
    .rg-section h2 {
        font-size: 1.25rem;
    }
    
    .rg-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .rg-pioneers {
        grid-template-columns: 1fr;
    }
    
    .rg-terms-grid {
        grid-template-columns: 1fr;
    }
    
    .method-intro {
        grid-template-columns: 1fr;
    }
    
    .formula-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
}









