/* ============================================================================
   客户版站点样式（OJ-TENANT-SITE-001）
   ----------------------------------------------------------------------------
   独立于总部站（yuandian / hetao 主题），用中性简洁风格。
   用户后续重新设计首页时，只需替换本文件与 tenant-home.html，
   后端数据接口（HomeConfig）不用改。
   ============================================================================ */

:root {
  --th-brand: #2563EB;
  --th-brand-dark: #1D4ED8;
  --th-text: #1F2937;
  --th-text-2: #5B6675;
  --th-text-3: #9AA5B4;
  --th-border: #E4E8EE;
  --th-bg: #FFFFFF;
  --th-bg-soft: #F7F9FC;
  --th-radius: 14px;
  --th-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--th-text);
  background: var(--th-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶部公告条 ---------- */
.th-announce {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: #EFF4FF;
  border-bottom: 1px solid #DBE7FF;
  font-size: 13px;
  color: var(--th-text-2);
}
.th-announce-tag {
  flex: 0 0 auto;
  background: var(--th-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.th-announce-text { flex: 1; }

/* ---------- 首屏 ---------- */
.th-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EEF4FF 0%, #D9E7FF 100%);
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 80px 24px;
}
/* 有背景图时加一层遮罩，保证文字可读 */
.th-hero[style]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 44, .45);
}
.th-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.th-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  color: var(--th-text);
}
.th-hero[style] h1,
.th-hero[style] .th-hero-sub { color: #fff; }
.th-hero-sub {
  font-size: 17px;
  color: var(--th-text-2);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.th-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s, border-color .15s, transform .1s;
}
.th-btn:active { transform: scale(.98); }
.th-btn-primary { background: var(--th-brand); color: #fff; }
.th-btn-primary:hover { background: var(--th-brand-dark); }
.th-btn-ghost {
  background: rgba(255,255,255,.9);
  color: var(--th-text);
  border: 1px solid var(--th-border);
}
.th-btn-ghost:hover { background: #fff; }

/* ---------- 区块 ---------- */
.th-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}
.th-section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -.01em;
}

/* ---------- 特色课程 ---------- */
.th-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.th-feature {
  background: var(--th-bg);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  overflow: hidden;
  box-shadow: var(--th-shadow);
  transition: transform .2s, box-shadow .2s;
}
.th-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16,24,40,.10);
}
.th-feature-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--th-bg-soft);
}
.th-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.th-feature-body { padding: 20px; }
.th-feature-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}
.th-feature-body ul {
  list-style: none;
  font-size: 14px;
  color: var(--th-text-2);
}
.th-feature-body li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}
.th-feature-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--th-brand);
  opacity: .5;
}

/* ---------- 快捷入口 ---------- */
.th-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.th-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--th-bg);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow);
  transition: border-color .15s, transform .15s, background .15s;
}
.th-quick-item:hover {
  border-color: var(--th-brand);
  background: #FAFCFF;
  transform: translateY(-2px);
}
.th-quick-icon { font-size: 30px; line-height: 1; }
.th-quick-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--th-text-2);
}

/* ---------- 页脚 ---------- */
.th-footer {
  background: var(--th-bg-soft);
  border-top: 1px solid var(--th-border);
  margin-top: 40px;
}
.th-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px;
  text-align: center;
}
.th-footer-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.th-footer-desc {
  font-size: 13px;
  color: var(--th-text-2);
  max-width: 560px;
  margin: 0 auto 14px;
}
.th-footer-copy,
.th-footer-icp {
  font-size: 12px;
  color: var(--th-text-3);
  margin-top: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .th-hero { min-height: 320px; padding: 56px 20px; }
  .th-hero h1 { font-size: 28px; }
  .th-hero-sub { font-size: 15px; }
  .th-section { padding: 44px 20px; }
  .th-section-title { font-size: 20px; margin-bottom: 28px; }
  .th-announce { padding: 8px 16px; font-size: 12px; }
}
