/* 自律星球 - 专业样式表 */

/* CSS 变量定义 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --info-color: #3b82f6;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --bg-hover: #475569;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #475569;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-light);
}

.logo {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主容器 */
.main-container {
    margin-top: 70px;
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* 通用 Section 样式 */
.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-add {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-add:hover {
    background: var(--success-color);
    transform: translateY(-2px);
}

.btn-refresh-small {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-refresh-small:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.btn-link {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 0 0.25rem;
}

.btn-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

/* 首页 Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-video-carousel {
    margin: 2rem auto;
    max-width: 800px;
}

.video-featured-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.video-player {
    margin-bottom: 1rem;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    min-height: 300px;
}

.play-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.video-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-placeholder small {
    opacity: 0.9;
    font-size: 0.9rem;
}

.video-placeholder .duration {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.video-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator:hover {
    background: var(--primary-color);
}

.indicator.active {
    background: var(--primary-light);
    width: 30px;
    border-radius: 5px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-stat {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.hero-stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-light);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.card-header h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* 进度环 */
.progress-ring-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 8;
}

.progress-ring-circle {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray var(--transition-slow);
}

.progress-text {
    position: absolute;
    text-align: center;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-light);
}

/* 每日宣言 */
.daily-affirmation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.daily-affirmation p {
    flex: 1;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
}

/* 最近成就 */
.recent-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 打卡按钮 */
.quick-checkin {
    text-align: center;
    margin-top: 2rem;
}

.btn-checkin-large {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    border-radius: var(--radius-xl);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.btn-checkin-large:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -5px rgba(99, 102, 241, 0.4);
}

.btn-checkin-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-checkin-large.checked {
    background: linear-gradient(135deg, var(--secondary-color), var(--success-color));
}

.checkin-emoji {
    font-size: 2.5rem;
}

.checkin-label {
    font-size: 1.1rem;
}

.checkin-status {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 评估模块 */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.assessment-intro {
    text-align: center;
}

.intro-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.assessment-dimensions {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    padding: 0 2rem;
}

.assessment-dimensions li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 测验样式 */
.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    background: var(--bg-card);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    transition: width var(--transition-base);
}

.question-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.question-container {
    text-align: center;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    font-size: 1rem;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* 评估结果 */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-badge {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.result-dimensions {
    margin: 2rem 0;
}

.dimension-bar {
    margin-bottom: 1rem;
}

.dimension-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.dimension-fill {
    background: var(--bg-card);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.dimension-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-slow);
}

.result-suggestions {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.result-suggestions h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.result-suggestions ul {
    list-style: none;
}

.result-suggestions li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.result-suggestions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* 目标管理 */
.goals-container {
    max-width: 1000px;
    margin: 0 auto;
}

.goal-add-form {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.goal-add-form input[type="text"] {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.goal-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.goal-options select,
.goal-options input[type="date"] {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
}

.goals-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.goal-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.goal-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
}

.goal-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.goal-badge {
    background: var(--bg-card);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.goal-progress {
    margin-top: 1rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.btn-complete {
    background: var(--secondary-color);
    color: white;
}

.btn-delete {
    background: var(--danger-color);
    color: white;
}

/* 任务模块 */
.tasks-container {
    max-width: 800px;
    margin: 0 auto;
}

.tasks-date-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.date-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

.date-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.task-add-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.task-add-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.task-add-form select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.tasks-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.task-stat {
    text-align: center;
}

.task-stat .stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.task-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-light);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.task-item:hover {
    border-color: var(--primary-color);
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.task-text {
    flex: 1;
    color: var(--text-primary);
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.priority-high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.priority-medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.priority-low {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.task-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: all var(--transition-fast);
}

.task-delete:hover {
    color: var(--danger-color);
}

/* 习惯追踪 */
.habits-container {
    max-width: 1000px;
    margin: 0 auto;
}

.habit-add-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.habit-add-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.habit-add-form select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.habit-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.habit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.habit-name {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.habit-streak {
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: bold;
}

.habit-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-top: 1rem;
}

.habit-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.habit-day.checked {
    background: var(--secondary-color);
    color: white;
}

.habit-day.today {
    border: 2px solid var(--primary-color);
}

.habit-day:hover {
    cursor: pointer;
    opacity: 0.8;
}

.habit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.streaks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.streak-item {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.streak-emoji {
    font-size: 2rem;
}

.streak-info {
    flex: 1;
}

.streak-habit-name {
    font-weight: bold;
    color: var(--text-primary);
}

.streak-count {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* 励志内容 */
.motivation-container {
    max-width: 1000px;
    margin: 0 auto;
}

.motivation-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.motivation-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.quote-card {
    text-align: center;
    padding: 2rem;
}

.quote-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.quote-author {
    color: var(--text-muted);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-card-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.article-card-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.article-card-item h4 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.article-card-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* 社区模块 */
.community-container {
    max-width: 800px;
    margin: 0 auto;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.community-stat {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.community-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.community-stat .stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.community-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.post-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: var(--text-primary);
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.community-cta {
    text-align: center;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.community-cta h3 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.community-cta p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* 数据分析 */
.analytics-container {
    max-width: 1200px;
    margin: 0 auto;
}

.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.card-icon {
    font-size: 2.5rem;
}

.card-content .card-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-light);
}

.card-content .card-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.chart-container {
    min-height: 250px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    padding: 20px 10px;
    gap: 5px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height var(--transition-base);
    position: relative;
    min-height: 5px;
}

.bar:hover {
    opacity: 0.8;
}

.bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 20px auto;
    position: relative;
}

.pie-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.analytics-insights {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.analytics-insights h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.insight-icon {
    font-size: 1.5rem;
}

.insight-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 心理学指导 */
.psychology-container {
    max-width: 1200px;
    margin: 0 auto;
}

.psychology-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-fast);
}

.article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.article-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.article-card h3 {
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.article-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-read-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-read-more:hover {
    background: var(--primary-dark);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--border-color);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger-dark);
    transform: scale(1.1);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.achievement-unlocked {
    text-align: center;
}

.achievement-unlocked .emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.achievement-unlocked .name {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.achievement-unlocked .desc {
    color: var(--text-secondary);
}

/* 页脚 */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-top: 1rem;
}

/* 通知 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary-color);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform var(--transition-base);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.info {
    border-left-color: var(--info-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        display: none;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .analytics-charts {
        grid-template-columns: 1fr;
    }

    .community-stats {
        grid-template-columns: 1fr;
    }

    .goal-options {
        flex-direction: column;
    }

    .task-add-form {
        flex-direction: column;
    }

    .tasks-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .habits-grid {
        grid-template-columns: 1fr;
    }

    .motivation-tabs {
        justify-content: center;
    }

    .psychology-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .analytics-overview {
        grid-template-columns: 1fr 1fr;
    }

    .btn-checkin-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .checkin-emoji {
        font-size: 2rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 模板标签 */
.goal-templates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.template-tag {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.template-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==================== 简洁化首页样式 ==================== */

/* 欢迎区域优化 */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 紧凑 Section 头 */
.compact-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.compact-section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.compact-section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 召集令紧凑样式 */
.announcements-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.announcements-compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.announcement-card-compact {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition-fast);
}

.announcement-card-compact:hover {
    transform: translateY(-3px);
}

.announcement-card-compact h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.announcement-card-compact p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 内容紧凑样式 */
.content-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.content-tabs-compact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.tab-btn-small {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.tab-btn-small.active,
.tab-btn-small:hover {
    background: var(--primary-color);
    color: white;
}

.content-compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.content-card-compact {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.content-card-compact:hover {
    transform: translateY(-3px);
}

.content-card-compact .thumbnail {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.content-card-compact .info {
    padding: 1rem;
}

.content-card-compact .info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.content-card-compact .info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 社区样式 */
.community-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.community-form {
    margin-bottom: 1.5rem;
}

.community-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 80px;
    margin-bottom: 0.5rem;
}

.community-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-post {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.community-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.post-card .post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-card .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.post-card .user-info {
    flex: 1;
}

.post-card .username {
    font-weight: bold;
    display: block;
}

.post-card .post-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-card .post-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 后台管理入口 */
.admin-section {
    text-align: center;
    padding: 3rem 0;
}

.admin-entry h2 {
    margin-bottom: 1rem;
}

/* ==================== 首页预览板块样式 ==================== */
.preview-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-header h2 {
    font-size: 1.5rem;
}

.view-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.view-more:hover {
    color: var(--primary-light);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.preview-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition-fast);
}

.preview-card:hover {
    transform: translateY(-3px);
}

.preview-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.preview-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.preview-info h3 {
    font-size: 0.95rem;
}

.preview-info p {
    font-size: 0.8rem;
}

.empty-preview {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* 学习内容预览双栏布局 */
.learning-preview-sections {
    display: grid;
    gap: 1.5rem;
}

.preview-subsection {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.preview-subsection h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* 社区预览 */
.community-preview-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-preview-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.post-preview-card .post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-preview-card .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.post-preview-card .post-meta {
    flex: 1;
}

.post-preview-card .username {
    font-weight: bold;
    display: block;
    font-size: 0.9rem;
}

.post-preview-card .time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-preview-card .post-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 视频轮播样式 */
.video-featured-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-placeholder {
    text-align: center;
    color: white;
    padding: 2rem;
}

.video-placeholder .play-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.video-placeholder p {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.video-placeholder small {
    display: block;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.video-placeholder .duration {
    background: rgba(0,0,0,0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.video-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
}

.video-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-hover);
    cursor: pointer;
    transition: all 0.3s;
}

.video-indicators .indicator.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

/* ==================== 完整页面样式 ==================== */
.full-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
}

.full-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.announcements-full-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.announcement-card-full {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--primary-color);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.announcement-header h3 {
    font-size: 1.3rem;
}

.priority-badge {
    background: var(--bg-hover);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.announcement-content {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.announcement-footer {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.content-full-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-card-full {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1rem;
}

.content-icon {
    font-size: 3rem;
}

.content-details h3 {
    margin-bottom: 0.5rem;
}

.content-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.content-details small {
    color: var(--text-muted);
}

.assessment-start {
    text-align: center;
    padding: 3rem 0;
}

.assessment-intro ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    font-size: 1.1rem;
}

.assessment-intro li {
    padding: 0.5rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tool-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.tool-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-secondary);
}

.tool-cta {
    text-align: center;
    margin-top: 2rem;
}

.community-post-form {
    margin-bottom: 2rem;
}

.community-post-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    min-height: 100px;
    margin-bottom: 1rem;
    resize: vertical;
}

.community-post-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-post {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.posts-full-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-full-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.post-full-card .post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-full-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.post-full-card .username {
    font-weight: bold;
    display: block;
}

.post-full-card .time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-full-card .post-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* 10 个工具网格 */
.tools-grid-10 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 10 个测试网格 */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.test-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.test-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.test-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.test-card h3 {
    margin-bottom: 0.5rem;
}

.test-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.test-meta {
    display: inline-block;
    background: var(--bg-hover);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 工具模态框 */
.tool-modal .modal-content {
    max-width: 600px;
}

.tool-interface {
    padding: 2rem 0;
    text-align: center;
}

.timer-display {
    font-size: 4rem;
    font-weight: bold;
    font-family: monospace;
    margin: 2rem 0;
    color: var(--primary-color);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.timer-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.tool-tip {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

/* 呼吸练习 */
.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 1s ease;
    color: white;
}

/* 待办清单 */
.todo-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.todo-input input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.todo-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.todo-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.todo-item.completed span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-item button {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* 习惯追踪 */
.habit-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.habit-input input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.habit-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: bold;
}

.habit-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.habit-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.habit-item.completed span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.habit-item button {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* 喝水提醒 */
.water-tracker {
    padding: 1rem;
}

.water-count {
    font-size: 2rem;
    font-weight: bold;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.water-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.water-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.water-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.water-controls .btn-secondary {
    background: var(--bg-hover);
}

/* 拉伸提醒 */
.stretch-reminders {
    padding: 1rem;
}

.stretch-timer {
    font-size: 3rem;
    font-weight: bold;
    font-family: monospace;
    margin: 2rem 0;
    color: var(--primary-color);
}

.stretch-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.stretch-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

/* 睡眠提醒 */
.sleep-schedule {
    padding: 1rem;
}

.sleep-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sleep-input label {
    font-weight: bold;
    color: var(--text-secondary);
}

.sleep-input input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.sleep-status {
    margin-top: 1rem;
    text-align: center;
}

.sleep-status .success {
    color: var(--success-color);
    font-weight: bold;
}

/* 感恩日记 */
.gratitude-journal {
    padding: 1rem;
}

.gratitude-journal textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    resize: vertical;
    margin-bottom: 1rem;
}

.gratitude-journal button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.gratitude-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gratitude-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    position: relative;
}

.gratitude-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.gratitude-date {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.gratitude-item .btn-small {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger-color);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

