/* 蝶变成长会 - 官方课程商城 */
:root {
  --primary: #7c4dff;
  --primary-dark: #5b21b6;
  --primary-light: #f3efff;
  --primary-gradient: linear-gradient(135deg, #9d6bff 0%, #7c4dff 50%, #5b21b6 100%);
  --accent: #ff7a45;
  --danger: #ff4d4f;
  --success: #52c41a;
  --text: #1a1a2e;
  --text-secondary: #8c8c9a;
  --border: #eeeef2;
  --bg: #f5f6fa;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(91, 33, 182, 0.08);
  --shadow-lg: 0 8px 32px rgba(91, 33, 182, 0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; }
.main-content.has-home-header { padding-top: 52px; }
.main-content.has-top-bar { padding-top: 44px; }
.main-content.has-tabbar { padding-bottom: calc(56px + var(--safe-bottom)); }

/* 首页顶栏 */
.home-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.home-header-inner {
  max-width: 750px; margin: 0 auto; height: 100%; width: 100%;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
}
.home-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.home-brand { line-height: 1.2; }
.home-brand strong { display: block; font-size: 16px; color: var(--primary-dark); }
.home-brand span { font-size: 11px; color: var(--text-secondary); }

/* 内页顶栏 */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 44px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
}
.top-bar h1 { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-btn {
  position: absolute; left: 12px; color: var(--text);
  text-decoration: none; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
}
.back-btn:active { background: var(--bg); }
.top-bar-right { position: absolute; right: 12px; width: 24px; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; color: var(--text-secondary);
  text-decoration: none; position: relative;
}
.tab-item.active { color: var(--primary); }
.tab-svg { width: 22px; height: 22px; }
.tab-item .badge {
  position: absolute; top: 4px; right: calc(50% - 24px);
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-style: normal;
  border-radius: 8px; text-align: center; line-height: 16px;
}

/* 搜索 */
.search-wrap { padding: 12px 16px 0; }
.search-bar {
  padding: 10px 16px;
  background: var(--white); border-radius: 24px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-secondary); font-size: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.search-bar svg { flex-shrink: 0; color: var(--text-secondary); }
.search-bar input {
  flex: 1; border: none; outline: none; font-size: 14px; background: transparent;
}

/* 公告条 */
.notice-bar {
  margin: 12px 16px 0; padding: 8px 12px;
  background: var(--primary-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--primary-dark);
}
.notice-bar svg { flex-shrink: 0; }

/* 轮播 */
.carousel {
  position: relative;
  margin: 12px 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: var(--shadow);
}
.carousel-track { position: relative; width: 100%; aspect-ratio: 750 / 300; }
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.carousel-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s;
}
.carousel-dots .dot.active { width: 18px; border-radius: 3px; background: #fff; }

/* 服务保障条 */
.trust-bar {
  display: flex; margin: 12px 16px 0;
  background: var(--white); border-radius: var(--radius);
  padding: 14px 8px; box-shadow: var(--shadow);
}
.trust-item {
  flex: 1; text-align: center; font-size: 11px; color: var(--text-secondary);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.trust-item svg { color: var(--primary); }

/* 分类 */
.category-section { margin: 16px 16px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 17px; font-weight: 700; color: var(--text);
  padding-left: 10px; border-left: 3px solid var(--primary);
}
.section-header a { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.category-item {
  background: var(--white); border-radius: var(--radius);
  padding: 16px 8px; text-align: center;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.category-item:active { transform: scale(0.98); }
.category-item .icon {
  width: 44px; height: 44px; margin: 0 auto 8px;
  background: var(--primary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.category-item span { font-size: 13px; font-weight: 500; }

/* 课程卡片 */
.course-list-section { padding: 0 16px 16px; }
.course-card {
  display: block; background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 12px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: box-shadow 0.2s;
}
.course-card:active { box-shadow: var(--shadow-lg); }
.course-card-cover {
  position: relative; aspect-ratio: 1024 / 386;
  background: var(--primary-light); overflow: hidden;
}
.course-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--danger); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.course-card-body { padding: 14px 16px 16px; }
.course-card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.course-card-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
.price-group { display: flex; align-items: baseline; gap: 6px; }
.price-group .price { color: var(--danger); font-size: 20px; font-weight: 700; }
.price-group .original { font-size: 12px; color: var(--text-secondary); text-decoration: line-through; }
.enroll-count { font-size: 12px; color: var(--text-secondary); }

/* 课程介绍块 */
.intro-box {
  margin: 16px; padding: 16px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.intro-box h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--primary-dark); }
.intro-box p { font-size: 13px; color: #666; line-height: 1.8; }

/* 筛选栏 */
.filter-bar {
  display: flex; gap: 8px; padding: 12px 16px;
  background: var(--white); overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--border);
}
.filter-bar.has-top-bar { top: 44px; }
.filter-tag {
  flex-shrink: 0; padding: 7px 16px;
  border-radius: 20px; font-size: 13px;
  background: var(--bg); color: var(--text);
  text-decoration: none; border: 1px solid transparent;
  transition: all 0.2s;
}
.filter-tag.active {
  background: var(--primary-light); color: var(--primary);
  border-color: var(--primary); font-weight: 600;
}

/* 课程详情 */
.product-detail { background: var(--bg); padding-bottom: 80px; }
.detail-gallery {
  width: 100%; background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.detail-gallery.course-gallery { aspect-ratio: 1024 / 386; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-info {
  background: var(--white); padding: 16px; margin-bottom: 10px;
}
.detail-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.detail-price { color: var(--danger); font-size: 28px; font-weight: 800; }
.detail-price .original { font-size: 14px; color: var(--text-secondary); text-decoration: line-through; font-weight: normal; }
.detail-discount {
  background: #fff1f0; color: var(--danger);
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.detail-name { font-size: 20px; font-weight: 700; margin: 10px 0 6px; line-height: 1.4; }
.detail-subtitle { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail-tag {
  font-size: 11px; padding: 4px 10px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 4px;
}
.detail-meta { font-size: 12px; color: var(--text-secondary); margin-top: 10px; }
.service-strip {
  display: flex; background: var(--white);
  padding: 14px 0; margin-bottom: 10px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.service-strip .item {
  flex: 1; text-align: center; font-size: 11px; color: var(--text-secondary);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.service-strip .item svg { color: var(--primary); }
.detail-section {
  background: var(--white); padding: 16px; margin-bottom: 10px;
}
.detail-section h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  padding-left: 10px; border-left: 3px solid var(--primary);
}
.spec-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 10px 0; vertical-align: top; }
.spec-table td:first-child { color: var(--text-secondary); width: 90px; }
.detail-desc { font-size: 14px; color: #555; line-height: 1.9; }

/* 底部操作栏 */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + var(--safe-bottom));
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.action-bar .icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; color: var(--text-secondary);
  text-decoration: none; min-width: 44px;
}
.action-bar .icon-btn svg { width: 22px; height: 22px; }
.qty-control {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.qty-control button {
  width: 32px; height: 36px; border: none; background: var(--bg);
  font-size: 18px; cursor: pointer; color: var(--text);
}
.qty-control input {
  width: 36px; height: 36px; border: none; text-align: center;
  font-size: 14px; -moz-appearance: textfield; background: var(--white);
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn {
  height: 44px; border: none; border-radius: 22px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; flex: 1;
}
.btn-cart { background: linear-gradient(135deg, #ffb347, #ff7a45); flex: 1.2; }
.btn-buy { background: var(--primary-gradient); flex: 1.2; }
.btn-primary { background: var(--primary-gradient); }
.btn-outline {
  background: var(--white); color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-light {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 购物车 */
.page-wrap { padding: 12px 16px; }
.cart-list { padding-bottom: 130px; }
.cart-item {
  display: flex; gap: 12px; padding: 14px;
  background: var(--white); border-radius: var(--radius);
  margin-bottom: 10px; align-items: flex-start;
  box-shadow: var(--shadow);
}
.cart-item .thumb {
  width: 100px; height: 60px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; background: var(--primary-light);
}
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-decoration: none; color: inherit;
}
.cart-item .price { color: var(--danger); font-size: 17px; font-weight: 700; margin: 8px 0; }
.cart-item .actions { display: flex; justify-content: space-between; align-items: center; }
.cart-item .remove {
  font-size: 12px; color: var(--text-secondary); background: none;
  border: none; cursor: pointer; padding: 4px 8px;
}
.cart-footer {
  position: fixed; bottom: calc(56px + var(--safe-bottom)); left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  z-index: 99; box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.cart-footer .total-label { font-size: 13px; color: var(--text-secondary); }
.cart-footer .total { font-size: 14px; }
.cart-footer .total em { color: var(--danger); font-size: 22px; font-style: normal; font-weight: 800; }
.cart-footer .btn { flex: none; width: 130px; height: 44px; border-radius: 22px; }

/* 订单 */
.order-card {
  background: var(--white); margin: 0 16px 12px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.order-card .order-head {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; background: #fafafa;
}
.order-card .order-head .order-no { color: var(--text-secondary); font-size: 12px; }
.order-card .order-head .status {
  font-size: 13px; font-weight: 600; color: var(--primary);
  padding: 2px 10px; background: var(--primary-light); border-radius: 12px;
}
.order-card .order-head .status.pending { color: var(--accent); background: #fff7e6; }
.order-item {
  display: flex; gap: 12px; padding: 12px 16px;
  text-decoration: none; color: inherit;
}
.order-item .thumb {
  width: 80px; height: 48px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; background: var(--primary-light);
}
.order-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-item .info { flex: 1; min-width: 0; }
.order-item .name { font-size: 14px; font-weight: 600; }
.order-item .meta { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.order-card .order-foot {
  padding: 12px 16px; border-top: 1px solid var(--border);
  text-align: right; font-size: 13px;
}
.order-card .order-foot em { color: var(--danger); font-style: normal; font-weight: 700; font-size: 16px; }
.order-actions { padding: 0 16px 14px; text-align: right; }
.order-actions .btn-sm {
  display: inline-block; padding: 7px 18px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 18px;
  background: var(--white); color: var(--text); text-decoration: none; margin-left: 8px;
}
.order-actions .btn-sm.primary {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light);
}

/* 结算 */
.checkout-form { padding: 12px 16px 24px; }
.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.form-card-title {
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
  padding-left: 10px; border-left: 3px solid var(--primary);
}
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; outline: none;
  transition: border-color 0.2s; background: #fafafa;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary); background: var(--white);
}
.checkout-items .order-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.checkout-items .order-item:last-child { border-bottom: none; }
.checkout-total {
  text-align: right; padding: 14px 0 0; font-size: 15px;
  border-top: 1px dashed var(--border); margin-top: 8px;
}
.checkout-total em { color: var(--danger); font-size: 24px; font-style: normal; font-weight: 800; }
.checkout-submit-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.checkout-submit-bar .btn { flex: none; width: 140px; }
.alert-error {
  margin: 12px 16px; padding: 10px 14px;
  background: #fff1f0; color: var(--danger);
  border-radius: var(--radius-sm); font-size: 13px;
}
.alert-success {
  padding: 14px; text-align: center; font-size: 14px;
  background: #f6ffed; color: var(--success);
}

/* 订单详情状态 */
.order-status-card {
  margin: 12px 16px; padding: 20px 16px;
  background: var(--primary-gradient); border-radius: var(--radius);
  color: #fff; text-align: center;
}
.order-status-card .status-text { font-size: 20px; font-weight: 700; }
.order-status-card .status-meta { font-size: 12px; opacity: 0.85; margin-top: 8px; line-height: 1.8; }

/* 关于页 */
.about-hero {
  margin: 12px 16px; padding: 24px 20px;
  background: var(--primary-gradient); border-radius: var(--radius);
  color: #fff; text-align: center;
}
.about-hero img { width: 56px; height: 56px; border-radius: 12px; background: #fff; margin-bottom: 12px; }
.about-hero h2 { font-size: 18px; margin-bottom: 6px; }
.about-hero p { font-size: 13px; opacity: 0.9; }
.info-list { list-style: none; }
.info-list li {
  display: flex; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { width: 80px; color: var(--text-secondary); flex-shrink: 0; }
.info-list .value { flex: 1; }
.info-list a { color: var(--primary); text-decoration: none; }

.home-brand span { font-size: 11px; color: var(--text-secondary); }
.home-login-link, .home-user-link {
  margin-left: auto; font-size: 13px; text-decoration: none;
  padding: 6px 14px; border-radius: 16px; white-space: nowrap;
}
.home-login-link { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.home-user-link { color: var(--text-secondary); }

/* 登录页 */
.login-page { padding: 40px 0 24px; min-height: 80vh; }
.login-header { text-align: center; padding: 0 24px 32px; }
.login-logo { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 16px; }
.login-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login-header p { font-size: 14px; color: var(--text-secondary); }
.login-form { padding: 0 24px; }
.login-tip { text-align: center; font-size: 12px; color: var(--text-secondary); margin-top: 20px; }

/* 我的 */
.user-page { padding-bottom: 24px; }
.user-card {
  margin: 16px; padding: 24px 20px;
  background: var(--primary-gradient); border-radius: var(--radius);
  color: #fff; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-lg);
}
.user-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-avatar svg { width: 28px; height: 28px; }
.user-info h2 { font-size: 18px; font-weight: 700; }
.user-info p { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.user-menu {
  margin: 0 16px; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.user-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border); font-size: 15px;
}
.user-menu-item:last-child { border-bottom: none; }
.user-menu-item svg:first-child { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.user-menu-item .arrow { margin-left: auto; color: var(--text-secondary); }

/* 空状态 */
.empty-state {
  text-align: center; padding: 80px 24px; color: var(--text-secondary);
}
.empty-state .empty-icon {
  width: 80px; height: 80px; margin: 0 auto 16px;
  background: var(--primary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.empty-state .empty-icon svg { width: 36px; height: 36px; color: var(--primary); opacity: 0.6; }
.empty-state h3 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; font-size: 14px; }
.empty-state .btn { display: inline-flex; width: auto; padding: 0 36px; }

/* Toast */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78); color: #fff;
  padding: 12px 28px; border-radius: 8px; font-size: 14px;
  z-index: 9999; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* 页脚 */
.site-footer {
  margin-top: 8px; padding: 24px 16px calc(80px + var(--safe-bottom));
  background: var(--white); border-top: 1px solid var(--border);
}
.footer-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.footer-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.footer-brand strong { display: block; font-size: 15px; color: var(--primary-dark); }
.footer-brand p { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.footer-links {
  display: flex; justify-content: center; gap: 20px;
  padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.footer-links a { font-size: 13px; color: var(--text); text-decoration: none; }
.footer-contact, .footer-legal {
  text-align: center; font-size: 12px; color: var(--text-secondary); line-height: 2;
}
.footer-contact a, .footer-legal a { color: var(--text-secondary); text-decoration: none; }

/* 兼容旧类名 */
.section-title { display: none; }
.product-list.course-list { padding: 0; }
.product-list .product-row { display: none; }
.form-card h3 { display: none; }
