﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.header {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    border-bottom: 2px solid #333;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #999;
}

.top-nav {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-nav a {
    color: #a9cfff;
    text-decoration: none;
}

.top-nav a:hover {
    color: #fff;
}

.user-panel {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 0.95rem;
    color: #c7d8ea;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-panel a {
    color: #8fc1ff;
}

.user-panel-form {
    display: inline;
}

.user-panel-logout {
    background: none;
    border: none;
    color: #8fc1ff;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.user-panel-logout:hover {
    color: #fff;
}

/* Content Sections */
.section {
    position: relative;
    background: linear-gradient(180deg, #1c1c1f 0%, #181818 100%);
    margin: 20px 0;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #394656;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(160, 210, 255, 0.06);
    overflow: hidden;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(74, 144, 226, 0.13) 0, rgba(74, 144, 226, 0) 32%),
        radial-gradient(circle at 92% 100%, rgba(54, 179, 113, 0.08) 0, rgba(54, 179, 113, 0) 26%);
}

.section > * {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #444;
}

/* Announcements */
.announcement-item {
    background-color: #252525;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #ff6b35;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.announcement-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.announcement-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.announcement-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.announcement-item:hover .announcement-title {
    color: #ff6b35;
}

.announcement-content {
    color: #ccc;
    line-height: 1.5;
}

/* Update Logs */
.update-item {
    background-color: #252525;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #4a90e2;
}

.update-version {
    color: #4a90e2;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.update-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.update-changes {
    color: #ccc;
    line-height: 1.5;
}

.update-changes li {
    margin-left: 20px;
    margin-bottom: 5px;
}

/* Customer Service */
.service-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    max-width: 800px;
    margin: 20px auto;
    flex-wrap: wrap;
    justify-content: center;
}

.service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 132px;
    padding: 10px 16px;
    background-color: #2d5a87;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #4a90e2;
    cursor: pointer;
}

.service-button:hover {
    background-color: #4a90e2;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.3);
}

.service-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.service-buttons-container .service-button {
    flex: 1;
    min-width: 200px;
    min-height: 48px;
}

.service-button.qq {
    background-color: #12b7f5;
    border-color: #12b7f5;
}

.service-button.qq:hover {
    background-color: #0fa3dc;
}

.service-button.tieba {
    background-color: #2932e1;
    border-color: #2932e1;
}

.service-button.tieba:hover {
    background-color: #1e26c7;
}

.service-button.report {
    background-color: #dc3545;
    border-color: #dc3545;
}

.service-button.report:hover {
    background-color: #c82333;
}

