/* ===========================================================
   菩提画院 - 自定义主题样式（覆盖 whsvipng.com 的默认配色）
   主题：唐卡金 + 朱砂红 + 古纸色
   =========================================================== */

:root {
  --sf-ink: #2b1810;          /* 深褐色 - 主文字 */
  --sf-muted: #6b5544;        /* 暖灰褐 - 次要文字 */
  --sf-brand: #8b6914;        /* 唐卡金 - 品牌色 */
  --sf-brand-deep: #6b4f0c;   /* 深金 - hover状态 */
  --sf-accent: #a91d22;       /* 朱砂红 - 强调色 */
  --sf-paper: #f5efe0;        /* 古纸色 - 底色 */
  --sf-soft: #ede5cf;         /* 暖米色 - 区块交替 */
  --sf-card: #fffaf0;         /* 象牙白 - 卡片 */
  --sf-border: rgba(139, 105, 20, .18);
  --sf-shadow: 0 18px 50px rgba(43, 24, 16, .12);
  --sf-radius: 18px;
}

/* 主体 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--sf-ink);
  background: var(--sf-paper);
  line-height: 1.85;
  letter-spacing: .2px;
}

/* 顶部装饰条 - 唐卡风格 */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    var(--sf-brand) 0%,
    var(--sf-accent) 50%,
    var(--sf-brand) 100%);
}

/* 导航栏 */
.sf-navbar {
  background: rgba(245, 239, 224, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(43, 24, 16, .08);
  padding: .85rem 0;
}

.sf-brand {
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--sf-brand) !important;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sf-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.sf-navlink {
  color: var(--sf-ink) !important;
  padding: .55rem 1rem !important;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}

.sf-navlink:hover {
  background: rgba(139, 105, 20, .12);
  color: var(--sf-brand-deep) !important;
}

.sf-navlink.active {
  background: rgba(169, 29, 34, .14);
  color: var(--sf-accent) !important;
}

/* Hero 全屏区 */
.sf-hero {
  min-height: 100vh;
  position: relative;
  padding-top: 84px;
  background:
    linear-gradient(180deg, rgba(24, 20, 16, .62), rgba(24, 20, 16, .45) 45%, rgba(24, 20, 16, .72)),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: 70% 20%;
}

.sf-hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(245, 239, 224, 0), rgba(245, 239, 224, 1));
  pointer-events: none;
}

.sf-hero-title {
  letter-spacing: 8px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-weight: 600;
}

.sf-hero-subtitle {
  letter-spacing: 12px;
  text-shadow: 0 8px 26px rgba(0, 0, 0, .4);
  opacity: .95;
}

.sf-hero-badge {
  display: inline-flex;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .96);
  font-size: .95rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 按钮 */
.sf-btn {
  border-radius: 999px;
  letter-spacing: 2px;
  font-weight: 500;
}

.sf-btn-primary {
  background: var(--sf-brand);
  border-color: var(--sf-brand);
  color: #fff;
}

.sf-btn-primary:hover {
  background: var(--sf-brand-deep);
  border-color: var(--sf-brand-deep);
  color: #fff;
}

.sf-btn-outline {
  border-width: 2px;
}

/* 区块 */
.sf-section {
  position: relative;
}

.sf-section-light {
  background: var(--sf-paper);
}

.sf-section-soft {
  background: var(--sf-soft);
}

.sf-title {
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--sf-brand);
  position: relative;
  display: inline-block;
  padding-bottom: .5rem;
}

.sf-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--sf-brand), var(--sf-accent));
  margin: .5rem auto 0;
}

.sf-lead {
  font-size: 1.1rem;
}

.sf-prose {
  max-width: 900px;
  color: var(--sf-muted);
  font-size: 1.05rem;
}

.sf-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--sf-brand);
  letter-spacing: 2px;
  font-weight: 700;
  font-size: .86rem;
  text-transform: uppercase;
}

/* 卡片 */
.sf-card {
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: 0 12px 38px rgba(43, 24, 16, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.sf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(43, 24, 16, .12);
}

.sf-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 105, 20, .14), rgba(169, 29, 34, .1));
  color: var(--sf-brand);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.3rem;
}

.sf-panel {
  border-radius: var(--sf-radius);
  border: 1px solid var(--sf-border);
  background:
    radial-gradient(1200px 400px at 20% 20%, rgba(169, 29, 34, .12), rgba(169, 29, 34, 0)),
    radial-gradient(1000px 380px at 85% 70%, rgba(139, 105, 20, .14), rgba(139, 105, 20, 0)),
    rgba(255, 250, 240, .85);
  box-shadow: 0 12px 40px rgba(43, 24, 16, .05);
}

.sf-panel-inner {
  padding: 1.5rem 1.8rem;
}

