/* =========================================================
   斐济悲批发 · QQ 群官网
   悲报批发市场 / 小票、价签与手写招牌
   ========================================================= */

:root {
    --paper: #f1e4cc;
    --paper-deep: #e7d6b7;
    --card: #fdf8ee;
    --ink: #24211b;
    --ink-soft: #6b6152;
    --red: #c0392b;
    --red-deep: #9c2b20;
    --green: #3f6b4f;
    --yellow: #f2c94c;
    --shadow: 4px 4px 0 rgba(36, 33, 27, 0.16);
    --font-display: "ZCOOL QingKe HuangYou", "Microsoft YaHei", "PingFang SC", sans-serif;
    --font-body: "LXGW WenKai", "Kaiti SC", "KaiTi", "STKaiti", serif;
    --font-hand: "Ma Shan Zheng", "Kaiti SC", "KaiTi", cursive;
    --font-mono: "IBM Plex Mono", "Courier New", monospace;
    --wrap: 1280px;
    --pad: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

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

h1, h2, h3, p, dl, dd, blockquote {
    margin: 0;
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

:focus-visible {
    outline: 2px dashed var(--red);
    outline-offset: 3px;
}

.paper-grain {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -90px;
    z-index: 60;
    padding: 10px 16px;
    background: var(--red);
    border: 2px solid var(--ink);
    color: #fff8ea;
    font-family: var(--font-display);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.hand {
    font-family: var(--font-hand);
    font-weight: 400;
}

/* ---------- 顶栏 ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(241, 228, 204, 0.94);
    border-bottom: 2px solid var(--ink);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: var(--wrap);
    height: 70px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand-seal {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--red);
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 rgba(36, 33, 27, 0.22);
    color: #fff8ea;
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1;
    transform: rotate(-4deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.04em;
}

.tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.tabs a {
    position: relative;
    padding: 4px 0;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tabs a:hover,
.tabs a.is-on {
    color: var(--ink);
}

.tabs a.is-on::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 0;
    height: 3px;
    background: var(--red);
    transform: rotate(-1deg);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.open-sign {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    font-family: var(--font-body);
    font-size: 11px;
    transform: rotate(2deg);
}

.open-sign i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.copy-chip {
    padding: 7px 14px;
    border: 2px solid var(--ink);
    background: var(--red);
    box-shadow: 2px 2px 0 var(--ink);
    color: #fff8ea;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.copy-chip:hover {
    background: var(--red-deep);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink);
}

.copy-chip:active,
.copy-chip.is-copied {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

/* ---------- Hero ---------- */

.hero {
    padding: 62px 0 56px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 54px;
    align-items: center;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.hero-copy {
    min-width: 0;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    animation: drop-in 0.6s both;
}

.kicker-sticker {
    display: inline-block;
    padding: 4px 10px;
    border: 2px solid var(--ink);
    background: var(--red);
    box-shadow: 2px 2px 0 rgba(36, 33, 27, 0.2);
    color: #fff8ea;
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.3;
    transform: rotate(-2deg);
}

.kicker-text {
    color: var(--red);
    font-family: var(--font-hand);
    font-size: 18px;
}

.hero-title {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 18px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(64px, 8.4vw, 106px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: 0.02em;
    animation: drop-in 0.7s 0.06s both;
}

.title-mark {
    position: relative;
    z-index: 1;
    padding: 0 0.04em;
}

.title-mark::after {
    content: "";
    position: absolute;
    left: -0.04em;
    right: -0.04em;
    bottom: 0.1em;
    z-index: -1;
    height: 0.34em;
    background: var(--yellow);
    transform: rotate(-1.4deg);
}

.title-sticker {
    align-self: flex-start;
    margin: 8px 0 0 12px;
    padding: 4px 9px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    color: var(--red);
    font-family: var(--font-hand);
    font-size: 15px;
    line-height: 1.3;
    transform: rotate(7deg);
    white-space: nowrap;
}

.hero-slogan {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.7;
    animation: drop-in 0.7s 0.12s both;
}

.hero-intro {
    max-width: 48ch;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.9;
    animation: drop-in 0.7s 0.16s both;
}

.find-form {
    display: flex;
    align-items: stretch;
    min-width: 0;
    max-width: 580px;
    margin-top: 28px;
    border: 2px solid var(--ink);
    background: var(--card);
    box-shadow: 4px 4px 0 rgba(36, 33, 27, 0.18);
    transform: rotate(-0.4deg);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    animation: drop-in 0.7s 0.2s both;
}

.find-form:focus-within {
    box-shadow: 4px 4px 0 var(--red);
    transform: rotate(0deg);
}

.find-label {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-right: 2px dashed var(--ink);
    background: var(--yellow);
    font-family: var(--font-display);
    font-size: 17px;
    white-space: nowrap;
}

.find-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
}

.find-form input::placeholder {
    color: rgba(107, 97, 82, 0.75);
}

.find-form input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.find-form button {
    padding: 0 20px;
    border: 0;
    border-left: 2px solid var(--ink);
    background: var(--red);
    color: #fff8ea;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.find-form button:hover {
    background: var(--red-deep);
}

.find-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 12px;
    animation: drop-in 0.7s 0.24s both;
}

.find-hints a {
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px dotted var(--red);
}

.find-hints a:hover {
    background: var(--yellow);
    color: var(--ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin-top: 32px;
    animation: drop-in 0.7s 0.28s both;
}

.price-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    padding: 9px 18px 10px 28px;
    border: 2px solid var(--ink);
    background: var(--red);
    box-shadow: 4px 4px 0 var(--ink);
    color: #fff8ea;
    text-align: left;
    cursor: pointer;
    transform: rotate(-1.4deg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-btn::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 9px;
    height: 9px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    transform: translateY(-50%);
}

.price-btn:hover {
    transform: rotate(0deg) translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--ink);
}

.price-btn:active,
.price-btn.is-copied {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--ink);
}

.price-btn-label {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.2;
}

.price-btn-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.price-btn-hint {
    font-family: var(--font-hand);
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.85;
}

.arrow-link {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--red);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.arrow-link span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.arrow-link:hover {
    color: var(--red);
}

.arrow-link:hover span {
    transform: translateX(4px);
}

/* 招牌板 */

.hero-board {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 18px 12px 38px;
    animation: board-in 0.8s 0.1s both;
}

.board-watermark {
    position: absolute;
    top: -20px;
    right: -8px;
    color: transparent;
    font-family: var(--font-display);
    font-size: 250px;
    line-height: 0.8;
    -webkit-text-stroke: 2px rgba(192, 57, 43, 0.16);
    transform: rotate(8deg);
    pointer-events: none;
    user-select: none;
}

.board-photo {
    position: relative;
    z-index: 2;
    width: min(360px, 100%);
    padding: 12px 12px 46px;
    border: 2px solid var(--ink);
    background: var(--card);
    box-shadow: 7px 7px 0 rgba(36, 33, 27, 0.2);
    transform: rotate(2.4deg);
}

.board-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1.5px solid var(--ink);
    object-fit: cover;
    filter: saturate(0.96);
}

.board-hand {
    position: absolute;
    left: 55%;
    right: 10px;
    bottom: 8px;
    color: var(--red);
    font-family: var(--font-hand);
    font-size: 15px;
    line-height: 1.35;
    text-align: right;
    transform: rotate(-1deg);
}

.tape {
    position: absolute;
    z-index: 3;
    width: 76px;
    height: 22px;
    border: 1px dashed rgba(36, 33, 27, 0.25);
    background: rgba(211, 183, 130, 0.78);
}

.tape-a {
    top: -13px;
    left: -20px;
    transform: rotate(-23deg);
}

.tape-b {
    top: -13px;
    right: -20px;
    transform: rotate(19deg);
}

.board-note {
    position: absolute;
    z-index: 3;
    left: -4px;
    bottom: 6px;
    width: 208px;
    padding: 14px 14px 14px 30px;
    border: 2px solid var(--ink);
    background: var(--yellow);
    box-shadow: 3px 3px 0 rgba(36, 33, 27, 0.2);
    transform: rotate(-5deg);
}

.note-price {
    display: inline-block;
    margin-bottom: 6px;
    padding: 1px 8px;
    border: 1.5px solid var(--ink);
    background: var(--red);
    color: #fff8ea;
    font-family: var(--font-display);
    font-size: 13px;
    transform: rotate(-3deg);
}

.board-note p {
    font-family: var(--font-hand);
    font-size: 15px;
    line-height: 1.55;
}

.note-hole {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 9px;
    height: 9px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    transform: translateY(-50%);
}

.board-stamp {
    position: absolute;
    z-index: 4;
    right: 2px;
    bottom: 34px;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 2px dashed var(--red);
    border-radius: 50%;
    background: rgba(241, 228, 204, 0.65);
    color: var(--red);
    font-family: var(--font-display);
    font-size: 20px;
    transform: rotate(-13deg);
}

/* ---------- 跑马灯 ---------- */

.ticker {
    overflow: hidden;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background: var(--red);
    color: #fff8ea;
}

.ticker-track {
    display: flex;
    width: max-content;
    padding: 9px 0;
    animation: marquee 30s linear infinite;
}

.ticker-track span {
    padding-right: 44px;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- 小票 ---------- */

.receipt-section {
    padding: 76px 0;
    border-bottom: 2px solid var(--ink);
    background-color: var(--paper-deep);
    background-image: repeating-linear-gradient(-45deg, rgba(36, 33, 27, 0.035) 0 1px, transparent 1px 13px);
}

.receipt-grid {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.receipt {
    position: relative;
    padding: 28px 30px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 8px 8px 0 rgba(36, 33, 27, 0.18);
    transform: rotate(-1deg);
}

.receipt-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
}

.receipt-head strong {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
}

.receipt-head span {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
}

.receipt-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 14px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.receipt-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.receipt-lines li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(36, 33, 27, 0.32);
}

.line-name {
    font-size: 15px;
    white-space: nowrap;
}

.line-dots {
    flex: 1;
    height: 0.8em;
    border-bottom: 1px dotted rgba(36, 33, 27, 0.38);
}

.receipt-lines b {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.receipt-lines b .is-empty,
.receipt-lines b.is-empty {
    color: var(--ink-soft);
}

.receipt-spark {
    margin-top: 20px;
}

.spark-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.spark-head span:first-child {
    font-size: 13px;
    font-weight: 700;
}

.spark-head span:last-child {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9px;
}

.spark {
    display: flex;
    align-items: stretch;
    gap: 7px;
    height: 62px;
}

.spark-bar {
    display: grid;
    grid-template-rows: 1fr 13px;
    flex: 1;
    min-width: 0;
    align-items: end;
}

.spark-bar i {
    display: block;
    grid-row: 1;
    width: 100%;
    min-height: 2px;
    border: 1px solid var(--ink);
    border-bottom: 0;
    background: rgba(36, 33, 27, 0.55);
    transition: height 0.5s ease;
}

.spark-bar.is-today i {
    background: var(--red);
}

.spark-bar em {
    grid-row: 2;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    font-style: normal;
    text-align: center;
}

.receipt-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 2px solid var(--ink);
}

.receipt-total span {
    font-size: 14px;
}

.receipt-total strong {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
}

.barcode {
    height: 38px;
    margin: 18px 0 8px;
    background: repeating-linear-gradient(90deg,
        var(--ink) 0 2px, transparent 2px 5px,
        var(--ink) 5px 6px, transparent 6px 9px,
        var(--ink) 9px 12px, transparent 12px 14px);
    opacity: 0.82;
}

.receipt-foot {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-align: center;
}

.receipt-aside {
    position: relative;
    align-self: center;
    padding: 10px 0 0 12px;
}

.receipt-aside .hand {
    color: var(--red);
    font-size: 24px;
    line-height: 1.5;
    transform: rotate(-3deg);
}

.doodle-arrow {
    position: relative;
    display: block;
    width: 54px;
    height: 34px;
    margin: 10px 0 16px 28px;
    transform: rotate(6deg);
}

.doodle-arrow::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 42px;
    height: 2.5px;
    background: var(--red);
    transform: rotate(33deg);
    transform-origin: left center;
}