.service-button.ban {
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.service-button.ban:hover {
    background-color: #5a32a3;
}

.service-description {
    text-align: center;
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Detail Page Styles */
.detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #444;
}

.detail-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.detail-date {
    color: #888;
    font-size: 1rem;
}

.detail-content {
    background-color: #252525;
    padding: 30px;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.detail-content h1, .detail-content h2, .detail-content h3 {
    color: #ffffff;
    margin: 20px 0 10px 0;
}

.detail-content p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

.detail-content ul, .detail-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.detail-content li {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.detail-content strong {
    color: #ffffff;
    font-weight: bold;
}

.detail-content em {
    color: #ccc;
    font-style: italic;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 0;
    padding: 8px 14px;
    background-color: #2e333b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #4a545f;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
    background-color: #3b4350;
    border-color: #617084;
}

.section > .back-link {
    margin-top: 24px;
}

/* Global Form Controls */
.form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #d8d8d8;
    font-weight: 600;
}

.form-control {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #4b4b4b;
    border-radius: 8px;
    background: #121212;
    color: #ececec;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
}

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

input.form-control[readonly],
input.form-control:disabled,
textarea.form-control:disabled,
select.form-control:disabled {
    background: #1a1a1a;
    color: #b0b0b0;
}

.form-text {
    color: #9f9f9f;
    font-size: 0.88rem;
}

.text-danger {
    color: #ff9e9e;
    font-size: 0.88rem;
}

/* Markdown Content Styles */
.markdown-content {
    color: #e0e0e0;
}

.markdown-content h1 {
    font-size: 2rem;
    margin: 25px 0 15px 0;
    color: #ffffff;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.markdown-content h2 {
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
    color: #ffffff;
}

.markdown-content h3 {
    font-size: 1.2rem;
    margin: 15px 0 8px 0;
    color: #ffffff;
}

.markdown-content blockquote {
    border-left: 4px solid #4a90e2;
    padding-left: 20px;
    margin: 15px 0;
    color: #ccc;
    font-style: italic;
}

.markdown-content code {
    background-color: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b35;
}

.markdown-content pre {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #333;
    margin: 15px 0;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    color: #e0e0e0;
}

/* BBS */
.bbs-alert {
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.bbs-alert-success {
    color: #b7f5c8;
    background: rgba(34, 139, 84, 0.2);
    border-color: rgba(87, 206, 131, 0.5);
}

.bbs-alert-error {
    color: #ffd5d5;
    background: rgba(172, 44, 44, 0.2);
    border-color: rgba(255, 100, 100, 0.5);
}

.bbs-alert-warning {
    color: #ffe7a3;
    background: rgba(173, 121, 23, 0.2);
    border-color: rgba(255, 193, 7, 0.45);
}

.admin-panel {
    max-width: 100%;
    padding: 0 16px;
}

.admin-panel h2 {
    margin-bottom: 16px;
    word-wrap: break-word;
}

.bbs-board-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.bbs-board-tab {
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #ddd;
    background: #2a2a2a;
    border: 1px solid #3b3b3b;
}

.bbs-board-tab.active {
    color: #fff;
    background: #4a90e2;
    border-color: #4a90e2;
}

.bbs-sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.bbs-sort-tabs-inline {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.bbs-sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 88px;
    padding: 6px 12px;
    border: 1px solid #3b3b3b;
    border-radius: 6px;
    background: #2a2a2a;
    color: #d8d8d8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.bbs-sort-link:hover {
    border-color: #4a90e2;
    color: #fff;
}

.bbs-sort-link.active {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

.bbs-card {
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bbs-card-title {
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #3b3b3b;
    padding-bottom: 8px;
}

.bbs-title-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bbs-title-actions .bbs-card-title {
    margin-bottom: 0;
    flex: 1 1 auto;
}

.bbs-title-action-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
    padding: 10px 18px;
}

.bbs-search-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 16px;
}

.bbs-search-field {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
}

.bbs-search-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
}

.bbs-search-field input {
    width: 100%;
    height: 44px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1f1f1f;
    color: #eee;
    padding: 10px 12px 10px 36px;
    font: inherit;
}

.bbs-search-field input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.bbs-search-button,
.bbs-search-clear {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
}

.bbs-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bbs-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbs-form-label {
    color: #cfd6df;
    font-size: 0.92rem;
    font-weight: 600;
}

.bbs-form input,
.bbs-form textarea,
.bbs-form select {
    width: 100%;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1f1f1f;
    color: #eee;
    padding: 10px 12px;
    font: inherit;
}

.bbs-form select {
    min-height: 44px;
    cursor: pointer;
}

.bbs-draft-status {
    display: none;
    min-height: 22px;
    color: #aeb8c6;
    font-size: 0.9rem;
}

.bbs-draft-status.is-visible {
    display: block;
}

.bbs-draft-status.is-success {
    color: #7fd18b;
}

.bbs-draft-status.is-error {
    color: #ff9a9a;
}

.bbs-draft-count {
    margin-left: 2px;
}

body.bbs-draft-modal-open {
    overflow: hidden;
}

.bbs-draft-modal[hidden] {
    display: none;
}

.bbs-draft-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bbs-draft-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.66);
}

.bbs-draft-dialog {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #3f4a59;
    border-radius: 8px;
    background: #222832;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.bbs-draft-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #35404e;
    background: #1b2028;
}

.bbs-draft-header h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.1rem;
}

.bbs-draft-header p {
    margin: 0;
    color: #98a6b7;
    font-size: 0.9rem;
}

.bbs-draft-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid #4b596b;
    border-radius: 6px;
    background: #28313e;
    color: #eef4ff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.bbs-draft-close:hover,
.bbs-draft-close:focus {
    border-color: #6aa0d8;
    background: #334154;
}

.bbs-draft-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    overflow: auto;
}

.bbs-draft-empty {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #98a6b7;
    text-align: center;
}

.bbs-draft-empty strong {
    color: #fff;
    font-size: 1rem;
}

.bbs-draft-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #35404e;
    border-radius: 8px;
    background: #1f252e;
}

.bbs-draft-main {
    min-width: 0;
}

.bbs-draft-title {
    margin: 0 0 7px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bbs-draft-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 8px;
    color: #95a5b8;
    font-size: 0.84rem;
}

.bbs-draft-preview {
    margin: 0;
    color: #d2d9e2;
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.bbs-draft-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbs-draft-action {
    min-width: 86px;
}

.bbs-draft-delete {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    white-space: nowrap;
}

.bbs-thread-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bbs-thread-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    background: #202020;
}

.bbs-thread-item:hover {
    border-color: #4a90e2;
}

.bbs-thread-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bbs-thread-title {
    color: #fff;
    margin: 0;
}

.bbs-thread-title-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
}

.bbs-thread-title-link:hover,
.bbs-inline-link:hover {
    color: #8bc0ff;
}

