:root {
    --paper: #f4f6f9;
    --paper-deep: #e9edf2;
    --surface: #ffffff;
    --surface-2: #f2f5f8;
    --ink: #15212e;
    --ink-2: #2b3948;
    --muted: #667585;
    --faint: #8b98a6;
    --line: #dfe5ec;
    --line-strong: #c7d0da;
    --primary: #0033a0;
    --primary-hover: #002a85;
    --primary-ink: #002566;
    --primary-soft: #e8eef9;
    --amber: #8a6116;
    --amber-soft: #f7efdc;
    --danger: #b33a3a;
    --danger-soft: #fae7e6;
    --success: #2f7a50;
    --success-soft: #e6f3ea;
    --info: #35677a;
    --info-soft: #e5eff2;
    --shadow-sm: 0 1px 2px rgba(21, 33, 46, 0.05), 0 1px 3px rgba(21, 33, 46, 0.06);
    --shadow-md: 0 14px 36px rgba(21, 33, 46, 0.09), 0 3px 8px rgba(21, 33, 46, 0.05);
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
    --header-h: 64px;
    --container: 1120px;
    --z-header: 40;
    --z-modal: 60;
    --z-lightbox: 70;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 380px),
        var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.04'/></svg>");
    background-size: 160px 160px;
}

