/* ==========================================================================
   泉州第一中学 · 高一语文线上交互课程 —— 散文点评课
   样式系统（学生端 / 教师端共用）
   ========================================================================== */

:root {
  --red-900: #6d1114;
  --red-800: #7f1518;
  --red-700: #9e1f24;
  --red-600: #b32b2f;
  --red-100: #f7e9e8;
  --gold-700: #a4821f;
  --gold-600: #c9a227;
  --gold-500: #d9b64a;
  --gold-100: #fbf4dd;

  --ink: #1f2328;
  --ink-2: #3d444d;
  --dim: #6b7280;
  --dim-2: #9aa1ab;
  --line: #e4e0d8;
  --line-2: #efece5;
  --paper: #fbf9f5;
  --paper-2: #f5f2ec;
  --white: #ffffff;

  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
          "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", STSong, SimSun, Georgia, serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(31, 35, 40, .06), 0 2px 8px rgba(31, 35, 40, .05);
  --shadow-2: 0 2px 6px rgba(31, 35, 40, .07), 0 14px 36px rgba(31, 35, 40, .10);
  --wrap: 1080px;
  --readwrap: 760px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--red-700); }

.hidden { display: none !important; }

/* ---------------------------------------------------------------- utilities */

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 11px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: .16s ease; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--red-700); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--red-800); }
.btn-gold { background: var(--gold-600); color: #3a2c05; }
.btn-gold:hover:not(:disabled) { background: var(--gold-500); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--dim-2); background: var(--paper); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn-lg { padding: 14px 30px; font-size: 16.5px; }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; line-height: 1.7; background: var(--paper); color: var(--dim);
  border: 1px solid var(--line);
}
.chip-red { background: var(--red-100); color: var(--red-700); border-color: #eccfcd; }
.chip-gold { background: var(--gold-100); color: var(--gold-700); border-color: #ecdfb4; }

.muted { color: var(--dim); }
.small { font-size: 13px; }

/* ------------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 9px 20px;
  display: flex; align-items: center; gap: 12px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .brand img { width: 34px; height: 34px; flex: none; }
.topbar .brand-t { min-width: 0; }
.topbar .brand-t b { display: block; font-size: 14.5px; letter-spacing: .02em; }
.topbar .brand-t span { display: block; font-size: 11.5px; color: var(--dim); }
.topbar .spacer { flex: 1; }

/* --------------------------------------------------------------- gate/cover */

.gate { min-height: 100vh; display: flex; flex-direction: column; }

/* 封面：深红底 + 校徽 + 校名 + 课程标题（不使用校园照片）
   纵向尺寸全部按视口高度自适应，保证「封面 + 身份卡」整屏装得下、不出滚动条 */
.cover {
  position: relative; flex: none;
  background:
    radial-gradient(120% 150% at 50% -25%, rgba(201, 162, 39, .17) 0%, rgba(201, 162, 39, 0) 58%),
    linear-gradient(180deg, var(--red-900) 0%, var(--red-800) 100%);
  padding: clamp(16px, 4vh, 44px) 20px clamp(18px, 4.4vh, 48px);
  text-align: center; color: #fff;
}
.cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .85), transparent);
}
.cover-logo {
  width: clamp(56px, 8.6vh, 94px); height: auto; aspect-ratio: 1 / 1;
  margin: 0 auto clamp(7px, 1.3vh, 15px); display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .38));
}
.cover-school {
  font-size: clamp(12px, 1.5vh, 14.5px); letter-spacing: .32em; text-indent: .32em;
  color: var(--gold-500); font-weight: 600; line-height: 1.4;
}
.cover h1 {
  font-family: var(--serif); font-weight: 600;
  margin: clamp(6px, 1.2vh, 14px) 0 clamp(4px, .9vh, 10px);
  font-size: clamp(23px, min(4.4vw, 4.8vh), 46px);
  letter-spacing: .12em; text-indent: .12em; line-height: 1.22;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .30);
}
.cover-sub {
  font-size: clamp(11.5px, 1.55vh, 15px); color: rgba(255, 255, 255, .84);
  letter-spacing: .16em; text-indent: .16em; line-height: 1.5;
}
.cover-rule {
  width: 76px; height: 2px; margin: clamp(9px, 1.7vh, 20px) auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.gate-body {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(12px, 2.2vh, 24px) 20px clamp(16px, 3vh, 44px);
}

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}