.doodle-arrow::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 2px;
    width: 11px;
    height: 11px;
    border-right: 2.5px solid var(--red);
    border-bottom: 2.5px solid var(--red);
}

.aside-stamp {
    display: inline-block;
    padding: 5px 14px;
    border: 2px solid var(--green);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    transform: rotate(3deg);
}

/* ---------- 摊位介绍 ---------- */

.about-section {
    padding: 88px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 64px;
    align-items: start;
}

.about-sheet {
    position: relative;
    padding: 40px 38px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 6px 6px 0 rgba(36, 33, 27, 0.16);
    transform: rotate(-0.6deg);
}

.tape-c {
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
}

.mark {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 0.06em;
}

.mark::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 0.06em;
    z-index: -1;
    height: 0.36em;
    background: var(--yellow);
    transform: rotate(-1deg);
}

.about-sheet h2,
.section-head h2,
.rules-board h2 {
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.3;
}

.prose {
    color: var(--ink);
    font-size: 15px;
    line-height: 2;
}

.prose p {
    margin-bottom: 14px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.about-hand {
    margin-top: 24px;
    color: var(--red);
    font-size: 22px;
    line-height: 1.5;
    transform: rotate(-1.5deg);
}

.about-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 36px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1.5px dashed rgba(36, 33, 27, 0.35);
}

