/* ===== 学员后台专用样式 - 暖色温馨主题 ===== */

:root {
  --student-primary: #ff6b35;
  --student-secondary: #f7931e;
  --student-accent: #fbbf24;
  --student-bg: #fff8f0;
  --student-card: #ffffff;
  --student-text: #2d1b0e;
  --student-text-light: #8b6f4e;
  --student-border: #fde6cf;
  --student-success: #10b981;
  --student-shadow: 0 4px 12px rgba(255, 107, 53, 0.08);
}

.student-header {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-bottom: 1px solid #ff8c42;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}
.student-header .logo { color: #fff; }
.student-header nav a { color: rgba(255, 255, 255, 0.9); }
.student-header nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }
.student-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* 整体布局 */
.student-wrap {
  display: flex;
  min-height: calc(100vh - 70px);
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
}

/* 侧边栏 */
.student-sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid #fde6cf;
  padding: 24px 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.student-avatar-card {
  text-align: center;
  padding: 20px 12px;
  background: linear-gradient(135deg, #fff5ed 0%, #ffe8d4 100%);
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.student-avatar-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.student-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}
.student-name {
  font-size: 16px;
  font-weight: 700;
  color: #2d1b0e;
  margin-bottom: 4px;
}
.student-meta {
  font-size: 12px;
  color: #8b6f4e;
  margin-bottom: 12px;
}
.plan-tag { margin-top: 8px; }
.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.plan-basic { background: #dbeafe; color: #1e40af; }
.plan-advanced { background: linear-gradient(135deg, #ff6b35, #f7931e); color: #fff; }
.plan-vip { background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; }
.plan-none { background: #fef3c7; color: #92400e; }

.student-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.student-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #5b4a36;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.student-nav a:hover {
  background: #fff5ed;
  color: #ff6b35;
}
.student-nav a.active {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}
.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.3);
  color: inherit;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.student-nav a:not(.active) .nav-badge {
  background: #fff5ed;
  color: #ff6b35;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid #fde6cf;
  margin-top: 16px;
}
.public-page-link {
  display: block;
  padding: 10px 14px;
  background: #f8f9fc;
  border-radius: 10px;
  color: #5b4a36;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
}
.public-page-link:hover {
  background: #ff6b35;
  color: #fff;
}

/* 主内容 */
.student-main {
  flex: 1;
  padding: 32px 40px;
  max-width: calc(100% - 260px);
  overflow-x: hidden;
}

.section-header {
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #2d1b0e;
  margin-bottom: 6px;
}
.section-desc {
  color: #8b6f4e;
  font-size: 14px;
}
.section-actions {
  margin-top: 12px;
}

/* 欢迎条 */
.welcome-banner {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fbbf24 100%);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.welcome-banner h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
}
.welcome-banner p {
  opacity: 0.9;
  font-size: 14px;
  position: relative;
}
.welcome-actions {
  display: flex;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
}
.welcome-actions .btn-primary { background: #fff; color: #ff6b35; }
.welcome-actions .btn-primary:hover { background: #fff5ed; }
.welcome-actions .btn-outline { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.welcome-actions .btn-outline:hover { background: rgba(255, 255, 255, 0.3); }

/* 统计 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.mini-stat {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--student-shadow);
  border: 1px solid #fde6cf;
  transition: all 0.2s;
}
.mini-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
}
.mini-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fff5ed, #ffe8d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-value {
  font-size: 22px;
  font-weight: 800;
  color: #2d1b0e;
  line-height: 1;
}
.mini-label {
  font-size: 12px;
  color: #8b6f4e;
  margin-top: 4px;
}

/* 仪表盘卡片 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #fde6cf;
  box-shadow: var(--student-shadow);
}
.dashboard-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2d1b0e;
  margin-bottom: 16px;
}

/* 分类条形图 */
.category-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-bar {
  display: grid;
  grid-template-columns: 100px 1fr 30px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.cat-name { color: #5b4a36; font-weight: 500; }
.cat-progress {
  background: #fff5ed;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.cat-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b35, #f7931e);
  border-radius: 4px;
  transition: width 0.6s;
}
.cat-count { color: #ff6b35; font-weight: 700; text-align: right; }

/* 学习进度 */
.progress-bar {
  background: #fff5ed;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b35, #fbbf24);
  border-radius: 5px;
  transition: width 0.6s;
}
.progress-text {
  font-size: 13px;
  color: #8b6f4e;
  margin-bottom: 16px;
}
.milestone-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.milestone-list li {
  font-size: 14px;
  color: #5b4a36;
  padding: 6px 0;
}
.milestone-list li.done { color: #10b981; }

/* 最近文章 */
.mini-article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mini-article-item {
  padding: 12px 16px;
  background: #fff8f0;
  border-radius: 8px;
  border-left: 3px solid #ff6b35;
  transition: all 0.2s;
}
.mini-article-item:hover { background: #fff5ed; transform: translateX(4px); }
.mini-article-title a {
  color: #2d1b0e;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.mini-article-title a:hover { color: #ff6b35; }
.mini-article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #8b6f4e;
  margin-top: 6px;
  flex-wrap: wrap;
}

.empty-tip {
  text-align: center;
  color: #8b6f4e;
  padding: 40px 20px;
  font-size: 14px;
}
.empty-tip a { color: #ff6b35; text-decoration: none; font-weight: 600; }

/* 标签栏 */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #fde6cf;
}
.filter-tabs .tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #5b4a36;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tabs .tab:hover { background: #fff5ed; color: #ff6b35; }
.filter-tabs .tab.active {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  font-weight: 600;
}

/* 文章卡片 */
.my-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.my-article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #fde6cf;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.my-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.15);
  border-color: #ff6b35;
}
.my-article-cover {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #fde6cf;
  position: relative;
}
.my-article-status {
  position: absolute;
  top: 12px;
  right: 12px;
}
.my-article-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.my-article-category {
  font-size: 12px;
  color: #ff6b35;
  font-weight: 600;
  margin-bottom: 6px;
}
.my-article-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d1b0e;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-article-summary {
  font-size: 13px;
  color: #8b6f4e;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.my-article-footer {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #8b6f4e;
  margin-bottom: 12px;
}
.my-article-actions {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #fde6cf;
}
.my-article-actions .btn { flex: 1; text-align: center; }
.btn-danger {
  background: #fff;
  color: #ef4444;
  border: 1px solid #fecaca;
}
.btn-danger:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* 发布表单 */
.publish-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #fde6cf;
  box-shadow: var(--student-shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.publish-card .form-group { margin-bottom: 20px; }
.publish-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2d1b0e;
  margin-bottom: 8px;
}
.publish-card input,
.publish-card select,
.publish-card textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #fde6cf;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
  transition: all 0.2s;
}
.publish-card input:focus,
.publish-card select:focus,
.publish-card textarea:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.cover-uploader {
  display: flex;
  gap: 12px;
}
.cover-preview {
  width: 200px;
  height: 120px;
  border: 2px dashed #fde6cf;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff8f0;
  background-size: cover;
  background-position: center;
  color: #8b6f4e;
  font-size: 13px;
  gap: 6px;
  transition: all 0.2s;
}
.cover-preview:hover { border-color: #ff6b35; background: #fff5ed; }
.cover-preview.has-image { border-style: solid; border-color: #10b981; }
.upload-icon { font-size: 24px; }

.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #fff8f0;
  border: 1px solid #fde6cf;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}
.editor-toolbar button {
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #fde6cf;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #5b4a36;
  transition: all 0.2s;
}
.editor-toolbar button:hover { background: #ff6b35; color: #fff; border-color: #ff6b35; }
.editor-content {
  min-height: 400px;
  border: 1px solid #fde6cf;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #2d1b0e;
  background: #fff;
}
.editor-content:focus { outline: none; }
.editor-content:empty::before {
  content: attr(data-placeholder);
  color: #c4a980;
  pointer-events: none;
}
.editor-content h2 { font-size: 20px; font-weight: 700; margin: 16px 0 8px; }
.editor-content h3 { font-size: 17px; font-weight: 700; margin: 12px 0 6px; }
.editor-content blockquote {
  border-left: 3px solid #ff6b35;
  padding-left: 16px;
  color: #8b6f4e;
  margin: 12px 0;
}

.seo-section {
  background: #fff8f0;
  border: 1px solid #fde6cf;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.seo-section summary {
  cursor: pointer;
  font-weight: 600;
  color: #2d1b0e;
}
.seo-body { padding-top: 16px; }

.publish-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #fde6cf;
}
.btn-link {
  background: transparent;
  color: #8b6f4e;
  padding: 10px 16px;
}
.btn-link:hover { color: #ff6b35; }

/* 订单 */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-item {
  background: #fff;
  border: 1px solid #fde6cf;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 20px;
  transition: all 0.2s;
}
.order-item:hover { box-shadow: var(--student-shadow); }
.order-plan {
  font-size: 16px;
  font-weight: 700;
  color: #2d1b0e;
  margin-bottom: 4px;
}
.order-no, .order-date {
  font-size: 12px;
  color: #8b6f4e;
}
.order-amount {
  font-size: 20px;
  font-weight: 800;
  color: #ff6b35;
}
.order-done {
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
}

/* 个人资料 */
.profile-card {
  background: #fff;
  border: 1px solid #fde6cf;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--student-shadow);
}
.profile-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2d1b0e;
  margin-bottom: 16px;
}

/* 全域获客工具箱 */
.toolkit-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.toolkit-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.toolkit-hero-icon {
  font-size: 52px;
  background: rgba(255,255,255,0.2);
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toolkit-hero-left h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.toolkit-hero-left p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.toolkit-version-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tk-version-badge {
  background: rgba(255,255,255,0.25);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.tk-update-date, .tk-download-count {
  font-size: 12px;
  opacity: 0.75;
}
.toolkit-hero-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.toolkit-hero-right .btn-lg {
  padding: 10px 24px;
  font-size: 15px;
}
.toolkit-hero-right .btn-primary {
  background: #fff;
  color: #667eea;
  border: none;
}
.toolkit-hero-right .btn-outline {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.toolkit-hero-right .btn-outline:hover {
  background: rgba(255,255,255,0.25);
}

.toolkit-changelog {
  background: #f8f9ff;
  border: 1px solid #e0e4ff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.toolkit-changelog h4 {
  font-size: 14px;
  color: #667eea;
  margin-bottom: 6px;
}
.toolkit-changelog p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.toolkit-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.tk-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tk-feature-card:hover {
  border-color: #c3c8ff;
  box-shadow: 0 2px 8px rgba(102,126,234,0.1);
}
.tk-feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.tk-feature-card h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.tk-feature-card p {
  font-size: 12px;
  color: #888;
}

.toolkit-usage-guide {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid #eee;
}
.toolkit-usage-guide h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: #333;
}
.tk-usage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.tk-usage-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #667eea;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* 学员圈 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.community-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: #fde6cf;
  overflow: hidden;
}
.community-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #fde6cf;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.15);
  border-color: #ff6b35;
}
.community-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: #fde6cf;
}
.community-body { padding: 16px; }
.community-cat {
  font-size: 12px;
  color: #ff6b35;
  font-weight: 600;
  margin-bottom: 6px;
}
.community-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #2d1b0e;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.community-body p {
  font-size: 13px;
  color: #8b6f4e;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.community-meta {
  font-size: 12px;
  color: #8b6f4e;
}

/* ===== 课程视频 ===== */
.badge-published { background: #d1fae5; color: #065f46; }
.badge-draft { background: #f3f4f6; color: #6b7280; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }

/* ===== 课程套餐卡片 ===== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.package-card {
  background: #fff;
  border-radius: 16px;
  border: 2px solid var(--student-border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.package-card:hover {
  border-color: var(--student-primary);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.15);
  transform: translateY(-4px);
}
.package-card.activated {
  border-color: var(--student-success);
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
}
.package-card.activated::after {
  content: '✅ 已开通';
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--student-success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(35deg);
}
.package-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
}
.package-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--student-text);
  margin: 0;
}
.package-desc {
  font-size: 13px;
  color: var(--student-text-light);
  line-height: 1.6;
  margin: 0;
  min-height: 40px;
}
.package-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
}
.price-current {
  font-size: 28px;
  font-weight: 800;
  color: var(--student-primary);
}
.price-original {
  font-size: 16px;
  color: var(--student-text-light);
  text-decoration: line-through;
}
.package-courses-count {
  font-size: 13px;
  color: var(--student-text-light);
  font-weight: 500;
}
.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--student-border);
  padding-top: 12px;
}
.package-features li {
  font-size: 13px;
  color: var(--student-text);
  line-height: 1.5;
}
.package-action {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding-top: 16px;
}
.package-action .btn { width: 100%; }
.package-status {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.package-status.activated { color: var(--student-success); }
.package-status.locked { color: var(--student-text-light); }

.courses-list { display: flex; flex-direction: column; gap: 28px; }
.course-group { }
.course-group-title {
  font-size: 18px; font-weight: 700; color: var(--student-text);
  margin: 0 0 16px; padding-left: 12px;
  border-left: 4px solid var(--student-primary);
}
.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--student-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-card:hover {
  border-color: var(--student-primary);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.12);
  transform: translateY(-2px);
}
.course-card.watched {
  border-color: var(--student-success);
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}
.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.course-num {
  font-size: 13px; font-weight: 600;
  color: var(--student-primary);
  background: rgba(255, 107, 53, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}
.course-card.watched .course-num {
  color: var(--student-success);
  background: rgba(16, 185, 129, 0.1);
}
.course-lock { font-size: 18px; }
.course-title {
  font-size: 16px; font-weight: 700;
  color: var(--student-text);
  margin: 0; line-height: 1.4;
}
.course-desc {
  font-size: 13px; color: var(--student-text-light);
  line-height: 1.5; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 响应式 */
@media (max-width: 1024px) {
  .student-wrap { flex-direction: column; }
  .student-sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 16px;
  }
  .student-nav { flex-direction: row; overflow-x: auto; gap: 8px; }
  .student-nav a { white-space: nowrap; }
  .sidebar-footer { display: none; }
  .student-main { max-width: 100%; padding: 20px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .toolkit-features-grid { grid-template-columns: 1fr; }
  .order-item { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .welcome-banner { padding: 20px; flex-direction: column; align-items: flex-start; }
  .welcome-banner h1 { font-size: 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .my-article-grid { grid-template-columns: 1fr; }
}