.gate-card {
  width: 100%; max-width: 460px;
  padding: clamp(15px, 2.4vh, 24px) clamp(18px, 2.2vw, 26px) clamp(14px, 2.2vh, 22px);
  margin-top: clamp(-26px, -3vh, -10px); position: relative; z-index: 3;
}
.gate-card h2 { margin: 0 0 4px; font-size: clamp(16.5px, 2.1vh, 18px); }
.gate-card .hint { margin: 0 0 clamp(10px, 1.7vh, 18px); font-size: 13px; color: var(--dim); }

.field { margin-bottom: clamp(9px, 1.5vh, 16px); }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: clamp(4px, .8vh, 7px); }
.field label .req { color: var(--red-600); }
.field input, .field select {
  width: 100%; padding: clamp(8px, 1.35vh, 12px) 13px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; outline: none; transition: .15s;
}
.field input:focus, .field select:focus { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(158, 31, 36, .10); }
.field .tip { font-size: 12px; color: var(--dim-2); margin-top: clamp(3px, .55vh, 6px); line-height: 1.5; }
.gate-card .btn-lg { width: 100%; margin-top: 4px; padding: clamp(11px, 1.7vh, 14px) 30px; }
.gate-note {
  margin-top: clamp(9px, 1.5vh, 15px); padding-top: clamp(8px, 1.3vh, 13px);
  border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--dim); line-height: 1.65;
}

/* 矮屏（笔记本常见可视高度 ≈660—720px）再压一档，仍保证不出滚动条 */
@media (max-height: 720px) {
  .cover-rule { display: none; }
  .field .tip { display: none; }
  .gate-note { display: none; }
  .gate-card .hint { margin-bottom: 10px; }
}
@media (max-height: 620px) {
  .cover-sub { display: none; }
  .cover-logo { width: 52px; }
  .gate-card .hint { display: none; }
}
/* 窄屏（小手机）说明文字会折行，字号略收一点 */
@media (max-width: 430px) {
  .gate-card .hint { font-size: 12.5px; }
}

.err { color: var(--red-700); font-size: 13px; margin-top: 10px; }

/* --------------------------------------------------------------- task panel */

.page { padding: 24px 0 70px; }
.page-head { margin-bottom: 20px; }
.page-head h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: .02em; }
.page-head p { margin: 0; color: var(--dim); font-size: 14px; }

.task-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
  border: 1px solid #eee3c9; box-shadow: var(--shadow-1);
  padding: 22px 24px 20px 26px; margin-bottom: 26px;
}
.task-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--gold-600), var(--red-700)); }
.task-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--red-700); letter-spacing: .16em; margin-bottom: 10px; }
.task-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-600); }
.task-main { font-family: var(--serif); font-size: clamp(17px, 2.3vw, 21px); line-height: 1.85; color: #2c2a24; margin: 0 0 14px; letter-spacing: .02em; }
.task-main b { color: var(--red-700); }
.task-sub { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--dim); }
.task-sub .k { color: var(--ink-2); font-weight: 600; }

.progress-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 13.5px; color: var(--dim); }
.pips { display: flex; gap: 6px; }
.pip { width: 26px; height: 6px; border-radius: 99px; background: var(--line); }
.pip.on { background: var(--gold-600); }

/* ------------------------------------------------------------- article list */

