/* 与 https://shkd.script.woca.fun/ 同系视觉：浅色、大圆角卡片、顶部导航 + Hero；顶栏 Logo 为 OBS 托管 PNG */
:root {
  --woca-text: #0f172a;
  --woca-muted: #475569;
  --woca-soft: #64748b;
  --woca-line: rgba(148, 163, 184, 0.18);
  --woca-card: linear-gradient(180deg, #fffffffa, #f8fafcf5);
  --woca-shadow: 0 18px 40px rgba(148, 163, 184, 0.12);
  --woca-primary: linear-gradient(135deg, #0f172a, #1d4ed8);
  --woca-radius-lg: 32px;
  --woca-radius-md: 18px;
  --woca-radius-sm: 14px;
  --woca-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--woca-font);
  color: var(--woca-text);
  background: #f1f5f9;
  min-height: 100vh;
  line-height: 1.6;
}
a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  text-decoration: underline;
}

/* —— 顶栏（对齐对方站点顶栏：白底 + 底边） —— */
.woca-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--woca-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.woca-topbar-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.woca-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--woca-text);
}
.woca-brand a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}
.woca-brand a:hover {
  color: #1d4ed8;
}
.woca-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--woca-line);
  display: block;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  flex-shrink: 0;
}
.woca-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.woca-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--woca-soft);
  text-decoration: none;
}
.woca-nav a:hover {
  color: var(--woca-text);
  background: rgba(15, 23, 42, 0.06);
  text-decoration: none;
}
.woca-nav a.woca-nav-active {
  color: #fff;
  background: var(--woca-primary);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}

/* —— 首页 Hero（对齐 hero-shell / hero-card 系） —— */
.woca-hero-shell {
  position: relative;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  padding: 44px 20px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woca-hero-shell--compact {
  min-height: auto;
  padding: 32px 20px 8px;
}
.woca-hero-shell--compact .woca-hero-backdrop {
  top: 12px;
  right: 14px;
  bottom: 12px;
  left: 14px;
  border-radius: 32px;
}
.woca-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--woca-muted);
  max-width: 720px;
}
.woca-install-page > .woca-lead:first-of-type {
  margin: 0 auto 24px;
}
.woca-hero-backdrop {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-radius: 40px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 36%),
    radial-gradient(circle at bottom center, rgba(245, 158, 11, 0.1), transparent 34%),
    linear-gradient(135deg, #f8fbff, #eef6ff 45%, #fff9ef);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.woca-hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.woca-hero-card {
  width: min(760px, 100%);
  padding: 32px 28px 26px;
  border-radius: var(--woca-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  text-align: center;
}
.woca-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.woca-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--woca-text);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.woca-chip.woca-chip-accent {
  background: var(--woca-primary);
  color: #fff;
  border: none;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.18);
}
.woca-hero-title {
  margin: 14px 0 0;
  font-size: clamp(2rem, 7vw, 3.75rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--woca-text);
}
.woca-hero-desc {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--woca-muted);
}
.woca-hero-desc code {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
}
.woca-install-hint {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  color: var(--woca-soft);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid rgba(148, 163, 184, 0.16);
  max-width: 100%;
}
.woca-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.woca-btn-primary,
.woca-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.woca-btn-primary:hover,
.woca-btn-secondary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.woca-btn-primary {
  background: var(--woca-primary);
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
}
.woca-btn-secondary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--woca-text);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.woca-hero-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--woca-soft);
}
.woca-hero-footnote code {
  font-size: 0.9em;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

/* —— 首页次级区块 / 功能页内容区 —— */
.woca-section {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 36px 0 48px;
}
.woca-section-head {
  text-align: center;
  margin-bottom: 22px;
}
.woca-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--woca-text);
}
.woca-section-head .woca-sub {
  margin: 0;
  color: var(--woca-soft);
  font-size: 0.95rem;
}
.woca-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.woca-tile {
  background: var(--woca-card);
  border: 1px solid var(--woca-line);
  border-radius: var(--woca-radius-md);
  padding: 20px;
  box-shadow: var(--woca-shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.woca-tile:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}
.woca-tile .woca-tile-ico {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.woca-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--woca-text);
}
.woca-tile p {
  margin: 0;
  color: var(--woca-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.woca-tile a.woca-tile-link {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d4ed8;
}

/* —— 安装页（对齐 install-page / install-step-card） —— */
.woca-install-page {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 40px 0 56px;
}
.woca-install-block {
  margin-top: 28px;
}
.woca-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--woca-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.woca-install-block h1,
.woca-install-block h2 {
  margin: 14px 0 0;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--woca-text);
}
.woca-install-block > p.woca-lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--woca-muted);
  max-width: 720px;
}
.woca-install-preview-image {
  margin-top: 18px;
  max-width: 920px;
  border-radius: var(--woca-radius-md);
  border: 1px solid var(--woca-line);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--woca-shadow);
}
.woca-install-preview-image img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.woca-req-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.woca-pill-card {
  padding: 16px;
  border-radius: var(--woca-radius-md);
  background: var(--woca-card);
  border: 1px solid var(--woca-line);
  box-shadow: var(--woca-shadow);
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}
.woca-step-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.woca-step-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: var(--woca-card);
  border: 1px solid var(--woca-line);
  box-shadow: var(--woca-shadow);
}
.woca-step-no {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #c2410c;
}
.woca-step-main h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--woca-text);
}
.woca-step-main > div,
.woca-step-main p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
}
.woca-tip-list {
  margin: 12px 0 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: #334155;
}
.woca-faq-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.woca-faq-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--woca-card);
  border: 1px solid var(--woca-line);
  box-shadow: var(--woca-shadow);
}
.woca-faq-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--woca-text);
}
.woca-faq-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--woca-muted);
}
.woca-qq-card {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: var(--woca-card);
  border: 1px solid var(--woca-line);
  box-shadow: var(--woca-shadow);
}
.woca-qq-badge {
  flex-shrink: 0;
  padding: 14px 18px;
  border-radius: var(--woca-radius-md);
  background: linear-gradient(135deg, #fff7ed, #fff1d6);
  border: 1px solid rgba(251, 191, 36, 0.28);
  text-align: center;
}
.woca-qq-badge .woca-qq-label {
  font-size: 12px;
  color: #92400e;
}
.woca-qq-badge .woca-qq-num {
  margin-top: 4px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #7c2d12;
  letter-spacing: 0.04em;
}

.woca-notice {
  margin: 28px auto 0;
  max-width: 900px;
  padding: 16px 18px;
  border-radius: var(--woca-radius-md);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(254, 243, 199, 0.35);
  color: #92400e;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* —— 功能说明 · 正文 —— */
.woca-prose-page {
  width: min(900px, calc(100% - 24px));
  margin: 0 auto;
  padding: 32px 0 48px;
}
.woca-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: var(--woca-radius-md);
  background: var(--woca-card);
  border: 1px solid var(--woca-line);
  font-size: 0.88rem;
}
.woca-toc a {
  color: var(--woca-soft);
  font-weight: 600;
}
.woca-toc a:hover {
  color: #1d4ed8;
}
.woca-prose {
  padding: 28px 26px;
  border-radius: var(--woca-radius-lg);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--woca-line);
  box-shadow: var(--woca-shadow);
  color: var(--woca-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}
.woca-prose h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--woca-text);
}
.woca-prose h2:first-child {
  margin-top: 0;
}
.woca-prose p {
  margin: 0 0 12px;
}
.woca-prose code {
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}