/* 图集 */
.sf-figure {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: var(--sf-shadow);
  background: #fff;
  margin: 0;
}

.sf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .45s ease;
}

.sf-figure:hover .sf-img {
  transform: scale(1.04);
}

.sf-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: .6rem .85rem;
  border-radius: 14px;
  background: rgba(245, 239, 224, .92);
  color: var(--sf-ink);
  font-size: .95rem;
  border: 1px solid rgba(139, 105, 20, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 画廊网格 - 唐卡风格增强 */
.sf-gallery-grid {
  gap: 1.5rem;
}

.sf-gallery-item {
  border-radius: 22px;
  box-shadow:
    0 16px 48px rgba(43, 30, 4, .14),
    0 2px 8px rgba(139, 105, 20, .08);
  transition: box-shadow .4s ease, transform .4s ease;
}

.sf-gallery-item:hover {
  box-shadow:
    0 24px 64px rgba(43, 30, 4, .22),
    0 4px 12px rgba(169, 29, 34, .10);
  transform: translateY(-3px);
}

.sf-gallery-item .sf-figure {
  border: 1px solid rgba(139, 105, 20, .15);
}

.sf-gallery-item .sf-caption {
  background: rgba(245, 239, 224, .94);
  border: 1px solid rgba(139, 105, 20, .22);
  color: var(--sf-brand);
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}

/* 交通指引卡片 */
.sf-transport-card {
  overflow: hidden;
}

.sf-transport-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 105, 20, .14), rgba(169, 29, 34, .08));
  color: var(--sf-brand);
  flex-shrink: 0;
}

.sf-hint {
  padding: .9rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(139, 105, 20, .3);
  background: rgba(237, 229, 207, .85);
}

.sf-hint-title {
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--sf-brand);
  margin-bottom: .25rem;
}

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

/* 页脚 */
.sf-footer {
  background: linear-gradient(180deg, #2b1810, #1a0f08);
  color: rgba(255, 255, 255, .9);
}

.sf-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, .18);
  max-width: 520px;
  margin: 1.4rem auto 1.1rem;
}

/* 子页面 - 顶部小hero */
.sf-page-hero {
  padding: 12rem 0 6rem;
  background:
    linear-gradient(180deg, rgba(24, 20, 16, .60), rgba(24, 20, 16, .45)),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: 70% 15%;
  color: #fff;
  text-align: center;
}

.sf-page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 8px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.sf-page-hero p {
  letter-spacing: 4px;
  opacity: .92;
  margin-top: 1rem;
}

/* 课程作息表 */
.sf-schedule {
  border-collapse: collapse;
  width: 100%;
  background: var(--sf-card);
  border-radius: var(--sf-radius);
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(43, 24, 16, .06);
}

.sf-schedule th,
.sf-schedule td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--sf-border);
}

.sf-schedule th {
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-brand-deep));
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
}

.sf-schedule tr:last-child td {
  border-bottom: 0;
}

.sf-schedule tr:hover td {
  background: rgba(237, 229, 207, .5);
}

.sf-time {
  font-weight: 700;
  color: var(--sf-brand);
  white-space: nowrap;
}

/* 戒律/规范列表 */
.sf-precept {
  background: var(--sf-card);
  border-left: 4px solid var(--sf-brand);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 24px rgba(43, 24, 16, .04);
}

.sf-precept h4 {
  color: var(--sf-brand);
  margin-bottom: .6rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.sf-precept-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: .8rem;
  flex-shrink: 0;
}

.sf-precept-content {
  color: var(--sf-muted);
  line-height: 1.9;
}

/* 后台管理样式 */
.sf-admin-nav {
  background: linear-gradient(135deg, #2b1810, #3b2410);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--sf-radius);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf-admin-nav h1 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 4px;
  color: var(--sf-brand);
}

.sf-admin-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--sf-border);
  flex-wrap: wrap;
}

.sf-admin-tab {
  padding: .8rem 1.5rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--sf-muted);
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s ease;
}

.sf-admin-tab:hover {
  color: var(--sf-brand);
}

.sf-admin-tab.active {
  color: var(--sf-brand);
  border-bottom-color: var(--sf-accent);
}

.sf-stat-card {
  background: linear-gradient(135deg, #fffaf0, #f5efe0);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(43, 24, 16, .04);
}

.sf-stat-card .num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sf-brand);
  letter-spacing: 2px;
}

.sf-stat-card .label {
  color: var(--sf-muted);
  font-size: .9rem;
  margin-top: .25rem;
}

.sf-stat-card.accent .num {
  color: var(--sf-accent);
}

.sf-form-card {
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 2rem;
  box-shadow: 0 12px 38px rgba(43, 24, 16, .06);
}

.sf-form-label {
  font-weight: 600;
  color: var(--sf-ink);
  margin-bottom: .4rem;
  letter-spacing: 1px;
}