.about-meta dt {
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
}

.about-meta dd {
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.2;
}

.chat-wall {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.chat-note {
    position: relative;
    max-width: 330px;
    padding: 11px 15px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 3px 3px 0 rgba(36, 33, 27, 0.14);
}

.chat-note::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: -8px;
    width: 13px;
    height: 13px;
    border-right: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
    background: var(--card);
    transform: rotate(45deg);
}

.chat-note .chat-name {
    display: block;
    margin-bottom: 2px;
    color: var(--red);
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 1.4;
}

.chat-note p {
    font-size: 14px;
    line-height: 1.7;
}

.chat-a {
    transform: rotate(-1.8deg);
}

.chat-b {
    align-self: flex-end;
    transform: rotate(1.6deg);
    background: #fbf3d9;
}

.chat-b::after {
    left: auto;
    right: 18px;
    background: #fbf3d9;
}

.chat-b .chat-name {
    color: var(--green);
}

.chat-c {
    max-width: 290px;
    transform: rotate(-0.8deg);
}

.chat-caption {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 18px;
    text-align: right;
    transform: rotate(2deg);
}

/* ---------- 常驻工牌 ---------- */

.members-section {
    padding: 88px 0;
    border-top: 2px solid var(--ink);
    background: #f6ecda;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    margin-bottom: 34px;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-note {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 14px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.badge-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 22px 18px 18px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 5px 5px 0 rgba(36, 33, 27, 0.15);
    color: var(--ink);
    text-decoration: none;
    transform: rotate(-0.7deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-card:nth-child(even) {
    transform: rotate(0.8deg);
}

.badge-card:hover {
    z-index: 2;
    transform: rotate(0) translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(36, 33, 27, 0.18);
}

.badge-hole {
    position: absolute;
    top: 9px;
    right: 13px;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
}

.badge-index {
    position: absolute;
    top: 10px;
    left: 18px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.08em;
}

.badge-photo {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin-top: 8px;
    overflow: hidden;
    place-items: center;
    border: 1.5px solid var(--ink);
    background: var(--paper-deep);
}

.badge-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-photo > span {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1;
}

.badge-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding-top: 8px;
}

.badge-name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
}

