/* ==========================================================================
   心理健康空间
   暖调治愈系设计系统
   ========================================================================== */

:root {
  --bg: #F0F5EE;
  --surface: #FFFFFF;
  --surface-2: #EAF2E7;
  --ink: #22302A;
  --ink-2: #4E5E57;
  --muted: #86958E;
  --primary: #3E8E7E;
  --primary-dark: #2E6E61;
  --primary-soft: #E6F2EE;
  --rose: #D98B94;
  --rose-soft: #FBEDEE;
  --warm: #D9A441;
  --warm-soft: #FCF3E2;
  --lav: #8F86C0;
  --lav-soft: #F1EFFA;
  --line: #DEE8DA;
  --line-2: #EAF1E7;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-s: 0 2px 10px rgba(52, 74, 66, .05);
  --shadow: 0 8px 30px rgba(52, 74, 66, .08);
  --shadow-l: 0 18px 50px rgba(52, 74, 66, .12);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
               "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 整站校园底图：固定铺满视口，轻微虚化后作为氛围层 */
body::before {
  content: "";
  position: fixed;
  inset: -28px;
  z-index: -2;
  background: url("/assets/campus-lake.webp") center 42% / cover no-repeat;
  opacity: .55;
  filter: blur(3px);
  pointer-events: none;
}

/* 柔和遮罩：压低底图对比度，保证长文与卡片边缘的可读性 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(238, 245, 236, .58) 0%,
    rgba(242, 247, 240, .50) 40%,
    rgba(233, 242, 231, .64) 100%);
  pointer-events: none;
}

a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(250, 248, 244, .84);
  border-bottom: 1px solid var(--line-2);
}
.topbar-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--primary), #6FB6A6 55%, var(--lav));
  display: grid; place-items: center;
  color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: 0 5px 16px rgba(62, 142, 126, .32);
}
.brand-txt b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .2px; line-height: 1.3; }
.brand-txt span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .6px; }

.nav { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.top-right { display: flex; align-items: center; gap: 9px; flex-shrink: 0; margin-left: auto; }
.admin-link { color: var(--muted); font-size: 13px; white-space: nowrap; }
.nav button {
  padding: 8px 15px; border-radius: 11px; font-size: 14px; color: var(--ink-2);
  transition: .2s; white-space: nowrap; font-weight: 500;
}
.nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav button.on {
  background: var(--primary); color: #fff;
  box-shadow: 0 5px 16px rgba(62, 142, 126, .28);
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding: 68px 0 48px;
  text-align: center;
  background: url("/assets/campus-banner.webp") center 42% / cover no-repeat;
}
/* 第一层：整体均匀遮罩，让底图退到背景里 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg,
    rgba(241, 246, 239, .54) 0%,
    rgba(241, 246, 239, .48) 30%,
    rgba(239, 245, 237, .80) 74%,
    var(--bg) 100%);
}
/* 第二层：文字正后方一块柔和亮斑，保证标题始终清晰 */
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%; top: -6%;
  transform: translateX(-50%);
  width: min(900px, 98%);
  height: 68%;
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(249, 252, 248, .96) 0%,
    rgba(249, 252, 248, .82) 50%,
    rgba(249, 252, 248, 0) 100%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 15px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  border: 1px solid rgba(62, 142, 126, .18);
}
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.28; font-weight: 800; letter-spacing: -.5px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #2C7A6C, #4A8CB0 48%, #7A6FB8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  max-width: 640px; margin: 18px auto 0;
  color: var(--ink-2); font-size: 16px;
}
.hero-slogan {
  margin-top: 22px; font-size: 15px; color: var(--primary-dark);
  letter-spacing: 3px; font-weight: 600;
}
.hero-slogan::before, .hero-slogan::after { content: "「"; color: var(--muted); }
.hero-slogan::after { content: "」"; }