/* —— 页脚 —— */
.woca-footer {
  padding: 28px 0 40px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--woca-soft);
  border-top: 1px solid var(--woca-line);
  background: rgba(255, 255, 255, 0.5);
}
.woca-footer p {
  margin: 6px 0;
}

/* —— 适配学校列表 —— */
.woca-school-page {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  padding: 32px 0 48px;
}
.woca-school-table-wrap {
  margin-top: 20px;
  border-radius: var(--woca-radius-md);
  border: 1px solid var(--woca-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--woca-shadow);
  overflow: auto;
  max-height: min(75vh, 680px);
}
.woca-school-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.woca-school-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f9;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--woca-line);
  font-weight: 800;
  color: var(--woca-text);
}
.woca-school-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #334155;
  vertical-align: top;
}
.woca-school-table td:first-child {
  width: 52px;
  white-space: nowrap;
  color: var(--woca-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.woca-school-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.75);
}
.woca-school-page--wide {
  width: min(980px, calc(100% - 24px));
}
.woca-school-kw-link {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

/* —— 各校 SEO 详情页 —— */
.woca-school-seo {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
.woca-school-seo article {
  border-radius: var(--woca-radius-md);
  border: 1px solid var(--woca-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--woca-shadow);
  padding: 24px 22px 28px;
}
.woca-school-seo-kicker {
  margin: 0 0 12px;
  font-size: 0.88rem;
}
.woca-school-seo h1 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--woca-text);
}
.woca-school-seo-lead {
  margin: 0 0 18px;
  color: var(--woca-muted);
  font-size: 0.95rem;
}
.woca-school-seo-lead code {
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  font-weight: 600;
}
.woca-school-seo-actions {
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.woca-school-seo-block {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--woca-line);
}
.woca-school-seo-block h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--woca-text);
}
.woca-school-seo-block ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--woca-muted);
  font-size: 0.9rem;
}

/* —— 面板演示页 —— */
.site-demo-bar {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 8px;
  font-size: 0.88rem;
  color: var(--woca-soft);
}
.site-demo-bar a {
  color: #1d4ed8;
  font-weight: 700;
}
.site-demo-title {
  margin: 8px 0 0;
  font-size: 1.02rem;
  color: var(--woca-text);
  font-weight: 800;
  line-height: 1.35;
}
.site-demo-bar h1.site-demo-title {
  font-size: 1.02rem;
  font-weight: 800;
}
.site-demo-bg {
  min-height: 360px;
  background: linear-gradient(180deg, #e8f0fa 0%, #dce7f4 100%);
  padding: 20px 12px 48px;
}

@media (max-width: 960px) {
  .woca-req-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .woca-faq-grid {
    grid-template-columns: 1fr;
  }
  .woca-step-card {
    grid-template-columns: 1fr;
  }
  .woca-step-no {
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .woca-hero-shell {
    min-height: auto;
    padding: 24px 14px 40px;
  }
  .woca-hero-backdrop {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border-radius: 28px;
  }
  .woca-hero-card {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }
  .woca-req-grid {
    grid-template-columns: 1fr;
  }
}
