/* ============================================================
   个人教学资料站 · 公开站点样式
   与教师工作台（/teacher/app.css）相互独立，互不影响。
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6ebf2;
  --bg: #f7f9fc;
  --card: #ffffff;

  --brand: #2d5bd7;
  --brand-dark: #1e3f9e;
  --brand-soft: #eaf0ff;
  --accent: #f59e0b;
  --accent-soft: #fff7e6;
  --ok: #12a150;
  --violet: #7c3aed;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 4px 14px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, .13), 0 4px 12px rgba(15, 23, 42, .06);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶栏 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 8px; height: 62px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--ink);
  margin-right: auto; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: -.5px;
}
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink-2); font-size: 14.5px; padding: 7px 12px;
  border-radius: 9px; white-space: nowrap; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.nav-links a.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-links a.cta {
  background: var(--brand); color: #fff; font-weight: 600; margin-left: 6px;
}
.nav-links a.cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 9px; width: 40px; height: 38px; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--ink-2);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 420px at 12% -10%, rgba(124, 58, 237, .18), transparent 62%),
    radial-gradient(900px 400px at 88% 0%, rgba(45, 91, 215, .20), transparent 60%),
    linear-gradient(160deg, #f4f7ff 0%, #eef3ff 40%, #f7f9fc 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(45, 91, 215, .11) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 72%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 62px; padding-bottom: 66px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 44px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line);
  color: var(--brand-dark); font-size: 13px; font-weight: 600;
  padding: 5px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero h1 {
  margin: 18px 0 0; font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.22; letter-spacing: -.5px; font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin: 18px 0 0; font-size: 17px; color: var(--ink-2);
  max-width: 46em; line-height: 1.85;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-size: 15px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(45, 91, 215, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #c9d6ee; }

.hero-stats {
  margin-top: 34px; display: flex; gap: 30px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px dashed #cfdaf0;
}
.hero-stats div b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.hero-stats div span { font-size: 13px; color: var(--muted); }

/* Hero 右侧卡片 */
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 22px; position: relative;
}
.hero-card h3 { margin: 0 0 4px; font-size: 15px; }
.hero-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 15px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.2px; color: var(--ink-2);
}
.hero-card li:first-child { border-top: 0; }
.hero-card li i {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 12px; font-style: normal; margin-top: 3px;
}

/* ---------------- 通用区块 ---------------- */
section.block { padding: 62px 0; }
section.block.tight { padding: 46px 0; }
.block-head { margin-bottom: 30px; }
.block-head h2 {
  margin: 0; font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.3px; font-weight: 800;
}
.block-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 52em; }

/* ---------------- 卡片 ---------------- */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .16s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5e0f5; }

