/* 杆速学员中心 · 前台样式 */
.csr-wrap {
    --csr-ink: #1b1f24;
    --csr-sub: #6b7280;
    --csr-line: #e6e8eb;
    --csr-bg: #fbfbfc;
    --csr-accent: #0d6efd;
    --csr-good: #17a673;
    --csr-mid: #e0a800;
    --csr-low: #dc3545;
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 4px 40px;
    color: var(--csr-ink);
    font-size: 15px;
    line-height: 1.65;
}

.csr-wrap * { box-sizing: border-box; }

.csr-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
}

.csr-hero-main { display: flex; align-items: center; gap: 16px; }

.csr-avatar {
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 600;
}

.csr-hero h2 { margin: 0; font-size: 22px; color: #fff; }
.csr-hero-meta { font-size: 13px; opacity: .8; margin-top: 2px; }
.csr-coach-link {
    color: #fff; text-decoration: none; font-size: 13px;
    border: 1px solid rgba(255,255,255,.4); border-radius: 20px; padding: 6px 14px;
    white-space: nowrap;
}
.csr-coach-link:hover { background: rgba(255,255,255,.15); color: #fff; }

.csr-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.csr-stat {
    background: #fff;
    border: 1px solid var(--csr-line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 6px;
}
.csr-stat-label { font-size: 12px; color: var(--csr-sub); letter-spacing: .04em; }
.csr-stat-value { font-size: 26px; font-weight: 600; line-height: 1.1; }
.csr-stat-value small { font-size: 13px; font-weight: 400; color: var(--csr-sub); margin-left: 2px; }
.csr-stat-sub { font-size: 12px; color: var(--csr-sub); }

.csr-bar {
    height: 6px; background: #eef0f2; border-radius: 99px; overflow: hidden;
}
.csr-bar.sm { height: 5px; }
.csr-bar i {
    display: block; height: 100%; background: var(--csr-accent);
    border-radius: 99px; transition: width .4s ease;
}
.csr-bar i.good { background: var(--csr-good); }
.csr-bar i.mid { background: var(--csr-mid); }
.csr-bar i.low { background: var(--csr-low); }

.csr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.csr-card {
    background: #fff;
    border: 1px solid var(--csr-line);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.csr-card h3 {
    margin: 0 0 12px; font-size: 16px; font-weight: 600;
    padding-bottom: 10px; border-bottom: 1px solid var(--csr-line);
}
.csr-card h4 { margin: 16px 0 8px; font-size: 14px; color: var(--csr-sub); font-weight: 600; }

.csr-pre { white-space: pre-wrap; margin: 0; }
.csr-empty { color: var(--csr-sub); margin: 0; }

.csr-highlight {
    margin-top: 14px; padding: 10px 14px;
    background: #f0f6ff; border-left: 3px solid var(--csr-accent); border-radius: 4px;
}
.csr-highlight-label { font-size: 12px; color: var(--csr-accent); font-weight: 600; }
.csr-highlight p { margin: 4px 0 0; white-space: pre-wrap; }

.csr-skills { display: flex; flex-direction: column; gap: 9px; }
.csr-skill-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 3px; }
.csr-skill-head b { font-weight: 600; }

.csr-plan { padding: 12px 0; border-bottom: 1px dashed var(--csr-line); }
.csr-plan:last-child { border-bottom: none; padding-bottom: 0; }
.csr-plan-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.csr-plan-head strong { font-size: 15px; }
.csr-plan-goal { margin: 6px 0; font-size: 14px; }
.csr-plan-goal em { font-style: normal; color: var(--csr-sub); }

.csr-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 99px;
    background: #eaf3ff; color: var(--csr-accent); white-space: nowrap;
}
.csr-tag.ghost { background: #f2f3f5; color: var(--csr-sub); }
.csr-tag.warn { background: #fff4e5; color: #b76e00; }

.csr-section-list { list-style: none; margin: 0; padding: 0; }
.csr-section {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px;
    flex-wrap: wrap;
}
.csr-section:last-child { border-bottom: none; }
.csr-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #d8dbe0; flex: none;
}
.csr-section.st-learning .csr-dot { background: var(--csr-mid); }
.csr-section.st-mastered .csr-dot { background: var(--csr-good); }
.csr-section-title { min-width: 80px; }
.csr-section-state { font-size: 12px; color: var(--csr-sub); }
.csr-section.st-mastered .csr-section-state { color: var(--csr-good); }
.csr-section.st-learning .csr-section-state { color: #b76e00; }
.csr-section-score {
    font-size: 11px; background: #eaf7f2; color: var(--csr-good);
    padding: 1px 7px; border-radius: 99px;
}
.csr-section-note {
    font-size: 12px; color: var(--csr-sub); flex-basis: 100%; padding-left: 16px;
}

.csr-timeline { display: flex; flex-direction: column; gap: 0; }
.csr-entry {
    display: flex; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}
.csr-entry:last-child { border-bottom: none; }
.csr-entry-date {
    flex: none; width: 74px; text-align: center;
    display: flex; flex-direction: column; gap: 2px;
}
.csr-entry-date b { font-size: 18px; font-weight: 600; white-space: nowrap; }
.csr-entry-date span { font-size: 11px; color: var(--csr-sub); white-space: nowrap; }
.csr-entry-body { flex: 1; min-width: 0; }
.csr-entry-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.csr-entry-head strong { font-size: 15px; }
.csr-stars { color: #f0b429; font-size: 13px; letter-spacing: 1px; }
.csr-entry-sections { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.csr-chip {
    font-size: 11px; background: #f2f4f7; color: #4b5563;
    padding: 2px 9px; border-radius: 99px;
}
.csr-entry-block { margin-top: 10px; }
.csr-entry-block.homework { background: #fffdf5; border-radius: 6px; padding: 8px 12px; }
.csr-entry-label {
    display: block; font-size: 11px; color: var(--csr-sub);
    letter-spacing: .05em; margin-bottom: 3px;
}
.csr-entry-block p { margin: 0; font-size: 14px; }
.csr-media { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.csr-media a { color: var(--csr-accent); word-break: break-all; }

.csr-miles { list-style: none; margin: 0; padding: 0; }
.csr-miles li {
    display: flex; gap: 12px; align-items: baseline;
    padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px;
    flex-wrap: wrap;
}
.csr-miles li:last-child { border-bottom: none; }
.csr-mile-date { font-size: 12px; color: var(--csr-sub); flex: none; width: 84px; }
.csr-mile-title { font-weight: 600; }
.csr-mile-detail { color: var(--csr-sub); font-size: 13px; }

.csr-picker { list-style: none; margin: 0; padding: 0; }
.csr-picker li { border-bottom: 1px solid var(--csr-line); }
.csr-picker a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 4px; text-decoration: none; color: var(--csr-ink);
}
.csr-picker a:hover { color: var(--csr-accent); }
.csr-picker small { color: var(--csr-sub); font-size: 12px; }

@media (max-width: 720px) {
    .csr-grid { grid-template-columns: 1fr; }
    .csr-hero { flex-direction: column; align-items: flex-start; }
    .csr-entry { gap: 12px; }
    .csr-entry-date { width: 68px; }
    .csr-stat-value { font-size: 22px; }
}