.role-stamp {
    display: inline-block;
    width: fit-content;
    padding: 1px 8px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
    transform: rotate(-2deg);
    white-space: nowrap;
}

.role-owner {
    background: var(--red);
    color: #fff8ea;
}

.role-admin {
    background: var(--yellow);
}

.role-bot {
    border-style: dashed;
    border-color: var(--green);
    color: var(--green);
}

.badge-bio {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.75;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.badge-tags,
.file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.badge-tags i,
.file-tags i {
    padding: 1px 6px;
    border: 1px dashed rgba(36, 33, 27, 0.4);
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 11px;
    font-style: normal;
    line-height: 1.55;
}

.badge-more {
    margin-top: 30px;
    text-align: right;
}

.empty-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 30px;
    border: 1.5px dashed rgba(36, 33, 27, 0.45);
    color: var(--ink-soft);
}

/* ---------- 管理值班表 ---------- */

.team-section {
    padding: 88px 0;
    border-top: 2px solid var(--ink);
    background: #efe0c6;
}

.team-side {
    display: flex;
    align-items: center;
    gap: 22px;
}

.team-online {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.team-online i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(63, 107, 79, 0.12);
}

.team-seal {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 2px solid var(--red);
    border-radius: 50%;
    color: var(--red);
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1;
    opacity: 0.85;
    transform: rotate(9deg);
}

.duty-board {
    position: relative;
    padding: 34px 34px 22px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 8px 8px 0 rgba(36, 33, 27, 0.16);
    transform: rotate(-0.25deg);
}

.duty-board::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(36, 33, 27, 0.16);
    pointer-events: none;
}

.tape-team {
    top: -14px;
    left: 46px;
    width: 94px;
    transform: rotate(-4deg);
}

.duty-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 0 2px 14px;
    border-bottom: 2px solid var(--ink);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.duty-head strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
}

.duty-dots {
    flex: 1;
    min-width: 40px;
    border-bottom: 1px dotted rgba(36, 33, 27, 0.35);
    transform: translateY(-4px);
}

.duty-cols {
    display: grid;
    grid-template-columns: 34px 58px minmax(150px, 0.85fr) minmax(220px, 1.7fr) auto auto;
    gap: 16px;
    padding: 9px 8px 8px;
    color: rgba(107, 97, 82, 0.8);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.24em;
}

.duty-cols span:nth-child(5) {
    text-align: right;
}