.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; margin-top: 38px; }
.quick-a {
  text-align: left; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-s); transition: .25s;
}
.quick-a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(62, 142, 126, .3); }
.quick-a i {
  font-style: normal; font-size: 26px; display: block; margin-bottom: 9px; line-height: 1.2;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.quick-a b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.quick-a span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------- 版块头 */
.sec { padding: 54px 0; }
.sec-head { margin-bottom: 26px; }
.sec-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; color: var(--primary);
  text-transform: uppercase;
}
.sec-head h2 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 8px 0 0; letter-spacing: -.3px;
}
.sec-head .lead {
  margin-top: 12px; max-width: 760px; color: var(--ink-2); font-size: 15px;
  padding-left: 16px; border-left: 3px solid var(--primary-soft);
}

/* ---------------------------------------------------------------- 卡片/按钮 */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-s);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  background: var(--primary); color: #fff; transition: .2s;
  box-shadow: 0 6px 18px rgba(62, 142, 126, .25);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn.rose { background: var(--rose); box-shadow: 0 6px 18px rgba(217, 139, 148, .28); }
.btn.rose:hover { background: #C97C86; }

.field { margin-bottom: 16px; }
.field > label {
  display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2);
}
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
input[type=text], input[type=password], input[type=number], input[type=date],
select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  transition: .18s; font-size: 14.5px; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3.5px rgba(62, 142, 126, .12);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.75; font-family: inherit; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: .18s; font-weight: 500;
}
.chip:hover { border-color: rgba(62, 142, 126, .4); }
.chip.on {
  background: var(--primary-soft); border-color: var(--primary);
  color: var(--primary-dark); font-weight: 600;
}
.chip.rose.on { background: var(--rose-soft); border-color: var(--rose); color: #A55C65; }

.seg { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 13px; gap: 4px; }
.seg button {
  padding: 8px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); transition: .18s;
}
.seg button.on { background: var(--surface); color: var(--primary-dark); box-shadow: var(--shadow-s); }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 13px;
  font-size: 14px; z-index: 300; opacity: 0; pointer-events: none;
  transition: .28s; box-shadow: var(--shadow-l); max-width: 84vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #B4575F; }

/* ---------------------------------------------------------------- 树洞 */
.panel { padding: 24px; }
.panel-title {
  display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.panel-title .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0;
}
.panel-title .dot.rose { background: var(--rose); }
.panel-title small { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: auto; }

