/* 仪表板样式 - 旗舰版适配 */
body {
    background: var(--bg-body);
}

/* 用户信息胶囊 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.user-info:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.user-avatar {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 50%;
    color: var(--primary-color);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

#userName {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 72px);
    margin-top: 72px;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.7);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-menu {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-main);
    border-color: var(--border-color);
}

.menu-item.active {
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-weight: 600;
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.menu-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 20px;
    opacity: 0.5;
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    max-width: 1600px;
    background: var(--bg-body);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
}

.content-section {
    display: none;
    animation: fadeSlideUp 0.4s ease;
}

.content-section.active {
    display: block;
}

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

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

.section-header-bar h2 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.header-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.search-input,
.filter-select,
.member-selector {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--bg-card);
    color: var(--text-main);
    min-height: 42px;
}

.search-input {
    min-width: 240px;
}

.search-input:focus,
.filter-select:focus,
.member-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
    background: rgba(30, 41, 59, 0.8);
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    background: linear-gradient(145deg, #1e293b 0%, #172033 100%);
}

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

.stat-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.stat-card:hover .stat-icon {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.2));
}

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

/* ==================== 快捷操作卡片 ==================== */
.quick-actions {
    margin-bottom: 48px;
}

.quick-actions h3 {
    margin-bottom: 24px;
    color: var(--text-main);
    font-size: 1.25rem;
}

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

.action-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.3);
    background: rgba(30, 41, 59, 0.8);
}

.action-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon-wrapper {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.action-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.action-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

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

/* ==================== 内容卡片 ==================== */
.recent-reports,
.health-trends {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.recent-reports h3,
.health-trends h3 {
    margin-bottom: 24px;
    color: var(--text-main);
    font-size: 1.25rem;
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.report-item:hover {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.report-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.report-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.report-details h4 {
    margin-bottom: 4px;
    color: var(--text-main);
    font-size: 1rem;
}

.report-details p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ==================== 报告网格 ==================== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.report-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.report-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.2);
    border-color: var(--primary-color);
}

.report-card-header {
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.report-status {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.report-card-body {
    padding: 24px;
    flex-grow: 1;
}

.report-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.report-metric:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.metric-value {
    font-weight: 600;
    color: var(--text-main);
}

.report-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.3);
}

/* ==================== 矫形器时间线 ==================== */
.orthotic-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 60px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--border-color);
    opacity: 0.5;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 58px;
    height: 58px;
    background: var(--bg-card);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.timeline-content {
    flex: 1;
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.15);
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.timeline-content h4 {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ==================== 家庭成员 ==================== */
.family-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.member-card {
    background: var(--bg-card);
    padding: 40px 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.3);
}

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

.member-avatar {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--bg-body);
    font-size: 3rem;
    border: 4px solid var(--bg-card);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.member-card h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.member-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ==================== 设置 ==================== */
.settings-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    border: 1px solid var(--border-color);
}

.settings-group {
    margin-bottom: 40px;
}

.settings-group h3 {
    margin-bottom: 24px;
    color: var(--text-main);
    font-size: 1.2rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.settings-item label {
    color: var(--text-secondary);
    font-weight: 500;
}

.settings-item input[type="text"] {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 300px;
    transition: all 0.2s;
    background: var(--bg-body);
    color: var(--text-main);
}

.settings-item input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
    outline: none;
}

/* 开关优化 */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-light);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .slider {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-soft);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .main-content {
        padding: 30px;
    }
}

@media (max-width: 968px) {
    .sidebar {
        width: 80px;
    }
    
    .menu-item span:last-child {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
        padding: 16px 0;
    }
    
    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .menu-item span:last-child {
        display: inline;
    }
    
    .menu-item {
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 模态框基础样式 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.modal-large {
    max-width: 1000px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--bg-body);
    border-radius: 0 0 16px 16px;
}

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

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: #475569;
}

/* ==================== 训练计划卡片列表 ==================== */
.exercise-plans-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.exercise-plan-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.exercise-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    border-color: var(--primary-color);
}

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

.plan-header h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
}

.plan-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.plan-header > span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.3));
}

.plan-progress {
    height: 8px;
    background: var(--bg-body);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 16px;
}

.plan-progress-bar {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 100px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

/* ==================== 训练计划详情 ==================== */
.training-plan-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.plan-detail-header {
    background: var(--bg-body);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.plan-detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plan-detail-title-row h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.plan-status-badge {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-status-badge.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.plan-status-badge.status-completed {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.plan-status-badge.status-paused {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.plan-detail-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.plan-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

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

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

.plan-meta-value {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

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

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

.progress-label {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar-container {
    height: 12px;
    background: var(--bg-body);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 100px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

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

.plan-detail-phases,
.plan-detail-exercises {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.plan-detail-phases h4,
.plan-detail-exercises h4 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
}

.plan-phase-card {
    background: var(--bg-body);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.plan-phase-card:last-child {
    margin-bottom: 0;
}

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

.phase-header h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.phase-description {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.phase-progress {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.phase-exercises {
    margin-top: 16px;
}

.phase-exercises-header {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.exercises-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* ==================== 动作卡片小尺寸 ==================== */
.exercise-card-mini {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}

.exercise-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    border-color: var(--primary-color);
}

.exercise-card-mini.completed {
    opacity: 0.8;
    border-color: var(--secondary-color);
}

.exercise-card-mini.completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.05);
    pointer-events: none;
}

.exercise-card-mini-media {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--bg-body);
    overflow: hidden;
}

.exercise-card-mini-media video,
.exercise-card-mini-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.exercise-card-mini:hover .exercise-card-mini-media video,
.exercise-card-mini:hover .exercise-card-mini-media img {
    opacity: 1;
}

.exercise-card-mini-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--text-muted);
}

.exercise-completed-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.exercise-card-mini-difficulty {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(4px);
}

.exercise-card-mini-body {
    padding: 12px;
}

.exercise-card-mini-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exercise-card-mini-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exercise-card-mini-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.exercise-card-mini-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--primary-soft);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.exercise-card-mini-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px dashed var(--border-color);
    min-height: 300px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

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

.empty-state p {
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.5;
}