/* 心理学 - 柔和紫色/蓝色治愈风格 */

:root {
    --primary: #6B5B95;
    --primary-light: #9B8FC7;
    --secondary: #88B04B;
    --accent: #F7CAC9;
    --bg-main: #F8F4FF;
    --bg-sidebar: #4A3F6B;
    --text-light: #F8F4FF;
    --text-dark: #3D3151;
    --card-bg: #FFFFFF;
    --border-color: #D4C4E9;
    --healing-blue: #92A8D1;
    --healing-purple: #B8A9C9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(135deg, var(--bg-main) 0%, #EEF2FF 100%);
    color: var(--text-dark);
    line-height: 1.8;
}

.container {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, #3A3055 100%);
    color: var(--text-light);
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo h1 {
    font-size: 24px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--healing-purple);
    margin-bottom: 20px;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary);
    transform: translateX(5px);
}

.back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.back-link a {
    color: var(--healing-purple);
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    color: var(--accent);
}

/* 内容区 */
.content {
    margin-left: 260px;
    padding: 40px;
    flex: 1;
    max-width: calc(100% - 260px);
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--healing-blue) 50%, var(--healing-purple) 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(107, 91, 149, 0.15);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--primary-light);
    margin-bottom: 20px;
    position: relative;
}

.hero .description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    position: relative;
}

/* 模块卡片 */
.modules {
    margin-bottom: 40px;
}

.modules h3,
.wellness-tips h3,
.learning-path h3,
.theories h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--healing-blue);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(107, 91, 149, 0.15);
    border-color: var(--healing-blue);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card h4 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(107, 91, 149, 0.4);
}

/* 健康提示 */
.wellness-tips {
    margin-bottom: 40px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tip-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tip-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--healing-blue), var(--healing-purple));
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 91, 149, 0.1);
}

.tip-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.tip-card h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 13px;
    color: #777;
}

/* 学习路径 */
.learning-path {
    margin-bottom: 40px;
}

.path-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.step {
    text-align: center;
    padding: 20px;
    min-width: 150px;
}

.step-num {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--healing-blue));
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.step h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.step p {
    font-size: 13px;
    color: #666;
}

.step-arrow {
    font-size: 24px;
    color: var(--healing-blue);
}

/* 理论列表 */
.theories {
    margin-bottom: 40px;
}

.theory-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.theory-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--healing-purple);
    box-shadow: 0 2px 10px rgba(107, 91, 149, 0.08);
    transition: all 0.3s;
}

.theory-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(107, 91, 149, 0.12);
}

.theory-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 16px;
}

.theory-item p {
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: var(--bg-sidebar);
    color: var(--healing-purple);
    text-align: center;
    padding: 20px;
    margin-left: 260px;
}

.footer p {
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .container {
        flex-direction: column;
    }
    
    .path-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}