.sf-form-hint {
  font-size: .85rem;
  color: var(--sf-muted);
  margin-top: .25rem;
}

.sf-table {
  width: 100%;
  background: var(--sf-card);
  border-radius: var(--sf-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(43, 24, 16, .05);
}

.sf-table th {
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-brand-deep));
  color: #fff;
  padding: 1rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.sf-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--sf-border);
}

.sf-table tr:hover td {
  background: rgba(237, 229, 207, .35);
}

.sf-status-badge {
  display: inline-block;
  padding: .2rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}

.sf-status-badge.pending {
  background: rgba(255, 193, 7, .15);
  color: #b8860b;
}

.sf-status-badge.approved {
  background: rgba(76, 175, 80, .15);
  color: #2e7d32;
}

.sf-status-badge.rejected {
  background: rgba(244, 67, 54, .15);
  color: #c62828;
}

/* 学员/义工类型标签 */
.sf-type-badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  margin-right: .35rem;
}
.sf-type-student {
  background: rgba(79, 109, 88, .15);
  color: #4f6d58;
}
.sf-type-volunteer {
  background: rgba(212, 163, 115, .18);
  color: #8B6914;
}
.sf-type-all {
  background: rgba(169, 29, 34, .15);
  color: #A91D22;
}

.sf-btn-action {
  background: transparent;
  border: 1px solid var(--sf-border);
  color: var(--sf-brand);
  padding: .35rem .9rem;
  border-radius: 8px;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s ease;
}

.sf-btn-action:hover {
  background: var(--sf-brand);
  color: #fff;
  border-color: var(--sf-brand);
}

.sf-btn-action.danger {
  color: var(--sf-accent);
  border-color: rgba(169, 29, 34, .3);
}

.sf-btn-action.danger:hover {
  background: var(--sf-accent);
  color: #fff;
  border-color: var(--sf-accent);
}

.sf-quota-bar {
  width: 100%;
  height: 12px;
  background: var(--sf-soft);
  border-radius: 999px;
  overflow: hidden;
}

.sf-quota-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sf-brand), var(--sf-accent));
  transition: width .5s ease;
}

.sf-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

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

.sf-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 999px;
  transition: .3s;
}

.sf-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: .3s;
}

input:checked + .sf-slider {
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-accent));
}

input:checked + .sf-slider::before {
  transform: translateX(28px);
}

.sf-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--sf-muted);
}

.sf-empty-icon {
  font-size: 3rem;
  opacity: .4;
  margin-bottom: 1rem;
}

/* ===========================================================
   登录页面样式
   =========================================================== */
.sf-login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 84px;
  overflow: hidden;
}

.sf-login-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 20, 16, .68), rgba(24, 20, 16, .50)),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: 70% 20%;
  z-index: 0;
}

.sf-login-page .container {
  position: relative;
  z-index: 1;
}

.sf-login-card {
  background: rgba(245, 239, 224, .97);
  border: 1px solid var(--sf-border);
  border-radius: 24px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sf-login-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--sf-brand);
}

.sf-login-title {
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--sf-brand);
  margin-bottom: .3rem;
}

.sf-login-subtitle {
  color: var(--sf-muted);
  letter-spacing: 2px;
  font-size: .95rem;
  margin-bottom: 0;
}

/* 角色切换 Tab */
.sf-role-tabs {
  display: flex;
  gap: .5rem;
  background: rgba(237, 229, 207, .6);
  border-radius: 14px;
  padding: .4rem;
}

.sf-role-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border: none;
  background: transparent;
  color: var(--sf-muted);
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s ease;
}

.sf-role-tab .sf-role-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(139, 105, 20, .15);
  color: var(--sf-brand);
  font-weight: 700;
  font-size: .85rem;
}

.sf-role-tab.active {
  background: var(--sf-card);
  color: var(--sf-brand);
  box-shadow: 0 4px 12px rgba(43, 24, 16, .08);
}

.sf-role-tab.active .sf-role-icon {
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-accent));
  color: #fff;
}

/* 登录表单 */
.sf-login-form {
  display: none;
}

.sf-login-form.active {
  display: block;
}

.sf-input {
  border: 1.5px solid var(--sf-border);
  border-radius: 12px;
  padding: .7rem 1rem;
  background: rgba(255, 250, 240, .8);
  color: var(--sf-ink);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sf-input:focus {
  outline: none;
  border-color: var(--sf-brand);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, .12);
}

.sf-login-btn {
  margin-top: .5rem;
  letter-spacing: 4px;
}

.sf-login-tip {
  color: var(--sf-muted);
  font-size: .85rem;
  letter-spacing: 1px;
}

.sf-login-tip a {
  color: var(--sf-accent);
  text-decoration: none;
}

.sf-login-tip a:hover {
  text-decoration: underline;
}