img {
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
ul,
ol,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

.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;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: none;
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.page-main {
    min-height: calc(100dvh - var(--header-h) - 96px);
    padding: 28px 0 40px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand-center {
    justify-content: center;
}

.brand:hover {
    text-decoration: none;
}

.brand-light {
    color: #fff;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark svg {
    width: 21px;
    height: 21px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 13px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
    background: var(--surface-2);
    text-decoration: none;
}

.nav-link.active {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 4px 12px 4px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.user-chip:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    text-decoration: none;
}

.user-chip .avatar {
    width: 30px;
    height: 30px;
    border: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    padding: 26px 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--ink-2);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-title {
    font-family: var(--font-sans);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}

.page-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14.5px;
    max-width: 620px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 750;
    line-height: 1.3;
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn svg,
.btn .icon {
    width: 17px;
    height: 17px;
    flex: none;
}

.btn-soft {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.btn-soft:hover {
    background: #d9e3f5;
    color: var(--primary-ink);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink-2);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-dark {
    background: var(--ink-2);
    color: #fff;
}

.btn-dark:hover {
    background: #243342;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #9c2f2f;
    color: #fff;
}

.btn-danger-soft {
    background: var(--danger-soft);
    color: var(--danger);
}

.btn-danger-soft:hover {
    background: #f5dcd9;
    color: var(--danger);
}

.btn-sm {
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.card-pad {
    padding: 24px;
}

.card + .card {
    margin-top: 20px;
}

.form-field {
    margin-bottom: 18px;
}

.form-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
}

.form-label .label-count {
    color: var(--faint);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

.input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input::placeholder,
textarea::placeholder {
    color: var(--faint);
}

.input:hover,
textarea:hover,
select:hover {
    border-color: #b9c4cf;
}

.input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.13);
}

textarea {
    min-height: 122px;
    resize: vertical;
    line-height: 1.6;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667585' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 10l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
}

input[disabled] {
    background: var(--surface-2);
    color: var(--faint);
    cursor: not-allowed;
}

.form-hint {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.field-error {
    margin-top: 7px;
    color: var(--danger);
    font-size: 12.5px;
}

.password-wrap {
    position: relative;
}

.password-wrap .input {
    padding-right: 46px;
}

.toggle-pwd {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.toggle-pwd:hover {
    background: var(--surface-2);
    color: var(--ink-2);
}

.toggle-pwd svg {
    width: 18px;
    height: 18px;
}

.radio-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-pill {
    position: relative;
}

.radio-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.radio-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 76px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.radio-pill input:hover + span {
    background: var(--surface-2);
}

.radio-pill input:checked + span {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-ink);
}

.radio-pill input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-thumb {
    display: grid;
    place-items: center;
    flex: none;
    width: 64px;
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    object-fit: cover;
    overflow: hidden;
}

.dropzone-thumb svg {
    width: 24px;
    height: 24px;
}

.dropzone-thumb.is-empty {
    display: grid;
}

.dropzone-thumb img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropzone-thumb:not(.is-empty) img {
    display: block;
}

.dropzone-thumb:not(.is-empty) svg {
    display: none;
}

.dropzone-copy {
    min-width: 0;
}

.dropzone-copy strong {
    display: block;
    font-size: 14px;
    color: var(--ink-2);
}

.dropzone-copy span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.file-meta {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12.5px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.55;
}

.alert svg,
.alert .icon {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 2px;
}

.alert-error {
    background: var(--danger-soft);
    border-color: #eac9c7;
    color: #8f3030;
}

.alert-success {
    background: var(--success-soft);
    border-color: #c4dfce;
    color: #25623f;
}

.alert-info {
    background: var(--info-soft);
    border-color: #c3d9df;
    color: #2b5b6d;
}

.alert-warning {
    background: var(--amber-soft);
    border-color: #e5d5ad;
    color: #7c5a1e;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: var(--success-soft);
    color: #25623f;
}

.badge-warning {
    background: var(--amber-soft);
    color: #7c5a1e;
}

.badge-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-info {
    background: var(--info-soft);
    color: #215466;
}

.badge-neutral {
    background: #e9eef3;
    color: #596773;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #e9eef4;
    color: #3a4a5c;
    font-size: 12.5px;
    font-weight: 600;
}

.tag::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}

.stat-icon svg {
    width: 21px;
    height: 21px;
}

.stat-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.stat-value-md {
    font-size: 19px;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

td {
    color: var(--ink-2);
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: #f6f8fb;
}

.avatar {
    display: inline-block;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    object-fit: cover;
    vertical-align: middle;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 13px;
}

.avatar-xl {
    width: 88px;
    height: 88px;
    border-radius: 16px;
}

.avatar-placeholder {
    display: inline-grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
}

.avatar-placeholder svg {
    width: 22px;
    height: 22px;
}

.avatar-xl.avatar-placeholder svg {
    width: 34px;
    height: 34px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

.profile-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.profile-item dt {
    color: var(--muted);
    font-size: 13.5px;
}

.profile-item dd {
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.quick-action:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    text-decoration: none;
    transform: translateY(-1px);
}

.quick-action .icon,
.quick-action svg {
    flex: none;
    width: 19px;
    height: 19px;
    color: var(--primary);
}

.quick-action.danger {
    color: var(--danger);
}

.quick-action.danger svg {
    color: var(--danger);
}

.feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.side-card {
    position: static;
}
.side-card:first-child {
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.side-card + .side-card {
    margin-top: 16px;
}

.post-card {
    margin-bottom: 18px;
    padding: 20px;
}

.post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}

.post-meta {
    min-width: 0;
    flex: 1;
}

.post-author {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.post-time {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
}

.post-body {
    padding: 16px 0 12px;
}

.post-content {
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.75;
}

.post-tags {
    margin-top: 12px;
}

.post-photo {
    display: block;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    cursor: zoom-in;
}

.post-photo img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-photo:hover img {
    transform: scale(1.012);
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.action-btn:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    text-decoration: none;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn.is-liked {
    background: var(--danger-soft);
    border-color: #ecc8c5;
    color: var(--danger);
}

.action-btn.danger {
    background: var(--danger-soft);
    border-color: #ecc8c5;
    color: var(--danger);
}

.action-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.action-count svg {
    width: 16px;
    height: 16px;
}

.comments {
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.comment-item {
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
}

.comment-item:last-child {
    border-bottom: 0;
}

.comment-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author {
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
}

.comment-time {
    color: var(--faint);
    font-size: 12px;
}

.comment-body {
    margin-top: 4px;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.65;
}

.comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 12px;
}

.comment-form .input {
    min-height: 40px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.people-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
}

.people-card .people-main {
    min-width: 0;
    flex: 1;
}

.people-name {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.people-name .gender {
    margin-left: 4px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}

.people-sub {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.people-tags {
    margin-top: 11px;
}

.auth-body {
    min-height: 100dvh;
    background: var(--surface);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    min-height: 100dvh;
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 42px;
    background: linear-gradient(145deg, #031a42 0%, #002a78 52%, #003a96 100%);
    background-size: 180% 180%;
    animation: authBlueFlow 24s ease-in-out infinite;
    color: #fff;
    overflow: hidden;
}
.auth-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 58%;
    width: 46%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
    transform-origin: 0 0;
    animation: radarSpin 8s linear infinite;
    pointer-events: none;
}
@keyframes authBlueFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}
@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-radial-gradient(circle at 50% 58%, transparent 0 46px, rgba(255, 255, 255, 0.05) 46px 47px),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 520px 520px, 100% 1px, 1px 100%, 44px 44px, 44px 44px;
    background-position: 50% 58%, 50% 58%, 50% 58%, 0 0, 0 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.18));
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.18));
}

.auth-visual > * {
    position: relative;
    z-index: 1;
}

.auth-quote {
    max-width: 440px;
    font-family: var(--font-sans);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 750;
    line-height: 1.45;
    text-wrap: balance;
}

.auth-credit {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 26px;
}

.auth-card {
    width: min(470px, 100%);
}

.auth-card .auth-title {
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
}

.auth-card .auth-sub {
    margin: 8px 0 26px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.auth-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.auth-rule svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.error-page {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 24px;
    text-align: center;
}

.error-code {
    font-family: var(--font-sans);
    font-size: clamp(72px, 16vw, 148px);
    line-height: 0.95;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.error-title {
    margin-top: 14px;
    font-family: var(--font-sans);
    font-size: 23px;
    color: var(--ink);
}

.title-mt {
    margin-top: 18px;
}

.error-copy {
    max-width: 430px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.error-details {
    max-width: 580px;
    margin: 26px auto 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    text-align: left;
}

.error-details summary {
    cursor: pointer;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
}

.error-details p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
    white-space: pre-line;
}

.empty-state {
    padding: 48px 20px;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
}

.empty-icon svg {
    width: 26px;
    height: 26px;
}

.empty-title {
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

.empty-copy {
    max-width: 360px;
    margin: 7px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 32, 0.56);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: min(430px, 100%);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
}

.modal-backdrop.is-open .modal {
    transform: none;
}

.modal-title {
    font-family: var(--font-sans);
    font-size: 20px;
    color: var(--ink);
}

.modal-copy {
    margin: 8px 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    display: grid;
    place-items: center;
    padding: 26px;
    background: rgba(12, 18, 26, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lightbox-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop img {
    max-width: min(1100px, 94vw);
    max-height: 86vh;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #1b2530;
    color: #fff;
    cursor: pointer;
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.muted {
    color: var(--muted);
}

.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.flex {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.narrow {
    max-width: 720px;
}

.small-text {
    font-size: 12.5px;
}

.text-sm {
    font-size: 14px;
}

.rule-text {
    font-size: 13.5px;
    line-height: 1.8;
}

.name-line {
    font-size: 18px;
    font-weight: 700;
}

.pre-line {
    white-space: pre-line;
}

.gap-sm {
    gap: 6px;
}

.thumb-md {
    width: 64px !important;
    height: 64px !important;
}

@media (max-width: 980px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 230px;
        padding: 28px;
    }

    .auth-quote {
        font-size: 22px;
    }

    .auth-panel {
        padding: 32px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-inner {
        gap: 10px;
    }

    .header-actions {
        margin-left: auto;
    }

    .grid-2,
    .grid-3,
    .profile-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-main {
        padding: 20px 0 32px;
    }

    .container {
        width: min(100% - 24px, var(--container));
    }

    .card-pad {
        padding: 18px;
    }

    .post-card {
        padding: 16px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 200px;
        padding: 22px;
    }

    .auth-quote {
        display: none;
    }

    .auth-credit {
        display: none;
    }

    .auth-panel {
        padding: 26px 16px 40px;
    }

    .dropzone {
        flex-wrap: wrap;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* 搜索筛选栏 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 20px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.filter-bar .input {
    min-width: 160px;
    flex: 1 1 180px;
}
.filter-bar .btn {
    flex: 0 0 auto;
}

.list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
    color: var(--muted);
}
.list-meta-bottom {
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.page-link.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 通知铃铛 */
.notify-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.notify-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.notify-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
}
.notify-badge.is-empty {
    display: none;
}

/* 通知中心 */
.notification-list {
    display: grid;
    gap: 12px;
}
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.notification-item.is-system {
    border-color: var(--line-strong);
    background: var(--paper);
}
.notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}
.notification-main {
    flex: 1 1 auto;
    min-width: 0;
}
.notification-content {
    color: var(--ink);
    line-height: 1.55;
}
.notification-time {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

/* AJAX 轻提示 */
.ajax-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 80;
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px 16px;
    transform: translate(-50%, 16px);
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ajax-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 管理员退回原因 */
.inline-details {
    position: relative;
    display: inline-block;
}
.inline-details summary {
    list-style: none;
    cursor: pointer;
}
.inline-details summary::-webkit-details-marker {
    display: none;
}
.details-form {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 10;
    display: grid;
    gap: 8px;
    width: 230px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* 输入与标签辅助样式 */
.input-sm {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 14px;
}
.input-select {
    appearance: auto;
}
.tag-link {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.tag-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

@media (max-width: 720px) {
    .list-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .details-form {
        position: static;
        width: 100%;
    }
}
/* 同学卡片：一个同学一行 */
.people-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.people-card {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 132px;
    padding: 20px 24px;
    overflow: hidden;
    opacity: 1;
    transform: none;
    transition: none;
}
.people-card .people-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}
.people-card .people-sub {
    margin-top: 3px;
}
.people-card .people-side {
    flex: 0 1 auto;
    max-width: 46%;
    display: flex;
    justify-content: flex-end;
}
.people-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

@media (max-width: 720px) {
    .people-card {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .people-card .people-side {
        max-width: 100%;
        flex-basis: 100%;
        justify-content: flex-start;
    }
    .people-tags {
        justify-content: flex-start;
    }
}

/* 评论删除 */
.comment-head {
    align-items: center;
}
.comment-delete {
    margin-left: auto;
    flex: 0 0 auto;
}
.comment-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.comment-delete-btn:hover {
    color: var(--danger);
    border-color: var(--danger-soft);
    background: var(--danger-soft);
}
/* 找回密码页 */
.method-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.method-pills .radio-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}
.dev-hint strong {
    color: var(--primary-ink);
    font-family: var(--font-mono);
    letter-spacing: 0;
}
/* 彻底禁用同学卡片入场动画，防止任何偏移 */
.people-card.reveal,
.people-card.reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
/* 学生中心双卡片等高 */
.grid-2,
.grid-3 {
    align-items: stretch;
}
.grid-2 > .card,
.grid-3 > .card {
    height: 100%;
}
.grid-2 > .card + .card,
.grid-3 > .card + .card {
    margin-top: 0;
}
.grid-2 .card.reveal,
.grid-2 .card.reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
/* 动态聚焦高亮 */
.post-card.is-focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 动态操作链接 */
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
}
.action-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}
.action-link.danger:hover {
    color: var(--danger);
    background: var(--danger-soft);
}

/* 评论举报 */
.comment-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
}
.comment-report:hover {
    color: var(--danger);
    background: var(--danger-soft);
}

/* 通知分类 */
.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.tab-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.tab-link.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* 同频推荐 */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.recommend-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.recommend-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.recommend-main {
    min-width: 0;
    flex: 1;
}
.recommend-name {
    color: var(--ink);
    font-weight: 700;
}
.recommend-tags {
    margin-top: 6px;
}

/* 同学主页 */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}
.profile-hero-main {
    flex: 1;
    min-width: 0;
}
.profile-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
}
.profile-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
@media (max-width: 720px) {
    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-hero-actions {
        align-items: flex-start;
    }
}

/* 管理员核实学生证 */
.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}
/* 可访问性与减少动态 */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* 管理端活跃图表 */
.activity-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(28px, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 180px;
    padding-top: 12px;
}
.activity-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}
.activity-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-height: 120px;
}
.activity-bars span {
    width: 9px;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--line-strong);
}
.activity-bars .bar-dynamic { background: var(--primary); }
.activity-bars .bar-comment { background: var(--info); }
.activity-bars .bar-register { background: var(--amber); }
.activity-label {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}
.activity-legend {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}
.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 50%;
}
.dot-dynamic { background: var(--primary); }
.dot-comment { background: var(--info); }
.dot-register { background: var(--amber); }

