/* 健身计划管理网站样式 */

/* CSS变量 */
:root {
    --primary-color: #00d4aa;
    --primary-dark: #00b894;
    --secondary-color: #6c5ce7;
    --accent-color: #fd79a8;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --card-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #b2bec3;
    --text-muted: #636e72;
    --border-color: #2d3436;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #e17055;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s 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, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

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

.nav-link.logout {
    color: var(--error-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 主内容 */
.main-content {
    padding: 32px 0;
    min-height: calc(100vh - 64px);
}

/* 页面标题 */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--primary-color);
}

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

.btn-danger:hover {
    background: #d63031;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.05);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-icon-sm svg {
    width: 16px;
    height: 16px;
}

.btn-danger-icon {
    color: var(--text-muted);
    border-color: transparent;
}

.btn-danger-icon:hover {
    background: rgba(255, 99, 132, 0.1);
    color: var(--error-color);
    border-color: var(--error-color);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.required {
    color: var(--error-color);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.form-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* 提示信息 */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: rgba(225, 112, 85, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* 认证页面 */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

/* 统计卡片 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.training-icon {
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-color);
}

.calories-icon {
    background: rgba(253, 203, 110, 0.1);
    color: var(--warning-color);
}

.meals-icon {
    background: rgba(108, 92, 231, 0.1);
    color: var(--secondary-color);
}

.progress-icon {
    background: rgba(253, 121, 168, 0.1);
    color: var(--accent-color);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-highlight {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.stat-unit {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.stat-target {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 餐别状态 */
.meal-status {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.meal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.meal.completed {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* 图表区域 */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    padding: 24px;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 16px;
}

/* 最近记录 */
.dashboard-recent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.recent-card {
    padding: 24px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
}

.recent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recent-name {
    font-weight: 500;
    color: var(--text-primary);
}

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

.recent-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.calories {
    color: var(--warning-color);
    font-weight: 500;
}

.health-score {
    color: var(--primary-color);
    font-weight: 500;
}

.meal-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.meal-type-badge.breakfast {
    background: rgba(253, 203, 110, 0.1);
    color: var(--warning-color);
}

.meal-type-badge.lunch {
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-color);
}

.meal-type-badge.dinner {
    background: rgba(108, 92, 231, 0.1);
    color: var(--secondary-color);
}

.meal-type-badge.snack {
    background: rgba(253, 121, 168, 0.1);
    color: var(--accent-color);
}

.card-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
}

/* 计划页面 - 日期导航 */
.date-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.date-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--dark-bg);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.date-nav-btn svg {
    width: 20px;
    height: 20px;
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.date-display input[type="date"] {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.date-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 计划页面 - 一周概览 */
.week-overview {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    min-width: 56px;
    position: relative;
}

.week-day:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.week-day.is-today {
    border-color: var(--primary-color);
}

.week-day.is-selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.week-day-label {
    font-size: 0.75rem;
}

.week-day-num {
    font-size: 1.1rem;
    font-weight: 600;
}

.week-day-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    position: absolute;
    bottom: 6px;
}

.week-day.is-selected .week-day-dot {
    background: white;
}

/* 计划页面 - 当日训练 */
.day-plan-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-actions {
    display: flex;
    gap: 8px;
}

.empty-day {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
}

.empty-day p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* 计划页面 - 任务列表 */
.day-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-task-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.day-task-item.completed {
    opacity: 0.6;
    border-color: var(--success-color);
}

.task-index {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.day-task-item.completed .task-index {
    background: var(--success-color);
}

.task-content {
    flex: 1;
}

.task-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.task-plan-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* 计划页面 - 计划列表 */
.plans-section {
    margin-bottom: 40px;
}

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.plan-item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.plan-task-count {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.plan-item-actions {
    display: flex;
    gap: 8px;
}

.empty-plans {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.modal-body .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.modal-body .form-row .form-group {
    margin-bottom: 0;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    animation: modalIn 0.2s ease;
}

.modal-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    animation: modalIn 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 任务列表 */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.task-card.completed {
    opacity: 0.7;
    border-color: var(--success-color);
}

.task-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.task-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.task-title {
    flex: 1;
}

.task-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.task-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success-color);
    font-weight: 500;
}

.task-status svg {
    width: 20px;
    height: 20px;
}

.task-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.detail-value {
    font-weight: 500;
    color: var(--text-primary);
}

.task-notes {
    padding: 12px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.notes-label {
    color: var(--text-muted);
}

.task-actions {
    display: flex;
    gap: 8px;
}

.task-log-info {
    padding: 16px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.log-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.log-detail {
    display: flex;
    gap: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.log-feeling {
    margin-top: 8px;
    color: var(--text-secondary);
}

.log-notes {
    margin-top: 8px;
    color: var(--text-secondary);
    font-style: italic;
}

/* 训练执行页面 - 复选框 */
.task-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.task-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.task-checkbox .checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: transparent;
}

.task-checkbox input:checked + .checkmark {
    background: var(--success-color);
    border-color: var(--success-color);
}

.task-checkbox input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* 训练执行页面 - 任务计划信息 */
.task-plan-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 训练执行页面 - 实际完成记录 */
.actual-log {
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.log-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

.log-value {
    font-weight: 500;
}

.feeling-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feeling-badge.easy {
    background: rgba(81, 207, 102, 0.15);
    color: var(--success-color);
}

.feeling-badge.moderate {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning-color);
}

.feeling-badge.hard {
    background: rgba(255, 99, 132, 0.15);
    color: var(--danger-color);
}

/* 训练执行页面 - 备注区域 */
.task-notes-area {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
}

.task-notes-input {
    flex: 1;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 36px;
    transition: var(--transition);
}

.task-notes-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.8rem;
}

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

/* 训练执行页面 - 完成表单 */
.complete-form {
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--primary-color);
    animation: slideDown 0.2s ease;
}

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

.complete-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.complete-form .form-group {
    margin-bottom: 0;
}

.complete-form .form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.complete-form .form-group input,
.complete-form .form-group select {
    width: 100%;
    padding: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.complete-form .form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* 训练执行页面 - AI建议 */
.ai-suggestion-inline {
    background: rgba(54, 162, 235, 0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px;
    margin-top: 12px;
}

.ai-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-suggestion-inline p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 训练执行页面 - AI评价区域 */
.ai-evaluation-section {
    margin-top: 32px;
}

.ai-eval-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.ai-eval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ai-eval-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.ai-suggestion-box {
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    border-left: 3px solid var(--primary-color);
}

.ai-suggestion-box p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

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

/* 训练执行页面 - 头部操作 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions input[type="date"] {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* 训练执行页面 - 身体数据 */
.progress-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.body-info .body-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.body-info .body-stats span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .progress-overview {
        grid-template-columns: 1fr;
    }
    
    .complete-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .task-header {
        flex-wrap: wrap;
    }
    
    .task-plan-info {
        width: 100%;
        margin-left: 44px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions input[type="date"] {
        flex: 1;
    }
    
    /* 计划页面移动端 */
    .date-navigator {
        gap: 8px;
        padding: 12px;
    }
    
    .week-overview {
        gap: 4px;
    }
    
    .week-day {
        padding: 8px 10px;
        min-width: 44px;
    }
    
    .week-day-num {
        font-size: 0.95rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
    }
    
    .section-actions .btn {
        flex: 1;
    }
    
    .day-task-item {
        padding: 12px;
        gap: 12px;
    }
    
    .task-name {
        font-size: 0.95rem;
    }
    
    .plan-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .plan-item-actions {
        width: 100%;
    }
    
    .plan-item-actions .btn {
        flex: 1;
    }
    
    .modal {
        width: 95%;
        margin: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
}

/* 进度概览 */
.progress-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.progress-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.progress-label {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* 完成消息 */
.completion-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(108, 92, 231, 0.1) 100%);
    border-radius: var(--radius);
    margin-top: 32px;
}

.completion-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-icon svg {
    width: 40px;
    height: 40px;
    color: var(--dark-bg);
}

.completion-message h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.completion-message p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 日历选择器 */
.food-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-selector input[type="date"] {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 1rem;
}

.daily-summary {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-value.over {
    color: var(--error-color);
}

/* 餐别部分 */
.meals-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.meal-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.meal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.meal-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.meal-records {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.food-record {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    align-items: flex-start;
}

.food-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-info {
    flex: 1;
}

.food-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.food-nutrition {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.food-comment {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.food-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.food-calories {
    text-align: right;
    min-width: 100px;
}

.calories-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--warning-color);
    margin-bottom: 8px;
}

.health-score {
    margin-bottom: 8px;
}

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

.score-value {
    font-weight: 600;
    color: var(--primary-color);
}

.food-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.food-actions .re-estimate {
    color: var(--success-color);
}

.food-actions .re-estimate:hover {
    background: rgba(81, 207, 102, 0.15);
}

.food-actions .re-estimate:disabled {
    animation: spin 1s linear infinite;
}

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

/* 图片上传 */
.image-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.image-upload:hover {
    border-color: var(--primary-color);
}

.upload-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.upload-hint svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

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

.image-preview {
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* AI提示 */
.ai-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.ai-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 餐别选择器 */
.meal-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meal-option {
    flex: 1;
    min-width: 100px;
}

.meal-option input[type="radio"] {
    display: none;
}

.meal-label {
    display: block;
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.meal-option input[type="radio"]:checked + .meal-label {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-color);
}

/* 分享页面 */
.share-view {
    max-width: 800px;
    margin: 0 auto;
}

.share-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(108, 92, 231, 0.1) 100%);
    border-radius: var(--radius);
}

.share-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.share-date {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

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

.share-section {
    margin-bottom: 32px;
}

.share-view .section-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-primary);
}

.workout-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workout-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
}

.workout-name {
    flex: 1;
    font-weight: 600;
}

.workout-detail {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
}

.workout-feeling {
    padding: 4px 8px;
    background: var(--dark-bg);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.diet-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.meal-group {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
}

.date-group {
    margin-bottom: 24px;
}

.date-group:last-child {
    margin-bottom: 0;
}

.date-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.date-meals {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meal-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.food-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.food-item:last-child {
    margin-bottom: 0;
}

.diet-summary {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-top: 24px;
}

.share-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.share-footer p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* 分享链接生成 */
.share-url-box {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.share-url-box input {
    flex: 1;
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.share-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.share-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.share-option input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.share-option input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.05);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.option-icon svg {
    width: 24px;
    height: 24px;
}

.option-label {
    font-weight: 600;
    color: var(--text-primary);
}

.shares-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
}

.share-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.share-type-badge.workout {
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-color);
}

.share-type-badge.diet {
    background: rgba(253, 203, 110, 0.1);
    color: var(--warning-color);
}

.share-type-badge.overview {
    background: rgba(108, 92, 231, 0.1);
    color: var(--secondary-color);
}

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

.share-status {
    font-size: 0.85rem;
}

.status-active {
    color: var(--success-color);
}

.status-expired {
    color: var(--text-muted);
}

.share-actions {
    display: flex;
    gap: 4px;
}

/* 任务项 */
.task-item {
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.task-item .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.task-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 编辑热量表单 */
.edit-cal-form {
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        animation: navSlideDown 0.3s ease;
    }
    
    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    
    .nav-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .dashboard-recent {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .food-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .daily-summary {
        width: 100%;
        justify-content: space-around;
    }
    
    .food-record {
        flex-direction: column;
    }
    
    .food-calories {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .share-url-box {
        flex-direction: column;
    }
    
    .share-item {
        flex-wrap: wrap;
    }
    
    .share-info {
        width: 100%;
    }
    
    .share-status {
        width: 100%;
    }
    
    .share-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .card {
        padding: 16px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .meal-selector {
        flex-direction: column;
    }
    
    .share-type-selector {
        grid-template-columns: 1fr;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 选中文本颜色 */
::selection {
    background: rgba(0, 212, 170, 0.3);
    color: var(--text-primary);
}

/* 页面加载过渡 */
.main-content {
    animation: fadeIn 0.4s ease;
}

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

/* 焦点样式增强 */
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

/* 工具类 */
.text-center {
    text-align: center;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* 个人资料页面样式 */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.profile-card:hover {
    border-color: var(--primary-color);
}

.profile-avatar {
    text-align: center;
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--dark-bg);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.profile-form .form-group {
    margin-bottom: 16px;
}

.profile-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-form .form-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.profile-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* 身体数据展示 */
.body-stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
}

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

.body-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.body-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.body-stat-value.underweight { color: var(--warning-color); }
.body-stat-value.normal { color: var(--success-color); }
.body-stat-value.overweight { color: var(--warning-color); }
.body-stat-value.obese { color: var(--error-color); }

/* 体重输入 */
.weight-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
}

.weight-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.weight-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* 体重图表 */
.weight-chart-container {
    position: relative;
    height: 250px;
    margin: 20px 0;
}

.weight-chart-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 体重历史记录 */
.weight-history {
    margin-top: 16px;
}

.weight-record-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.weight-record-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.weight-record-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* 统计概览 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

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

.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--error-color) !important; }

/* 信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
}

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

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* 个人中心响应式 */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .body-stats-card {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 日常计划页面样式 - 深度优化版 ========================================== */
.daily-plans-page {
    background: var(--bg-color);
}

/* 页面头部 */
.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.daily-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daily-header-left .page-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== 一周日期导航 ===== */
.week-nav-wrapper {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 24px;
}

.week-nav-arrow {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

.week-nav-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.05);
}

.week-nav {
    display: flex;
    gap: 8px;
    flex: 1;
}

.week-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px 10px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.week-day::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.week-day:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.week-day.selected {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25);
}

.week-day.selected::before {
    opacity: 1;
}

.week-day.selected .week-day-name,
.week-day.selected .week-day-num {
    color: var(--dark-bg);
    position: relative;
    z-index: 1;
}

.week-day.selected .week-day-bar {
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.week-day.today:not(.selected) {
    border-color: rgba(0, 212, 170, 0.3);
}

.week-day.today:not(.selected) .week-day-num::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color);
}

.week-day-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.week-day-num {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* 周任务状态指示条 */
.week-day-bar {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    margin-top: 2px;
}

.week-day-bar.bar-pending {
    background: var(--text-muted);
    opacity: 0.3;
}

.week-day-bar.bar-partial {
    background: var(--warning-color, #fdcb6e);
}

.week-day-bar.bar-done {
    background: var(--primary-color);
}

/* ===== 统计概览 ===== */
.daily-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.overview-date::after { background: #6c5ce7; }
.overview-done::after { background: var(--primary-color); }
.overview-pending::after { background: #fdcb6e; }
.overview-progress::after { background: #74b9ff; }

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.overview-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.overview-date .overview-icon {
    background: rgba(108, 92, 231, 0.12);
    color: #6c5ce7;
}

.overview-done .overview-icon {
    background: rgba(0, 212, 170, 0.12);
    color: var(--primary-color);
}

.overview-pending .overview-icon {
    background: rgba(253, 203, 110, 0.12);
    color: #fdcb6e;
}

.overview-progress .overview-icon {
    background: rgba(116, 185, 255, 0.12);
    color: #74b9ff;
}

.overview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.overview-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.overview-highlight {
    color: var(--primary-color);
}

.overview-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== 主布局 ===== */
.daily-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

/* ===== 左侧任务区 ===== */
.daily-tasks-section,
.daily-plans-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: border-color 0.25s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-progress {
    flex-shrink: 0;
    width: 120px;
}

.section-progress .progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.section-progress .progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.task-count-badge,
.plan-count-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-color);
}

/* 空状态 */
.empty-tasks,
.empty-plans {
    text-align: center;
    padding: 60px 24px;
}

.empty-icon {
    margin-bottom: 20px;
    color: var(--text-muted);
    opacity: 0.2;
}

.empty-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== 任务列表 ===== */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--dark-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    position: relative;
    animation: taskFadeIn 0.3s ease both;
}

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

.daily-task-item:hover {
    border-color: var(--task-color, var(--primary-color));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.daily-task-item.completed {
    opacity: 0.55;
    background: rgba(0, 0, 0, 0.08);
}

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

.daily-task-item.task-toggling {
    transform: scale(0.97);
    opacity: 0.7;
}

.task-color-bar {
    width: 3px;
    height: 100%;
    min-height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 0;
}

.task-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
}

.task-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.task-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 7px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkbox:hover .checkmark {
    border-color: var(--task-color, var(--primary-color));
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.08);
}

.task-checkbox input:checked + .checkmark {
    background: var(--task-color, var(--primary-color));
    border-color: var(--task-color, var(--primary-color));
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.task-checkbox input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--dark-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.task-content {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
}

.task-name {
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-badge svg {
    flex-shrink: 0;
}

.task-badge-time {
    background: rgba(0, 212, 170, 0.08);
    color: var(--primary-color);
}

.task-badge-loc {
    background: rgba(116, 185, 255, 0.08);
    color: #74b9ff;
}

.task-badge-desc {
    background: rgba(255, 255, 255, 0.04);
}

.task-done-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 2px 8px;
    background: rgba(0, 212, 170, 0.08);
    border-radius: 4px;
    flex-shrink: 0;
}

/* ===== 右侧计划列表 ===== */
.daily-plans-section {
    display: flex;
    flex-direction: column;
}

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.plans-list::-webkit-scrollbar {
    width: 3px;
}

.plans-list::-webkit-scrollbar-track {
    background: transparent;
}

.plans-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.plan-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--dark-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    overflow: hidden;
}

.plan-item:hover {
    border-color: rgba(0, 212, 170, 0.2);
}

.plan-color {
    width: 4px;
    flex-shrink: 0;
}

.plan-info {
    flex: 1;
    padding: 12px 14px;
    min-width: 0;
}

.plan-name {
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.plan-detail {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.plan-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.plan-repeat-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.plan-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.plan-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.plan-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
}

.plan-item:hover .plan-delete-btn {
    opacity: 1;
}

.plan-delete-btn:hover {
    color: var(--error-color);
    background: rgba(225, 112, 85, 0.08);
}

/* 本周统计 */
.weekly-summary {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--dark-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.weekly-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.weekly-summary-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.weekly-summary-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.weekly-summary-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.weekly-summary-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== 弹窗表单 ===== */
.form-input-lg {
    font-size: 1.05rem;
    padding: 12px 14px;
}

/* 重复选项（带图标） */
.repeat-options {
    display: flex;
    gap: 8px;
}

.repeat-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.repeat-option:hover {
    border-color: rgba(0, 212, 170, 0.3);
}

.repeat-option input {
    display: none;
}

.repeat-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.08);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.repeat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.repeat-label svg {
    flex-shrink: 0;
}

.repeat-option:has(input:checked) .repeat-label {
    color: var(--primary-color);
}

/* 间隔天数输入 */
.interval-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 200px;
}

.interval-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--dark-bg);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.interval-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.interval-input-wrap input {
    width: 60px;
    text-align: center;
    padding: 8px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.interval-input-wrap input::-webkit-outer-spin-button,
.interval-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.interval-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* 颜色选择器 */
.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-option input {
    display: none;
}

.color-option span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.color-option:hover span {
    transform: scale(1.1);
}

.color-option:has(input:checked) span {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--text-primary);
    transform: scale(1.1);
}

/* 星期选择器 */
.weekday-selector {
    display: flex;
    gap: 8px;
}

.weekday-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.weekday-btn input {
    display: none;
}

.weekday-btn span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.weekday-btn:hover span {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.weekday-btn:has(input:checked) span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .daily-layout { grid-template-columns: 1fr 280px; }
}

@media (max-width: 1024px) {
    .daily-layout { grid-template-columns: 1fr; }
    .daily-overview { grid-template-columns: repeat(2, 1fr); }
    .daily-plans-section { max-height: none; }
    .plans-list { max-height: 300px; }
}

@media (max-width: 768px) {
    .daily-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .week-nav-wrapper { gap: 6px; }
    .week-nav-arrow { width: 34px; }
    .week-day { padding: 10px 4px 8px; border-radius: 8px; }
    .week-day-num { font-size: 1rem; }
    .daily-overview { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .overview-card { padding: 14px; }
    .overview-icon { width: 38px; height: 38px; }
    .overview-value { font-size: 1.2rem; }
    .daily-tasks-section, .daily-plans-section { padding: 16px; }
    .plans-list { max-height: 250px; }
    .plan-delete-btn { opacity: 1; }
    .section-progress { display: none; }
}

@media (max-width: 480px) {
    .daily-overview { grid-template-columns: 1fr 1fr; }
    .weekday-selector { gap: 4px; }
    .weekday-btn span { width: 34px; height: 34px; font-size: 0.75rem; }
}

/* ===== slideDown 动画 ===== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 打印样式 */
@media print {
    
    body {
        background: white;
        color: black;
    }
    
    .card, .plan-card, .task-card {
        border: 1px solid #ddd;
        box-shadow: none;
        break-inside: avoid;
    }
}