.mod { display: block; padding: 24px; color: inherit; height: 100%; }
.mod:hover { text-decoration: none; }
.mod .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px;
  background: var(--brand-soft);
}
.mod .ico.v { background: #f3ecff; }
.mod .ico.a { background: var(--accent-soft); }
.mod .ico.g { background: #e7f7ee; }
.mod h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.mod p { margin: 0; color: var(--muted); font-size: 14.2px; line-height: 1.7; }
.mod .more { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--brand); }

/* ---------------- 资料列表 ---------------- */
.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 20px;
}
.toolbar input[type="search"], .toolbar select {
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; background: #fff; color: var(--ink); font-family: inherit;
}
.toolbar input[type="search"] { min-width: 230px; flex: 1 1 230px; }
.toolbar .count { color: var(--muted); font-size: 13.5px; margin-left: auto; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 6px 13px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.chip:hover { border-color: #c9d6ee; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.item {
  display: flex; gap: 16px; padding: 17px 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .16s, box-shadow .18s;
}
.item:hover { border-color: #ccd9f2; box-shadow: var(--shadow-sm); }
.item .ficon {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: #fff; letter-spacing: .3px;
}
.ficon.ppt { background: #d24726; }
.ficon.pdf { background: #c0392b; }
.ficon.doc { background: #2b579a; }
.ficon.audio { background: #7c3aed; }
.ficon.video { background: #0f766e; }
.ficon.img { background: #0891b2; }
.ficon.zip { background: #64748b; }
.ficon.other { background: #94a3b8; }
.item .meta { min-width: 0; flex: 1; }
.item .meta h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.item .meta h4 a { color: inherit; }
.item .meta h4 a:hover { color: var(--brand); text-decoration: none; }
.item .meta p { margin: 0; color: var(--muted); font-size: 13.6px; line-height: 1.65; }
.item .tags { margin-top: 9px; display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  font-size: 12px; padding: 2.5px 9px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.tag.gray { background: #f1f5f9; color: var(--muted); }
.item .act { flex: none; display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.item .sz { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.empty {
  text-align: center; padding: 54px 20px; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .big { font-size: 34px; margin-bottom: 10px; }

/* ---------------- 引流位 ---------------- */
.hero-who { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.funnel {
  background: linear-gradient(180deg, #fff, #f7f9ff 70%, #f2f6ff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.funnel .grid.c2 { align-items: stretch; }
.funnel .card.mod { display: flex; flex-direction: column; padding: 26px; }
.funnel .card.mod h3 { margin: 10px 0 8px; font-size: 18px; }
.funnel .card.mod .more { margin-top: auto; padding-top: 16px; }
.funnel .card.mod .more .btn { width: 100%; justify-content: center; }
.buyrow { display: flex; gap: 8px; flex-wrap: wrap; }
.funnel-note {
  margin: 20px 0 0; color: var(--muted); font-size: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 17px;
}
.qrbox {
  margin-top: 14px; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.qrbox .qr { width: 84px; height: 84px; border-radius: 8px; flex: none; object-fit: contain; background: #fff; }
.qrbox span { color: var(--muted); font-size: 13px; }

/* 资料详情页 */
.filehead { display: flex; gap: 15px; align-items: flex-start; }
.filehead .ficon { width: 52px; height: 52px; border-radius: 13px; }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li {
  padding: 8px 0 8px 20px; position: relative;
  color: var(--ink-2); font-size: 14.6px; border-top: 1px dashed var(--line);
}
.plainlist li:first-child { border-top: 0; }
.plainlist li::before {
  content: "·"; position: absolute; left: 6px; top: 8px;
  color: var(--brand); font-weight: 800; font-size: 18px; line-height: 1.4;
}
.desc { color: var(--muted); font-size: 14.6px; margin: 0; line-height: 1.75; }

/* ---------------- 正文排版（关于我 / 说明页） ---------------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow-sm); }
.prose h2 { margin: 34px 0 12px; font-size: 21px; letter-spacing: -.2px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 10px; font-size: 17px; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.4em; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* ---------------- 页头（二级页） ---------------- */
.pagehead {
  background: linear-gradient(160deg, #f4f7ff, #eef3ff 60%, #f7f9fc);
  border-bottom: 1px solid var(--line); padding: 40px 0 34px;
}
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.pagehead h1 { margin: 0; font-size: clamp(23px, 3.2vw, 31px); letter-spacing: -.4px; font-weight: 800; }
.pagehead p { margin: 10px 0 0; color: var(--ink-2); max-width: 52em; }

/* ---------------- 页脚 ---------------- */
footer.site {
  border-top: 1px solid var(--line); background: #fff;
  padding: 34px 0; margin-top: 20px;
}
footer.site .wrap {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  color: var(--muted); font-size: 13.5px;
}
footer.site .links { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- 提示条 ---------------- */
.notice {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid #fde4b0;
  color: #7c4a03; border-radius: var(--radius-sm);
  padding: 14px 17px; font-size: 14.2px; line-height: 1.7;
}
.notice.info { background: var(--brand-soft); border-color: #cfdcff; color: var(--brand-dark); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .nav .wrap { height: 58px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 58px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 3px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 13px; font-size: 15.5px; }
  .nav-links a.cta { margin-left: 0; text-align: center; justify-content: center; }
  .hero .wrap { padding-top: 40px; padding-bottom: 46px; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  section.block { padding: 44px 0; }
  .prose { padding: 24px 20px; }
  .item { flex-direction: column; gap: 12px; }
  .item .act { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .hero-stats { gap: 22px; }
}