.duty-list {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.duty-row {
    display: grid;
    grid-template-columns: 34px 58px minmax(150px, 0.85fr) minmax(220px, 1.7fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 15px 8px;
    border-bottom: 1px dashed rgba(36, 33, 27, 0.28);
}

.duty-row.is-owner {
    background: linear-gradient(90deg, rgba(242, 201, 76, 0.2), transparent 72%);
}

.duty-row:last-child {
    border-bottom: 0;
}

.duty-no {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.duty-photo {
    display: grid;
    width: 58px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border: 1.5px solid var(--ink);
    background: var(--paper-deep);
    transform: rotate(-1.5deg);
}

.duty-row:nth-child(even) .duty-photo {
    transform: rotate(1.4deg);
}

.duty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duty-photo > span {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
}

.duty-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
}

.duty-name strong {
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.15;
}

.duty-bio {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.7;
}

.duty-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-align: right;
    white-space: nowrap;
}

.duty-state {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 1px 7px;
    border: 1px solid rgba(63, 107, 79, 0.55);
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.8;
    transform: rotate(-2deg);
    white-space: nowrap;
}

.duty-state i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

.duty-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 16px;
    padding: 14px 2px 0;
    border-top: 1px dotted rgba(36, 33, 27, 0.35);
}

.duty-foot .hand {
    color: var(--red);
    font-size: 18px;
    line-height: 1.3;
    transform: rotate(-1deg);
}

.duty-foot > span {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-align: right;
}

.duty-empty {
    padding: 28px 6px;
    color: var(--ink-soft);
    font-size: 14px;
}

/* ---------- 店规 / 入群 ---------- */

.join-section {
    padding: 80px 0 96px;
    border-top: 2px solid var(--ink);
    background: var(--paper-deep);
}

.join-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.rules-board {
    position: relative;
    padding: 36px 34px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 5px 5px 0 rgba(36, 33, 27, 0.15);
    transform: rotate(0.6deg);
}

.tape-d {
    top: -13px;
    right: 44px;
    transform: rotate(6deg);
}

.rules-prose {
    max-width: 560px;
}

.rules-hand {
    margin-top: 22px;
    color: var(--red);
    font-size: 19px;
    transform: rotate(-1deg);
}

.join-sign {
    position: relative;
    overflow: hidden;
    padding: 40px 38px;
    border: 2px solid var(--ink);
    background: var(--red);
    box-shadow: 7px 7px 0 var(--ink);
    color: #fff8ea;
    transform: rotate(-1deg);
}

.join-sign::after {
    content: "悲";
    position: absolute;
    right: -8px;
    bottom: -58px;
    color: rgba(255, 248, 234, 0.1);
    font-family: var(--font-display);
    font-size: 190px;
    line-height: 1;
    pointer-events: none;
}

.join-label {
    display: inline-block;
    color: rgba(255, 248, 234, 0.78);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
}

.join-sign h2 {
    position: relative;
    z-index: 1;
    margin: 14px 0 14px;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.4vw, 52px);
    font-weight: 400;
    line-height: 1.1;
}

.join-sign p {
    position: relative;
    z-index: 1;
    max-width: 34ch;
    margin-bottom: 18px;
    color: rgba(255, 248, 234, 0.85);
    font-size: 14px;
    line-height: 1.8;
}

.join-number {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 20px;
    padding: 5px 12px;
    border: 2px solid var(--ink);
    background: var(--yellow);
    box-shadow: 3px 3px 0 var(--ink);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 20px;
    letter-spacing: 0.08em;
    transform: rotate(-1deg);
}

.join-btn {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--ink);
    background: var(--card);
    box-shadow: 3px 3px 0 var(--ink);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.join-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
}