/* 关注统计 */
.follow-stats {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}
.follow-stats strong {
    color: var(--ink);
    font-size: 16px;
}

/* 通知偏好 */
.pref-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.pref-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.pref-item:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.pref-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
/* 动态多图 */
.post-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.post-gallery.is-single {
    grid-template-columns: 1fr;
    max-width: 640px;
}
.post-gallery .post-photo {
    margin: 0;
}
/* 私信会话列表 */
.conversation-list {
    display: grid;
    gap: 10px;
}
.conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.conversation-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}
.conversation-main {
    flex: 1;
    min-width: 0;
}
.conversation-name {
    color: var(--ink);
    font-weight: 700;
}
.conversation-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* 聊天窗口 */
.chat-card {
    overflow: hidden;
}
.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.chat-head .btn {
    margin-left: auto;
}
.chat-name {
    font-weight: 800;
    color: var(--ink);
}
.chat-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 480px;
    padding: 18px;
    overflow-y: auto;
    background: var(--paper);
}
.chat-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 76%;
}
.chat-message.is-mine {
    align-self: flex-end;
    align-items: flex-end;
}
.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    line-height: 1.55;
    box-shadow: var(--shadow-sm);
}
.chat-message.is-mine .chat-bubble {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.chat-time {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}
.chat-form {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

/* 敏感词管理 */
.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.word-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}
/* 微信式聊天增强 */
.chat-message {
    max-width: 78%;
}
.chat-bubble {
    border-radius: 4px 14px 14px 14px;
}
.chat-message.is-mine .chat-bubble {
    border-radius: 14px 4px 14px 14px;
}
.chat-message.is-recalled .chat-bubble {
    background: var(--paper-deep);
    border-color: transparent;
    color: var(--muted);
    font-style: italic;
}
.chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.chat-read {
    color: var(--primary);
    font-size: 12px;
}
.chat-recall {
    padding: 2px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}
.chat-recall:hover {
    color: var(--danger);
    border-color: var(--danger);
}
.chat-load-more {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 6px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}
.chat-load-more:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* 输入区 */
.chat-composer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.chat-emoji-panel {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}
.chat-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.18s ease;
}
.chat-emoji:hover {
    background: var(--paper-deep);
}
.chat-form {
    align-items: flex-end;
}
.chat-emoji-toggle {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.chat-emoji-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.chat-form textarea {
    flex: 1;
    min-height: 42px;
    max-height: 140px;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}
.chat-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
/* 聊天图片消息 */
.chat-image {
    display: block;
    max-width: 240px;
    max-height: 260px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 4px;
}
.chat-image-preview {
    display: block;
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid var(--line);
    object-fit: cover;
}
.chat-image-preview[hidden] {
    display: none !important;
}
.chat-image-preview:not([hidden]) {
    display: block;
}
.chat-image-toggle {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.chat-image-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.chat-form .chat-image-preview {
    align-self: center;
}
/* 会话置顶与免打扰 */
.chat-setting-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.chat-setting-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.chat-setting-btn.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}
/* 公告 */
.announcement-list {
    display: grid;
    gap: 12px;
}
.announcement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.announcement-title {
    font-weight: 800;
    color: var(--ink);
}
.announcement-content {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
}
/* 运营日报 */
.inline-date {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
/* 私信分组 */
.conversation-group-title {
    margin: 14px 2px 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

/* 意见反馈 */
.feedback-list {
    display: grid;
    gap: 12px;
}
.feedback-item {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.feedback-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.feedback-content {
    color: var(--ink);
    line-height: 1.6;
}
/* 反馈图片 */
.feedback-image {
    display: block;
    max-width: 260px;
    max-height: 220px;
    margin-top: 10px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}

/* 趋势图消息柱 */
.bar-message {
    background: var(--primary-ink);
}
.dot-message {
    background: var(--primary-ink);
}

/* 移动端适配增强 */
@media (max-width: 860px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .inline-date {
        width: 100%;
    }
    .trend-chart {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .trend-chart .activity-col {
        display: inline-grid;
        width: 48px;
        margin-right: 6px;
        white-space: normal;
    }
    .chat-body {
        height: 56vh;
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .notification-item {
        flex-wrap: wrap;
    }
    .notification-item .btn {
        margin-left: 50px;
    }
    .chat-form {
        flex-wrap: wrap;
    }
    .chat-form textarea {
        flex-basis: 100%;
        order: 3;
    }
    .chat-form .btn {
        order: 4;
    }
    .chat-emoji-toggle,
    .chat-image-toggle {
        order: 1;
    }
    .chat-image-preview {
        order: 2;
    }
    .chat-setting-btn span {
        display: none;
    }
    .people-card {
        padding: 16px;
    }
    .people-card .people-side {
        max-width: 100%;
        flex-basis: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
    .people-tags {
        justify-content: flex-start;
    }
}
/* 用户协议与隐私政策 */
.legal-page h2 {
    margin-top: 22px;
}
.legal-page h2:first-child {
    margin-top: 0;
}
.legal-list {
    padding-left: 20px;
    line-height: 1.8;
}
/* 图片验证码 */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.captcha-image {
    display: block;
    width: 128px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}
/* 同频推荐：一行一张横向卡片 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.recommend-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 96px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    text-decoration: none;
    opacity: 1;
    transform: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.recommend-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}
.recommend-card .recommend-main {
    flex: 1;
    min-width: 0;
}
.recommend-tags {
    margin-top: 6px;
}
/* 修改资料 / 发布动态 移动端修复 */
@media (max-width: 720px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .dropzone {
        flex-direction: column;
        align-items: flex-start;
    }
    .dropzone-thumb {
        width: 72px;
        height: 72px;
    }
    .file-meta {
        word-break: break-all;
    }
    .card-pad {
        padding: 16px;
    }
    .radio-pills {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .form-field textarea {
        min-height: 120px;
    }
    .password-wrap {
        width: 100%;
    }
    .page-head .btn,
    .page-head .inline-date {
        width: 100%;
    }
}
/* Mobile file picker and form improvements */
.photo-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.photo-preview-grid[hidden] {
    display: none;
}
.photo-preview-item {
    width: 72px;
    height: 72px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}
.photo-preview-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.clear-files {
    position: relative;
    z-index: 1;
    margin-top: 8px;
}
.file-meta.is-error {
    color: var(--danger);
    font-weight: 600;
}
.btn.is-loading {
    opacity: 0.7;
    cursor: progress;
}
@media (max-width: 720px) {
    .input,
    textarea,
    select {
        font-size: 16px;
    }
}
/* AJAX pagination loading state */
[data-paginate].is-paginating {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

/* Comment @ mention */
.comment-form {
    position: relative;
}
.comment-mention {
    color: var(--primary);
    font-weight: 600;
}
.mention-dropdown {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.mention-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.mention-option:hover,
.mention-option.is-active {
    background: var(--primary-soft);
}
.mention-name {
    font-weight: 600;
    color: var(--ink-2);
}
.mention-user {
    color: var(--muted);
    font-size: 12px;
}
/* Premium design pass: restrained neutral system, single JLU blue accent */
::selection {
    background: var(--primary);
    color: #fff;
}

body {
    text-rendering: optimizeLegibility;
}

.page-main {
    padding-top: 34px;
}

.site-header {
    box-shadow: 0 1px 0 rgba(21, 33, 46, 0.03);
}

.brand-mark {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 51, 160, 0.18);
}

.card,
.filter-bar,
.stat-card,
.table-wrap,
.people-card,
.recommend-card,
.conversation-item,
.post-card {
    box-shadow: 0 1px 2px rgba(21, 33, 46, 0.04), 0 1px 1px rgba(21, 33, 46, 0.02);
}

.card:hover,
.filter-bar:hover,
.people-card:hover,
.recommend-card:hover,
.conversation-item:hover {
    border-color: var(--line-strong);
}

.btn {
    box-shadow: 0 1px 2px rgba(0, 51, 160, 0.16);
}
.btn-soft,
.btn-ghost,
.btn-danger-soft {
    box-shadow: none;
}
.btn-danger {
    box-shadow: 0 1px 2px rgba(179, 58, 58, 0.16);
}
.btn-dark {
    box-shadow: 0 1px 2px rgba(43, 57, 72, 0.18);
}
.btn:hover {
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.18);
}
.btn-ghost:hover,
.btn-soft:hover,
.btn-danger-soft:hover {
    box-shadow: none;
}
.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(179, 58, 58, 0.18);
}
.btn-dark:hover {
    box-shadow: 0 4px 12px rgba(43, 57, 72, 0.22);
}

.input,
textarea,
select {
    background: var(--surface);
    box-shadow: inset 0 1px 2px rgba(21, 33, 46, 0.03);
}
.input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.13), inset 0 1px 2px rgba(21, 33, 46, 0.02);
}

.page-link {
    border-radius: 7px;
}
.page-link.is-active {
    box-shadow: 0 1px 3px rgba(0, 51, 160, 0.24);
}

.auth-panel {
    background:
        linear-gradient(180deg, rgba(244, 246, 249, 0.72), rgba(255, 255, 255, 0) 240px),
        var(--surface);
}
@media (min-width: 981px) {
    .auth-panel {
        border-left: 1px solid var(--line);
    }
}
.auth-card {
    padding: 10px 0;
}
.auth-sub {
    max-width: 380px;
}
.auth-rule {
    background: var(--surface);
    border-style: solid;
    border-color: var(--line);
}

.chat-body {
    background:
        linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
        var(--paper);
}
.chat-bubble {
    box-shadow: 0 1px 2px rgba(21, 33, 46, 0.06);
}
.chat-message.is-mine .chat-bubble {
    box-shadow: 0 2px 8px rgba(0, 51, 160, 0.18);
}

.comment-item {
    scroll-margin-top: 90px;
}
.comment-delete-btn,
.comment-report {
    opacity: 0.72;
}
.comment-delete-btn:hover,
.comment-report:hover {
    opacity: 1;
}

.dropzone {
    background: var(--surface);
}
.dropzone:hover,
.dropzone.is-dragover {
    background: var(--primary-soft);
}

.people-card:hover {
    box-shadow: 0 6px 18px rgba(21, 33, 46, 0.06);
}

.notify-link,
.nav-toggle,
.chat-emoji-toggle,
.chat-image-toggle {
    background: var(--surface);
}

.post-card.is-focused {
    box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
    .auth-visual,
    .auth-visual::before,
    .auth-visual::after {
        animation: none;
    }
    .auth-visual::before {
        opacity: 0.35;
    }
    .auth-radar-blip {
        display: none;
    }
}
/* Login radar contacts */
.auth-radar-blip {
    position: absolute;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #dbe9ff;
    box-shadow: 0 0 10px rgba(219, 233, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: radarBlip 3.6s ease-out forwards;
}
.auth-radar-blip::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(219, 233, 255, 0.55);
    border-radius: 50%;
    animation: radarRipple 1.5s ease-out infinite;
}
@keyframes radarBlip {
    0% { opacity: 0; transform: scale(0.35); }
    8% { opacity: 1; transform: scale(1); }
    72% { opacity: 1; }
    100% { opacity: 0; transform: scale(0.7); }
}
@keyframes radarRipple {
    from { transform: scale(0.5); opacity: 0.85; }
    to { transform: scale(2.6); opacity: 0; }
}

/* Restrained page polish */
.page-head {
    margin-bottom: 26px;
}
.post-content {
    color: #1c2836;
}
.profile-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}
.profile-item dd {
    font-weight: 700;
}
.quick-action:hover {
    border-color: var(--line-strong);
    box-shadow: 0 4px 14px rgba(21, 33, 46, 0.06);
}
.notification-item,
.conversation-item {
    box-shadow: 0 1px 2px rgba(21, 33, 46, 0.03);
}
.notification-item:hover,
.conversation-item:hover {
    border-color: var(--line-strong);
}
.chat-composer {
    box-shadow: 0 -1px 0 rgba(21, 33, 46, 0.03);
}
.chat-head {
    background: var(--surface);
}
.site-footer {
    background: var(--surface);
}
tbody tr:hover {
    background: #f6f8fb;
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border: 2px solid var(--surface);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--faint);
}
::-webkit-scrollbar-track {
    background: transparent;
}
/* Premier design system */
:root {
    color-scheme: light;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 14px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --header-h: 72px;
    --primary-bright: #0033a0;
}

html {
    scroll-padding-top: calc(var(--header-h) + 22px);
}

body {
    color-scheme: light;
}

.site-header {
    top: 12px;
    width: min(var(--container), calc(100% - 24px));
    margin: 12px auto 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(21, 33, 46, 0.04);
}
.site-header .container {
    width: 100%;
}
.site-header.is-scrolled {
    box-shadow: 0 12px 32px rgba(21, 33, 46, 0.08), 0 2px 6px rgba(21, 33, 46, 0.04);
}
.page-main {
    padding-top: 32px;
}

.brand-mark {
    position: relative;
    overflow: hidden;
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 7px;
    pointer-events: none;
}

.card {
    position: relative;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s var(--ease-out);
    background: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(0, 51, 160, 0.055), transparent 62%);
}
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s var(--ease-out);
    box-shadow: inset 0 0 0 1px rgba(0, 51, 160, 0.1);
}
.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.auth-card::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--primary);
}
.auth-card .auth-title {
    font-size: 34px;
}
.auth-quote {
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 800;
    line-height: 1.35;
}
.auth-credit {
    letter-spacing: 0;
}