.privacy {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warm-soft); border: 1px solid rgba(217, 164, 65, .28);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12.8px;
  color: #8A6A25; line-height: 1.65; margin-bottom: 18px;
}
.privacy b { color: #7A5C1C; }

.wall-list { max-height: 700px; overflow-y: auto; padding-right: 5px; margin: -4px; }
.wall-list::-webkit-scrollbar { width: 6px; }
.wall-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.post { padding: 16px 17px; border-radius: var(--radius-sm); background: var(--surface-2); margin: 4px 0 12px; }
.post-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 12.5px; color: var(--muted); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px;
  background: linear-gradient(140deg, var(--primary-soft), var(--lav-soft));
  color: var(--primary-dark); font-weight: 700;
}
.avatar.rose { background: linear-gradient(140deg, var(--rose-soft), var(--warm-soft)); color: #A55C65; }
.post-head .who { font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.post-body { font-size: 14.6px; white-space: pre-wrap; word-break: break-word; line-height: 1.8; }
.tag {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-weight: 600;
}
.tag.rose { background: var(--rose-soft); color: #A55C65; }
.tag.lav { background: var(--lav-soft); color: #675D9B; }
.tag.warm { background: var(--warm-soft); color: #8A6A25; }
.tag.grey { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }

.reply {
  margin-top: 13px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--primary-soft); border-left: 3px solid var(--primary);
}
.reply-head { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.reply-body { font-size: 14px; white-space: pre-wrap; word-break: break-word; color: #2A4A43; line-height: 1.8; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); font-size: 13.5px; }
.empty i { font-style: normal; font-size: 30px; display: block; margin-bottom: 10px; opacity: .55; }
.empty i, .mood-b i, .mini .h, .act-files a, .filelist span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* ---------------------------------------------------------------- 科普 */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.art {
  padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: .25s; display: flex; flex-direction: column; text-align: left;
}
.art:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(62, 142, 126, .28); }
.art .cat {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; background: var(--lav-soft); color: #675D9B; margin-bottom: 13px;
}
.art h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; margin-bottom: 9px; }
.art p { font-size: 13.6px; color: var(--ink-2); line-height: 1.75; flex: 1; }
.art .foot {
  margin-top: 15px; padding-top: 13px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: space-between;
}
.art .more { color: var(--primary); font-weight: 600; }

.reader {
  position: fixed; inset: 0; z-index: 200; background: rgba(38, 51, 47, .45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 18px; overflow-y: auto;
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: .25s;
}
.reader.on { opacity: 1; pointer-events: auto; }
.reader-in {
  background: var(--surface); border-radius: var(--radius); max-width: 760px; width: 100%;
  padding: 40px 44px 46px; box-shadow: var(--shadow-l); position: relative;
  transform: translateY(14px); transition: .3s;
}
.reader.on .reader-in { transform: none; }
.reader-close {
  position: absolute; top: 16px; right: 18px; width: 34px; height: 34px;
  border-radius: 10px; background: var(--surface-2); color: var(--ink-2);
  font-size: 18px; line-height: 1; display: grid; place-items: center;
}
.reader-close:hover { background: var(--line); }
.reader h2 { font-size: 25px; font-weight: 800; line-height: 1.42; margin: 12px 0 14px; }
.reader .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 24px; }
.reader-body { font-size: 15.5px; line-height: 2; color: #33423D; }
.reader-body p { margin: 0 0 16px; }
.reader-body strong { color: var(--ink); }
.reader-body ol, .reader-body ul { margin: 0 0 16px; padding-left: 24px; }
.reader-body li { margin-bottom: 7px; }

/* ---------------------------------------------------------------- 打卡 */
.check-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; }
.mood-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.mood-b {
  padding: 14px 4px 11px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--surface); text-align: center; transition: .18s;
}
.mood-b i { font-style: normal; font-size: 27px; display: block; line-height: 1.2; }
.mood-b span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.mood-b:hover { border-color: rgba(62, 142, 126, .45); transform: translateY(-2px); }
.mood-b.on {
  border-color: var(--primary); background: var(--primary-soft);
  box-shadow: 0 4px 14px rgba(62, 142, 126, .2);
}
.mood-b.on span { color: var(--primary-dark); font-weight: 600; }

.stress-row { display: flex; gap: 8px; }
.stress-b {
  flex: 1; padding: 10px 4px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: .18s;
}
.stress-b:hover { border-color: rgba(217, 139, 148, .5); }
.stress-b.on { border-color: var(--rose); background: var(--rose-soft); color: #A55C65; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat {
  text-align: center; padding: 16px 10px; border-radius: var(--radius-sm); background: var(--surface-2);
}
.stat b { display: block; font-size: 25px; font-weight: 800; color: var(--primary-dark); line-height: 1.25; }
.stat span { font-size: 12px; color: var(--muted); }

.trend { display: flex; align-items: flex-end; gap: 3px; height: 108px; padding: 0 2px; }
.trend i {
  flex: 1; border-radius: 4px 4px 2px 2px; min-height: 3px;
  background: linear-gradient(180deg, #6FB6A6, var(--primary));
  transition: .3s; position: relative; opacity: .9;
}
.trend i.none { background: var(--line-2); }
.trend i:hover { opacity: 1; transform: scaleY(1.04); }
.trend-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 7px; }

.wall-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 330px; overflow-y: auto; padding-right: 4px; }
.mini {
  padding: 12px 13px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px;
}
.mini .h { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 15px; }
.mini .h span { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.mini p { color: var(--ink-2); line-height: 1.65; word-break: break-word; }

/* ---------------------------------------------------------------- 活动 */
.act-list { display: flex; flex-direction: column; gap: 18px; }
.act {
  display: grid; grid-template-columns: 118px 1fr; gap: 22px;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: .25s;
}
.act:hover { box-shadow: var(--shadow); }
.act-date { text-align: center; padding: 14px 8px; border-radius: var(--radius-sm); background: var(--primary-soft); height: fit-content; }
.act-date b { display: block; font-size: 29px; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.act-date span { font-size: 12px; color: var(--primary-dark); opacity: .8; }
.act h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 9px; }
.act .line { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.act .desc { font-size: 14.2px; color: var(--ink-2); line-height: 1.8; }
.act .body { margin-top: 12px; font-size: 14.2px; color: var(--ink-2); line-height: 1.9; white-space: pre-wrap; }
.act-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9px; margin-top: 15px; }
.act-photos img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--line); cursor: zoom-in; transition: .2s;
}
.act-photos img:hover { transform: scale(1.025); }
.act-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.act-files a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 10px;
  background: var(--surface-2); font-size: 12.8px; color: var(--ink-2); border: 1px solid var(--line);
}
.act-files a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.more-btn { text-align: center; margin-top: 12px; }