.bbs-badge {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #555;
    color: #fff;
}

.bbs-thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #a6a6a6;
    font-size: 0.92rem;
}

.bbs-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bbs-admin-nav .back-link {
    white-space: nowrap;
    padding: 8px 12px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #3b3b3b;
    transition: all 0.2s;
}

.bbs-admin-nav .back-link:hover {
    background: #4a90e2;
    border-color: #4a90e2;
}

.bbs-inline-link {
    color: #a9cfff;
    text-decoration: none;
}

.bbs-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.bbs-admin-remark-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95em;
    height: 0.95em;
    margin-left: 2px;
    color: #ffcf5a;
    font-size: 0.95em;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    vertical-align: text-top;
}

.bbs-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #3d4f61;
    background: #2a3540;
}

.bbs-avatar-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d7ecff;
    font-size: 0.82rem;
    font-weight: 700;
}

.bbs-content {
    white-space: pre-wrap;
    color: #e7e7e7;
}

.bbs-reply-content {
    white-space: normal;
}

.bbs-reply-content-body {
    white-space: pre-wrap;
}

.bbs-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bbs-post-tree {
    gap: 8px;
}

.bbs-post-item {
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    background: #202020;
}

.bbs-reply-node {
    position: relative;
    margin-left: calc(var(--reply-indent, 0) * 28px);
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    box-shadow: none;
}

.bbs-reply-node::before {
    display: none;
}

.bbs-reply-children {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbs-reply-action,
.bbs-reply-clear,
.bbs-reply-fold-summary,
.bbs-reply-fold-collapse {
    min-height: 30px;
    min-width: 0;
    padding: 4px 10px;
    font-size: 0.86rem;
}

.bbs-reply-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: #a6a6a6;
    font-size: 0.88rem;
}

.bbs-reply-actions .bbs-reply-action {
    min-height: 26px;
    padding: 2px 8px;
    background: transparent;
    border-color: transparent;
    color: #cfe5ff;
    font-size: 0.88rem;
}

.bbs-reply-actions .bbs-reply-action:hover {
    background: #27313b;
    border-color: #3d4f61;
}

.bbs-post-time {
    color: #a6a6a6;
    font-size: 0.88rem;
    letter-spacing: 0;
}

.bbs-reply-fold {
    margin-left: calc(var(--reply-indent, 0) * 28px);
}

.bbs-reply-fold-summary {
    width: fit-content;
    margin-bottom: 8px;
    cursor: pointer;
    list-style: none;
}

.bbs-reply-fold[open] > .bbs-reply-fold-summary {
    display: none;
}

.bbs-reply-fold-collapse {
    display: none;
    width: fit-content;
    margin-top: 8px;
}

.bbs-reply-fold[open] > .bbs-reply-fold-collapse {
    display: inline-flex;
}

.bbs-reply-fold-summary::-webkit-details-marker {
    display: none;
}

.bbs-inline-reply {
    margin-top: 8px;
}

.bbs-inline-reply-summary {
    width: fit-content;
    list-style: none;
}

.bbs-inline-reply-summary::-webkit-details-marker {
    display: none;
}

.bbs-inline-reply-form {
    margin-top: 8px;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #303a44;
    border-radius: 6px;
    background: #1a2026;
}

.bbs-inline-reply-form textarea {
    min-height: 72px;
}

.bbs-inline-editor-toolbar {
    margin-bottom: 0;
}

.bbs-inline-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.bbs-inline-reply-footer .bbs-char-counter {
    margin-top: 0;
}

.bbs-inline-reply-submit {
    width: auto;
    min-width: 74px;
    min-height: 34px;
    padding: 6px 14px;
    font-size: 0.9rem;
}

.bbs-reply-parent-context {
    display: inline;
    margin-right: 0;
    color: #9fc9ff;
    font-weight: 700;
}

.bbs-reply-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #3a4652;
    border-radius: 6px;
    background: #1f2830;
    color: #cfe5ff;
    font-size: 0.92rem;
}

.bbs-reply-target[hidden] {
    display: none;
}

.bbs-post-actions {
    justify-content: flex-start;
}

.bbs-post-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #a6a6a6;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.bbs-floor {
    color: #66b3ff;
    font-weight: 600;
}

.bbs-pagination {
    margin-top: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.bbs-pagination a {
    padding: 8px 16px;
    border-radius: 6px;
    background: #2a2a2a;
    border: 1px solid #3b3b3b;
    transition: all 0.2s;
    min-width: 80px;
    text-align: center;
}

.bbs-pagination a:hover {
    background: #4a90e2;
    border-color: #4a90e2;
    transform: translateY(-1px);
}

.bbs-pagination span {
    color: #a6a6a6;
    font-size: 0.95rem;
}

.bbs-admin-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
    flex-wrap: wrap;
}