@media (max-width: 860px) {
    .site-header {
        top: 8px;
        width: calc(100% - 16px);
        margin-top: 8px;
    }
    .page-main {
        padding-top: 24px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --paper: #0d131b;
        --paper-deep: #141c26;
        --surface: #161f2a;
        --surface-2: #1b2531;
        --ink: #e7edf4;
        --ink-2: #c2cdda;
        --muted: #8d9cad;
        --faint: #68788a;
        --line: #253240;
        --line-strong: #34445a;
        --primary-ink: #b8ccf0;
        --primary-hover: #1d4fc2;
        --primary-soft: #142440;
        --primary-bright: #7ba4ff;
        --danger: #ef8b87;
        --danger-soft: #3a2024;
        --success: #7cc59a;
        --success-soft: #1d3528;
        --info: #8bc4d8;
        --info-soft: #1c2f3a;
        --amber: #e0b36a;
        --amber-soft: #3a2e1a;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.22);
        --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.38), 0 3px 8px rgba(0, 0, 0, 0.28);
    }
    body {
        background: var(--paper);
    }
    body::before {
        opacity: 0.16;
    }
    .site-header,
    .site-nav,
    .site-footer,
    .card,
    .filter-bar,
    .stat-card,
    .table-wrap,
    .people-card,
    .recommend-card,
    .conversation-item,
    .post-card,
    .chat-card,
    .notification-item,
    .modal,
    .mention-dropdown,
    .quick-action,
    .dropzone,
    .auth-panel {
        background: var(--surface);
    }
    .site-header,
    .card,
    .filter-bar,
    .stat-card,
    .table-wrap,
    .people-card,
    .recommend-card,
    .conversation-item,
    .post-card,
    .chat-card,
    .notification-item,
    .modal,
    .mention-dropdown,
    .quick-action,
    .input,
    textarea,
    select {
        border-color: var(--line);
    }
    .page-title,
    .section-title,
    .modal-title,
    .post-author,
    .comment-author,
    .people-name,
    .recommend-name,
    .profile-name,
    .chat-name,
    .conversation-name,
    .notification-title,
    .auth-card .auth-title,
    .stat-value,
    .name-line,
    .empty-title,
    .post-content {
        color: var(--ink);
    }
    .page-sub,
    .post-time,
    .comment-time,
    .list-meta,
    .auth-sub,
    .profile-item dt,
    .dropzone-copy span,
    .form-hint,
    .file-meta,
    .muted,
    .stat-label,
    .conversation-preview,
    .footer-inner,
    .people-sub {
        color: var(--muted);
    }
    .input,
    textarea,
    select {
        background: var(--surface);
        color: var(--ink);
    }
    .input::placeholder,
    textarea::placeholder {
        color: var(--faint);
    }
    .chat-body {
        background: var(--paper);
    }
    .chat-bubble {
        background: var(--surface);
        border-color: var(--line);
        color: var(--ink);
    }
    .chat-message.is-mine .chat-bubble {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    .chat-composer {
        background: var(--surface);
    }
    .profile-hero {
        background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    }
    .auth-panel {
        background:
            linear-gradient(180deg, rgba(27, 37, 49, 0.72), rgba(22, 31, 42, 0) 240px),
            var(--surface);
    }
    .auth-body {
        background: var(--surface);
    }
    .auth-rule {
        background: var(--surface);
    }
    th {
        background: var(--surface-2);
        color: var(--ink-2);
    }
    td {
        color: var(--ink-2);
    }
    tbody tr:hover {
        background: var(--surface-2);
    }
    .tag {
        background: var(--surface-2);
        color: var(--ink-2);
    }
    .badge-neutral {
        background: var(--surface-2);
        color: var(--muted);
    }
    .avatar {
        background: var(--surface-2);
        border-color: var(--line);
    }
    .lightbox-backdrop {
        background: rgba(8, 12, 18, 0.94);
    }
    .lightbox-close {
        background: #111a24;
    }
    .site-footer {
        border-color: var(--line);
    }
    .alert-error {
        background: var(--danger-soft);
        border-color: #573036;
        color: #f4b7b3;
    }
    .alert-success {
        background: var(--success-soft);
        border-color: #2d4a37;
        color: #a4dab9;
    }
    .alert-info {
        background: var(--info-soft);
        border-color: #2d4654;
        color: #a8d4e2;
    }
    .alert-warning {
        background: var(--amber-soft);
        border-color: #554227;
        color: #ecc78f;
    }
    .badge-success {
        background: var(--success-soft);
        color: #a4dab9;
    }
    .badge-warning {
        background: var(--amber-soft);
        color: #ecc78f;
    }
    .badge-danger {
        background: var(--danger-soft);
        color: #ef8b87;
    }
    .badge-info {
        background: var(--info-soft);
        color: #a8d4e2;
    }
    .stat-icon,
    .empty-icon,
    .quick-action svg,
    .action-link:hover,
    .nav-link.active,
    .comment-mention,
    .chat-read,
    .auth-rule svg,
    .tag::before {
        color: var(--primary-bright);
    }
    .nav-link.active {
        background: var(--primary-soft);
        color: var(--primary-bright);
    }
    .btn-soft {
        color: var(--primary-bright);
    }
}
/* Editorial page rhythm */
.page-head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}
.page-title {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.18;
}
.page-sub {
    font-size: 15px;
    line-height: 1.7;
}
.section-title {
    font-size: 22px;
    font-weight: 750;
}
.stats-grid {
    gap: 16px;
}
.stat-card {
    padding: 18px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
}
.stat-value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0;
}
.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
}
.filter-bar {
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.people-card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.people-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}
.people-name .gender {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 12px;
    font-weight: 600;
}
.people-sub {
    color: var(--muted);
}
.post-card {
    padding: 22px;
}
.post-content {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--ink);
}
.post-author {
    font-size: 15.5px;
    font-weight: 800;
}
.post-time {
    font-size: 12.5px;
}
.action-btn {
    border-radius: 8px;
}
.comment-form textarea,
.chat-form textarea {
    border-radius: 8px;
}
.chat-card {
    border: 1px solid var(--line);
}
.chat-body {
    height: min(58vh, 560px);
}
.chat-head {
    padding: 16px 18px;
}
.chat-composer {
    background: var(--surface);
}
.chat-emoji-panel {
    background: var(--surface-2);
}
.table-wrap {
    border: 1px solid var(--line);
}
th {
    font-weight: 750;
    letter-spacing: 0;
}
.empty-state {
    padding: 56px 20px;
}
.empty-icon {
    width: 62px;
    height: 62px;
    border-radius: 12px;
}
.badge {
    font-weight: 700;
}
.page-link {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
}
.notification-item {
    padding: 16px 18px;
}
.conversation-item {
    padding: 15px 16px;
}
.profile-hero {
    padding: 26px;
}
.profile-name {
    font-size: 21px;
    font-weight: 800;
}
.quick-action {
    min-height: 56px;
    border-radius: 8px;
}
.dropzone {
    border-radius: 8px;
}
.site-footer {
    padding: 28px 0;
}