.lightbox {
  position: fixed; inset: 0; z-index: 250; background: rgba(20, 28, 25, .88);
  display: grid; place-items: center; padding: 26px; opacity: 0; pointer-events: none; transition: .25s;
}
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; }

/* ---------------------------------------------------------------- 页脚 */
.foot {
  position: relative;
  margin-top: 40px; padding: 48px 0 52px; border-top: 1px solid var(--line);
  text-align: center;
  background: url("/assets/campus-library.webp") center 28% / cover no-repeat;
}
.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--bg) 0%,
    rgba(240, 246, 238, .86) 20%,
    rgba(238, 244, 236, .93) 100%);
}
.foot > .wrap { position: relative; }
.foot .slogan { font-size: 16px; font-weight: 700; color: var(--primary-dark); letter-spacing: 1.5px; }
.foot .info { margin-top: 12px; font-size: 12.8px; color: var(--muted); line-height: 1.9; }
.foot .info a { color: var(--muted); }
.help {
  max-width: 660px; margin: 22px auto 0; padding: 15px 20px; border-radius: var(--radius-sm);
  background: var(--rose-soft); border: 1px solid rgba(217, 139, 148, .28);
  font-size: 13px; color: #8E5158; line-height: 1.85; text-align: left;
}

/* ---------------------------------------------------------------- 栅格 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mt-s { margin-top: 10px; } .mt { margin-top: 18px; } .mt-l { margin-top: 28px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1000px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .check-grid, .grid-2 { grid-template-columns: 1fr; }
  .topbar-in { flex-wrap: wrap; gap: 10px; }
  .brand { order: 1; margin-right: auto; }
  .top-right { order: 2; margin-left: 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .nav::-webkit-scrollbar { height: 0; }
  .brand-txt span { display: none; }
  .act { grid-template-columns: 1fr; gap: 16px; }
  .act-date { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 10px; }
  .act-date b { font-size: 22px; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .quick .quick-a:nth-child(5) { grid-column: span 2; }
  .art-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 28px; }
  .sec { padding: 38px 0; }
  .panel, .art, .act { padding: 18px; }
  .reader-in { padding: 30px 22px 34px; }
  .reader h2 { font-size: 20px; }
  .wall-mini { grid-template-columns: 1fr; }
  .mood-b i { font-size: 23px; }
  .mood-b span { font-size: 10.5px; }
  .stress-b { font-size: 12.5px; }
}

/* ---------------------------------------------------------------- 页脚标识 */

