/* ===== 我看的书：三模块切换 ===== */
.reading-sub-tabs {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* 心理学图谱容器 */
.psych-atlas-wrapper {
    width: 100%;
}

.reading-sub-tab-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    padding: 0.5rem 1.4rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.reading-sub-tab-btn:hover {
    border-color: rgba(212,175,55,0.4);
    color: #e2e8f0;
}

.reading-sub-tab-btn.active {
    background: rgba(212,175,55,0.12);
    border-color: #d4af37;
    color: #d4af37;
    font-weight: 600;
}

.reading-sub-content { display: none; }
.reading-sub-content.active { display: block; }

/* ===== 心理学图谱整体 ===== */
.psych-atlas {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.psych-overview-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===== 管理基础图谱 ===== */
.management-atlas {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.management-overview-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.management-tree-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* ===== 流派卡片 ===== */
.psych-tree-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    max-width: 100%;
}

.school-card {
    background: rgba(30,30,35,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.9rem 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.school-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--school-color, #d4af37);
    opacity: 0.5;
    transition: opacity 0.25s;
}

.school-card:hover {
    border-color: var(--school-color, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.school-card:hover::before { opacity: 1; }

.school-card.active-school {
    border-color: var(--school-color, #d4af37);
    background: rgba(212,175,55,0.05);
}

.school-card.active-school::before { opacity: 1; }

.school-icon { 
    font-size: 2rem; 
    margin-bottom: 0.5rem; 
}

.school-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 0.3rem;
}

.school-founder {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.school-tag {
    display: inline-block;
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.12);
}

/* ===== 阅读路线图 ===== */
.reading-roadmap-card {
    background: rgba(30,30,35,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1.6rem 1.4rem;
}

.roadmap-title {
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: #d4af37;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

.roadmap-phases {
    display: flex;
    flex-direction: column;
}

.roadmap-phase {
    display: flex;
    gap: 0.9rem;
    position: relative;
}

.roadmap-phase:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.07);
}

.phase-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--phase-color, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--phase-color, #d4af37);
    flex-shrink: 0;
    background: rgba(10,10,12,0.9);
    position: relative;
    z-index: 1;
}

.phase-body {
    padding-bottom: 1.6rem;
    flex: 1;
}

.phase-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.4rem;
    margin-top: 0.4rem;
}

.phase-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
}

.phase-books {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.phase-book-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.1);
}

.phase-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.2rem;
    margin-top: 0.4rem;
}

/* ===== 学派详情面板 ===== */
.school-detail-panel {
    background: rgba(30,30,35,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1.8rem 1.6rem;
    min-height: 220px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-icon { font-size: 2rem; }

.detail-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 0.3rem;
}

.detail-founder-line {
    font-size: 0.8rem;
    color: #94a3b8;
}

.detail-founder-name {
    font-weight: 500;
    color: #cbd5e1;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-section-label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.9rem;
    font-weight: 600;
}

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

.theory-list li {
    padding: 0.6rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.theory-list li:last-child {
    border-bottom: none;
}

.theory-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--school-color, #d4af37);
    font-size: 0.9rem;
}

.detail-section-label {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.theory-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.theory-list li {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.55;
}

.theory-list li::before {
    content: '◆';
    font-size: 0.42rem;
    color: var(--school-color, #d4af37);
    margin-top: 0.42rem;
    flex-shrink: 0;
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.book-entry {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.book-entry:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(3px);
}

.book-title {
    flex: 1;
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.book-author {
    font-size: 0.75rem;
    color: #94a3b8;
}

.book-stars {
    font-size: 0.7rem;
    color: #fbbf24;
}

.book-entry {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}

.book-entry:hover {
    background: rgba(212,175,55,0.05);
    border-color: rgba(212,175,55,0.15);
}

.book-title {
    font-size: 0.8rem;
    color: #e2e8f0;
    font-weight: 500;
    flex: 1;
}

.book-author {
    font-size: 0.68rem;
    color: #475569;
    white-space: nowrap;
}

.book-stars {
    font-size: 0.58rem;
    white-space: nowrap;
}

/* ===== 占位卡 ===== */
.coming-soon-card {
    background: rgba(22,22,26,0.6);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 5rem 2rem;
    text-align: center;
}

.coming-soon-card .cs-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    opacity: 0.35;
    display: block;
}

.coming-soon-card .cs-text {
    color: #475569;
    font-size: 0.88rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
    .psych-overview-row { grid-template-columns: 1fr; }
    .detail-body { grid-template-columns: 1fr; }
    .school-grid { 
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .school-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .school-card {
        padding: 0.8rem 0.6rem;
    }
}