.alist { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.acard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden;
  transition: .18s ease; cursor: pointer;
}
.acard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #ddd6c8; }
.acard-top { display: flex; align-items: flex-start; gap: 13px; padding: 18px 20px 0; }
.acard-no {
  font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1;
  color: #fff; background: linear-gradient(150deg, var(--red-700), var(--red-900));
  border-radius: 10px; width: 52px; height: 52px; flex: none;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(158, 31, 36, .22);
}
.acard-h { min-width: 0; flex: 1; }
.acard-h h3 { font-family: var(--serif); margin: 2px 0 5px; font-size: 18.5px; line-height: 1.4; letter-spacing: .01em; }
.acard-meta { font-size: 12.5px; color: var(--dim); }
.acard-brief { padding: 12px 20px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.acard-foot { margin-top: auto; padding: 14px 20px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acard-foot .spacer { flex: 1; }
.badge-done { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: #1c7c54; }
.badge-done::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #1c7c54; color: #fff; font-size: 11px; }

.home-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.home-foot .spacer { flex: 1; }

/* ------------------------------------------------------------------- reader */

.reader { background: var(--paper); min-height: 100vh; }
.reader-shell { max-width: var(--readwrap); margin: 0 auto; background: #fff; padding: 0 0 8px; box-shadow: 0 0 0 1px var(--line-2); }

.read-head { padding: 34px 30px 8px; }
.read-kicker { font-size: 12.5px; letter-spacing: .3em; color: var(--dim-2); margin-bottom: 14px; }
.read-head h1 { font-family: var(--serif); font-size: clamp(25px, 4vw, 34px); margin: 0 0 14px; letter-spacing: .06em; line-height: 1.34; }
.read-byline { font-size: 14px; color: var(--ink-2); }
.read-byline b { font-weight: 600; }
.read-meta { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.read-hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0 0; }

.read-guide { margin: 0 30px 26px; padding: 16px 18px; background: var(--gold-100); border: 1px solid #eee2bb; border-radius: var(--r-md); }
.read-guide h4 { margin: 0 0 9px; font-size: 13.5px; color: var(--gold-700); letter-spacing: .06em; }
.read-guide p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.85; color: #4a4232; font-family: var(--serif); }
.read-guide ul { margin: 0; padding-left: 20px; }
.read-guide li { font-size: 13px; line-height: 1.9; color: #5b523f; }

.read-body { padding: 0 30px 10px; }
.read-body p {
  font-family: var(--serif); font-size: 17.5px; line-height: 2.05; margin: 0 0 1.45em;
  text-indent: 2em; text-align: justify; color: #23262b;
}
.read-body p.lead {
  text-indent: 0; font-size: 19px; color: #4a4638; letter-spacing: .05em;
  border-left: 3px solid var(--gold-500); padding-left: 15px; margin-bottom: 1.8em;
}
.read-body em.hl { font-style: normal; color: var(--gold-700); font-weight: 600; }
.read-body figure { margin: 30px 0 34px; }
.read-body figure img { width: 100%; border-radius: 4px; }
.read-body figcaption { font-size: 12.5px; color: var(--dim); text-align: center; margin-top: 10px; font-family: var(--sans); }

.read-nav { display: flex; gap: 12px; padding: 20px 30px 6px; border-top: 1px solid var(--line-2); }

/* ------------------------------------------------------------- review panel */

.review { margin: 20px 0 0; background: var(--paper); border-top: 1px solid var(--line); padding: 26px 30px 46px; }
.review-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.review-head h3 { margin: 0; font-size: 17px; }
.review-head .spacer { flex: 1; }
.review-note { font-size: 13px; color: var(--dim); line-height: 1.8; margin: 0 0 18px; }
.review-note b { color: var(--ink-2); }

.angles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.angle {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; cursor: pointer; transition: .15s;
}
.angle:hover { border-color: var(--dim-2); }
.angle.on { background: var(--red-700); border-color: var(--red-700); color: #fff; font-weight: 600; }
.angles-hint { font-size: 12.5px; color: var(--dim-2); margin: 0 0 16px; }

.review textarea {
  width: 100%; min-height: 170px; resize: vertical; padding: 14px 15px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  font-family: var(--serif); font-size: 15.5px; line-height: 1.95; outline: none; transition: .15s;
}
.review textarea:focus { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(158, 31, 36, .09); }
.review textarea::placeholder { color: var(--dim-2); }

.review-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.review-bar .spacer { flex: 1; }
.wc { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.wc.ok { color: #1c7c54; }
.wc.warn { color: var(--red-600); }

.status { margin-top: 14px; font-size: 13.5px; border-radius: var(--r-sm); padding: 11px 14px; line-height: 1.7; }
.status.ok { background: #eaf6ef; border: 1px solid #c6e6d6; color: #15653f; }
.status.err { background: #fdeceb; border: 1px solid #f3ccc9; color: var(--red-800); }
.status.info { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }

.saved-card { margin-top: 16px; padding: 15px 17px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.saved-card .sc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--dim); }
.saved-card .sc-b { font-family: var(--serif); font-size: 15px; line-height: 1.9; white-space: pre-wrap; }

/* ---------------------------------------------------------------- the wall */

.wall-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.wall-head .spacer { flex: 1; }

.wall { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.wcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow-1); }
.wcard-h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.who { font-size: 13.5px; font-weight: 600; }
.wcard-b { font-family: var(--serif); font-size: 14.5px; line-height: 1.9; white-space: pre-wrap; color: #2b2f35; }
.wcard-t { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--dim-2); display: flex; gap: 12px; flex-wrap: wrap; }

.empty { padding: 54px 20px; text-align: center; color: var(--dim); font-size: 14.5px; }
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: .5; }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: #23262b; color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none;
  transition: .22s ease; z-index: 200; max-width: 88vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- footer */

.sitefoot { padding: 26px 20px 40px; text-align: center; font-size: 12.5px; color: var(--dim-2); line-height: 1.9; }
.sitefoot .logo-mini { width: 26px; height: 26px; margin: 0 auto 8px; opacity: .82; }

/* ---------------------------------------------------------------- teacher */

.t-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 22px; }
.t-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.t-stat .n { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--red-700); line-height: 1.2; }
.t-stat .l { font-size: 12.5px; color: var(--dim); margin-top: 3px; }

.t-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.t-tools .spacer { flex: 1; }
.t-tools select, .t-tools input {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; outline: none;
}
.t-tools input[type="search"] { min-width: 200px; }

.tablewrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: var(--paper); font-size: 12.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
tbody tr:hover { background: #fcfbf8; }
td.c-no { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.c-body { min-width: 320px; max-width: 620px; font-family: var(--serif); line-height: 1.85; white-space: pre-wrap; }
td.c-time { white-space: nowrap; color: var(--dim); font-size: 12.5px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 720px) {
  .cover { padding: clamp(16px, 4vh, 38px) 18px clamp(18px, 4.4vh, 42px); }
  .cover-logo { width: clamp(56px, 8.6vh, 88px); height: auto; margin-bottom: clamp(7px, 1.3vh, 13px); }
  .gate-body { padding: clamp(12px, 2.2vh, 20px) 14px clamp(16px, 3vh, 40px); }
  .gate-card { padding: clamp(15px, 2.4vh, 22px) 18px clamp(14px, 2.2vh, 20px); }
  .wrap { padding: 0 14px; }
  .read-head, .read-body, .read-guide, .review, .read-nav { padding-left: 18px; padding-right: 18px; }
  .read-guide { margin-left: 18px; margin-right: 18px; }
  .read-body p { font-size: 16.5px; line-height: 1.98; }
  .alist, .wall { grid-template-columns: 1fr; }
  .topbar-in { padding: 8px 14px; }
  .topbar .brand-t span { display: none; }
  .t-tools input[type="search"] { min-width: 0; flex: 1; }
}

/* 极矮屏（手机横屏、窄高比窗口）：进一步压缩，仍保证首屏不出滚动条 */
@media (max-height: 560px) {
  .cover { padding-top: 12px; padding-bottom: 14px; }
  .cover-logo { width: 44px; margin-bottom: 6px; }
  .cover-school { font-size: 11.5px; letter-spacing: .2em; text-indent: .2em; }
  .cover h1 { font-size: 21px; margin: 4px 0 3px; }
  .cover-sub { display: none; }
  .cover-rule { display: none; }
  .gate-body { padding: 10px 20px 12px; }
  .gate-card { padding: 12px 18px 12px; }
  .gate-card .hint { display: none; }
  .field { margin-bottom: 7px; }
  .field .tip { display: none; }
  .field input, .field select { padding: 7px 12px; }
  .gate-note { display: none; }
}

@media print {
  body { background: #fff; }
  .topbar, .review, .sitefoot, .read-nav, .read-guide { display: none !important; }
  .reader-shell { max-width: none; box-shadow: none; }
}

/* CYS reading studio: deep blue framing, warm paper for sustained reading. */
:root { --red-900:#0b1729; --red-800:#172b43; --red-700:#254564; --red-600:#355d7e; --red-100:#eaf0f5; --gold-600:#c1a06a; --gold-500:#dbc397; --gold-700:#806339; --line:#dce2e7; --line-2:#edf0f2; --paper:#faf9f6; --paper-2:#f0f3f5; --dim-2:#727e89; --r-lg:20px; }
.course-site-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px max(20px,calc((100vw - 1180px)/2)); background:#091322; color:#b6c4d4; font-size:12px; }
.course-site-nav a { color:#dfc69c; text-decoration:none; white-space:nowrap; }
.course-site-nav a:hover { color:white; }
.gate { min-height:calc(100svh - 46px); }
.cover { background:radial-gradient(ellipse at 25% 5%,#29435e 0,transparent 60%),linear-gradient(135deg,#0b1729,#162a40); padding:40px 22px 52px; }
.cover h1 { letter-spacing:.08em; font-weight:500; }
.cover-logo { width:64px; }
.cover-sub { letter-spacing:.18em; }
.cover-rule { width:64px; }
.gate-body { padding:0 18px 36px; }
.gate-card { margin-top:-22px; position:relative; box-shadow:0 18px 55px #10233c12; border-color:#c9d2dc; }
.card,.acard { box-shadow:0 5px 20px #112c4305; }
.task-card { background:linear-gradient(120deg,#fff,#f5f8fa); }
.topbar { background:#fafcfdf5; }
.acard-no { border-radius:12px; font-family:var(--serif); }
.btn { transition:background .18s,box-shadow .18s; }
.btn-primary { box-shadow:0 3px 10px #193d5a18; }
.err { color:#a52d34; }
.article-body { line-height:2; }
.t-tools { gap:10px; }
.t-tools select,.t-tools input { min-width:0; }
:focus-visible { outline:2px solid #6d8cab; outline-offset:3px; }
@media(min-width:900px) {
 .gate { display:grid;grid-template-columns:1fr 1fr;align-items:stretch;max-width:1180px;margin:40px auto;border:1px solid #d1d9e0;border-radius:24px;overflow:hidden;min-height:650px; }
 .cover { display:flex;flex-direction:column;justify-content:center;align-items:center;padding:60px 32px; }
 .cover h1 { font-size:34px;line-height:1.6; }
 .cover-sub { font-size:13px; }
 .gate-body { display:flex;align-items:center;justify-content:center;padding:48px 32px;background:#f8fafb; }
 .gate-card { margin:0;box-shadow:none;border:0;background:transparent;max-width:390px;width:100%; }
}
@media(max-width:600px) {
 .course-site-nav span { display:none; }
 .cover { padding:28px 16px 44px; }
 .cover h1 { font-size:25px; }
 .cover-logo { width:52px; }
 .topbar-in { flex-wrap:wrap; }
 .brand-t b { font-size:14px; }
 .t-tools { flex-wrap:wrap; }
 .t-tools input { width:100%; }
}
.pinned-badge { display:inline-block;padding:3px 9px;border-radius:6px;background:#f3ead8;color:#735629;font-size:12px;margin:0 8px 8px 12px; }
.teacher-feedback { margin:12px 18px 16px;padding:14px 16px;border-left:3px solid #bda16e;background:#f3f6f9;border-radius:0 9px 9px 0;color:#233f59; }
.teacher-feedback strong { font-size:12px;letter-spacing:.08em; }
.teacher-feedback p { white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;line-height:1.8;font-size:14px; }
.c-manage { min-width:260px; }
.c-manage label { display:block;font-size:12px;color:#566b7f;margin:12px 0 6px; }
.c-manage textarea { display:block;width:100%;min-height:80px;resize:vertical;border:1px solid #c9d4dd;border-radius:8px;background:#fff;padding:10px;font:inherit;font-size:13px;line-height:1.6;margin-bottom:8px; }
.manage-actions { display:flex;gap:6px; }
.delete-comment { color:#a3383d; }
.review-state { margin-left:10px;font-size:12px;color:#6c7e8f; }
.article-comments { padding:28px clamp(18px,4vw,48px);border-top:1px solid #dce2e7;background:#f5f7fa; }
.article-comment-heading { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px; }
.article-comment-heading h3 { font:500 21px var(--serif);margin:0; }
.article-comment-heading small { font:12px var(--sans);color:#738397;margin-left:8px; }
.article-comment-heading>span { font-size:12px;color:#738397; }
.article-comments .wall { display:block; }
.article-comments .wcard { margin-bottom:14px; }
.article-comments .wcard-b { white-space:pre-wrap;overflow-wrap:anywhere; }