.bbs-admin-filter .filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 100%;
}

.bbs-admin-filter .filter-row > * {
    flex: 1;
    min-width: 150px;
}

.bbs-admin-filter input,
.bbs-admin-filter select {
    border: 1px solid #555;
    border-radius: 6px;
    background: #1f1f1f;
    color: #eee;
    padding: 10px 12px;
    font: inherit;
    min-height: 44px;
    transition: border-color 0.2s, background-color 0.2s;
}

.bbs-admin-filter input:focus,
.bbs-admin-filter select:focus {
    outline: none;
    border-color: #4a90e2;
    background: #2a2a2a;
}

.bbs-admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border-radius: 8px;
    border: 1px solid #333;
    background: #252525;
}

.bbs-admin-table-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(37, 37, 37, 0.95) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 1024px) {
    .bbs-admin-table-wrap::after {
        opacity: 1;
    }
}

.bbs-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    position: relative;
}

.bbs-admin-table th,
.bbs-admin-table td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    background: #252525;
}

.bbs-admin-table th {
    color: #fff;
    background: #1f1f1f;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 5;
}

/* 移动端表格优化 */
@media (max-width: 1024px) {
    .bbs-admin-table th:first-child,
    .bbs-admin-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
    }

    .bbs-admin-table th:first-child {
        z-index: 15;
    }
}

.bbs-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bbs-admin-actions form {
    margin: 0;
}

.bbs-char-counter {
    font-size: 0.9rem;
    color: #9eb7d6;
}

.message-list-card {
    padding: 0;
    overflow: hidden;
}

.message-list {
    display: grid;
}

.message-item {
    display: block;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.message-item:last-child {
    border-bottom: 0;
}

.message-item:hover {
    background: rgba(125, 211, 252, 0.08);
    border-color: rgba(125, 211, 252, 0.26);
}

.message-item-main {
    padding: 18px 20px;
}

.message-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.message-title-row strong {
    color: #f8fafc;
}

.message-item p {
    margin: 0 0 10px;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.75;
}

.message-item.is-read {
    opacity: 0.78;
}

.message-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.social-profile-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.social-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #3b3b3b;
}

.social-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #d0e6ff;
    font-size: 1.8rem;
    font-weight: 700;
}

.social-signature {
    color: #d3d3d3;
    white-space: pre-wrap;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    color: #8bc0ff;
    text-decoration: none;
}

.event-signup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-signup-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #242338 0%, #1f2432 100%);
    border: 1px solid #3f3d61;
    border-radius: 10px;
    padding: 14px 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-signup-list-item:hover {
    transform: translateY(-2px);
    border-color: #7d57b8;
}

.event-signup-list-main h3 {
    margin: 0 0 4px;
    color: #fff;
}

.event-signup-list-main p {
    margin: 0;
    color: #bdb8d8;
}

.event-signup-promo {
    border: 1px solid #44445f;
    background: linear-gradient(180deg, #23222f 0%, #1f1f28 100%);
}

.event-signup-sort-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.event-signup-entry-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-signup-entry {
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: #1e1e1e;
    padding: 14px;
}

.event-signup-entry-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #c2c2c2;
    margin-bottom: 12px;
}

.event-signup-entry-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-signup-field a {
    color: #8bc0ff;
}

.event-signup-actions {
    margin-top: 12px;
}

.event-signup-actions form {
    margin: 0;
}

.event-signup-comments {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #474747;
}

.event-signup-comment {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #242424;
}

.event-signup-comment p {
    margin: 6px 0 0;
    color: #e5e5e5;
    white-space: pre-wrap;
}

.event-signup-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.event-signup-comment-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-signup-comment-form textarea {
    width: 100%;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1f1f1f;
    color: #eee;
    padding: 8px 10px;
    font: inherit;
}

/* Login Page */
.auth-page {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    margin: 32px auto 44px;
    display: grid;
    grid-template-columns: minmax(540px, 1.25fr) minmax(360px, 0.75fr);
    align-items: start;
    gap: 24px;
}