@media (max-width: 720px) {
    .page-head {
        padding-bottom: 16px;
        margin-bottom: 22px;
    }
    .page-title {
        font-size: 28px;
    }
    .people-card {
        padding: 16px;
    }
    .post-card {
        padding: 16px;
    }
    .stat-card {
        padding: 14px;
    }
    .filter-bar {
        padding: 12px;
    }
    .chat-body {
        height: 56vh;
    }
}
@media (prefers-color-scheme: dark) {
    .btn-soft:hover {
        background: #1c2c47;
        color: #c7d7f7;
    }
    .btn-ghost:hover {
        background: var(--surface-2);
        color: var(--ink);
    }
    .btn-danger-soft:hover {
        background: #4a262b;
        color: #ef8b87;
    }
    .btn-dark {
        background: #2b3948;
        color: #fff;
    }
    .btn-dark:hover {
        background: #36465a;
        color: #fff;
    }
    .nav-link:hover,
    .quick-action:hover,
    .toggle-pwd:hover,
    .radio-pill input:hover + span {
        background: var(--surface-2);
    }
    .radio-pill span {
        background: var(--surface);
    }
    .radio-pill input:checked + span {
        background: var(--primary-soft);
        border-color: var(--primary);
        color: var(--primary-bright);
    }
    .dropzone:hover,
    .dropzone.is-dragover {
        background: var(--primary-soft);
    }
    .mention-option:hover,
    .mention-option.is-active {
        background: var(--primary-soft);
    }
    .page-link.is-active {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
}
/* Navigation spacing and responsive sticky fix */
.site-nav {
    gap: 8px;
}
.nav-link {
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 14px;
}
.header-actions {
    gap: 10px;
}
.header-actions .btn {
    min-height: 38px;
    padding: 7px 14px;
}
.notify-link {
    width: 40px;
    height: 40px;
}
.nav-toggle {
    width: 42px;
    height: 42px;
}
.header-inner {
    gap: 20px;
}
@media (max-height: 899px) {
    .side-card:first-child {
        position: static;
    }
}
/* Unified motion and polish system */
:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 999px;
    --duration-fast: 140ms;
    --duration-base: 220ms;
    --duration-slow: 420ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-xs: 0 1px 2px rgba(21, 33, 46, 0.04), 0 1px 1px rgba(21, 33, 46, 0.02);
    --shadow-sm: 0 2px 8px rgba(21, 33, 46, 0.05), 0 1px 2px rgba(21, 33, 46, 0.04);
    --shadow-md: 0 10px 30px rgba(21, 33, 46, 0.08), 0 2px 8px rgba(21, 33, 46, 0.04);
    --shadow-lg: 0 24px 64px rgba(21, 33, 46, 0.12), 0 4px 12px rgba(21, 33, 46, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-blur: 18px;
}

.page-main {
    padding: 38px 0 60px;
}
.card-pad {
    padding: 26px;
}
.section-head {
    margin-bottom: 20px;
}
.post-card {
    padding: 24px;
}
.people-card {
    padding: 24px 28px;
    min-height: 144px;
}
.stats-grid {
    gap: 18px;
}
.feed-layout {
    gap: 26px;
}

.btn-sm,
.page-link,
.comment-delete-btn,
.comment-report,
.tag {
    border-radius: 8px;
}
.avatar,
.avatar-lg,
.avatar-xl {
    border-radius: 12px;
}
.people-card,
.post-card,
.stat-card,
.conversation-item,
.notification-item,
.recommend-card,
.filter-bar,
.table-wrap,
.dropzone {
    border-radius: 10px;
}

.card,
.filter-bar,
.stat-card,
.table-wrap,
.people-card,
.recommend-card,
.conversation-item,
.post-card,
.notification-item {
    box-shadow: var(--shadow-xs);
}
.card:hover:not(.people-card):not(.side-card):not(.chat-card) {
    box-shadow: var(--shadow-md);
}
.people-card:hover {
    box-shadow: var(--shadow-md);
}
.site-header {
    box-shadow: var(--shadow-sm);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}
.modal {
    box-shadow: var(--shadow-lg);
}

.btn,
.action-btn,
.quick-action,
.nav-link,
.tab-link,
.page-link,
.tag,
.notify-link,
.chat-emoji-toggle,
.chat-image-toggle,
.toggle-pwd {
    transition:
        transform var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        background-color var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out),
        color var(--duration-base) var(--ease-out),
        opacity var(--duration-base) var(--ease-out);
}
.card,
.post-card,
.recommend-card,
.conversation-item,
.notification-item,
.stat-card {
    transition:
        transform var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out),
        background-color var(--duration-base) var(--ease-out);
}
.people-card {
    transition:
        border-color var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .card:hover:not(.people-card):not(.side-card):not(.chat-card):not(.modal) {
        transform: translateY(-2px);
    }
    .btn:hover,
    .quick-action:hover,
    .nav-link:hover {
        transform: translateY(-1px);
    }
    .btn:active {
        transform: translateY(0) scale(0.98);
    }
}
@media (hover: none), (pointer: coarse) {
    .card:hover,
    .card:hover::before,
    .card:hover::after,
    .btn:hover,
    .quick-action:hover,
    .nav-link:hover {
        transform: none;
    }
    .card:hover::before,
    .card:hover::after {
        opacity: 0;
    }
}

