/* ============================================================
   青大在线校友拾光档案馆 - H5 样式
   怀旧纸质感 + 移动端优先
   ============================================================ */
:root {
  --paper: #f4eee1;
  --paper-2: #ede4d0;
  --card: #fbf7ec;
  --ink: #3b3226;
  --ink-2: #6f6450;
  --ink-3: #9a8d76;
  --line: #ddd2ba;
  --copper: #a4611f;
  --copper-2: #c07a35;
  --copper-soft: #f3e3cd;
  --teal: #2f6b5f;
  --red: #b03a2e;
  --gold: #c9a227;
  --shadow: 0 2px 10px rgba(90, 70, 40, .10);
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  background-image: radial-gradient(rgba(150,125,85,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.65;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
a { color: var(--copper); text-decoration: none; }
img { max-width: 100%; display: block; }
.serif { font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif; }

/* ---------- 顶部 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #f8f3e8 0%, #f4eee1 100%);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 1px 6px rgba(90,70,40,.06);
}
.topbar .logo {
  width: 46px; height: 38px; border-radius: 10px; flex: none;
  background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px rgba(140, 118, 80, .22);
  display: flex; align-items: center; justify-content: center;
  padding: 3px 4px; box-sizing: border-box;
}
.topbar .logo img { display: block; max-width: 100%; max-height: 100%; }
.topbar .t-title { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.12rem; font-weight: 700; letter-spacing: .5px; }
.topbar .t-sub { font-size: .68rem; color: var(--ink-3); letter-spacing: 1px; }
.topbar .t-spacer { flex: 1; }
.topbar .t-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 5px 12px; font-size: .78rem; cursor: pointer;
}
.topbar .t-btn:active { background: var(--copper-soft); }

/* ---------- 主体 ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 14px 14px 24px; }
.view { display: none; animation: fadeUp .25s ease; }
.view.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
}
.card.plain { background: transparent; box-shadow: none; border: none; padding: 0; }
.sec-title {
  font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.02rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.sec-title::before {
  content: ""; width: 5px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--copper), var(--copper-2));
}
.sec-title .more { margin-left: auto; font-size: .76rem; font-weight: 400; color: var(--ink-3); }
.muted { color: var(--ink-3); font-size: .8rem; }
.pill {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .68rem;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--paper-2);
}
.pill.copper { border-color: #e0c092; background: var(--copper-soft); color: var(--copper); }
.pill.teal { border-color: #a8cec5; background: #e2f0ec; color: var(--teal); }
.pill.red { border-color: #e5b3ab; background: #f9e7e4; color: var(--red); }
.pill.gold { border-color: #e3cf85; background: #f8f0d2; color: #8a6d10; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 12px; padding: 11px 18px; font-size: .92rem; cursor: pointer;
  background: linear-gradient(180deg, var(--copper-2), var(--copper)); color: #fff8ea;
  box-shadow: 0 2px 8px rgba(164,97,31,.28); font-weight: 600;
}
.btn:active { transform: translateY(1px); filter: brightness(.95); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--copper); border: 1px solid #e0c092; box-shadow: none; }
.btn.grey { background: var(--paper-2); color: var(--ink-2); box-shadow: none; }
.btn.sm { padding: 7px 13px; font-size: .8rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
/* 输入框统一样式。注意：凡在页面中出现过的 type 都必须列全，
   漏写 type 会直接导致该输入框没有任何样式（此前 type=tel 的手机号框即因此与其他框不一致）。
   末尾的兜底选择器确保未来新增类型也不会漏样式。 */
/* 「原来使用过的密码」等掩码输入框旁的 显示/隐藏 切换 */
.pw-toggle {
  float: right; margin-left: 8px; font-size: .74rem; font-weight: 400;
  color: var(--brass, #a4611f); text-decoration: none; cursor: pointer;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.pw-toggle:active { opacity: .6; }

input[type=text], input[type=password], input[type=number], input[type=email], input[type=tel],
input[type=url], input[type=search], input[type=date], input[type=month], textarea, select,
input:not([type]) {
  width: 100%; border: 1px solid var(--line); background: #fffdf6; border-radius: 10px;
  padding: 10px 12px; font-size: .92rem; color: var(--ink); outline: none; font-family: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--copper-2); }
textarea { resize: vertical; min-height: 84px; }
label.fld { display: block; margin-bottom: 12px; }
label.fld .lb { display: block; font-size: .8rem; color: var(--ink-2); margin-bottom: 5px; font-weight: 600; }
.empty { text-align: center; color: var(--ink-3); padding: 36px 10px; font-size: .88rem; }
.empty .ico { font-size: 34px; margin-bottom: 8px; opacity: .5; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ---------- 首页 ---------- */
.hero {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; position: relative;
  background: linear-gradient(160deg, #5b4126 0%, #7c4f22 55%, #93632c 100%);
  color: #f6ead2; padding: 22px 18px 18px;
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(246,234,210,.4); border-radius: 10px; pointer-events: none;
}
.hero h1 { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 6px; }
.hero .slogan { font-size: .78rem; letter-spacing: 3px; opacity: .85; margin-bottom: 12px; }
.hero .intro { font-size: .82rem; opacity: .92; line-height: 1.7; }
.hero .stamp {
  position: absolute; right: 14px; top: 14px; transform: rotate(12deg);
  border: 2px solid rgba(246,234,210,.65); color: rgba(246,234,210,.8);
  border-radius: 8px; padding: 3px 8px; font-size: .68rem; letter-spacing: 2px; font-weight: 700;
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 4px; text-align: center; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.12rem; color: var(--copper); font-family: Georgia, serif; }
.stat span { font-size: .68rem; color: var(--ink-3); }
.era-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: .72rem; color: var(--ink-2); flex-wrap: wrap; }
.era-bar .y { background: var(--copper-soft); border: 1px solid #e0c092; color: var(--copper); border-radius: 6px; padding: 1px 7px; }

/* ---------- 帖子列表 ---------- */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.f-chip {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 5px 13px; font-size: .78rem; cursor: pointer; white-space: nowrap;
}
.f-chip.on { background: var(--copper); border-color: var(--copper); color: #fff8ea; font-weight: 600; }
/* 筛选栏里的「更多板块」：是跳转入口而非筛选条件，用虚线铜色与前排实色芯片区分 */
.f-chip-more { border-style: dashed; border-color: var(--copper); color: var(--copper); background: transparent; }
.f-chip-more:active { background: rgba(164,97,31,.08); }
.t-item {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 13px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer;
}
.t-item:active { background: var(--paper-2); }
.t-item .t-sub { font-weight: 600; font-size: .95rem; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-item .t-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .72rem; color: var(--ink-3); }
.t-item .t-meta .auth { color: var(--teal); font-weight: 600; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-row input { flex: 1; }
.load-more { text-align: center; margin: 14px 0 4px; }

/* ---------- 板块格子（首页热门两行 / 板块列表） ---------- */
.f-cell {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  padding: 9px 10px; cursor: pointer; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease;
}
.f-cell:active { transform: scale(.97); border-color: var(--copper); }
.f-cell-name {
  font-size: .8rem; font-weight: 600; color: var(--ink); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.f-cell-num { flex: none; font-size: .68rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.f-cell.zero { opacity: .45; }
.f-cell-more {
  background: var(--copper-soft); border-color: var(--copper-2); justify-content: center;
  color: var(--copper); font-size: .8rem; font-weight: 600; letter-spacing: .5px;
}
/* 首页：3 列 × 2 行，固定两行视觉 */
.hot-forum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* 板块列表页：两列，按分类分组 */
.forum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.group-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line);
}
.group-title .g-num { font-size: .72rem; font-weight: 400; color: var(--ink-3); }

/* ---------- 检索解锁说明 ---------- */
.lock-tag {
  margin-left: auto; margin-right: 6px; font-size: .7rem; font-weight: 400;
  color: var(--copper); border: 1px solid var(--copper-2); background: var(--copper-soft);
  border-radius: 999px; padding: 1px 8px; letter-spacing: .3px;
}
.search-lock {
  border: 1px solid var(--copper-2); background: linear-gradient(170deg, #fffdf5, var(--copper-soft));
  border-radius: var(--radius); padding: 14px 15px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.search-lock .sl-head { display: flex; align-items: center; gap: 6px; font-size: .95rem; margin-bottom: 8px; }
.search-lock .sl-ic { font-size: 1.05rem; }
.search-lock p { font-size: .8rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 6px; }
.search-lock p b { color: var(--copper); }
.search-lock .sl-tip { color: var(--ink-3); font-size: .76rem; }
.search-lock .sl-btns { display: flex; gap: 8px; margin-top: 10px; }
.search-lock .sl-btns .btn { flex: 1; }

/* ---------- 详情 ---------- */
.detail-head { border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.detail-head h1 { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.25rem; line-height: 1.5; margin-bottom: 8px; }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .74rem; color: var(--ink-3); }
.article { font-size: .94rem; word-break: break-word; }
.article p { margin-bottom: 10px; }
.article .h5-quote { border-left: 3px solid var(--copper-2); background: var(--paper-2); padding: 8px 12px; border-radius: 0 8px 8px 0; color: var(--ink-2); margin-bottom: 10px; }
.article .h5-empty { color: var(--ink-3); font-style: italic; }
.attach-box {
  border: 1px dashed #cbbd9c; background: var(--paper-2); border-radius: 12px;
  padding: 14px; text-align: center; color: var(--ink-2); font-size: .84rem; margin: 12px 0;
}
.attach-box .ico { font-size: 30px; margin-bottom: 6px; }
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.img-grid a { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); position: relative; }
.img-grid img { width: 100%; height: 100%; object-fit: cover; }
.file-list { margin: 12px 0; }
.file-list .fi { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px; font-size: .82rem; }
.file-list .fi .ext { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--copper-soft); color: var(--copper); display: flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 700; }
.file-list .fi .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fi .sz { color: var(--ink-3); font-size: .72rem; }
.owner-panel { border: 1px solid #e0c092; background: linear-gradient(180deg, #fdf6e9, #f9efdc); border-radius: 12px; padding: 13px; margin: 12px 0; }
.owner-panel .op-t { font-weight: 700; font-size: .88rem; margin-bottom: 8px; color: var(--copper); }
.switch-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: .84rem; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; border-radius: 999px; background: #d8cdb6; transition: .2s; cursor: pointer; }
.switch .sl::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .sl { background: var(--copper); }
.switch input:checked + .sl::before { transform: translateX(20px); }

/* ---------- 回帖 ---------- */
.post-item { border-bottom: 1px dashed var(--line); padding: 12px 0; }
.post-item:last-child { border-bottom: none; }
.post-item .p-head { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--ink-3); margin-bottom: 6px; }
.post-item .p-head .who { color: var(--teal); font-weight: 700; font-size: .86rem; }
.post-item .p-body { font-size: .9rem; word-break: break-word; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: linear-gradient(180deg, #f8f3e8, #f1e9d8);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(90,70,40,.08);
}
.tabbar .tb {
  text-align: center; font-size: .66rem; color: var(--ink-3); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: none; font-family: inherit;
}
.tabbar .tb .ti { font-size: 20px; line-height: 1; font-style: normal; }
.tabbar .tb.on { color: var(--copper); font-weight: 700; }

/* ---------- 影像资料库 ---------- */
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.m-card .cover { aspect-ratio: 16/10; background: linear-gradient(135deg, #6b5136, #3f2f1c); position: relative; display: flex; align-items: center; justify-content: center; }
.m-card .cover .ph { font-size: 30px; opacity: .8; }
.m-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.m-card .cover .lock {
  position: absolute; inset: 0; background: rgba(40,30,15,.55); color: #f6ead2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .76rem;
}
.m-card .cover .lock .lic { font-size: 26px; }
.m-card .m-body { padding: 9px 10px; }
.m-card .m-title { font-size: .84rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.m-card .m-meta { display: flex; gap: 6px; margin-top: 6px; font-size: .68rem; color: var(--ink-3); }

/* ---------- 赞助 ---------- */
.tier-card { border: 2px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; cursor: pointer; background: var(--card); position: relative; transition: .15s; }
.tier-card.on { border-color: var(--copper); background: linear-gradient(180deg, #fdf4e3, #f9ecd4); box-shadow: 0 3px 12px rgba(164,97,31,.18); }
.tier-card .tt { display: flex; align-items: baseline; gap: 8px; }
.tier-card .tt b { font-family: Georgia, serif; font-size: 1.3rem; color: var(--copper); }
.tier-card .tt .tn { font-weight: 700; font-size: .95rem; }
.tier-card .td { font-size: .76rem; color: var(--ink-2); margin-top: 5px; }
.tier-card .tc { display: inline-block; margin-top: 7px; font-size: .72rem; color: var(--teal);
  background: #eaf4f1; border-radius: 999px; padding: 2px 10px; }
.tier-card .pick { position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.tier-card.on .pick { border-color: var(--copper); background: var(--copper); box-shadow: inset 0 0 0 3px #fdf4e3; }
.sponsor-wall { display: flex; flex-wrap: wrap; gap: 7px; }
.sp-name { border: 1px solid #e0c092; background: var(--copper-soft); color: var(--copper); border-radius: 8px; padding: 4px 10px; font-size: .76rem; }
.sp-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); padding: 9px 2px; font-size: .82rem; }
.sp-row:last-child { border-bottom: none; }
.sp-row .sp-amt { margin-left: auto; color: var(--copper); font-weight: 700; font-family: Georgia, serif; }
.sp-row .sp-msg { font-size: .74rem; color: var(--ink-3); width: 100%; }

/* ---------- 我的 / 名片 ---------- */
.me-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.avatar {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--teal), #1e4a41); color: #e8f4f0;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
  font-family: "Noto Serif SC", serif; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
  overflow: hidden;
}
.avatar.avatar-img { background: #efe7d6; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); padding: 0; }
.avatar.avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-head .mh-name { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu-list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.menu-list .mi { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .9rem; }
.menu-list .mi:last-child { border-bottom: none; }
.menu-list .mi:active { background: var(--paper-2); }
.menu-list .mi .mi-ico { width: 26px; text-align: center; font-size: 18px; }
.menu-list .mi .arrow { margin-left: auto; color: var(--ink-3); font-size: .8rem; }
.menu-list .mi .badge { background: var(--red); color: #fff; border-radius: 999px; font-size: .64rem; padding: 1px 7px; margin-left: auto; }
.card-view { border: 1px solid #e0c092; border-radius: 14px; padding: 16px; background: linear-gradient(170deg, #fffdf4, #f7eeda); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card-view::before { content: "校友名片"; position: absolute; right: -14px; top: 12px; transform: rotate(14deg); font-size: .66rem; letter-spacing: 4px; color: rgba(164,97,31,.28); font-weight: 700; }
.cv-row { display: flex; font-size: .84rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.cv-row:last-child { border-bottom: none; }
.cv-row .k { width: 76px; flex: none; color: var(--ink-3); }
.cv-row .v { flex: 1; word-break: break-all; }

/* ---------- 审核台 ---------- */
.rev-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.rev-item .rv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: .84rem; font-weight: 700; flex-wrap: wrap; }
.rev-item .rv-body { font-size: .8rem; color: var(--ink-2); margin-bottom: 9px; }
.rev-item .rv-body .k { color: var(--ink-3); }
.rev-item .rv-ops { display: flex; gap: 8px; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 12px; }

/* ---------- Toast / 弹层 ---------- */
#toast {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 200;
  background: rgba(50,40,25,.92); color: #f6ead2; border-radius: 10px;
  padding: 10px 18px; font-size: .86rem; max-width: 80%; text-align: center;
  opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
#toast.show { opacity: 1; }
#modal-mask {
  position: fixed; inset: 0; z-index: 150; background: rgba(45,35,20,.5);
  display: none; align-items: flex-end; justify-content: center;
}
#modal-mask.on { display: flex; }
.modal {
  background: var(--paper); border-radius: 18px 18px 0 0; width: 100%; max-width: 760px;
  max-height: 86vh; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal .md-t { font-family: "Noto Serif SC", serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; }
.modal .md-t .x { margin-left: auto; color: var(--ink-3); cursor: pointer; font-size: 1.2rem; padding: 0 4px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
.share-grid .sg { text-align: center; font-size: .72rem; color: var(--ink-2); cursor: pointer; padding: 10px 2px; border-radius: 10px; }
.share-grid .sg:active { background: var(--paper-2); }
.share-grid .sg .si { font-size: 26px; display: block; margin-bottom: 4px; }
.loading { text-align: center; color: var(--ink-3); padding: 26px; font-size: .84rem; }
.loading::after { content: "…"; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 33% { content: "·"; } 66% { content: "··"; } 100% { content: "···"; } }
.notice-bar { background: #fdf3e0; border: 1px solid #ecd9ae; color: #8a6d10; border-radius: 10px; padding: 9px 12px; font-size: .78rem; margin-bottom: 12px; display: flex; gap: 7px; align-items: flex-start; }
.footer { text-align: center; color: var(--ink-3); font-size: .7rem; padding: 18px 0 6px; line-height: 1.8; }
.footer .f-era { font-family: Georgia, serif; letter-spacing: 2px; }
.footer .icp { color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.footer .icp:active { color: var(--copper); }

/* 文创运费规则卡片 */
.freight-rules { background: var(--card); }
.freight-rules .fr-list { list-style: none; margin: 6px 0 0; padding: 0; }
.freight-rules .fr-list li {
  position: relative; padding: 6px 0 6px 18px; font-size: .82rem; line-height: 1.7; color: var(--ink-2);
  border-bottom: 1px dashed rgba(160, 140, 110, .2);
}
.freight-rules .fr-list li:last-child { border-bottom: none; }
.freight-rules .fr-list li::before { content: "·"; position: absolute; left: 4px; color: var(--copper); font-weight: 700; }
.freight-rules .fr-list b { color: var(--copper); }

/* ---------- 邀请校友 / 证书 ---------- */
.invite-hero {
  text-align: center; padding: 26px 18px 22px; margin-bottom: 14px;
  background: linear-gradient(160deg, #f8efe0, #f1e4cd);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.invite-hero .ih-badge {
  display: inline-block; font-size: .68rem; color: var(--copper); letter-spacing: 2px;
  border: 1px solid #e0c092; border-radius: 999px; padding: 3px 12px; background: #fdf6ea; margin-bottom: 12px;
}
.invite-hero .ih-title { font-family: "Noto Serif SC", serif; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.invite-hero .ih-sub { font-size: .82rem; color: var(--ink-2); margin-top: 6px; }
.inv-link {
  background: var(--paper); border: 1px dashed #d8c9a6; border-radius: 10px; padding: 10px 12px;
  font-size: .76rem; color: var(--ink-2); word-break: break-all; line-height: 1.5; user-select: all;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.inv-link:hover, .inv-link:active { background: #fdf6ea; border-color: var(--copper); }
.sp-row .rk { color: var(--copper); font-weight: 700; font-family: Georgia, serif; flex: none; width: 30px; }
.sp-row a.btn { flex: none; }


/* ================= 校友文创 ================= */

/* ----- 头部横幅 ----- */
.shop-hero {
  position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px;
  padding: 20px 18px 18px; color: #fff6e4;
  background:
    radial-gradient(120% 100% at 90% 0%, rgba(255, 226, 170, .35), transparent 60%),
    linear-gradient(140deg, #8c4f18 0%, #a4611f 45%, #7c4512 100%);
  box-shadow: 0 6px 20px rgba(124, 69, 18, .28);
}
.shop-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 240, 210, .16) 1px, transparent 1px);
  background-size: 16px 16px;
}
.sh-badge {
  position: relative; z-index: 1; display: inline-block; font-size: .66rem; letter-spacing: 2px;
  border: 1px solid rgba(255, 236, 200, .55); border-radius: 999px; padding: 2px 10px;
  background: rgba(255, 240, 210, .12);
}
.sh-title {
  position: relative; z-index: 1; font-size: 1.8rem; font-weight: 700; letter-spacing: 3px;
  margin: 10px 0 6px; text-shadow: 0 2px 8px rgba(80, 40, 0, .35);
}
.sh-sub { position: relative; z-index: 1; font-size: .86rem; color: #ffe9c6; }
.sh-points { position: relative; z-index: 1; margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.sh-points span {
  font-size: .72rem; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 240, 210, .16); border: 1px solid rgba(255, 236, 200, .35);
}
.sh-note { position: relative; z-index: 1; margin-top: 10px; font-size: .7rem; color: rgba(255, 234, 200, .75); }

/* ----- 服务承诺 ----- */
.promise {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.promise.col { flex-direction: column; gap: 6px; }
.promise span {
  flex: 1 1 auto; font-size: .72rem; color: var(--ink-2); text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px;
}
.promise.col span { text-align: left; }

/* ----- 分类筛选 ----- */
.cat-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: .8rem; color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 13px;
}
.cat i { font-style: normal; font-size: .66rem; color: var(--ink-3); }
.cat.on {
  color: #fff8ea; border-color: transparent; font-weight: 600;
  background: linear-gradient(135deg, var(--copper-2), var(--copper));
}
.cat.on i { color: rgba(255, 248, 234, .8); }
/* 暂无商品的分类：灰显不可点，避免点了只看到空列表 */
.cat.off { opacity: .5; cursor: default; }
.cat.off i { font-size: .6rem; }
.cat .c-ico { font-size: .85em; line-height: 1; }

.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 340px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  padding: 8px 8px 10px; text-decoration: none; color: inherit; position: relative;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.shop-card:active { transform: translateY(2px) scale(.995); box-shadow: 0 1px 4px rgba(90, 70, 40, .16); }
.sc-media { position: relative; border-radius: 9px; overflow: hidden; }
/* 商品图：4:3 横版窗口（与 cover 图标画布 384x288 同比例），宽度自适应、高度按比例撑开，
   object-fit:cover 下任意屏宽都不会裁到图标；底色铺满即「两边填充、图标居中」 */
.sc-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: 9px; background: #efe7d6; display: block; }
.sc-img.sq { width: 54px; height: 54px; aspect-ratio: auto; }
.sc-ph {
  width: 100%; height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; background: linear-gradient(160deg, #f5eddd, #e9dcc2); border-radius: 9px;
}
.sc-ph.sq { width: 54px; height: 54px; font-size: 1.4rem; }
.sc-badge {
  position: absolute; top: 0; left: 0; font-size: .64rem; padding: 2px 8px;
  border-radius: 9px 0 9px 0; color: #fff8ea;
}
.sc-badge.out { background: rgba(70, 58, 45, .8); }
.sc-badge.low { background: linear-gradient(135deg, #d0632f, #b5451b); }
.sc-cat { margin-top: 8px; font-size: .64rem; color: var(--copper); letter-spacing: 1px; }
.sc-t { font-size: .86rem; font-weight: 600; margin-top: 3px; line-height: 1.35; height: 2.4em; overflow: hidden; }
.sc-d { font-size: .7rem; color: var(--ink-2); margin-top: 2px; height: 1.4em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-p { margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.sc-p b { color: #b5451b; font-size: 1.05rem; font-family: Georgia, serif; }
.sc-tag {
  font-size: .64rem; color: var(--copper); border: 1px solid var(--copper);
  border-radius: 3px; padding: 0 4px; line-height: 1.4;
}
.sc-foot { margin-top: 3px; font-size: .66rem; color: var(--ink-3); }
.sc-out {
  position: absolute; top: 8px; left: 8px; background: rgba(60, 50, 40, .72); color: #fff;
  font-size: .66rem; padding: 2px 6px; border-radius: 4px;
}
/* 数量步进器 */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.qty-row .lb { font-size: .84rem; color: var(--ink-2); }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fffdf6; }
.stepper.wide { width: 100%; }
.stepper input {
  width: 46px; text-align: center; border: none; border-radius: 0; padding: 9px 4px;
  font-family: Georgia, serif; font-size: .95rem; color: var(--ink); background: transparent;
}
.stepper.wide input { flex: 1; width: auto; }
.stepper .st {
  width: 38px; height: 38px; border: none; background: var(--paper-2); color: var(--copper);
  font-size: 1.05rem; cursor: pointer; line-height: 1;
}
.stepper .st:active { background: var(--copper-soft); }
/* 底部结算条（悬浮在 tabbar 之上） */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: rgba(251, 247, 236, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(90, 70, 40, .12);
}
.buy-bar .bb-info { display: flex; flex-direction: column; line-height: 1.25; }
.buy-bar .bb-info b { color: #b5451b; font-family: Georgia, serif; font-size: 1.15rem; }
.buy-bar .btn { flex: none; min-width: 132px; }
/* 结算条是悬浮的，给它后面的元素留出空间，避免内容被遮住 */
.buy-bar + div { padding-bottom: 62px; }
.abtn { color: var(--ink-3); font-size: .8rem; cursor: pointer; }
/* 商品详情 */
.gd-gallery { position: relative; margin-bottom: 12px; }
.gd-gallery .sc-badge { top: 10px; left: 10px; border-radius: 6px; }
.gd-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--card);
}
.gd-main .sc-img, .gd-main .sc-ph { height: 260px; aspect-ratio: auto; border-radius: 0; }
.gd-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.gd-th {
  flex: none; width: 54px; height: 54px; padding: 0; cursor: pointer; overflow: hidden;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
}
.gd-th img { width: 54px; height: 54px; object-fit: cover; }
.gd-th.on { border-color: var(--copper); box-shadow: 0 0 0 2px var(--copper-soft); }
.gd-info .gd-cat { font-size: .68rem; color: var(--copper); letter-spacing: 2px; margin-bottom: 4px; }
.gd-info .gd-title { font-size: 1.3rem; font-weight: 700; line-height: 1.35; }
.gd-info .gd-sub { font-size: .82rem; color: var(--ink-2); margin-top: 4px; }
.gd-price { font-size: 1.8rem; color: #b5451b; font-family: Georgia, serif; font-weight: 700; margin-top: 10px; }
.gd-price .gd-unit { font-family: -apple-system, sans-serif; font-size: .72rem; color: var(--ink-3); margin-left: 4px; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 10px; font-size: .74rem; color: var(--ink-3); }
.gd-detail { font-size: .84rem; line-height: 1.75; color: var(--ink); white-space: normal; }
/* 结算 / 订单金额行 */
.co-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 6px 0; border-bottom: 1px dashed rgba(160, 140, 110, .25); font-size: .84rem;
}
.co-item b { font-family: Georgia, serif; }
.co-item.goods { align-items: center; border-bottom: 1px dashed rgba(160, 140, 110, .25); padding: 8px 0; }
.co-th { width: 54px; height: 54px; flex: none; }
.co-th .sc-img, .co-th .sc-ph { width: 54px; height: 54px; aspect-ratio: auto; border-radius: 9px; }
.co-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.co-name { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-item.goods > b { color: #b5451b; font-size: .92rem; }
.teal { color: var(--teal); }
.co-quick { margin-top: 8px; }
.co-quick .pill { background: none; cursor: pointer; font-family: inherit; }
.co-sum {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px;
  font-size: .9rem; padding-top: 8px; border-top: 1px solid var(--line);
}
.co-sum b { font-size: 1.15rem; font-family: Georgia, serif; }
.co-tip { font-size: .76rem; color: var(--ink-3); margin: -4px 0 2px; }
.co-split { margin-top: 8px; padding-top: 6px; border-top: 1px dashed rgba(160, 140, 110, .25); }
.co-split .co-item { border-bottom: none; padding: 3px 0; }
/* 订单状态条 */
.order-status {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px;
  border-radius: var(--radius); color: #fff6e4;
  background: linear-gradient(135deg, #a4611f, #7c4512);
  box-shadow: 0 4px 14px rgba(124, 69, 18, .22);
}
.order-status .os-ic { font-size: 1.7rem; flex: none; }
.order-status .os-txt { display: flex; flex-direction: column; line-height: 1.45; }
.order-status .os-txt b { font-size: 1.02rem; letter-spacing: 1px; }
.order-status .os-txt span { color: rgba(255, 234, 200, .85); font-size: .76rem; }
/* 订单卡片 */
.order-card { padding: 12px 14px; }
.oc-body { display: flex; align-items: center; gap: 10px; padding: 4px 0 2px; }
.oc-desc { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.oc-name { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-amt { font-family: Georgia, serif; font-size: 1rem; flex: none; }
.oc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
  font-size: .72rem; color: var(--ink-2);
}
.oc-head .mono { font-family: Menlo, Consolas, monospace; font-size: .7rem; word-break: break-all; }
.mono { font-family: Menlo, Consolas, monospace; }
.oc-st { font-size: .76rem; }
.oc-st.s1 { color: #b5451b; }          /* 待发货：醒目 */
.oc-st.s2 { color: var(--copper); }    /* 已发货 */
.oc-st.s3 { color: var(--ink-2); }     /* 已完成 */
.oc-st.s4 { color: #999; }             /* 已取消 */
.oc-ops { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.copper { color: var(--copper); }

/* ================= 青大在线大事件 ================= */
.events-hero {
  background: linear-gradient(160deg, #4a3a25, #6f5230);
  color: #fdf6e7; border-radius: 14px; padding: 20px 16px 16px; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(80,55,20,.18);
}
.events-hero .eh-year {
  display: inline-block; font-size: .72rem; letter-spacing: 2px; color: #f0d9a8;
  border: 1px solid rgba(240,217,168,.5); border-radius: 20px; padding: 2px 12px; margin-bottom: 10px;
}
.events-hero .eh-title { font-family: Georgia, "Songti SC", serif; font-size: 1.5rem; margin: 0 0 4px; letter-spacing: 1px; }
.events-hero .eh-sub { font-size: .8rem; color: #e9d6b6; opacity: .92; }
.events-hero .eh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.events-hero .eh-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px 10px; text-align: center; }
.events-hero .eh-stat b { display: block; font-size: 1.02rem; font-family: Georgia, serif; color: #ffe6b8; }
.events-hero .eh-stat span { font-size: .64rem; color: #e9d6b6; }

.timeline { position: relative; padding: 4px 0 4px 6px; }
.timeline .tl-year {
  font-family: Georgia, serif; font-size: 1.1rem; color: var(--copper); font-weight: 700;
  margin: 16px 0 8px; padding-left: 18px; position: relative;
}
.timeline .tl-year::before {
  content: ''; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--copper);
}
.tl-item { position: relative; padding: 0 0 14px 22px; }
.tl-item .tl-dot {
  position: absolute; left: 3px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--copper); box-shadow: 0 0 0 3px var(--paper);
}
.tl-item::before {
  content: ''; position: absolute; left: 8px; top: 14px; bottom: 0; width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px;
  box-shadow: 0 1px 2px rgba(90,70,40,.05);
}
.tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.tl-ico { font-size: 1.1rem; }
.tl-date { font-size: .74rem; color: var(--ink-2); font-family: Georgia, serif; }
.tl-tag {
  margin-left: auto; font-size: .62rem; color: var(--copper); border: 1px solid #e0c092;
  background: var(--copper-soft); border-radius: 4px; padding: 0 6px; line-height: 1.5;
}
.tl-title { font-size: .96rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.tl-desc { font-size: .8rem; color: var(--ink-2); line-height: 1.7; }
.tl-link { margin-top: 8px; }
.ev-home { border-left: 4px solid var(--copper); }

/* ==================== 站内信 ==================== */
.pm-compose-bar { padding: 10px 14px; }
.pm-list { padding: 0 10px 10px; }
.pm-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px;
  background: var(--card); border-radius: 12px; margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(80,60,30,.08); cursor: pointer;
}
.pm-item:active { background: var(--copper-soft); }
.pm-main { flex: 1; min-width: 0; }
.pm-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pm-name { font-weight: 600; color: var(--ink); font-size: .92rem; }
.pm-time { color: var(--ink-2); font-size: .72rem; flex: none; }
.pm-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.pm-last {
  color: var(--ink-2); font-size: .82rem; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pm-badge {
  flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #d9534f; color: #fff; font-size: .68rem; line-height: 18px; text-align: center;
}
.pm-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--card); border-bottom: 1px solid rgba(80,60,30,.1);
}
.pm-back { border: none; background: transparent; color: var(--copper); font-size: 1rem; padding: 4px 6px; cursor: pointer; }
.pm-title { flex: 1; text-align: center; font-weight: 700; color: var(--ink); }
.pm-info {
  border: none; background: var(--copper-soft); color: var(--copper);
  border-radius: 8px; padding: 4px 10px; font-size: .78rem; cursor: pointer;
}
.pm-thread { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.pm-msg { display: flex; flex-direction: column; max-width: 78%; }
.pm-msg.mine { align-self: flex-end; align-items: flex-end; }
.pm-msg.theirs { align-self: flex-start; align-items: flex-start; }
.pm-bubble {
  padding: 9px 12px; border-radius: 14px; line-height: 1.55; font-size: .9rem; word-break: break-word;
}
.pm-msg.mine .pm-bubble { background: var(--copper); color: #fff; border-bottom-right-radius: 4px; }
.pm-msg.theirs .pm-bubble { background: var(--card); color: var(--ink); border: 1px solid rgba(80,60,30,.1); border-bottom-left-radius: 4px; }
.pm-ts { font-size: .66rem; color: var(--ink-2); margin-top: 3px; padding: 0 4px; }
.pm-input {
  position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 12px;
  background: var(--card); border-top: 1px solid rgba(80,60,30,.1);
}
.pm-input textarea {
  flex: 1; resize: none; height: 44px; max-height: 120px; padding: 10px 12px;
  border: 1px solid rgba(80,60,30,.2); border-radius: 12px; font-size: .9rem;
  background: #fff; color: var(--ink); font-family: inherit; line-height: 1.4;
}
.pm-input .btn { flex: none; align-self: stretch; border-radius: 12px; }

/* ==================== 登录页：账号密码 / 手机号 切换 ==================== */
.seg { display: flex; background: var(--paper-2); border-radius: 10px; padding: 4px; gap: 4px; }
.seg-btn {
  flex: 1; border: none; background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: .86rem; padding: 8px 0; border-radius: 8px; cursor: pointer;
  transition: .15s;
}
.seg-btn.on { background: var(--card); color: var(--copper); font-weight: 700; box-shadow: var(--shadow); }

/* 名片内可点击拨打的手机号链接 */
.tel-link { color: var(--copper); text-decoration: none; font-weight: 600; }
.tel-link:active { opacity: .7; }