.join-btn:active,
.join-btn.is-copied {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

.join-or {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 2px;
    color: rgba(255, 248, 234, 0.72);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.join-or::before,
.join-or::after {
    content: "";
    flex: 1;
    border-top: 1px dotted rgba(255, 248, 234, 0.4);
}

.join-qr {
    position: relative;
    z-index: 1;
    width: 198px;
    margin: 20px auto 2px;
    padding: 7px 7px 0;
    border: 1.5px solid var(--ink);
    background: #fffdf7;
    box-shadow: 5px 5px 0 rgba(36, 33, 27, 0.5);
    transform: rotate(-1.8deg);
}

.join-qr img {
    width: 100%;
    height: auto;
}

.join-qr figcaption {
    padding: 7px 0 9px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
}

.tape-qr {
    top: -11px;
    left: 50%;
    width: 72px;
    transform: translateX(-50%) rotate(-3deg);
}

.join-qq {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 14px;
    color: rgba(255, 248, 234, 0.85);
    font-size: 12px;
    text-underline-offset: 3px;
}

.join-qq:hover {
    color: var(--yellow);
}

/* ---------- 页脚 ---------- */

.footer {
    border-top: 2px solid var(--ink);
    background: var(--darker, #e3d0ad);
    background-color: #e3d0ad;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 40px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 26px var(--pad);
}

.footer-stamp {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-stamp strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.footer-stamp span {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--ink-soft);
    font-size: 12px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-note {
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.7;
    text-align: right;
}

/* ---------- 花名册页 ---------- */

.masthead {
    padding: 60px 0 46px;
    border-bottom: 2px solid var(--ink);
    background-color: var(--paper-deep);
    background-image: repeating-linear-gradient(-45deg, rgba(36, 33, 27, 0.03) 0 1px, transparent 1px 13px);
}

.masthead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.masthead-copy h1 {
    margin: 14px 0 10px;
    font-family: var(--font-display);
    font-size: clamp(48px, 6.4vw, 82px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.masthead-copy p {
    max-width: 50ch;
    color: var(--ink-soft);
    font-size: 15px;
}

.masthead-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 142px;
    height: 142px;
    border: 2px dashed var(--red);
    border-radius: 50%;
    color: var(--red);
    text-align: center;
    transform: rotate(-8deg);
}

.masthead-stamp span {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.masthead-stamp strong {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.directory {
    padding: 50px 0 96px;
}

.search-desk {
    margin-bottom: 42px;
    padding: 20px 24px 18px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 6px 6px 0 rgba(36, 33, 27, 0.15);
    transform: rotate(-0.4deg);
}

.search-desk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
}

.desk-label {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.2;
}

.desk-count {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.06em;
}

.dir-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 4px 0 10px;
    border-bottom: 2px solid var(--ink);
    transition: border-color 0.2s ease;
}

.dir-search:focus-within {
    border-color: var(--red);
}

.dir-search-icon {
    flex: 0 0 auto;
    color: var(--red);
    line-height: 0;
}

.dir-search input {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(18px, 2vw, 22px);
    outline: none;
}

.dir-search input::placeholder {
    color: rgba(107, 97, 82, 0.7);
}

.dir-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-clear {
    flex: 0 0 auto;
    padding: 4px 11px;
    border: 1.5px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-clear:hover {
    background: var(--red);
    color: #fff8ea;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 16px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    padding: 4px 11px;
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip span {
    margin-left: 3px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.chip:hover {
    background: var(--yellow);
}

.chip.is-active {
    background: var(--red);
    color: #fff8ea;
    transform: rotate(-1deg);
}

.chip.is-active span {
    color: rgba(255, 248, 234, 0.8);
}

.filter-tip {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.04em;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.file-card {
    position: relative;
    padding: 20px 20px 18px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 5px 5px 0 rgba(36, 33, 27, 0.14);
    transform: rotate(-0.5deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-card:nth-child(even) {
    transform: rotate(0.6deg);
}

.file-card:hover {
    transform: rotate(0) translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(36, 33, 27, 0.17);
}

.file-card.is-hidden {
    display: none;
}

.file-tape {
    position: absolute;
    top: -11px;
    left: 50%;
    width: 62px;
    height: 18px;
    border: 1px dashed rgba(36, 33, 27, 0.25);
    background: rgba(211, 183, 130, 0.78);
    transform: translateX(-50%) rotate(-3deg);
}

.file-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.file-no {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.08em;
}

.file-stamp {
    padding: 1px 6px;
    border: 1.5px solid var(--red);
    color: var(--red);
    font-family: var(--font-body);
    font-size: 9px;
    line-height: 1.5;
    transform: rotate(6deg);
}

.file-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.file-photo {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border: 1.5px solid var(--ink);
    background: var(--paper-deep);
}

.file-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-photo > span {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 24px;
}

.file-id {
    min-width: 0;
}

.file-id h2 {
    margin-bottom: 5px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.file-qq {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.file-bio {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.85;
}

.no-result {
    margin-top: 30px;
    padding: 56px 24px;
    border: 2px dashed var(--ink);
    background: var(--card);
    text-align: center;
    transform: rotate(-0.4deg);
}

.no-result-stamp {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 16px;
    border: 3px double var(--red);
    color: var(--red);
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.12em;
    transform: rotate(-6deg);
}

.no-result h2 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
}

.no-result p {
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 14px;
}

.ghost-btn {
    padding: 7px 16px;
    border: 2px solid var(--ink);
    background: transparent;
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--font-display);
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ghost-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
}

.ghost-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

.roster-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 40px;
    padding: 15px 18px;
    border: 1.5px dashed rgba(36, 33, 27, 0.38);
    background: rgba(253, 248, 238, 0.72);
    box-shadow: 3px 3px 0 rgba(36, 33, 27, 0.1);
    transform: rotate(-0.3deg);
}

.roster-pager[hidden] {
    display: none;
}

.pager-note {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.pager-nums {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto;
}

.pager-num {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1.5px solid rgba(36, 33, 27, 0.38);
    background: var(--card);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pager-num:nth-child(odd) { transform: rotate(-1.2deg); }
.pager-num:nth-child(even) { transform: rotate(1deg); }

.pager-num:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.pager-num.is-on {
    border-color: var(--ink);
    background: var(--red);
    box-shadow: 2px 2px 0 var(--ink);
    color: #fff8ea;
    transform: rotate(-1.6deg);
}

.pager-gap {
    align-self: center;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 11px;
}

.pager-arrows {
    display: flex;
    gap: 9px;
}

.pager-btn {
    padding: 6px 12px;
    border: 1.5px solid var(--ink);
    background: var(--card);
    box-shadow: 2px 2px 0 rgba(36, 33, 27, 0.22);
    font-family: var(--font-display);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pager-btn:hover:not(:disabled) {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink);
}

.pager-btn:disabled {
    opacity: 0.35;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 620px) {
    .roster-pager {
        gap: 10px 12px;
        margin-top: 28px;
        padding: 13px 12px;
        transform: rotate(0);
    }

    .pager-note,
    .pager-arrows {
        order: 1;
    }

    .pager-arrows {
        margin-left: auto;
    }

    .pager-nums {
        order: 2;
        flex: 1 0 100%;
        margin: 0;
    }

    .pager-num {
        min-width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

.directory-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 38px;
    padding-top: 16px;
    border-top: 1.5px dashed rgba(36, 33, 27, 0.35);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.04em;
}

/* ---------- 动效 ---------- */

/* 装饰性的贴纸、水印、旋转卡片不撑出横向滚动 */
.hero,
.receipt-section,
.about-section,
.members-section,
.team-section,
.join-section {
    overflow-x: clip;
}

@keyframes drop-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes board-in {
    from { opacity: 0; transform: translateY(16px) rotate(0.6deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ticker-track { animation: none; }
    .hero-kicker,
    .hero-title,
    .hero-slogan,
    .hero-intro,
    .find-form,
    .find-hints,
    .hero-actions,
    .hero-board { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
    .topbar-inner { gap: 20px; }
    .tabs { gap: 16px; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .hero-board { justify-content: flex-start; padding-left: 16px; }
    .board-watermark { font-size: 210px; }
    .receipt-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .receipt-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
    .receipt-aside .hand { font-size: 21px; }
    .doodle-arrow { margin: 0; font-size: 34px; }
    .about-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .join-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
    .tab-extra { display: none; }
    .open-sign { display: none; }
    .badge-grid { grid-template-columns: 1fr; gap: 22px; }
    .file-grid { grid-template-columns: 1fr; gap: 24px; }
    .badge-card,
    .badge-card:nth-child(even),
    .file-card,
    .file-card:nth-child(even) { transform: rotate(0); }
    .footer-note { text-align: left; }
}

@media (max-width: 620px) {
    :root { --pad: 18px; }

    .topbar-inner {
        gap: 12px;
        height: 60px;
        padding: 0 16px;
    }

    .brand { gap: 9px; }
    .brand-seal { width: 34px; height: 34px; font-size: 21px; }
    .brand-text strong { font-size: 16px; }
    .brand-text small { display: none; }

    .tabs { gap: 13px; }
    .tabs a { font-size: 13px; }

    .copy-chip { padding: 6px 10px; font-size: 11px; }

    .hero { padding: 38px 0 34px; }
    .hero-kicker { margin-bottom: 16px; }
    .kicker-text { font-size: 15px; }

    .hero-title {
        font-size: clamp(46px, 14.5vw, 70px);
        margin-bottom: 14px;
    }

    .title-sticker {
        margin: 4px 0 0 8px;
        padding: 2px 7px;
        font-size: 12px;
    }

    .hero-slogan { font-size: 17px; }
    .hero-intro { font-size: 13.5px; }

    .find-form { margin-top: 22px; }
    .find-label { padding: 0 9px; font-size: 14px; }
    .find-form input { font-size: 14px; padding: 11px 10px; }
    .find-form button { font-size: 14px; padding: 0 13px; }
    .find-hints { font-size: 11px; }

    .hero-actions { gap: 18px; margin-top: 26px; }
    .price-btn { padding: 8px 14px 9px 26px; }
    .price-btn-label { font-size: 15px; }
    .price-btn-num { font-size: 10px; }

    .hero-board { padding: 10px 8px 76px 8px; }
    .board-photo { width: min(300px, 100%); }
    .board-watermark { top: 0; right: 0; font-size: 160px; }
    .board-note { left: 0; bottom: 4px; width: 178px; padding: 10px 10px 10px 26px; }
    .board-note p { font-size: 13px; }
    .board-stamp { width: 74px; height: 74px; right: 0; bottom: 30px; font-size: 17px; }
    .board-hand { display: none; }

    .ticker-track span { font-size: 14px; padding-right: 30px; }

    .receipt-section { padding: 50px 0; }
    .receipt { padding: 22px 18px; transform: rotate(0); }
    .receipt-head strong { font-size: 22px; }
    .receipt-lines b { font-size: 18px; }
    .receipt-aside .hand { font-size: 19px; }

    .about-section,
    .members-section { padding: 60px 0; }

    .about-sheet { padding: 28px 20px; transform: rotate(0); }
    .about-sheet h2,
    .section-head h2,
    .rules-board h2 { font-size: 28px; }
    .about-hand { font-size: 19px; }
    .chat-note { max-width: 100%; }
    .chat-b { align-self: flex-start; }

    .section-head { gap: 12px; }
    .section-head > .arrow-link { margin-top: 2px; }
    .badge-card { padding: 20px 16px 16px; }
    .badge-photo { flex-basis: 56px; width: 56px; height: 56px; }
    .badge-name { font-size: 19px; }

    .join-section { padding: 60px 0 72px; }
    .rules-board { padding: 28px 20px; transform: rotate(0); }
    .join-sign { padding: 30px 22px; transform: rotate(0); }
    .join-sign h2 { font-size: 38px; }
    .join-number { font-size: 16px; }

    .footer-inner { padding: 22px var(--pad); }

    .masthead { padding: 42px 0 36px; }
    .masthead-copy h1 { font-size: clamp(42px, 12vw, 62px); margin-top: 12px; }
    .masthead-copy p { font-size: 13.5px; }
    .masthead-stamp { width: 110px; height: 110px; }
    .masthead-stamp strong { font-size: 19px; }

    .directory { padding: 36px 0 72px; }
    .search-desk { padding: 16px 16px 14px; transform: rotate(0); }
    .desk-label { font-size: 19px; }
    .dir-search input { font-size: 16px; }
    .filter-tip { display: none; }
    .file-card { padding: 18px 16px 16px; }
    .file-id h2 { font-size: 20px; }
    .file-bio { font-size: 13px; }
    .no-result { padding: 40px 18px; }
}

/* ---------- 管理值班表响应式 ---------- */

@media (max-width: 1080px) {
    .duty-row {
        grid-template-columns: 30px 54px minmax(140px, 0.9fr) minmax(180px, 1.5fr) auto;
        gap: 13px;
    }

    .duty-photo {
        width: 54px;
        height: 54px;
    }

    .duty-state {
        display: none;
    }
}

@media (max-width: 860px) {
    .team-section {
        padding: 64px 0;
    }

    .team-side {
        width: 100%;
        justify-content: space-between;
    }

    .team-seal {
        width: 60px;
        height: 60px;
        font-size: 21px;
    }

    .duty-board {
        padding: 28px 20px 18px;
        transform: none;
    }

    .duty-head {
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .duty-dots {
        display: none;
    }

    .duty-row {
        grid-template-columns: 26px 50px minmax(0, 1fr);
        grid-template-areas:
            "no photo name"
            ". bio bio"
            ". meta meta";
        gap: 6px 12px;
        padding: 14px 4px;
        align-items: start;
    }

    .duty-no {
        grid-area: no;
        align-self: center;
    }

    .duty-photo {
        grid-area: photo;
        width: 50px;
        height: 50px;
    }

    .duty-name {
        grid-area: name;
        align-self: center;
    }

    .duty-name strong {
        font-size: 21px;
    }

    .duty-bio {
        grid-area: bio;
    }

    .duty-meta {
        grid-area: meta;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 14px;
        text-align: left;
    }

    .duty-cols {
        display: none;
    }

    .duty-foot {
        margin-top: 12px;
    }
}

@media (max-width: 620px) {
    .duty-board {
        padding: 26px 14px 16px;
    }

    .duty-head strong {
        font-size: 16px;
    }

    .duty-row {
        grid-template-columns: 22px 46px minmax(0, 1fr);
    }

    .duty-photo {
        width: 46px;
        height: 46px;
    }

    .duty-name strong {
        font-size: 19px;
    }

    .duty-bio {
        font-size: 12px;
    }

    .duty-foot .hand {
        font-size: 16px;
    }
}