.site-header {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header {
        background: var(--surface);
    }
}
.mention-dropdown,
.site-nav.is-open {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
}
.modal-backdrop .modal {
    transition:
        transform var(--duration-slow) var(--ease-spring),
        opacity var(--duration-base) var(--ease-out);
}
.input:focus,
textarea:focus,
select:focus {
    box-shadow:
        0 0 0 4px rgba(0, 51, 160, 0.12),
        inset 0 1px 2px rgba(21, 33, 46, 0.02);
}

button,
a,
input,
textarea,
select,
[role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.notify-link,
.nav-toggle,
.chat-emoji-toggle,
.chat-image-toggle,
.quick-action,
.action-btn,
.comment-delete-btn,
.comment-report {
    min-height: 40px;
}

@media (prefers-reduced-motion: no-preference) {
    .page-main {
        animation: pageEnter var(--duration-slow) var(--ease-out) both;
    }
    .auth-shell {
        animation: pageEnter var(--duration-slow) var(--ease-out) both;
    }
    @keyframes pageEnter {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: none; }
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(22, 31, 42, 0.72);
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24), 0 1px 1px rgba(0, 0, 0, 0.16);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.18);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.36), 0 2px 8px rgba(0, 0, 0, 0.22);
        --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.44), 0 4px 12px rgba(0, 0, 0, 0.28);
    }
    .site-header {
        background: var(--glass-bg);
    }
    .mention-dropdown,
    .site-nav.is-open {
        background: rgba(22, 31, 42, 0.92);
    }
}

