/* 校园黄集中用于操作和品牌区域，辅助色只表达状态。 */
:root {
  --yellow: #ffc93c; /* 品牌主色与主要操作色。 */
  --amber: #f5a623; /* 次级强调与星级评分色。 */
  --ink: #25282e; /* 主要正文颜色。 */
  --muted: #858995; /* 次要信息颜色。 */
  --surface: #f5f6fa; /* 页面底色。 */
  --red: #ff5a5a; /* 悬赏金额与提醒颜色。 */
  --line: #f0f1f4; /* 卡片内部分隔线。 */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: #eef0f5; font-size: 14px; -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; background: none; border: 0; padding: 0; touch-action: manipulation; }
button:disabled { opacity: .48; cursor: not-allowed; }
button:active:not(:disabled) { filter: brightness(.96); }
button:focus-visible, a:focus-visible { outline: 3px solid #b47600; outline-offset: 3px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 19px; letter-spacing: -.5px; }
h2 { font-size: 21px; letter-spacing: -.7px; }
h3 { font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; }
small { font-size: 11px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.app-shell { max-width: 480px; min-height: 100dvh; margin: auto; background: var(--surface); box-shadow: 0 0 40px #25282e0a; }
.topbar { height: 56px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #fffffffa; border-bottom: 1px solid #f5f5f8; }
.topbar .campus { font-size: 17px; font-weight: 750; display: flex; align-items: center; gap: 4px; }
.topbar .campus .icon { width: 16px; }
.topbar-title { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.icon-button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.subtle { color: #a0a3ad; }
.text-button { font-size: 12px; color: #6c707d; }
main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); min-height: calc(100dvh - 56px); }
.screen { display: none; }
.screen.active { display: block; }
.home-top { padding: 12px 16px 0; background: #fff; }
.search-form { display: flex; align-items: center; gap: 8px; border-radius: 24px; background: #f3f4f7; padding: 10px 13px; color: var(--muted); }
.search-form .icon { width: 17px; height: 17px; }
.search-form input { background: none; border: 0; min-width: 0; width: 100%; font-size: 12px; outline: none; }
.circle-card { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.circle-card .emblem { width: 49px; height: 49px; border-radius: 50%; background: #fff0b8; display: grid; place-items: center; flex-shrink: 0; }
.emblem img { width: 42px; height: 42px; }
.circle-name { flex: 1; min-width: 0; }
.circle-name b { font-size: 13px; letter-spacing: -.4px; display: block; white-space: nowrap; }
.circle-name small { background: #ffe591; color: #745200; border-radius: 4px; display: inline-block; padding: 2px 6px; margin-top: 5px; font-size: 10px; }
.circle-stat { text-align: center; padding-left: 9px; border-left: 1px solid var(--line); }
.circle-stat b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.circle-stat small { color: var(--muted); display: block; margin-top: 4px; font-size: 10px; }
.banner-window { border-radius: 13px; overflow: hidden; }
.banner-track { display: flex; transition: transform .4s ease; }
.banner { flex: 0 0 100%; min-width: 0; height: 110px; background: #ffda63; position: relative; text-align: left; overflow: hidden; padding: 22px 18px; }
.banner:nth-child(2) { background: #e5efd6; }
.banner:nth-child(3) { background: #deecfc; }
.banner h2 { font-size: 23px; position: relative; z-index: 1; }
.banner p { font-size: 11px; margin-top: 8px; position: relative; z-index: 1; }
.banner img { position: absolute; right: -7px; bottom: -9px; width: 147px; opacity: .9; }
.banner-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; }
.banner-dots button { width: 16px; height: 16px; display: grid; place-items: center; }
.banner-dots button::after { content: ""; width: 5px; height: 5px; border-radius: 10px; background: #e3e4e9; }
.banner-dots button.active::after { width: 12px; background: var(--yellow); }
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 0 12px; gap: 12px; }
.shortcuts button { display: flex; align-items: center; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; }
.shortcut-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.shortcut-icon .icon { width: 25px; height: 25px; }
.pink { background: #fff0f3; color: #ee7195; }
.blue { background: #edf4ff; color: #4b94e4; }
.green { background: #edfaef; color: #39ad62; }
.purple { background: #f0ebff !important; color: #9673d8; }
.orange { background: #fff0e6; color: #ef8e3c; }
.yellow { background: #fff1b8; color: #795400; }
.hot-post { width: 100%; border-radius: 20px; background: #fff5ef; padding: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; text-align: left; }
.hot-post b { color: #f57e35; flex-shrink: 0; font-size: 12px; }
.hot-post .icon { width: 17px; height: 17px; color: #f69a31; }
.hot-post span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-left: 7px; border-left: 1px solid #efddd5; }
.hot-post small { flex-shrink: 0; font-size: 9px; color: #a17d66; }
.tabs { position: sticky; top: 56px; z-index: 15; display: flex; background: #fff; padding: 0 12px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; flex: 1; height: 53px; font-size: 13px; white-space: nowrap; }
.tabs button.active { font-weight: 750; }
.tabs button.active::after { content: ""; position: absolute; bottom: 3px; left: calc(50% - 12px); width: 24px; height: 4px; background: var(--yellow); border-radius: 9px; }
.feed { padding: 12px; }
.feed-header { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 4px 14px; }
.feed-header h2 { font-size: 18px; }
.muted { color: var(--muted); font-size: 12px; }
.card { border: 1px solid #eeeff4; background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 3px #29334b03; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.person { display: flex; align-items: center; gap: 9px; }
.person b { font-size: 13px; }
.person small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #ffdc6a; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 650; flex-shrink: 0; }
.avatar.large { width: 62px; height: 62px; font-size: 30px; border: 4px solid #ffe9a2; }
.post-body { display: block; width: 100%; text-align: left; }
.post-text { line-height: 1.8; margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.post-image { width: 100%; border-radius: 11px; aspect-ratio: 2.5; object-fit: cover; }
.post-actions { display: flex; align-items: center; gap: 36px; padding-top: 12px; }
.post-actions button { display: flex; align-items: center; gap: 5px; min-height: 28px; font-size: 12px; }
.post-actions .icon { width: 19px; height: 19px; }
.post-actions .share-button { margin-left: auto; }
.liked { color: #ef657c; }
.liked .icon { fill: #ef657c; stroke: #ef657c; }
.accent { color: #bc890a; }
.hero-note { margin-bottom: 14px; padding: 18px; border-radius: 14px; background: #fff1bf; display: flex; justify-content: space-between; align-items: center; }
.hero-note h2 { font-size: 18px; }
.hero-note p { font-size: 12px; margin-top: 7px; color: #78642e; }
.hero-note > .icon { width: 45px; height: 45px; color: #ac7b00; }
.chips { display: flex; overflow-x: auto; gap: 7px; padding: 0 0 12px; scrollbar-width: none; }
.chips button { flex-shrink: 0; background: #edeef2; padding: 8px 13px; border-radius: 20px; font-size: 12px; }
.chips button.active { background: var(--yellow); font-weight: 700; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { padding: 4px 6px; font-size: 10px; background: #f4f5f8; border-radius: 5px; display: inline-block; }
.tag.yellow { background: #ffdd6b; color: #6a4a00; }
.status { font-size: 11px; color: #bb7b15; white-space: nowrap; padding: 4px 7px; background: #fff7dc; border-radius: 6px; }
.status.done { color: #279b62; background: #e9f8ed; }
.order-card h3 { margin: 10px 0; font-size: 15px; }
.route { position: relative; }
.route::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; border-left: 1px dashed #d2d6df; }
.route p { display: flex; gap: 8px; align-items: center; line-height: 1.5; padding-bottom: 8px; font-size: 13px; overflow-wrap: anywhere; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 3px solid; flex-shrink: 0; z-index: 1; background: #fff; }
.green-dot { border-color: #34c759; }
.red-dot { border-color: #ff6d78; }
.order-time { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); padding: 3px 0 10px; }
.order-time .icon { width: 13px; height: 13px; }
.price { color: var(--red); font-size: 22px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; margin-right: 2px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; padding: 12px 20px; font-weight: 650; background: var(--yellow); min-height: 44px; }
.primary.small, .secondary.small { min-height: 33px; padding: 7px 17px; font-size: 12px; border-radius: 20px; }
.secondary { background: #f0f1f5; }
.wide { width: 100%; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(66px + env(safe-area-inset-bottom)); padding: 8px 8px calc(5px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 30; background: #fffffffa; border-top: 1px solid #eceef3; }
.bottom-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; font-size: 10px; color: #767984; }
.bottom-nav .icon { width: 23px; height: 23px; }
.bottom-nav .active { color: #282a30; font-weight: 700; }
.bottom-nav .active > .icon { fill: #ffdb62; }
.publish-circle { background: var(--yellow); width: 47px; height: 47px; margin-top: -25px; border: 5px solid #fff; outline: 1px solid #fff; border-radius: 50%; display: grid; place-items: center; box-sizing: content-box; color: #272a30; }
.publish-circle .icon { width: 28px; height: 28px; }
.badge { position: absolute; top: 0; left: calc(50% + 7px); min-width: 14px; height: 14px; padding: 0 3px; border-radius: 10px; background: var(--red); border: 2px solid #fff; font-size: 9px; line-height: 10px; color: white; }
.profile { background: linear-gradient(#fff3cc, #fffaf0); padding: 24px 20px 20px; }
.profile h2 { font-size: 22px; }
.profile .person small { font-size: 12px; }
.demo-label { display: inline-block; font-size: 10px; padding: 3px 7px; border-radius: 4px; background: #f4df9c; margin-top: 7px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-top: 26px; }
.stats button { display: flex; align-items: center; flex-direction: column; gap: 6px; font-size: 12px; }
.stats b { font-size: 23px; }
.order-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 23px; }
.order-shortcuts button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 12px; }
.order-shortcuts .icon { width: 27px; height: 27px; }
.order-shortcuts .badge { top: -5px; }
.menu-card { padding: 0 16px; }
.menu-row { display: flex; align-items: center; width: 100%; min-height: 56px; gap: 12px; text-align: left; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-row > span { flex: 1; font-size: 14px; }
.menu-row > .icon:last-child { color: #979ba8; width: 15px; }
.owner-card { background: #303136; color: #fff; width: 100%; display: flex; gap: 15px; align-items: center; padding: 20px; text-align: left; margin-top: 20px; border-radius: 15px; }
.owner-card > .icon { color: var(--yellow); width: 35px; height: 35px; }
.owner-card div { flex: 1; }
.owner-card h3 { font-size: 20px; }
.owner-card p { font-size: 11px; color: #c0c1ca; margin-top: 4px; }
.owner-card > .icon:last-child { width: 26px; height: 26px; background: var(--yellow); border-radius: 50%; color: #272a30; padding: 5px; }
.footnote { text-align: center; color: #a0a3ad; font-size: 11px; padding: 20px 10px 4px; line-height: 1.8; }
.goods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.goods-card { padding: 0; overflow: hidden; text-align: left; margin: 0; }
.goods-art { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.goods-art > span { font-size: 61px; filter: drop-shadow(0 7px 3px #7b674f18); }
.goods-art > small { font-size: 9px; color: #776f64; letter-spacing: 3px; }
.peach { background: #f9e9df; }.mint { background: #e5efeb; }.cream { background: #f6efda; }.lavender { background: #eae6f2; }
.goods-copy { padding: 12px; }
.goods-copy h3 { font-size: 13px; }
.goods-copy p { color: var(--muted); font-size: 10px; height: 31px; margin: 5px 0; overflow: hidden; }
.goods-copy .price { font-size: 19px; }
.seller { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 10px; color: #777b85; }
.tiny-avatar { width: 20px; height: 20px; background: #f5e9c8; color: #9d853c; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; }
.activity-card h3 { margin: 12px 0; font-size: 17px; }
.activity-card p { margin-top: 7px; display: flex; gap: 7px; align-items: center; }
.activity-card p .icon { width: 14px; height: 14px; }
.progress { height: 5px; background: #f1f2f6; margin: 18px 0 12px; border-radius: 10px; overflow: hidden; }
.progress i { background: var(--yellow); height: 100%; display: block; }
.hole-intro { padding: 25px 8px 22px; }
.hole-intro h2 { font-size: 26px; letter-spacing: -1px; }
.hole-intro p { color: #9590a6; margin-top: 9px; font-size: 13px; }
.hole-card { border-color: #ece8f6; }
.anonymous-note { font-size: 10px; color: #b7accc; margin-left: auto; }
.rating-card { display: flex; gap: 14px; }
.rank { color: #dfba52; font-size: 26px; font-weight: 750; }
.rating-card h3 { font-size: 14px; }.rating-card p { font-size: 12px; margin: 8px 0; }
.stars { color: var(--amber); letter-spacing: 2px; margin-top: 7px; }.stars b { letter-spacing: 0; margin-left: 8px; }
.message-card { display: flex; gap: 12px; width: 100%; text-align: left; }
.message-card > div { flex: 1; min-width: 0; }.message-card p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 7px 0; }
.message-card h3 { font-size: 14px; }.message-card small { color: #a0a3ad; }
.section-heading { margin: 10px 4px 12px; font-size: 15px; }.section-heading small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.empty { text-align: center; padding: 45px 20px; color: #a3a5af; }
.empty > .icon { width: 45px; height: 45px; margin-bottom: 18px; color: #d9d2bf; }
.empty strong { display: block; color: #777b86; margin-bottom: 8px; }.empty p { font-size: 12px; line-height: 1.8; }
.sheet { position: fixed; margin: auto auto 0; border: none; padding: 0; width: min(100%, 480px); max-width: 480px; max-height: 88dvh; border-radius: 24px 24px 0 0; background: white; color: var(--ink); overscroll-behavior: contain; box-shadow: 0 -10px 50px #0000000c; }
.sheet::backdrop { background: #1d20295c; }
.sheet[open] { animation: rise .2s ease-out; }
.sheet-inner { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet-inner::before { content: ""; display: block; width: 35px; height: 4px; border-radius: 8px; background: #d6d7df; margin: -13px auto 20px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.sheet-subtitle { color: var(--muted); font-size: 12px; margin-bottom: 22px; line-height: 1.8; }
.publish-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 22px 0; }
.publish-tile { grid-column: span 2; padding: 18px 7px 13px; border-radius: 15px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.publish-tile:nth-last-child(-n+2) { grid-column: span 3; }
.publish-tile .icon { width: 33px; height: 33px; margin-bottom: 13px; }
.publish-tile b { font-size: 15px; color: #25282e; }.publish-tile small { color: #88838a; font-size: 10px; margin-top: 6px; }
.notice { padding: 11px 13px; border-radius: 10px; background: #fff8df; color: #947433; font-size: 11px; line-height: 1.8; margin: 12px 0 18px; }
.field { display: block; margin: 17px 0; }.field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 9px; }.field i { color: #ef9459; font-style: normal; margin-left: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px; border: 1px solid #e7e8ef; border-radius: 9px; color: var(--ink); background: #fcfcfe; font-size: 16px; }.field textarea { resize: vertical; }
.form-error { color: #d85454; font-size: 12px; line-height: 1.7; margin: 10px 0; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }.sheet-actions > button { flex: 1; }
.comment { border-top: 1px solid var(--line); padding: 14px 0; }.comment p { margin-top: 7px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(86vw, 410px); padding: 12px 20px; border-radius: 12px; background: #25282ef2; color: #fff; font-size: 13px; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .15s; line-height: 1.6; text-align: center; }
.toast.show { opacity: 1; }
.account-choice { width: 100%; display: flex; gap: 10px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; }.account-choice div { flex: 1; }.account-choice small { display: block; margin-top: 4px; color: var(--muted); }
.account-choice.selected { color: #bb8500; }
.timetable { display: grid; grid-template-columns: 30px repeat(5, minmax(0, 1fr)); gap: 5px; padding: 14px 8px; border-radius: 15px; background: #fff; }.timetable > div { min-height: 78px; border-radius: 7px; padding: 9px 4px; text-align: center; font-size: 10px; line-height: 1.6; }.timetable > .day { min-height: 32px; font-weight: 650; }.timetable .period { color: var(--muted); padding-top: 25px; }.timetable small { font-size: 9px; display: block; opacity: .7; margin-top: 5px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }.metric-grid > div { background: #fff; padding: 17px; border-radius: 13px; }.metric-grid b { display: block; font-size: 25px; margin-bottom: 6px; }.metric-grid span { color: var(--muted); font-size: 11px; }
.admin-row { border-top: 1px solid var(--line); padding: 12px 0; }.admin-row p { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }.admin-row .row { margin-top: 10px; }.admin-row button { font-size: 11px; }.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }.admin-tabs button { border-radius: 7px; background: #eeeef3; padding: 7px 10px; font-size: 12px; }.admin-tabs button.active { background: var(--yellow); }
.desktop-note { position: fixed; top: 18vh; right: calc(50% + 310px); width: 225px; }.desktop-note strong { display: block; font-size: 26px; margin: 16px 0 35px; letter-spacing: -1px; }.desktop-note > span { display: block; font-size: 29px; line-height: 1.7; font-weight: 700; letter-spacing: -1px; color: #535a6a; }.desktop-note p { color: #8d92a0; font-size: 12px; margin: 18px 0 60px; }.desktop-note small { font-size: 11px; color: #999eac; }
@keyframes rise { from { transform: translateY(30px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 1050px) { .desktop-note { display: none; } }
@media (max-width: 389px) { .circle-name b { font-size: 11px; }.circle-stat { padding-left: 6px; }.circle-stat b { font-size: 12px; }.banner h2 { font-size: 21px; }.banner img { width: 126px; }.card { padding: 14px; }.circle-card { gap: 7px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