/* Toast */
.sf-login-toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-brand-deep));
  color: #fff;
  padding: .8rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  transition: opacity .3s ease;
}

/* ===========================================================
   课程列表页样式
   =========================================================== */
.sf-course-alert {
  background: rgba(237, 229, 207, .6);
  border: 1px solid var(--sf-border);
  border-left: 4px solid var(--sf-brand);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
}

.sf-course-alert h5 {
  color: var(--sf-brand);
  font-weight: 700;
  margin-bottom: .6rem;
}

.sf-alert-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  background: var(--sf-accent);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  margin-right: .3rem;
}

.sf-course-alert ol {
  color: var(--sf-muted);
  font-size: .9rem;
  padding-left: 1.2rem;
}

/* 管理员操作栏 */
.sf-admin-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: .8rem 1.2rem;
  background: linear-gradient(135deg, rgba(139, 105, 20, .12), rgba(169, 29, 34, .08));
  border-radius: 14px;
  border: 1px solid var(--sf-border);
}

.sf-admin-bar-text {
  color: var(--sf-brand);
  font-size: .9rem;
  font-weight: 600;
}

/* 课程列表项 */
.sf-course-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sf-course-item {
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(43, 24, 16, .04);
  transition: box-shadow .3s ease;
}

.sf-course-item:hover {
  box-shadow: 0 12px 36px rgba(43, 24, 16, .08);
}

.sf-course-date {
  margin-bottom: .5rem;
}

.sf-course-date-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sf-ink);
  letter-spacing: 1px;
}

.sf-course-type span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sf-brand);
}

.sf-course-lang {
  font-size: .9rem;
  color: var(--sf-muted);
}

.sf-course-statuses {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.sf-course-status {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}

.sf-status-green {
  background: rgba(76, 175, 80, .15);
  color: #2e7d32;
}

.sf-status-yellow {
  background: rgba(255, 193, 7, .15);
  color: #b8860b;
}

.sf-status-orange {
  background: rgba(255, 152, 0, .15);
  color: #e65100;
}

.sf-status-red {
  background: rgba(244, 67, 54, .15);
  color: #c62828;
}

.sf-status-gray {
  background: rgba(158, 158, 158, .15);
  color: #616161;
}

.sf-course-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.sf-course-btn {
  background: var(--sf-brand);
  border-color: var(--sf-brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: .5rem 1rem;
  font-size: .9rem;
}

.sf-course-btn:hover {
  background: var(--sf-brand-deep);
  border-color: var(--sf-brand-deep);
  color: #fff;
}

.sf-course-btn-green {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: .5rem 1rem;
  font-size: .9rem;
}

.sf-course-btn-green:hover {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.sf-course-closed {
  color: var(--sf-muted);
  font-size: .9rem;
  margin: 0;
}

.sf-course-login-tip {
  font-size: .9rem;
  color: var(--sf-muted);
  margin: 0;
}

.sf-course-login-tip a {
  color: var(--sf-accent);
  text-decoration: none;
  font-weight: 600;
}

.sf-course-edit-btn {
  margin-top: .5rem;
  width: 100%;
}

.sf-course-note {
  margin-top: 1rem;
  padding: .8rem 1rem;
  background: rgba(237, 229, 207, .5);
  border-radius: 10px;
  font-size: .85rem;
  color: var(--sf-muted);
  line-height: 1.7;
}

.sf-course-note-label {
  font-weight: 700;
  color: var(--sf-brand);
}

/* ===========================================================
   弹窗样式
   =========================================================== */
.sf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 24, 16, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sf-modal-dialog {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

.sf-modal-content {
  background: var(--sf-paper);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  overflow: hidden;
}

.sf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--sf-border);
}

.sf-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sf-brand);
}

.sf-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--sf-muted);
  cursor: pointer;
  padding: 0;
  transition: color .2s ease;
}

.sf-modal-close:hover {
  color: var(--sf-accent);
}

.sf-modal-body {
  padding: 1.5rem;
}

.sf-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--sf-border);
}

.sf-enroll-course-info {
  padding: 1rem;
  background: rgba(237, 229, 207, .5);
  border-radius: 12px;
  border-left: 3px solid var(--sf-brand);
  color: var(--sf-ink);
  font-size: .95rem;
}

/* 响应式 */
@media (max-width: 992px) {
  .sf-hero-title { letter-spacing: 4px; }
  .sf-hero-subtitle { letter-spacing: 6px; }
  .sf-page-hero h1 { letter-spacing: 4px; font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .sf-hero { background-attachment: scroll; }
  .sf-login-card { padding: 1.8rem 1.3rem; }
  .sf-course-item { padding: 1rem; }
  .sf-course-item .row > div { margin-bottom: .8rem; }
  .sf-modal-dialog { width: 95%; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}