a.tel { text-decoration: none; color: inherit; }
a.tel b { color: var(--primary-dark); border-bottom: 1px dashed rgba(62, 142, 126, .5); }

@media (max-width: 720px) {
}

/* 窄屏：横幅比例过扁，改用竖构图的林荫道 */
@media (max-width: 760px) {
  .hero { background-image: url("/assets/campus-road.webp"); background-position: center 34%; }
  .foot { background-position: center 22%; }
}

/* ---------------------------------------------------------------- 公开墙互动 */
.actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: 12.8px;
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); transition: .2s; font-weight: 500;
}
.act-btn:hover { border-color: rgba(62, 142, 126, .45); color: var(--primary-dark); }
.act-btn:disabled { opacity: .6; cursor: default; }
.act-btn i { font-style: normal; font-size: 14px; line-height: 1; }
.act-btn b { font-weight: 600; }
.act-btn.on { background: var(--rose-soft); border-color: var(--rose); color: #A55C65; }

.cmt-wrap { margin-top: 13px; }
.cmt-list { display: flex; flex-direction: column; gap: 9px; }
.cmt-none { font-size: 12.5px; color: var(--muted); padding: 2px 2px 4px; }
.cmt {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
.cmt.priv { background: var(--warm-soft); border-color: rgba(217, 164, 65, .32); }
.cmt-h { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.cmt-h b { font-size: 12.8px; font-weight: 600; color: var(--ink-2); }
.cmt-h time { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.cmt-acts { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cmt-btn {
  font-size: 12.3px; color: var(--muted); padding: 2px 4px; border-radius: 6px;
  transition: .18s; font-weight: 500;
}
.cmt-btn:hover { color: var(--primary-dark); background: var(--primary-soft); }
.cmt-btn.danger:hover { color: var(--rose); background: var(--rose-soft); }
.cmt-btn.armed { color: #fff !important; background: var(--rose) !important; font-weight: 600; }
.cmt-count { font-size: 11.8px; color: var(--muted); }
.cmt-replies {
  margin-top: 10px; padding-left: 13px;
  border-left: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 9px;
}
.cmt.reply { background: transparent; border: none; padding: 0; }
.reply-mini {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 10px;
}
.reply-mini textarea { flex: 1; min-height: 38px; font-size: 13.3px; padding: 8px 11px; }
.reply-mini .btn { flex-shrink: 0; }
.cmt-b { font-size: 13.8px; line-height: 1.78; white-space: pre-wrap; word-break: break-word; }
.avatar.mini { width: 22px; height: 22px; font-size: 11px; }

.cmt-form { margin-top: 12px; }
.cmt-form textarea { min-height: 60px; font-size: 13.8px; }
.cmt-opts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.cmt-opts input[type=text] { width: 118px; padding: 7px 11px; font-size: 13px; }
.seg.mini { padding: 3px; border-radius: 11px; }
.seg.mini button { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.cmt-opts .btn.sm { margin-left: auto; }

/* ---------------------------------------------------------------- 学生账号 */
.acct-bar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--line);
  margin-bottom: 14px; font-size: 13px;
}
.acct-bar.on { border-style: solid; border-color: rgba(62, 142, 126, .38); background: var(--primary-soft); }
.acct-ico { font-size: 16px; line-height: 1; }
.acct-txt { flex: 1; min-width: 150px; color: var(--ink-2); line-height: 1.55; }
.acct-txt b { color: var(--primary-dark); }
.acct-txt small { display: block; font-size: 11.5px; color: var(--muted); }

.auth-bg, .pwd-bg {
  position: fixed; inset: 0; z-index: 220; background: rgba(34, 48, 42, .45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 22px;
  opacity: 0; pointer-events: none; transition: .22s; overflow-y: auto;
}
.auth-bg.on, .pwd-bg.on { opacity: 1; pointer-events: auto; }
.auth-modal {
  width: 100%; max-width: 400px; background: var(--surface);
  border-radius: var(--radius); padding: 30px 30px 32px;
  box-shadow: var(--shadow-l); position: relative;
}
.auth-close {
  position: absolute; top: 14px; right: 16px; width: 30px; height: 30px;
  border-radius: 9px; background: var(--surface-2); color: var(--ink-2);
  display: grid; place-items: center; font-size: 15px; line-height: 1;
}
.auth-close:hover { background: var(--line); }
.auth-tabs { display: flex; gap: 5px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .18s; }
.auth-tabs button.on { background: var(--surface); color: var(--primary-dark); box-shadow: var(--shadow-s); }
.auth-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.auth-lead { font-size: 12.8px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.auth-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 14px; text-align: center; }

@media (max-width: 620px) {
  .auth-modal { padding: 24px 20px 26px; }
  .acct-txt { min-width: 100%; order: 2; }
}

/* ---------------------------------------------------------------- 站点顶部标识 */

/* ---------------------------------------------------------------- 标题栏登录入口 */
.nav-auth {
  padding: 8px 16px; border-radius: 11px; font-size: 14px; font-weight: 600;
  color: #fff; white-space: nowrap; transition: .2s;
  background: linear-gradient(135deg, #3E8E7E, #5AA9C4 55%, #8F86C0);
  box-shadow: 0 5px 16px rgba(62, 142, 126, .32);
}
.nav-auth:hover { filter: brightness(1.07); transform: translateY(-1px); }
.nav-auth.on {
  background: linear-gradient(135deg, #D98B94, #C489BC);
  box-shadow: 0 5px 16px rgba(217, 139, 148, .32);
}

@media (max-width: 760px) {
}
@media (max-width: 620px) {
  .nav-auth { padding: 7px 12px; font-size: 13px; }
}

.cmt-hint {
  margin-top: 8px; font-size: 11.8px; color: var(--muted); line-height: 1.6;
}

/* ---------------------------------------------------------------- 学生上传活动 */
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up-photos { display: flex; gap: 9px; flex-wrap: wrap; }
.up-item {
  position: relative; width: 92px; height: 92px; border-radius: 11px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 12px; color: var(--muted);
}
.up-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-ftype { font-weight: 700; letter-spacing: 1px; }
.up-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(34, 48, 42, .62); color: #fff;
  display: grid; place-items: center; font-size: 11px; line-height: 1;
}
.up-btn {
  display: inline-grid; place-items: center; width: 92px; height: 92px;
  border-radius: 11px; border: 1.5px dashed var(--line); background: var(--surface-2);
  color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.4;
  cursor: pointer; transition: .2s;
}
.up-btn:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }
.up-photos + .up-btn { margin-top: 9px; }

@media (max-width: 620px) {
  .up-grid { grid-template-columns: 1fr; gap: 0; }
  .up-item, .up-btn { width: 78px; height: 78px; }
}

/* 自己发布的活动：编辑 / 删除 */
.act-edit, .act-del {
  font-size: 12px; padding: 4px 11px; border-radius: 8px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: .18s; white-space: nowrap;
}
.act-edit:hover { color: var(--primary-dark); border-color: var(--primary); background: var(--primary-soft); }
.act-del:hover { color: var(--rose); border-color: var(--rose); }
.act-del.armed { background: var(--rose); color: #fff; border-color: var(--rose); font-weight: 600; }

/* ---------------------------------------------------------------- 站点顶部标识（白底 + 班徽） */
.letterhead {
  background: #fff;
  border-bottom: 1px solid var(--line-2);
}
.letterhead-in {
  max-width: var(--max); margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 13px;
}
.lh-badge {
  height: 46px; width: 46px; object-fit: contain; display: block;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(34, 48, 42, .14);
}
.lh-name { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.lh-slogan {
  margin-left: auto; font-size: 13px; color: var(--primary-dark);
  letter-spacing: 2px; font-weight: 600; white-space: nowrap;
}

/* ---------------------------------------------------------------- 页脚标识 */
.logos {
  display: flex; align-items: center; justify-content: center;
  gap: 13px; flex-wrap: wrap; margin-bottom: 20px;
}
.logos .lh-badge { height: 54px; width: 54px; }
.logos-name { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 1px; }

@media (max-width: 760px) {
  .letterhead-in { padding: 8px 16px; gap: 11px; }
  .lh-badge { height: 38px; width: 38px; }
  .lh-name { font-size: 13.5px; }
  .lh-slogan { display: none; }
  .logos .lh-badge { height: 44px; width: 44px; }
  .logos-name { font-size: 13px; }
}

/* ---------------------------------------------------------------- 树洞信息流 */
.wall-tabs {
  display: flex; align-items: center; gap: 7px;
  margin: 0 auto 18px; max-width: 700px;
}
.wall-tabs button {
  font-size: 13px; padding: 7px 16px; border-radius: 20px;
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); transition: .18s; font-weight: 500;
}
.wall-tabs button.on {
  background: var(--primary-soft); color: var(--primary-dark);
  border-color: rgba(62, 142, 126, .45); font-weight: 600;
}
.wall-stats { margin-left: auto; font-size: 12.3px; color: var(--muted); }

.wall-feed { max-width: 700px; margin: 0 auto; }
#view-hole .sec { padding-bottom: 96px; }
.feed-end { text-align: center; font-size: 12px; color: var(--muted); margin: 26px 0 8px; }

.wall-feed .post {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 19px 14px; margin-bottom: 13px;
  transition: box-shadow .25s, border-color .25s;
}
.wall-feed .post.flash { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.post-who b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.post-who time { font-size: 12px; color: var(--muted); }
.mood-chip {
  margin-left: auto; font-size: 11.5px; color: var(--primary-dark);
  background: var(--primary-soft); padding: 3px 10px; border-radius: 10px; white-space: nowrap;
}
.post-body {
  font-size: 16px; line-height: 1.72; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.post-state { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }

/* 心理委员官方回复 */
.official {
  margin-top: 13px; padding: 12px 14px;
  background: var(--primary-soft); border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}
.official.pending { background: var(--surface-2); border-left-color: var(--line); }
.official-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13px; }
.official-h b { font-weight: 600; color: var(--primary-dark); }
.official-h time { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.avatar.blue { background: #E6F1FB; color: #185FA5; }

/* 共鸣胶囊 */
.resonate {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 13px; padding: 3px 13px 3px 4px; border-radius: 14px;
  background: var(--rose-soft); color: #993556; font-size: 12.8px; font-weight: 500;
}
.resonate .ri {
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-style: normal;
}
.resonate.on { background: var(--rose); color: #fff; }
.resonate.on .ri { background: rgba(255, 255, 255, .22); }

/* 操作栏 */
.post-acts {
  display: flex; align-items: center; gap: 6px;
  margin-top: 13px; padding-top: 11px; border-top: 0.5px solid var(--line-2);
}
.pa {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.8px; color: var(--muted); background: none;
  padding: 6px 10px; border-radius: 9px; transition: .18s; font-weight: 500;
}
.pa i { font-style: normal; font-size: 13.5px; line-height: 1; }
.pa:hover { background: var(--surface-2); color: var(--ink-2); }
.pa.on { color: var(--rose); font-weight: 600; }
.pa.accent { color: var(--primary-dark); font-weight: 600; }
.pa.accent:hover { background: var(--primary-soft); }
.pa.views { cursor: default; margin-right: auto; }
.pa.views:hover { background: none; color: var(--muted); }

/* 评论区在新卡片里 */
.wall-feed .cmt-wrap { margin-top: 4px; }
.wall-feed .cmt-form textarea { font-size: 14px; }

/* 底部常驻输入条 */
.hole-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .28s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.hole-bar.on { transform: translateY(0); }
.hole-bar-in {
  max-width: 700px; margin: 0 auto; padding: 11px 18px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.hole-bar-txt { flex: 1; font-size: 13.8px; color: var(--muted); }
.hole-bar-go {
  font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #3E8E7E, #5AA9C4);
  padding: 9px 16px; border-radius: 11px;
  box-shadow: 0 4px 14px rgba(62, 142, 126, .3);
}
.hole-bar:hover .hole-bar-go { filter: brightness(1.06); }

/* 投稿抽屉 */
.sheet-bg {
  position: fixed; inset: 0; z-index: 180; background: rgba(34, 48, 42, .45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: .22s;
}
.sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 20px 22px 26px;
  transform: translateY(30px); transition: transform .26s ease;
  margin-bottom: 0;
}
.sheet-bg.on .sheet { transform: translateY(0); }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; font-size: 16.5px; font-weight: 600;
}
.sheet-close {
  width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2);
  color: var(--ink-2); display: grid; place-items: center; font-size: 15px; line-height: 1;
}
.sheet .privacy { margin-bottom: 14px; }

@media (max-width: 760px) {
  .sheet { max-height: 92vh; padding: 16px 18px 24px; border-radius: 18px 18px 0 0; }
  .wall-feed .post { padding: 15px 15px 12px; }
  .post-body { font-size: 15.5px; }
  .mood-chip { display: none; }
}

.pa.danger:hover { color: var(--rose); background: var(--rose-soft); }
.pa.danger.armed { color: #fff !important; background: var(--rose) !important; font-weight: 600; }

/* ---------------------------------------------------------------- 拆模块：标签筛选 / 资料 / 可见范围锁 */
.tag-filter {
  display: flex; gap: 7px; flex-wrap: wrap;
  max-width: 700px; margin: 0 auto 16px;
}
.tag-filter .chip { font-size: 12.3px; padding: 5px 13px; }

.vis-lock {
  font-size: 13px; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-soft); padding: 8px 13px; border-radius: 9px;
  margin-bottom: 2px;
}

img.avatar { object-fit: cover; display: block; flex-shrink: 0; }
.wall-feed .post-head img.avatar { width: 40px; height: 40px; }
.cmt-h img.avatar, .cmt-h img.avatar.mini { width: 22px; height: 22px; }
.wall-feed .official-h img.avatar { width: 22px; height: 22px; }

.prof-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.prof-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0;
}
.prof-up .hint { margin-top: 6px; }
.up-btn.mini {
  width: auto; height: auto; display: inline-block;
  padding: 8px 15px; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer;
}
.up-btn.mini:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ---------------------------------------------------------------- 帖子详情页 */
#view-post .sec { padding-bottom: 96px; }
.back-link {
  display: inline-block; font-size: 13.5px; color: var(--muted);
  margin-bottom: 14px; padding: 6px 12px 6px 8px; border-radius: 9px; transition: .18s;
}
.back-link:hover { color: var(--primary-dark); background: var(--primary-soft); }
#postDetail { max-width: 700px; margin: 0 auto; }
.detail-post { padding: 20px 22px 16px; }
.detail-post .post-body { font-size: 17px; line-height: 1.78; }
.detail-post .post-state .pa { margin-left: auto; }
.detail-cmt-head {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 12px; padding-top: 14px; border-top: 0.5px solid var(--line-2);
}
.detail-post .cmt-wrap { margin-top: 0; }
.detail-post .cmt-form textarea { font-size: 14.5px; }
#postBar .hole-bar-in { gap: 10px; }
#postCmtInput {
  flex: 1; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 11px; padding: 10px 15px; font-size: 13.8px; color: var(--ink);
}
#postCmtInput:focus { border-color: var(--primary); background: #fff; }
#postBar .hole-bar-go { cursor: pointer; }