@media (max-width: 720px) {
    .page-main {
        padding: 24px 0 40px;
    }
    .card-pad {
        padding: 18px;
    }
    .post-card {
        padding: 18px;
    }
    .people-card {
        padding: 18px;
        min-height: 0;
    }
    .feed-layout {
        gap: 18px;
    }
    .section-head {
        margin-bottom: 16px;
    }
}
/* Liquid glass, skeleton, container query and motion normalization */
.site-header {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        var(--shadow-sm);
}
.site-header.is-scrolled {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        var(--shadow-md);
}
.modal {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        var(--shadow-lg);
}

.auth-visual {
    background: linear-gradient(145deg, #031a42 0%, #002a78 52%, #003a96 100%);
    background-size: 100% 100%;
    animation: none;
}
.auth-radar-blip {
    box-shadow: 0 0 6px rgba(219, 233, 255, 0.35);
}

[data-paginate].is-paginating {
    position: relative;
}
[data-paginate].is-paginating::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: 12px;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.34) 50%, transparent 80%);
    background-size: 220% 100%;
    animation: skeletonSweep 1.1s var(--ease-in-out) infinite;
}
@keyframes skeletonSweep {
    from { background-position: 220% 0; }
    to { background-position: -220% 0; }
}
.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: skeletonSweep 1.3s var(--ease-in-out) infinite;
}