.auth-card {
    background: linear-gradient(180deg, #1f1f1f 0%, #171717 100%);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.auth-header {
    margin-bottom: 16px;
}

.auth-header h2 {
    margin: 0 0 6px;
    font-size: 2rem;
    color: #fff;
}

.auth-header p {
    margin: 0;
    color: #a8a8a8;
    font-size: 0.95rem;
}

.auth-alert {
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.auth-alert-success {
    background: rgba(34, 139, 84, 0.18);
    border-color: rgba(87, 206, 131, 0.5);
    color: #b7f5c8;
}

.auth-alert-error {
    background: rgba(172, 44, 44, 0.18);
    border-color: rgba(255, 100, 100, 0.45);
    color: #ffd5d5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-password-form {
    margin-top: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    color: #d9d9d9;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #454545;
    border-radius: 8px;
    background: #111;
    color: #f4f4f4;
    padding: 10px 12px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.xinghui-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: end;
    gap: 10px;
}

.auth-secondary-action {
    min-height: 46px;
    border: 1px solid #5d6f88;
    border-radius: 8px;
    background: #202a35;
    color: #e8f2ff;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, filter 0.2s ease;
}

.auth-secondary-action:hover:not(:disabled) {
    border-color: #7fb4ff;
    filter: brightness(1.08);
}

.auth-secondary-action:disabled,
.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b9b9b9;
    font-size: 0.92rem;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
}

.auth-submit {
    min-height: 46px;
    border: 1px solid #4a90e2;
    border-radius: 8px;
    background: linear-gradient(135deg, #3f84d6 0%, #2f6bb6 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(73, 143, 226, 0.3);
    filter: brightness(1.05);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-password-submit {
    background: linear-gradient(135deg, #2f3742 0%, #20262e 100%);
    border-color: #4b5564;
}

.xinghui-cache-status {
    margin-top: 14px;
    color: #a9c5e8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-validation {
    color: #ff9e9e;
    font-size: 0.9rem;
}

.auth-side-card h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
}

.auth-side-card > p {
    margin: 8px 0 0;
    color: #b0b0b0;
}

.auth-social-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-social-button {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.auth-social-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.auth-social-qq {
    background: linear-gradient(135deg, #00a4ff 0%, #1f73d8 100%);
    border-color: rgba(95, 180, 255, 0.5);
}

.auth-side-divider {
    height: 1px;
    margin: 18px 0 14px;
    background: linear-gradient(90deg, transparent 0%, #3b3b3b 15%, #3b3b3b 85%, transparent 100%);
}

.auth-register-tip {
    margin: 0;
    color: #c3c3c3;
}

.auth-register-tip a {
    color: #7fb4ff;
    font-weight: 600;
    text-decoration: none;
}

.auth-register-tip a:hover {
    color: #9ac7ff;
}

.account-game-page {
    position: relative;
}

.account-game-page::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background:
        radial-gradient(circle at 8% 10%, rgba(65, 143, 233, 0.18) 0, rgba(65, 143, 233, 0) 36%),
        radial-gradient(circle at 88% 90%, rgba(53, 191, 115, 0.12) 0, rgba(53, 191, 115, 0) 32%);
    pointer-events: none;
}

.account-card {
    position: relative;
    overflow: hidden;
    border-color: #3b4f64 !important;
    box-shadow:
        inset 0 1px 0 rgba(169, 208, 255, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(80, 154, 232, 0.1);
}

.account-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(74, 144, 226, 0) 0%, rgba(74, 144, 226, 0.92) 50%, rgba(74, 144, 226, 0) 100%);
}

.account-subtitle {
    margin-top: 6px;
    color: #9eb4c9;
    font-size: 0.95rem;
}

.account-subtitle strong {
    color: #fff;
}

.account-required {
    color: #ff6b6b;
}

.account-muted {
    color: #999;
}

.account-empty {
    text-align: center;
    color: #999;
    margin: 4px 0;
}

.account-split {
    display: grid;
    grid-template-columns: minmax(620px, 1.55fr) minmax(320px, 0.85fr);
    align-items: start;
    gap: 24px;
}

.account-tip-card .bbs-card-title {
    margin-bottom: 12px;
}

.xinghui-register-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 18px;
}

.xinghui-register-panel .profile-actions {
    grid-column: 1 / -1;
}

.xinghui-register-qr {
    width: 180px;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.xinghui-register-qr img {
    display: block;
    width: 100%;
    height: 100%;
}

.account-tip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #d0d8e1;
}

.account-tip-list li {
    position: relative;
    padding-left: 14px;
    line-height: 1.5;
}

.account-tip-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64a8ff;
    position: absolute;
    left: 0;
    top: 0.55em;
    box-shadow: 0 0 10px rgba(100, 168, 255, 0.7);
}

.account-disabled-card {
    max-width: 620px;
    margin: 0 auto;
}

.account-disabled-card .bbs-alert {
    margin-bottom: 0;
}

.account-table-wrap {
    margin-top: 4px;
}

.account-table-wrap .bbs-admin-table th {
    background: #1a2431;
}

.account-table-wrap .bbs-admin-table td {
    background: #1b1f25;
}

.account-table-wrap .bbs-admin-table tbody tr:hover td {
    background: #202734;
}

.account-form textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.registration-message {
    margin-bottom: 2px;
}

.registration-inline-control {
    grid-column: 2;
    display: grid;
    align-items: center;
    gap: 10px;
}

.registration-captcha-row {
    grid-template-columns: minmax(0, 1fr) 152px;
}

.registration-sms-row {
    grid-template-columns: minmax(0, 1fr) 132px;
}

.registration-captcha-button {
    width: 152px;
    height: 54px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #5d6f88;
    border-radius: 8px;
    background: #eef5ff;
    cursor: pointer;
}

.registration-captcha-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.registration-send-button {
    width: 100%;
}

.account-full-button {
    min-width: 180px;
}

.social-profile-page .social-card-title {
    margin-bottom: 6px;
}

/* Profile Page */
.profile-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 30px;
}

.profile-header {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.profile-header h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0.4px;
    color: #fff;
}

.profile-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-nav-link {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #3b3b3b;
    border-radius: 6px;
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.2s;
}

.profile-nav-link:hover {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 18px;
}

.profile-grid .bbs-card {
    margin-bottom: 0;
    border-radius: 12px;
    border-color: #3a3a3a;
    background: linear-gradient(180deg, #242424 0%, #1d1d1d 100%);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-form .form-group {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 6px;
    align-items: center;
}

.profile-form .form-group > label {
    color: #d9d9d9;
    font-weight: 600;
    line-height: 1.35;
}

.profile-form .form-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid #505050;
    border-radius: 8px;
    background: #111;
    color: #f4f4f4;
    padding: 10px 12px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
}

.profile-form .form-control[readonly],
.profile-form .form-control:disabled {
    background: #1a1a1a;
    color: #b7b7b7;
    border-color: #464646;
}

.profile-form .form-text,
.profile-form .verification-status,
.profile-form .text-danger {
    grid-column: 2;
}

.profile-form .form-text,
.profile-form-text {
    color: #a7a7a7;
    font-size: 0.9rem;
    line-height: 1.5;
}

.profile-form .text-danger {
    color: #ff9e9e;
    font-size: 0.88rem;
}

.form-actions {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.profile-info-list {
    display: grid;
    gap: 10px;
}

.profile-info-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.profile-info-row span {
    color: #9f9f9f;
}

.profile-info-row strong {
    color: #f1f1f1;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-social-preview {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.profile-social-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #444;
    background: #111;
}

.profile-social-preview p {
    margin: 0 0 10px;
    color: #e9e9e9;
    line-height: 1.6;
}

.profile-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-social-links a {
    color: #4a90e2;
    text-decoration: none;
}

.profile-social-links a:hover {
    text-decoration: underline;
}

.profile-edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 18px;
}

.account-entry-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.account-entry-card:hover {
    transform: translateY(-2px);
    border-color: #4a90e2;
    background: linear-gradient(180deg, #262b31 0%, #1d2228 100%);
}

.profile-container .service-button,
.profile-container .back-link {
    min-width: 138px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    margin-top: 0;
    flex: 0 0 auto;
    border-radius: 8px;
    font-weight: 600;
}

.profile-primary-button {
    background: linear-gradient(135deg, #3f84d6 0%, #2f6bb6 100%);
    border-color: #4a90e2;
}

.profile-primary-button:hover {
    background: linear-gradient(135deg, #5093e2 0%, #3778c8 100%);
}

.profile-secondary-button {
    border: 1px solid #4c4c4c;
    background: #2a2a2a;
}

.profile-secondary-button:hover {
    background: #3a3a3a;
}

.profile-danger-button {
    background: #8f2a2a;
    border-color: #b14343;
    color: #fff;
}

.profile-danger-button:hover {
    background: #a83737;
}

.profile-test-code-tip {
    color: #ffc107;
    margin: 0;
}

.verification-status {
    margin-top: 0;
    font-size: 0.9rem;
    color: #a6a6a6;
}

.status-verified {
    color: #57ce83;
    font-weight: 500;
}

.status-unverified {
    color: #ffc107;
    font-weight: 500;
}

.xh-realname-page .account-subtitle {
    margin: 6px 0 0;
}

.xh-login-required {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.xh-login-required .profile-secondary-button {
    margin-left: auto;
    color: #f5f7fb;
    text-decoration: none;
}

.xh-realname-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.xh-realname-account,
.xh-realname-table-card,
.xh-realname-sync-card,
.xh-realname-empty {
    margin-bottom: 18px;
}

.xh-realname-card-head,
.xh-realname-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.xh-realname-card-head .bbs-card-title,
.xh-realname-section-head .bbs-card-title {
    margin-bottom: 0;
    flex: 1 1 auto;
}

.xh-openid {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid #414141;
    border-radius: 8px;
    background: #151515;
    color: #e8eef6;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-all;
}

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

.xh-facts div {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.xh-facts span,
.xh-realname-section-head span,
.xh-inline-note,
.xh-realname-table small {
    color: #a7a7a7;
    font-size: 0.86rem;
}

.xh-facts strong {
    display: block;
    margin-top: 5px;
    color: #f1f5f9;
    font-size: 0.96rem;
    font-weight: 600;
}

.xh-inline-note {
    margin: 12px 0 0;
    line-height: 1.5;
}

.xh-status-pill,
.xh-mini-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.xh-status-good {
    color: #b7f5c8;
    background: rgba(34, 139, 84, 0.22);
    border-color: rgba(87, 206, 131, 0.45);
}

.xh-status-warn {
    color: #ffe7a3;
    background: rgba(173, 121, 23, 0.22);
    border-color: rgba(255, 193, 7, 0.45);
}

.xh-mini-tag {
    margin-left: 8px;
    color: #b9d9ff;
    background: rgba(74, 144, 226, 0.16);
    border-color: rgba(74, 144, 226, 0.34);
}

.xh-table-wrap {
    overflow-x: auto;
    border: 1px solid #343434;
    border-radius: 8px;
}

.xh-realname-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.xh-realname-table th,
.xh-realname-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #343434;
    vertical-align: top;
    text-align: left;
}

.xh-realname-table th {
    color: #d9e5f4;
    background: #202020;
    font-size: 0.88rem;
    font-weight: 700;
}

.xh-realname-table tbody tr:last-child td {
    border-bottom: 0;
}

.xh-realname-table code {
    display: inline-block;
    max-width: 280px;
    padding: 3px 0;
    background: transparent;
    color: #e8eef6;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-all;
}

.xh-realname-table small {
    display: block;
    margin-top: 6px;
    line-height: 1.4;
}

.xh-sync-form {
    max-width: 720px;
}

.verification-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #3b3b3b;
}

.verification-section:first-of-type {
    margin-top: 12px;
}

.verification-section h4 {
    margin-bottom: 12px;
    color: #e0e0e0;
    font-size: 1rem;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.verification-send-form {
    display: flex;
}

.verification-send-form .service-button {
    min-width: 170px;
}

.verification-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.verification-form .form-control {
    min-width: 0;
}

.verification-form .service-button {
    min-width: 130px;
}

.external-accounts-card {
    grid-column: 1 / -1;
}

.external-account-item {
    padding: 16px;
    background: #1f1f1f;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    margin-bottom: 12px;
}

.external-account-item:last-child {
    margin-bottom: 0;
}

.external-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.external-account-header strong {
    font-size: 1.1rem;
    color: #fff;
}

.external-account-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    color: #a6a6a6;
    font-size: 0.9rem;
}

.external-account-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.external-account-actions form {
    margin: 0;
}

.bbs-admin-table input,
.bbs-admin-table select,
.bbs-admin-table textarea {
    width: 100%;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1f1f1f;
    color: #eee;
    padding: 8px 10px;
    font: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}

.bbs-admin-table input:focus,
.bbs-admin-table select:focus,
.bbs-admin-table textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background: #2a2a2a;
}

.bbs-admin-table textarea {
    min-height: 74px;
    resize: vertical;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .bbs-admin-table th,
    .bbs-admin-table td {
        font-size: 0.9rem;
        padding: 8px;
    }

    .bbs-admin-filter {
        gap: 8px;
    }

    .bbs-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .account-split {
        grid-template-columns: 1fr;
    }

    .auth-page {
        width: min(720px, calc(100% - 40px));
        grid-template-columns: 1fr;
    }

    .service-button,
    .back-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Profile 平板优化 */
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-form .form-group {
        grid-template-columns: 116px minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 2rem;
    }

    .user-panel {
        position: static;
        display: flex;
        justify-content: center;
        margin-top: 8px;
        padding: 0 12px 10px;
        flex-wrap: wrap;
    }

    .section {
        margin: 15px 0;
        padding: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-button {
        max-width: 100%;
    }

    .bbs-thread-meta,
    .bbs-post-header,
    .bbs-pagination {
        gap: 8px;
    }

    .bbs-reply-target {
        align-items: stretch;
        flex-direction: column;
    }

    .bbs-title-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bbs-title-action-button {
        width: 100%;
        min-width: 0;
    }

    .bbs-sort-tabs-inline {
        width: 100%;
    }

    .bbs-sort-link {
        flex: 1 1 120px;
    }

    .bbs-search-form {
        flex-direction: column;
    }

    .bbs-search-button,
    .bbs-search-clear {
        width: 100%;
        min-width: 0;
    }

    .bbs-draft-modal {
        align-items: stretch;
        padding: 12px;
    }

    .bbs-draft-dialog {
        max-height: calc(100vh - 24px);
    }

    .bbs-draft-header {
        padding: 16px;
    }

    .bbs-draft-list {
        padding: 12px;
    }

    .bbs-draft-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .bbs-draft-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .bbs-draft-action,
    .bbs-draft-delete {
        flex: 1 1 120px;
    }

    /* BBS Admin 响应式优化 */
    .bbs-admin-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .bbs-admin-filter .filter-row {
        flex-direction: column;
        gap: 8px;
    }

    .bbs-admin-filter .filter-row > * {
        width: 100%;
        min-width: 100%;
    }

    .bbs-admin-filter input,
    .bbs-admin-filter select,
    .bbs-admin-filter button {
        width: 100%;
    }

    .bbs-admin-table-wrap {
        margin: 0 -16px;
        border-radius: 0;
        position: relative;
    }

    .bbs-admin-table-wrap::before {
        content: '← 左右滑动查看更多 →';
        display: block;
        text-align: center;
        padding: 10px;
        background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(74, 144, 226, 0.05) 100%);
        color: #4a90e2;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(74, 144, 226, 0.3);
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    .bbs-admin-table {
        font-size: 0.85rem;
    }

    .bbs-admin-table th,
    .bbs-admin-table td {
        padding: 8px 6px;
        min-width: 80px;
        white-space: nowrap;
    }

    .bbs-admin-table input,
    .bbs-admin-table select,
    .bbs-admin-table textarea {
        font-size: 0.85rem;
        padding: 6px 8px;
        min-width: 100px;
    }

    .bbs-admin-table textarea {
        min-height: 60px;
        white-space: normal;
    }

    .bbs-admin-actions {
        flex-direction: column;
        gap: 4px;
        min-width: 100px;
    }

    .bbs-admin-actions button,
    .bbs-admin-actions .back-link {
        width: 100%;
        text-align: center;
        padding: 6px 8px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .bbs-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .bbs-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 16px;
    }

    .bbs-pagination a,
    .bbs-pagination span {
        text-align: center;
        padding: 12px;
        background: #2a2a2a;
        border-radius: 6px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bbs-pagination a {
        font-weight: 500;
    }

    .admin-panel {
        padding: 0 8px;
    }

    .admin-panel h2 {
        font-size: 1.5rem;
    }

    .bbs-admin-nav {
        gap: 6px;
    }

    .bbs-admin-nav .back-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    /* Profile 响应式 */
    .profile-container {
        padding: 12px;
    }

    .profile-header h2 {
        font-size: 1.7rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-nav {
        width: 100%;
        flex-direction: column;
    }

    .profile-nav-link {
        text-align: center;
    }

    .account-tip-list li {
        padding-left: 12px;
    }

    .profile-form .form-group {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .registration-inline-control {
        grid-column: 1;
    }

    .registration-captcha-row,
    .registration-sms-row {
        grid-template-columns: 1fr;
    }

    .registration-captcha-button {
        width: 152px;
        max-width: 100%;
    }

    .profile-form .form-text,
    .profile-form .verification-status,
    .profile-form .text-danger {
        grid-column: 1;
    }

    .form-actions {
        justify-content: stretch;
    }

    .profile-container .service-button,
    .profile-container .back-link {
        width: 100%;
        min-width: 0;
    }

    .verification-form {
        grid-template-columns: 1fr;
    }

    .verification-form .form-control,
    .verification-send-form .service-button,
    .verification-form .service-button {
        width: 100%;
        min-width: 0;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions a,
    .profile-actions button {
        width: 100%;
        text-align: center;
    }

    .xh-realname-summary {
        grid-template-columns: 1fr;
    }

    .xh-realname-card-head,
    .xh-realname-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .xh-facts {
        grid-template-columns: 1fr;
    }

    .xh-realname-table {
        min-width: 860px;
    }

    .external-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .external-account-actions {
        flex-direction: column;
    }

    .external-account-actions form {
        width: 100%;
    }

    .external-account-actions a,
    .external-account-actions button {
        width: 100%;
        text-align: center;
    }

    .event-signup-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-profile-header {
        align-items: flex-start;
    }

    .auth-page {
        margin-top: 20px;
        gap: 14px;
    }

    .auth-card {
        padding: 18px;
    }

    .auth-header h2 {
        font-size: 1.7rem;
    }

    .xinghui-code-row,
    .xinghui-register-panel {
        grid-template-columns: 1fr;
    }

    .xinghui-register-qr {
        width: min(180px, 100%);
        justify-self: center;
    }

    .detail-content {
        padding: 20px;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .user-panel {
        font-size: 0.86rem;
        gap: 4px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 15px;
    }
    
    .detail-content {
        padding: 15px;
        font-size: 1rem;
    }

    .auth-card {
        padding: 14px;
    }
}