.people-list {
    container-type: inline-size;
}
@container (max-width: 560px) {
    .people-card {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .people-card .people-side {
        max-width: 100%;
        flex-basis: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
    .people-tags {
        justify-content: flex-start;
    }
}

button,
a,
input,
textarea,
select,
.card,
.modal,
.modal-backdrop,
.lightbox-backdrop,
.dropzone,
.site-header,
.site-nav,
.tab-link,
.action-link,
.comment-delete-btn,
.comment-report,
.conversation-item,
.notification-item,
.chat-setting-btn,
.chat-recall,
.chat-load-more {
    transition-duration: var(--duration-base);
    transition-timing-function: var(--ease-out);
}
.post-photo img {
    transition: transform var(--duration-slow) var(--ease-out);
}
.chat-body {
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background:
            linear-gradient(135deg, rgba(27, 37, 49, 0.92), rgba(22, 31, 42, 0.72));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            inset 0 -1px 0 rgba(255, 255, 255, 0.03),
            var(--shadow-sm);
    }
    .modal {
        background:
            linear-gradient(145deg, rgba(27, 37, 49, 0.96), rgba(22, 31, 42, 0.86));
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            var(--shadow-lg);
    }
}

.action-btn.is-favorited {
  color: var(--accent);
  background: var(--accent-soft);
}
.favorite-count {
  margin-left: 2px;
}
.topic-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.topic-link:hover {
  text-decoration: underline;
}
.draft-status {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
}
.draft-status.is-error {
  color: var(--danger);
}
.alert-info {
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
  color: var(--accent-ink);
}
.comment-item.is-reply {
  margin-left: 18px;
}
.comment-reply-to {
  color: var(--accent);
  font-size: 13px;
}
.comment-reply-btn {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}
.comment-reply-btn:hover {
  color: var(--accent);
}
.reply-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent-ink);
}
.reply-chip-cancel {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}