/* 思源黑体 Web 字体 - 本地兜底（如需完全离线，可把字体文件放到 fonts/ 目录下）
@font-face {
    font-family: 'Source Han Sans CN';
    src: url('fonts/SourceHanSansCN-Regular.woff2') format('woff2'),
         url('fonts/SourceHanSansCN-Medium.woff2') format('woff2');
    font-weight: 400 500 700;
    font-display: swap;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 优先 CDN 加载的 Noto Sans SC（思源黑体），没装时依次降级到各系统字体 */
    font-family: 'Noto Sans SC', '思源黑体 CN Medium', 'Source Han Sans CN',
                 'PingFang SC', 'Microsoft YaHei', '微软雅黑',
                 system-ui, -apple-system, sans-serif;
    font-weight: 500; /* Medium 字重，对应你之前的 CN Medium */
    height: 100vh;
    background:#eceaff;
}

nav {
    background: #363333;
    width: 100%;
    padding: 0 6%;
    display: flex;
    position: relative;
    align-items: center;
    height: 80px;
}

.logo {
    width: 60px;
    height: 40px;
}

nav ul {
    display: flex;
    width: 100%;

}

nav > ul > li {
    margin-left: 5%;
    list-style: none;
}

nav ul a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    transition: all 0.25s ease;
}

nav ul a {
  display: inline-block;
  transition: all 0.25s ease;
}

nav ul a:hover {
  transform: scale(1.15);
}

nav ul a.active {
  transform: scale(1.15);
  font-weight: bold;
}

/* 导航栏下拉菜单 */
.nav-dropdown {
    position: relative;
    align-self: flex-start;
}
.nav-dropdown > a {
    cursor: pointer;
}
/* 下拉箭头指示器 */
.nav-dropdown > a::after {
    content: '▾';
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.25s ease;
}
/* 桌面端hover时箭头旋转 */
@media (hover: hover) and (min-width: 769px) {
    .nav-dropdown:hover > a::after {
        transform: rotate(180deg);
    }
}
/* 下拉菜单默认隐藏 */
.nav-dropdown-menu {
    display: none;
}
/* 桌面端下拉菜单 */
@media (min-width: 769px) {
    .nav-dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: #363333;
        min-width: 140px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.35);
        z-index: 100;
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        display: block;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        pointer-events: auto;
    }
    .nav-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        height: 8px;
    }
    .nav-dropdown-menu li {
        list-style: none;
        display: block;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    .nav-dropdown-menu li:last-child {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }
    .nav-dropdown-menu a {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
    }
    .nav-dropdown-menu li:hover {
        background: rgba(255,255,255,0.12);
    }
}

/* ========== 移动端下拉菜单显示控制在下方移动端媒体查询中统一处理 ========== */

.user_pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.dropdown-content {
    position: absolute;
    right: 5%;
    top: 120%;
    background: #f9f9f9;
    box-shadow: 0 8px 16px 0 rgba(153,153,153,0.527);
    z-index: 1;
    border-radius: 10px;
    width: 320px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    display: flex;
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 5% 0 0 10%;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info h3 {
    font-weight: 600;
}

.menu {
    padding-bottom: 3%;
}

.menu hr {
    border: 0;
    height: 2px;
    background: #dfdbdb;
    width: 80%;
    margin:5% 0 3% 10%;
}

#menu-link p {
    width: 100%;
    font-size: 15px;
}

#menu-link span {
    font-size: 20px;
    transition: transform 0.3s;
}

#menu-link {
    margin:0 5% 0 5%;
}

#menu-link :hover span {
    transform: translateX(5px);
}

#MyDropDown {
  display: none; 
  position: absolute;
}

.home-wrap {
    width: 100%;
    min-height: calc(100vh - 80px);
    background: linear-gradient(rgba(31, 31, 31, 0.72), rgba(31, 31, 31, 0.88)), url('img/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 60px 6%;
    box-sizing: border-box;
    position: relative;
}

.home-inner {
    max-width: 900px;
}

.home-tag {
    color: #aaa;
    font-size: 18px;
}

.home-title {
    font-size: 52px;
    color: #fff;
    margin: 16px 0 24px;
    line-height: 1.2;
}

.home-desc {
    color: #cccccc;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.home-btn-group {
    display: flex;
    gap: 20px;
}

.btn-white {
    background: #fff;
    color: #222;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-white:hover {
    background: #eceaff;
}

.btn-outline {
    border: 1px solid #fff;
    padding: 16px 32px;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.home-data-box {
    display: flex;
    gap: 60px;
    margin-top: 70px;
}

.data-num {
    font-size: 36px;
    color: #fff;
    font-weight: bold;
}

.data-text {
    color: #999;
}

/* ========== 公告栏样式（毛玻璃半透明） ========== */
.announcement-board {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 500px;
    transition: all 0.3s ease;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.announcement-header i {
    color: #10D482;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.announcement-list::-webkit-scrollbar {
    display: none;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.announcement-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.announcement-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #10D482;
    box-shadow: 0 0 8px rgba(16, 212, 130, 0.6);
}

.announcement-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    min-width: 100px;
    text-align: right;
}

.announcement-empty {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ========== 公告详情页样式 ========== */
.announcement-detail-page {
    padding: 40px 6%;
    min-height: calc(100vh - 80px);
    background: linear-gradient(rgba(31, 31, 31, 0.72), rgba(31, 31, 31, 0.88)), url('img/bg.png');
    background-size: cover;
    background-position: center center;
}

.announcement-detail-container {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.announcement-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
    margin-bottom: 24px;
    font-size: 14px;
    transition: color 0.2s;
}

.announcement-detail-back:hover {
    color: #10D482;
}

.announcement-detail-title {
    font-size: 28px;
    color: #222;
    margin: 0 0 12px;
    line-height: 1.3;
}

.announcement-detail-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 16px;
}

.announcement-detail-divider {
    height: 3px;
    background: #10D482;
    border-radius: 2px;
    margin-bottom: 24px;
}

.announcement-detail-body {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    min-height: 120px;
    word-break: break-word;
    white-space: pre-line;
}

.announcement-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

.announcement-detail-publisher {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 14px;
    text-align: right;
}

.announcement-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    padding: 60px 0;
}

.btn-white,.btn-outline {
    transition: all 0.25s ease;
}

.btn-white:hover,.btn-outline:hover {
    transform: scale(1.08);
}

.gun-page-wrap {
    padding: 40px 6%;
    margin: 0 auto;
    background: #1f1f1f;
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
}

.gun-page-wrap h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
}

.gun-desc {
    color: #cccccc;
    margin-bottom: 24px;
}

/* 社区论坛页面浅色背景 */
/* ========== 论坛页面重构 ========== */
.forum-page {
    display: flex;
    gap: 24px;
    padding: 32px 6%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* 左侧边栏 */
.forum-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.forum-user-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.forum-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    overflow: hidden;
    background: #f0f0f0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.forum-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-user-name {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.forum-user-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #10D482;
    background: rgba(16, 212, 130, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.forum-user-status i {
    font-size: 11px;
}

.forum-user-status.vip {
    color: #E6A23C;
    background: rgba(230, 162, 60, 0.1);
}

.forum-user-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

.forum-stat-item {
    flex: 1;
    text-align: center;
}

.forum-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.forum-stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.forum-stat-divider {
    width: 1px;
    height: 32px;
    background: #eee;
}

.forum-sidebar-tip {
    margin-top: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    display: flex;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.forum-sidebar-tip i {
    color: #10D482;
    margin-top: 2px;
    flex-shrink: 0;
}

.forum-sidebar-publish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #10D482;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(16, 212, 130, 0.25);
}

.forum-sidebar-publish:hover {
    background: #0BB86F;
    transform: translateY(-1px);
}

.forum-sidebar-publish i {
    font-size: 15px;
}

/* 右侧主内容 */
.forum-main {
    flex: 1;
    min-width: 0;
}

.forum-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.forum-main-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}

.forum-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: #10D482;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.forum-publish-btn:hover {
    background: #0BB86F;
    transform: translateY(-1px);
}

.forum-main-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

.forum-article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

/* ========== 论坛卡片 ========== */
.forum-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.forum-card:hover {
    border-color: #10D482;
    box-shadow: 0 4px 16px rgba(16, 212, 130, 0.08);
}

.forum-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.forum-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: #f0f0f0;
}

.forum-user-info {
    display: flex;
    flex-direction: column;
}

.forum-username {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.forum-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.forum-tag {
    font-size: 11px;
    color: #fff;
    background: #10D482;
    padding: 1px 8px;
    border-radius: 3px;
}

.forum-time {
    font-size: 12px;
    color: #999;
}

.forum-card-content {
    margin-bottom: 14px;
}

.forum-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.forum-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-image-preview {
    width: 220px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    background: #f5f5f5;
}

.forum-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.forum-card-footer {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.forum-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
}

.forum-action:hover {
    color: #10D482;
}

.forum-action .action-icon {
    font-size: 14px;
}

.forum-like.liked {
    color: #ff4d4f;
}

.action-count {
    font-size: 13px;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 60px 0;
    font-size: 14px;
}

/* ========== 分页 ========== */
.forum-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.forum-pagination .page-btn:hover:not(:disabled) {
    border-color: #10D482;
    color: #10D482;
}

.forum-pagination .page-btn.active {
    background: #10D482;
    border-color: #10D482;
    color: #fff;
}

.forum-pagination .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 暗色主题 ========== */
.talking-page[data-theme="dark"],
.forum-page[data-theme="dark"] {
    background: #0d1117;
}

.forum-page[data-theme="dark"] .forum-sidebar-tip,
.forum-page[data-theme="dark"] .forum-user-card {
    background: #161b22;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.forum-page[data-theme="dark"] .forum-user-avatar {
    background: #30363d;
    border-color: #30363d;
}

.forum-page[data-theme="dark"] .forum-user-name {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .forum-user-status {
    background: rgba(16, 212, 130, 0.15);
    color: #0FF796;
}

.forum-page[data-theme="dark"] .forum-user-status.vip {
    background: rgba(230, 162, 60, 0.15);
    color: #E6A23C;
}

.forum-page[data-theme="dark"] .forum-user-stats {
    border-top-color: #30363d;
}

.forum-page[data-theme="dark"] .forum-stat-num {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .forum-stat-label {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .forum-stat-divider {
    background: #30363d;
}

.forum-page[data-theme="dark"] .forum-sidebar-tip {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .forum-sidebar-publish {
    background: #0FF796;
    color: #0d1117;
    box-shadow: 0 2px 8px rgba(15, 247, 150, 0.25);
}

.forum-page[data-theme="dark"] .forum-sidebar-publish:hover {
    background: #0cc47a;
}

.forum-page[data-theme="dark"] .forum-main-title {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .forum-main-desc {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .forum-card {
    background: #161b22;
    border-color: #30363d;
}

.forum-page[data-theme="dark"] .forum-card:hover {
    border-color: #0FF796;
    box-shadow: 0 4px 16px rgba(15, 247, 150, 0.1);
}

.forum-page[data-theme="dark"] .forum-avatar {
    background: #30363d;
}

.forum-page[data-theme="dark"] .forum-username {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .forum-time {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .forum-title {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .forum-desc {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .forum-image-preview {
    background: #30363d;
}

.forum-page[data-theme="dark"] .forum-card-footer {
    border-top-color: #30363d;
}

.forum-page[data-theme="dark"] .forum-action {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .forum-action:hover {
    color: #0FF796;
}

.forum-page[data-theme="dark"] .forum-like.liked {
    color: #ff4d4f;
}

.forum-page[data-theme="dark"] .empty-tip {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .forum-publish-btn {
    background: #0FF796;
    color: #0d1117;
}

.forum-page[data-theme="dark"] .forum-publish-btn:hover {
    background: #0cc47a;
}

.forum-page[data-theme="dark"] .forum-pagination .page-btn {
    background: #161b22;
    border-color: #30363d;
    color: #8b949e;
}

.forum-page[data-theme="dark"] .forum-pagination .page-btn:hover:not(:disabled) {
    border-color: #0FF796;
    color: #0FF796;
}

.forum-page[data-theme="dark"] .forum-pagination .page-btn.active {
    background: #0FF796;
    border-color: #0FF796;
    color: #0d1117;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .forum-page {
        flex-direction: column;
        padding: 20px 4%;
        gap: 16px;
    }

    .forum-sidebar {
        width: 100%;
        position: static;
    }

    .forum-user-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 12px 14px;
        padding: 18px 16px;
        text-align: left;
    }

    .forum-user-avatar {
        grid-row: 1 / 3;
        width: 56px;
        height: 56px;
        margin: 0;
    }

    .forum-user-name {
        font-size: 15px;
        margin: 0;
        text-align: left;
    }

    .forum-user-status {
        margin: 0;
        justify-self: start;
    }

    .forum-user-stats {
        grid-column: 1 / 3;
        display: flex;
        justify-content: space-around;
        padding: 10px 0 0;
        margin: 0;
        border-top: 1px solid #f0f0f0;
        border-left: none;
        padding-left: 0;
    }

    .forum-stat-divider {
        width: 1px;
        height: 28px;
    }

    .forum-sidebar-publish {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .forum-card {
        padding: 16px;
    }

    .forum-image-preview {
        width: 160px;
        height: 110px;
    }

    .forum-title {
        font-size: 15px;
    }

    .forum-desc {
        font-size: 13px;
    }

    .forum-card-footer {
        gap: 20px;
    }

    .forum-action {
        font-size: 12px;
    }
}

/* ========== 文章详情页 ========== */
.article-detail-page {
    width: 100%;
}

.article-detail-container {
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.article-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
    background: #f5f5f5;
}

.article-detail-back:hover {
    color: #10D482;
    background: rgba(16, 212, 130, 0.1);
}

.article-detail-back i {
    font-size: 13px;
}

.article-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}

.article-detail-loading i {
    color: #10D482;
}

.article-detail-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-detail-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

.article-detail-author-info {
    display: flex;
    flex-direction: column;
}

.article-detail-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.article-detail-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.article-detail-tag {
    font-size: 12px;
    color: #fff;
    background: #10D482;
    padding: 4px 12px;
    border-radius: 4px;
}

.article-detail-body {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 28px;
}

.article-detail-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.article-detail-body p {
    margin-bottom: 14px;
}

.article-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 28px;
}

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-action-btn:hover {
    border-color: #10D482;
    color: #10D482;
}

.detail-action-btn:active {
    transform: scale(0.9);
}

.detail-action-btn.active {
    border-color: #10D482;
    color: #10D482;
    background: rgba(16, 212, 130, 0.08);
    animation: bounce-pop 0.4s ease;
}

.detail-action-btn.active .fa-heart {
    color: #ff4d4f;
    animation: heart-beat 0.5s ease;
}

.detail-action-btn.active .fa-star {
    color: #faad14;
    animation: star-pop 0.5s ease;
}

@keyframes bounce-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    60% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

@keyframes heart-beat {
    0% { transform: scale(1); }
    15% { transform: scale(1.35); }
    30% { transform: scale(0.9); }
    45% { transform: scale(1.2); }
    60% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

@keyframes star-pop {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.3) rotate(15deg); }
    50% { transform: scale(0.92) rotate(-10deg); }
    70% { transform: scale(1.12) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.detail-action-btn i {
    font-size: 15px;
}

.detail-action-count {
    font-size: 13px;
    color: #999;
}

.detail-action-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #888;
}

/* 删帖按钮：危险色，明暗主题通用 */
.detail-delete-btn {
    color: #ff4d4f;
    border-color: #ffd1d4;
}

.detail-delete-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.08);
}

/* 评论区 */
.article-detail-comments {
    margin-top: 8px;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.comment-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.comment-input-area textarea {
    flex: 1;
    min-height: 72px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.comment-input-area textarea:focus {
    border-color: #10D482;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    background: #10D482;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-submit-btn:hover {
    background: #0BB86F;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 14px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-reply {
    margin-left: 32px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 6px;
    word-break: break-all;
}

.comment-actions {
    display: flex;
    gap: 8px;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.comment-action-btn:hover {
    color: #10D482;
}

.comment-action-btn i {
    font-size: 11px;
}

/* ========== 文章详情暗色主题 ========== */
.article-detail-container {
    background: #fff;
}

.forum-page[data-theme="dark"] .article-detail-container {
    background: #161b22;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.forum-page[data-theme="dark"] .article-detail-back {
    background: #21262d;
    color: #8b949e;
}

.forum-page[data-theme="dark"] .article-detail-back:hover {
    background: rgba(15, 247, 150, 0.1);
    color: #0FF796;
}

.forum-page[data-theme="dark"] .article-detail-title {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .article-detail-header {
    border-bottom-color: #30363d;
}

.forum-page[data-theme="dark"] .article-detail-author-name {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .article-detail-time {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .article-detail-tag {
    background: #0FF796;
    color: #0d1117;
}

.forum-page[data-theme="dark"] .article-detail-body {
    color: #c9d1d9;
}

.forum-page[data-theme="dark"] .article-detail-actions {
    border-top-color: #30363d;
    border-bottom-color: #30363d;
}

.forum-page[data-theme="dark"] .detail-action-btn {
    background: #21262d;
    border-color: #30363d;
    color: #8b949e;
}

.forum-page[data-theme="dark"] .detail-action-btn:hover {
    border-color: #0FF796;
    color: #0FF796;
}

.forum-page[data-theme="dark"] .detail-action-btn.active {
    border-color: #0FF796;
    color: #0FF796;
    background: rgba(15, 247, 150, 0.08);
}

.forum-page[data-theme="dark"] .detail-action-info {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .comments-title {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .comment-input-area textarea {
    background: #21262d;
    border-color: #30363d;
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .comment-input-area textarea:focus {
    border-color: #0FF796;
}

.forum-page[data-theme="dark"] .comment-submit-btn {
    background: #0FF796;
    color: #0d1117;
}

.forum-page[data-theme="dark"] .comment-submit-btn:hover {
    background: #0cc47a;
}

.forum-page[data-theme="dark"] .comment-empty {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .comment-avatar {
    background: #30363d;
}

.forum-page[data-theme="dark"] .comment-author {
    color: #f0f6fc;
}

.forum-page[data-theme="dark"] .comment-text {
    color: #c9d1d9;
}

.forum-page[data-theme="dark"] .comment-action-btn {
    color: #8b949e;
}

.forum-page[data-theme="dark"] .comment-action-btn:hover {
    color: #0FF796;
}

.forum-page[data-theme="dark"] .comment-reply {
    border-top-color: #30363d;
}

.forum-page[data-theme="dark"] .article-detail-loading {
    color: #8b949e;
}

/* ========== 响应式 - 文章详情 ========== */
@media (max-width: 768px) {
    .article-detail-container {
        padding: 20px;
    }

    .article-detail-title {
        font-size: 20px;
    }

    .article-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-detail-body {
        font-size: 15px;
    }

    .detail-action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.gun-table-box {
    width: 100%;
    height: 90vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px #ddd;
    overflow: hidden;
    overscroll-behavior: contain;
}

.gun-table-box iframe {
    width: 100%;
    height: 100vh;
    border: none;
    display: block;
}

.main {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.main.fade-out {
  opacity: 0;
}

.login-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.login-mask.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-box {
  width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-sizing: border-box;
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.3s ease;
}

.login-mask.show .login-box {
  transform: scale(1);
  opacity: 1;
}

.login-box h3 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  color: #363333;
}

.login-box input {
  width: 100%;
  height: 46px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
}

.login-btn {
  width: 100%;
  height: 48px;
  background: #363333;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
}

.login-switch {
  ttext-align: center;
  margin-top: 16px;
  color: #666;
  font-size: 14px;
}

.login-switch span {
  color:#0066ff;
  cursor: pointer;
}

.close-login {
  text-align: right;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  margin-bottom: 10px;
}

/* 自定义提示弹窗 */
.tip-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}
.tip-mask.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tip-box {
  width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-sizing: border-box;
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.3s ease;
}
.tip-mask.show .tip-box {
  transform: scale(1);
  opacity: 1;
}
.tip-content {
  font-size: 16px;
  color: #363333;
  margin-bottom: 24px;
  line-height: 1.5;
}
.tip-btn {
  width: 120px;
  height: 40px;
  background: #363333;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}
.tip-btn:hover {
  background: #555;
}

/* 开屏公告弹窗 */
.splash-notice-box {
  width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 30px 28px;
  text-align: center;
  box-sizing: border-box;
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.35s ease;
}
.login-mask.show .splash-notice-box {
  transform: scale(1);
  opacity: 1;
}
.splash-notice-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.splash-notice-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 14px;
}
.splash-notice-content {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 26px;
}
.splash-notice-btn {
  width: 100%;
  height: 46px;
  background: #363333;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.splash-notice-btn:hover {
  background: #555;
}

.contact-page {
    padding: 40px 24px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-right {
    display: flex;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 28px;
}

.contact-qq-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qq-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qq-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #12B7F5, #0A8FD4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qq-avatar i {
    font-size: 32px;
    color: #fff;
}

.qq-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.qq-info p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.qq-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #12B7F5;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.qq-join-btn:hover {
    background: #0A8FD4;
    color: #fff;
}

.contact-qr-card {
    text-align: center;
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.qr-image-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
}

.qr-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #bbb;
    font-size: 12px;
}

.qr-fallback i {
    font-size: 36px;
}

.qr-tip {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.contact-faq-card {
    width: 100%;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.faq-header i {
    font-size: 22px;
    color: #12B7F5;
}

.faq-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #f5f5f5;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.2s;
    user-select: none;
}

.faq-question:hover {
    color: #12B7F5;
}

.faq-question .faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-question .faq-toggle i {
    font-size: 11px;
    color: #666;
    transition: transform 0.2s;
}

.faq-item.open .faq-question .faq-toggle {
    background: #12B7F5;
}

.faq-item.open .faq-question .faq-toggle i {
    transform: rotate(180deg);
    color: #fff;
}

.faq-item.open .faq-question {
    color: #12B7F5;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 0 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-empty {
    text-align: center;
    padding: 40px 0;
    color: #bbb;
    font-size: 14px;
}

/* 确认弹窗双按钮组 */
.tip-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.tip-btn.tip-btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.tip-btn.tip-btn-cancel:hover {
  background: #eee;
}

/* 参考款卡片容器 - 响应式网格 */
.gun-ref-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* 单张卡片主体 */
.gun-ref-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}
.gun-ref-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 卡片头部：标题+点赞 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 {
    font-size: 22px;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0;
}
.like-num {
    color: #999;
    font-size: 14px;
}
/* 社区改枪码上传者信息 */
.community-uploader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
}
.community-uploader .uploader-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.community-uploader .uploader-name {
    color: #aaa;
    font-size: 12px;
}
.community-uploader .owner-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.community-uploader .edit-gun-btn,
.community-uploader .delete-gun-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.community-uploader .edit-gun-btn:hover {
    background: #1890ff;
    transform: scale(1.1);
}
.community-uploader .delete-gun-btn:hover {
    background: #ff4d4f;
    transform: scale(1.1);
}
/* 社区改枪码上传按钮 */
.upload-gun-btn {
    padding: 8px 18px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.upload-gun-btn:hover {
    background: #40a9ff;
}
/* 点赞按钮：可点击切换已赞/未赞状态 */
.gun-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}
.gun-like-btn:hover {
    background: #fff3e8;
    border-color: #ffb066;
    color: #e67e22;
    transform: translateY(-1px);
}
.gun-like-btn.active {
    background: linear-gradient(135deg, #ff6b35, #ff9a3c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.35);
}
.gun-like-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.45);
}
.gun-like-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}
.gun-like-btn .like-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}
.gun-like-btn.active .like-icon {
    transform: scale(1.15);
}

/* 枪械展示图占位 */
.card-img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    /* background: #eee; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* 标签组 */
.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.tag-purple {
    background: #f0f0ff;
    color: #5a5aff;
}
.tag-gray {
    background: #f2f2f2;
    color: #666;
}
.tag-orange {
    background: #fff3e8;
    color: #e67e22;
}
/* "点赞最多"推荐标签：醒目红橙渐变，带光晕 */
.tag-hot {
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.35);
    position: relative;
}
.tag-hot::before {
    content: '🔥';
    margin-right: 3px;
}

/* 价格+复制按钮行 */
.card-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.price-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-label {
    color: #999;
    font-size: 13px;
}
.price-num {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
}
.copy-btn-blue {
    margin-left: auto;
    background: #2b7cff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.copy-btn-blue:hover {
    background: #1a6bff;
}

/* 底部属性面板 */
.card-attrs {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    justify-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 12px;
}
.attr-item {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    overflow: hidden;
}
.attr-label {
    color: #666;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}
.attr-value {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

/* 关于我们页面 */
.about-page {
    padding: 40px 24px 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-left,
.about-right {
    display: flex;
    flex-direction: column;
}

.about-right {
    gap: 28px;
}

.about-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
    box-sizing: border-box;
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.about-card-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.about-card-header > i:first-child {
    font-size: 22px;
}

.about-card-subtitle {
    font-size: 12px;
    color: #999;
    margin: 4px 0 0 0;
    letter-spacing: 0.5px;
}

.about-intro-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-intro-icon i {
    font-size: 26px;
    color: #fff;
}

.about-intro-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-intro-content p {
    color: #555;
    line-height: 1.9;
    font-size: 14px;
    margin: 0;
    text-align: justify;
}

/* 合作伙伴 */
.about-partner-card {
    display: flex;
    flex-direction: column;
}

.about-partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.about-partner-list:empty::after {
    content: '暂无合作伙伴';
    color: #bbb;
    font-size: 13px;
    padding: 20px 0;
}

.about-partner-list .partner-ad-item {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.about-partner-list .partner-ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.about-partner-list .partner-ad-item img {
    display: block;
    border-radius: 8px;
    max-width: 100%;
}

/* 赞助 */
.about-sponsor-card {
    text-align: center;
}

.about-sponsor-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 24px 0;
}

.about-sponsor-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.about-sponsor-qr .qr-box {
    width: 280px;
    height: 280px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.about-sponsor-qr .qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.about-sponsor-qr .qr-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* 方案三：权益详情侧边卡型 */
.vip-two-col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    margin-top: 24px;
}
.rights-section {
    margin-bottom: 28px;
}
.rights-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 16px;
}
.rights-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.rights-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.3s;
}
.rights-card:hover {
    border-color: rgba(43,124,255,0.3);
    transform: translateY(-2px);
}
.rights-card h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}
.rights-card p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

/* 右侧吸顶价格卡 */
.vip-price-side {
    position: relative;
}
.side-price-card {
    position: sticky;
    top: 20px;
    background: rgba(43,124,255,0.08);
    border: 1px solid rgba(43,124,255,0.3);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.side-price-card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}
.side-price {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 4px;
}
.side-price span {
    font-size: 18px;
    font-weight: 400;
    vertical-align: top;
}
.side-price-desc {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}
.side-open-btn {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
    border: none;
    background: linear-gradient(90deg, #2b7cff, #00d4ff);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.2s;
}
.side-open-btn:hover {
    filter: brightness(1.1);
}
.side-mini-rights {
    list-style: none;
    text-align: left;
}
.side-mini-rights li {
    color: #ccc;
    font-size: 13px;
    padding: 6px 0;
}

/* 用户信息文字区 */
.user-info-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.user-info-text h3 {
    font-weight: 600;
    margin: 0;
}
/* 会员状态标签 */
.user-vip-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #f0f0f0;
    color: #666;
    width: fit-content;
}
/* VIP会员状态样式 */
.user-vip-status.is-vip {
    background: linear-gradient(90deg, #ffd700, #ffb800);
    color: #363333;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}

/* 筛选搜索栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    width: fit-content; /* 背景宽度随内容自动收缩 */
    margin-left: auto;  /* 整体靠右对齐 */
    margin-bottom: 0;
    margin-left: 0;
}

.search-box {
    width: 260px; /* 搜索框固定宽度，数值越小整体越短 */
}

.search-box input {
    width: 100%;
    padding: 7px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #4a90e2;
}

.filter-select select {
    padding: 7px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    min-width: 120px;
}

.filter-select select option {
    background: #1a1d24;
    color: #fff;
}

/* 枪械名称悬浮标签 */
.gun-ref-card {
    position: relative;
    transition: all 0.3s ease;
}

.gun-ref-card .card-img {
    position: relative;
    overflow: hidden; /* 可选：防止标签超出图片边界 */
}

.gun-name-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.92), rgba(53, 122, 189, 0.92));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    backdrop-filter: blur(4px);
}


/* 筛选隐藏动画 */
.gun-ref-card.filter-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* ===== 改枪码卡片类 - 筛选面板 ===== */
.gun2-page-wrap {
    padding: 40px 6% 60px;
}

.gun-filter-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 22px 28px;
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.filter-row:last-child {
    border-bottom: none;
}

.filter-label {
    flex-shrink: 0;
    width: 90px;
    font-size: 14px;
    color: #bbb;
    font-weight: 500;
    padding-top: 8px;
}

.filter-search {
    flex: 1;
    max-width: 320px;
}

.filter-search input {
    width: 100%;
    padding: 8px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.filter-search input:focus {
    border-color: #4a90e2;
}

.filter-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    flex: 1;
    padding-top: 4px;
}

.radio-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #ccc;
    user-select: none;
    padding: 4px 0;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.radio-item input[type="radio"]:checked + .radio-circle {
    border-color: #4a90e2;
    background: #4a90e2;
}

.radio-item input[type="radio"]:checked + .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
}

.radio-item:hover .radio-circle {
    border-color: #4a90e2;
}

.radio-item input[type="radio"]:checked ~ * {
    color: #fff;
}

.radio-item:has(input:checked) {
    color: #fff;
    font-weight: 500;
}

/* ===== 标题+筛选 同行布局 ===== */
.gun-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

/* 头部内标题取消底部外边距，避免撑高 */
.gun-page-header h2 {
    margin-bottom: 0;
}

/* 权限提示醒目标签 */
.auth-tip {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff7a45, #fa541c);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(250, 84, 28, 0.3);
}

/* ========== 随机改枪码 基础布局 ========== */
/* ========== 随机改枪码页面 ========== */
.random-page {
    padding: 40px 6% 0;
}

.random-main-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rmc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rmc-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.rmc-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #2b7cff, #00d4ff);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 12px;
    white-space: nowrap;
}

.rmc-image-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f7fa;
}

.rmc-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.3s ease;
}

.rmc-image-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.45);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(4px);
}

.rmc-flip-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    perspective: 1200px;
}

.rmc-flip-layer.flip-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform-origin: left center;
    animation: bookFlipLeft 0.6s ease-in-out;
}

.rmc-flip-layer.flip-active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(-90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform-origin: right center;
    animation: bookFlipRight 0.6s ease-in-out;
}

@keyframes bookFlipLeft {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(-40deg); }
    100% { transform: rotateY(0deg); }
}

@keyframes bookFlipRight {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(40deg); }
    100% { transform: rotateY(0deg); }
}

.rmc-image.rolling {
    animation: imgRollBook 0.1s linear infinite;
}

@keyframes imgRollBook {
    0% { filter: blur(0px) brightness(1); }
    50% { filter: blur(2px) brightness(1.1); transform: scale(1.01); }
    100% { filter: blur(0px) brightness(1); }
}

.rmc-section {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 16px 18px;
}

.rmc-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rmc-section-title i {
    color: #2b7cff;
    font-size: 14px;
}

.rmc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.rmc-stat {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 10px 6px;
    border: 1px solid #eef0f3;
}

.rmc-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2b7cff;
    font-family: 'SF Mono', Consolas, monospace;
}

.rmc-stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.rmc-meta-row {
    display: flex;
    align-items: stretch;
    background: #f8f9fb;
    border-radius: 10px;
    overflow: hidden;
}

.rmc-meta-item {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rmc-meta-label {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rmc-meta-label i {
    color: #2b7cff;
    font-size: 12px;
}

.rmc-meta-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.rmc-meta-divider {
    width: 1px;
    background: #e5e7eb;
    margin: 10px 0;
}

.rmc-code-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rmc-code-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 0;
}

.rmc-code-label {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

.rmc-code-text {
    flex: 1;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.rmc-copy-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2b7cff, #00d4ff);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.rmc-copy-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.rmc-copy-btn:active {
    transform: translateY(0);
}

.random-generate-btn {
    max-width: 560px;
    margin: 24px auto 0;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2b7cff, #00d4ff);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(43, 124, 255, 0.25);
}

.random-generate-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(43, 124, 255, 0.35);
}

.random-generate-btn:active {
    transform: translateY(0);
}

.random-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.random-generate-btn i {
    font-size: 18px;
}

.rmc-header.flip-in h2 {
    animation: textFlip 0.5s ease;
}

@keyframes textFlip {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 分页栏样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}
.page-btn {
    padding: 6px 16px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
    border-color: #10D482;
    color: #10D482;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.page-info {
    font-size: 14px;
    color: #666;
}

/* 桌面端隐藏移动端专属元素 */
.menu-toggle,
.mobile-overlay {
    display: none;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}

/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 弹窗内容容器 */
.modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

/* 弹窗头部 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.modal-header h3 {
    font-size: 17px;
    color: #222;
    font-weight: 600;
}

/* 弹窗关闭按钮 */
.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* 弹窗主体 */
.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* 表单项 */
.form-item {
    margin-bottom: 16px;
}

.form-item label {
    display: block;
    font-size: 13px;
    color: #555;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-item input[type="text"],
.form-item textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #fafafa;
}

.form-item input[type="text"]:focus,
.form-item textarea:focus {
    outline: none;
    border-color: #10D482;
    background: #fff;
}

.form-item textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px;
    background: #f5f5f5;
    border-radius: 4px;
}

.toolbar-btn {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #10D482;
    color: #fff;
    border-color: #10D482;
}

.article-editor {
    min-height: 150px;
    max-height: 400px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    overflow-y: auto;
    background: #fafafa;
}

.article-editor:focus {
    border-color: #10D482;
    background: #fff;
}

.article-editor:empty:before {
    content: attr(placeholder);
    color: #bbb;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}

.article-video {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
    max-height: 400px;
}

/* 发布文章弹窗：放大尺寸（不影响其他弹窗） */
#publishModal .modal-content {
    width: 95%;
    max-width: 1000px;
    max-height: calc(100vh - 40px);
}

#publishModal .article-editor {
    min-height: 320px;
    max-height: 600px;
}

/* 粘贴插入的图片：缩小显示，避免占据过大篇幅 */
.article-image.pasted-img {
    max-width: 60%;
}

/* 弹窗底部 */
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 14px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* 按钮样式 */
.btn-cancel {
    padding: 6px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f5f5f5;
    color: #333;
}

.btn-submit {
    padding: 6px 20px;
    border: none;
    border-radius: 6px;
    background: #10D482;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #0BB86F;
}

/* 文章详情弹窗 */
.article-detail-modal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.article-detail-modal .modal-header h3 {
    font-size: 18px;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.meta-author {
    font-weight: 500;
    color: #333;
}

.meta-time {
    color: #999;
    font-size: 13px;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
}

.article-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.action-btn {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    border-color: #10D482;
    color: #10D482;
}

.action-btn.active {
    background: rgba(16, 212, 130, 0.1);
    border-color: #10D482;
    color: #10D482;
}

.comment-section {
    margin-top: 16px;
}

.comment-section h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.comment-input-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-input-wrap input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #fafafa;
}

.comment-input-wrap input:focus {
    outline: none;
    border-color: #10D482;
    background: #fff;
}

.comment-submit-btn {
    padding: 8px 18px;
    background: #10D482;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.comment-submit-btn:hover {
    background: #0BB86F;
}

.comment-list {
    margin-top: 16px;
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-right: 12px;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.delete-comment-btn {
    float: right;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-comment-btn:hover {
    background: #ff6b6b;
    color: #fff;
}

.comment-content {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.empty-comment {
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 13px;
}

/* ========== 移动端适配：768px 以下 ========== */
@media (max-width: 768px) {
    /* 全局基础 */
    body {
        font-size: 14px;
        height: auto;
        min-height: 100vh;
    }

   nav {
        height: 60px;
        padding: 0 4%;
        justify-content: flex-start;
        gap: 12px;
    }
    /* 汉堡按钮：仅移动端显示 */
    .menu-toggle {
        display: block;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        flex-shrink: 0;
        z-index: 10000;
        line-height: 1;
    }
    .logo {
        width: 45px;
        height: 30px;
        flex-shrink: 0;
    }
    /* 原横向菜单转为左侧抽屉 */
    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 75vw;
        max-width: 300px;
        height: 100vh;
        background: #363333;
        flex-direction: column;
        padding: 80px 20px 24px;
        margin: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9998;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    nav ul.show {
        transform: translateX(0);
    }
    /* ========== 移动端导航（恢复原有样式） ========== */
    nav > ul > li {
        margin: 0 0 12px 0;
        display: block;
    }
    nav ul a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
    }
    /* ========== 移动端下拉菜单 ========== */
    .nav-dropdown {
        display: block;
        margin: 0 0 12px 0 !important;
        padding: 0 !important;
    }
    .nav-dropdown.open {
        margin-bottom: 0 !important;
    }
    .nav-dropdown.open > a::after {
        transform: rotate(180deg);
    }
    /* 移动端下拉菜单：内嵌显示 */
    .nav-dropdown-menu {
        position: static !important;
        display: none !important;
        visibility: visible !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        min-width: 0 !important;
        list-style: none !important;
        text-align: left !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
    }
    .nav-dropdown-menu::before {
        display: none !important;
    }
    /* 展开时显示 */
    .nav-dropdown.open .nav-dropdown-menu {
        display: block !important;
    }
    /* 移动端子菜单项 */
    .nav-dropdown-menu li {
        list-style: none !important;
        display: block !important;
        text-align: left !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    /* 子项间距 - 适中的padding */
    .nav-dropdown-menu a {
        display: block !important;
        padding: 8px 0 8px 20px !important;
        margin: 0 !important;
        color: #bbb !important;
        font-size: 14px !important;
        text-decoration: none !important;
        border: none !important;
        line-height: 1.5 !important;
        background: transparent !important;
        transition: color 0.15s ease;
    }
    /* 最后一个子项去掉底部边框 */
    .nav-dropdown-menu li:last-child {
        border-bottom: none !important;
    }
    /* 最后一个子项底部间距 - 与普通菜单项间距一致 */
    .nav-dropdown-menu li:last-child {
        margin-bottom: 4px !important;
    }
    .nav-dropdown-menu a:active {
        color: #10D482 !important;
    }
    /* 下拉触发器展开高亮 */
    .nav-dropdown.open > a {
        color: #10D482;
    }
    /* 用户头像留在顶部右侧 */
    .user_pic {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin-left: auto;
    }
    /* 半透明遮罩 */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        z-index: 9997;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    /* 用户下拉菜单适配移动端 */
    .dropdown-content {
        width: 88vw;
        max-width: 320px;
        right: 4%;
        top: 110%;
    }

    /* 首页 */
    .home-wrap {
        padding: 40px 4%;
        min-height: calc(100vh - 60px);
    }
    .home-tag {
        font-size: 15px;
    }
    .home-title {
        font-size: 32px;
    }
    .home-desc {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .home-btn-group {
        flex-direction: column;
        gap: 12px;
    }
    .btn-white,
    .btn-outline {
        text-align: center;
        padding: 14px 24px;
    }
    .home-data-box {
        flex-wrap: wrap;
        gap: 24px;
        margin-top: 40px;
    }
    .data-num {
        font-size: 26px;
    }
    .data-text {
        font-size: 13px;
    }

    /* 通用页面容器 */
    .gun-page-wrap {
        padding: 24px 4%;
        min-height: calc(100vh - 60px);
    }
    .gun-page-wrap h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .gun-desc {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* 飞书表格页面 */
    .gun-table-box {
        height: 70vh;
    }
    .gun-table-box iframe {
        height: 100%;
    }

    /* 页面头部：标题+筛选 */
    .gun2-page-wrap {
        padding: 24px 16px 40px;
    }
    .gun-filter-panel {
        padding: 16px;
    }
    .filter-row {
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
    }
    .filter-label {
        width: auto;
        padding-top: 0;
    }
    .filter-search {
        max-width: 100%;
    }
    .filter-radios {
        gap: 4px 14px;
    }
    .radio-item {
        font-size: 12px;
    }
    .gun-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .auth-tip {
        white-space: normal;
        font-size: 12px;
        padding: 6px 12px;
    }
    .filter-bar {
        width: 100%;
        margin-left: 0;
        padding: 8px 12px;
    }
    .search-box {
        flex: 1;
        min-width: 160px;
    }
    .filter-select {
        flex: 1;
        min-width: 120px;
    }
    .filter-select select {
        width: 100%;
    }

    /* 枪械卡片网格 */
    .gun-ref-card-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .card-price-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .copy-btn-blue {
        margin-left: 0;
        width: 100%;
    }
    .card-attrs {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }
    .attr-label {
        font-size: 11px;
    }
    .attr-value {
        font-size: 16px;
    }

    /* 联系页面 */
    .contact-page {
        padding: 24px 16px 0;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-card {
        padding: 20px;
    }
    .qq-header {
        gap: 12px;
    }
    .qq-avatar {
        width: 52px;
        height: 52px;
    }
    .qq-avatar i {
        font-size: 26px;
    }
    .qq-info h3 {
        font-size: 16px;
    }
    .qr-image-wrap {
        width: 160px;
        height: 160px;
    }
    .faq-header h3 {
        font-size: 16px;
    }
    .faq-question {
        font-size: 14px;
        padding: 14px 0;
    }

    /* 关于我们页面 */
    .about-page {
        padding: 24px 16px 0;
    }
    .about-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .about-right {
        gap: 16px;
    }
    .about-card {
        padding: 20px;
    }
    .about-intro-icon {
        width: 48px;
        height: 48px;
    }
    .about-intro-icon i {
        font-size: 22px;
    }
    .about-card-header h3 {
        font-size: 16px;
    }
    .about-sponsor-qr .qr-box {
        width: 240px;
        height: 240px;
    }

    /* 会员双列布局 */
    .vip-two-col {
        grid-template-columns: 1fr;
    }
    .rights-card-list {
        grid-template-columns: 1fr;
    }
    .side-price-card {
        position: static;
    }

    /* 登录与提示弹窗 */
    .login-box {
        width: 90%;
        max-width: 360px;
        padding: 20px;
    }
    .login-box h3 {
        font-size: 22px;
    }
    .tip-box {
        width: 85%;
        max-width: 300px;
        padding: 24px 16px;
    }

    /* 随机改枪码 */
    /* 随机改枪码 - 移动端 */
    .random-page {
        padding: 24px 16px 0;
    }
    .random-main-card {
        padding: 18px;
        gap: 16px;
    }
    .rmc-image-wrap {
        height: 200px;
    }
    .rmc-stats-grid {
        gap: 6px;
    }
    .rmc-stat {
        padding: 8px 4px;
    }
    .rmc-stat-value {
        font-size: 16px;
    }
    .rmc-stat-label {
        font-size: 11px;
    }
    .rmc-meta-item {
        padding: 12px;
    }
    .rmc-meta-value {
        font-size: 15px;
    }
    .rmc-code-row {
        flex-wrap: wrap;
    }
    .rmc-copy-btn {
        width: 100%;
        justify-content: center;
    }
    .random-generate-btn {
        margin: 16px auto 0;
        padding: 14px 20px;
    }

    /* 分页栏 */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    .page-info {
        width: 100%;
        text-align: center;
        order: -1;
        font-size: 13px;
    }
}

/* ========== 小屏优化：480px 以下 ========== */
@media (max-width: 480px) {
    nav > ul > li {
        margin-left: 2%;
    }
    nav ul a {
        font-size: 12px;
    }
    .home-title {
        font-size: 28px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .card-attrs {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-bar {
        flex-direction: column;
    }
    .search-box,
    .filter-select {
        width: 100%;
    }
    .gun-filter-panel {
        padding: 12px;
    }
    .filter-row {
        padding: 8px 0;
    }
    .filter-radios {
        gap: 2px 12px;
    }
    .radio-item {
        font-size: 11px;
    }
    .radio-circle {
        width: 12px;
        height: 12px;
    }
    .radio-item input[type="radio"]:checked + .radio-circle::after {
        width: 4px;
        height: 4px;
    }
}

/* ========== 邮箱验证码 & 表单扩展样式 ========== */
.code-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
}
.code-row input {
    flex: 1;
    margin-bottom: 0;
}
.send-code-btn {
    flex-shrink: 0;
    width: 110px;
    height: 46px;
    background: #2b7cff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.send-code-btn:hover:not(:disabled) {
    background: #1a6bff;
}
.send-code-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.forget-pwd {
    float: right;
    color: #999;
    cursor: pointer;
    font-size: 13px;
}
.forget-pwd:hover {
    color: #2b7cff;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .code-row {
        gap: 8px;
    }
    .send-code-btn {
        width: 100px;
        height: 36px;
        font-size: 13px;
    }
    .forget-pwd {
        font-size: 12px;
    }
}

/* 全局备案底部 */
        .site-footer {
            width: 100%;
            padding: 18px 0;
            text-align: center;
            font-size: 13px;
            color: #999;
            background: transparent;
        }
        .site-footer a {
            color: #999;
            text-decoration: none;
            transition: color 0.2s;
        }
        .site-footer a:hover {
            color: #1890ff;
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .site-footer {
                padding: 15px 0;
                font-size: 12px;
            }
        }

        /* 个人资料页面 */
        .profile-page {
            padding: 40px 20px;
            max-width: 900px;
            margin: 0 auto;
        }
        .profile-card {
            background: #fff;
            border-radius: 12px;
            padding: 30px 40px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        }
        .profile-title {
            font-size: 22px;
            margin-bottom: 30px;
            color: #333;
            border-bottom: 1px solid #f0f0f0;
            padding-bottom: 15px;
        }
        .profile-body {
            display: flex;
            gap: 50px;
            align-items: flex-start;
        }
        .avatar-section {
            text-align: center;
            width: 180px;
            flex-shrink: 0;
        }
        .avatar-preview {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto 15px;
            border: 3px solid #f0f0f0;
        }
        .avatar-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .avatar-upload-btn {
            width: 100%;
            padding: 8px 0;
            background: #1890ff;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            margin-bottom: 10px;
            transition: background 0.2s;
        }
        .avatar-upload-btn:hover {
            background: #40a9ff;
        }
        .avatar-tip {
            font-size: 12px;
            color: #999;
            line-height: 1.5;
        }
        .profile-form {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .form-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .form-item label {
            font-size: 14px;
            color: #333;
            font-weight: 500;
        }
        .form-item input {
            height: 40px;
            padding: 0 12px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        .form-item input:focus {
            border-color: #1890ff;
        }
        .disabled-input {
            background: #f5f5f5;
            color: #999;
            cursor: not-allowed;
        }
        .form-desc {
            font-size: 12px;
            color: #999;
        }
        .save-profile-btn {
            align-self: flex-start;
            padding: 10px 30px;
            background: #1890ff;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            margin-top: 10px;
            transition: background 0.2s;
        }
        .save-profile-btn:hover {
            background: #40a9ff;
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .profile-body {
                flex-direction: column;
                align-items: center;
                gap: 30px;
            }
            .profile-form {
                width: 100%;
            }
            .save-profile-btn {
                align-self: stretch;
            }
        }

    /* ========== 排行榜通用 ========== */
.ranking-page .scheme-switch {
    display: flex;
    gap: 8px;
}
.ranking-page .scheme-btn {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.ranking-page .scheme-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ========== 方案一：表格排行榜 ========== */
.ranking-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.ranking-table th {
    padding: 14px 16px;
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}
.ranking-table tr:hover {
    background: #f8fafc;
}
.rank-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #f1f5f9;
    font-weight: 600;
    font-size: 13px;
}
.rank-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.rank-bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.gun-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.gun-name-cell img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}
.score-cell {
    font-weight: 600;
    color: #2563eb;
    font-size: 15px;
}

/* ========== 方案二：天梯卡片榜 ========== */
.ranking-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.ranking-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.ranking-card:hover {
    transform: translateY(-3px);
}
.card-rank-tag {
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.level-god { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.level-master { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.level-diamond { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.level-elite { background: linear-gradient(90deg, #64748b, #475569); }
.card-gun-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
}
.card-info {
    padding: 14px;
}
.card-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
}
.gun-type {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
}
.card-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}
.card-score strong {
    color: #2563eb;
    font-size: 18px;
}
.card-attrs-mini {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

/* ========== 方案三：梯度分级榜 ========== */
.tier-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tier-group {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.tier-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.tier-name {
    font-size: 22px;
    font-weight: 700;
    width: 50px;
}
.tier-desc {
    font-size: 14px;
    opacity: 0.9;
}
.tier-t0 { background: linear-gradient(90deg, #ef4444, #dc2626); }
.tier-t1 { background: linear-gradient(90deg, #f97316, #ea580c); }
.tier-t15 { background: linear-gradient(90deg, #ca8a04, #a16207); }
.tier-t2 { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.tier-t3 { background: linear-gradient(90deg, #64748b, #475569); }
.tier-gun-list {
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.tier-gun-item {
    width: 150px;
    text-align: center;
}
.tier-gun-img {
    width: 140px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin: 0 auto 6px;
    border: 2px solid #f1f5f9;
}
.tier-gun-name {
    font-size: 13px;
    color: #334155;
    display: block;
}

/* ========== 消息页面样式 ========== */
/* ========== 我的消息页面 ========== */
.messages-page {
    padding: 40px 6% 60px;
}

.msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.msg-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.msg-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2b7cff, #00d4ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.msg-header-left h2 {
    font-size: 22px;
    font-weight: 600;
    color: #FFF;
    margin: 0;
}

.msg-header-subtitle {
    font-size: 13px;
    color: #666;
}

.msg-mark-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.msg-mark-all-btn:hover {
    background: #2b7cff;
    color: #fff;
    border-color: #2b7cff;
}

.msg-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.msg-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 20px;
    color: #444;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.msg-filter-item:hover {
    border-color: #2b7cff;
    color: #2b7cff;
}

.msg-filter-item.active {
    background: #2b7cff;
    color: #fff;
    border-color: #2b7cff;
}

.msg-filter-item i {
    font-size: 12px;
}

.msg-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #f0f2f5;
    color: #555;
    font-size: 11px;
    font-weight: 600;
}

.msg-filter-item.active .msg-filter-count {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.msg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-loading,
.msg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
    gap: 10px;
    font-size: 14px;
}

.msg-empty i {
    font-size: 42px;
    color: #bfc5cc;
}

.msg-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e7eb;
    transition: all 0.2s;
}

.msg-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-color: #c9d0d8;
}

.msg-item.unread {
    background: linear-gradient(90deg, #e8f1ff 0%, #fff 60%);
    border-color: #b8d4ff;
}

.msg-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    color: #fff;
}

.msg-icon.like {
    background: linear-gradient(135deg, #ff9a56, #ff6b6b);
}

.msg-icon.comment {
    background: linear-gradient(135deg, #2b7cff, #00d4ff);
}

.msg-icon.reply {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.msg-icon.notice {
    background: linear-gradient(135deg, #8c8c8c, #bfbfbf);
}

.msg-body {
    flex: 1;
    width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msg-top-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.msg-actor {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.msg-action {
    font-size: 13px;
    color: #555;
}

.msg-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-all;
}

.msg-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 8px;
}

.msg-unread-dot {
    width: 8px;
    height: 8px;
    background: #ff4d4f;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* 暗色主题 - 消息页 */
.dark-theme .msg-header-left h2,
body.dark-theme .messages-page .msg-header-left h2 {
    color: #fff;
}

.dark-theme .msg-header-subtitle,
body.dark-theme .messages-page .msg-header-subtitle {
    color: #aaa;
}

.dark-theme .msg-mark-all-btn,
body.dark-theme .messages-page .msg-mark-all-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #ddd;
}

.dark-theme .msg-filter-item,
body.dark-theme .messages-page .msg-filter-item {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #ccc;
}

.dark-theme .msg-filter-count,
body.dark-theme .messages-page .msg-filter-count {
    background: rgba(255,255,255,0.1);
    color: #bbb;
}

.dark-theme .msg-item,
body.dark-theme .messages-page .msg-item {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

.dark-theme .msg-item.unread,
body.dark-theme .messages-page .msg-item.unread {
    background: linear-gradient(90deg, rgba(43,124,255,0.15) 0%, rgba(255,255,255,0.04) 60%);
    border-color: rgba(43,124,255,0.3);
}

.dark-theme .msg-actor,
body.dark-theme .messages-page .msg-actor {
    color: #fff;
}

.dark-theme .msg-action,
body.dark-theme .messages-page .msg-action {
    color: #bbb;
}

.dark-theme .msg-text,
body.dark-theme .messages-page .msg-text {
    color: #ddd;
}

.dark-theme .msg-time,
body.dark-theme .messages-page .msg-time {
    color: #888;
}

.dark-theme .msg-empty,
body.dark-theme .messages-page .msg-empty {
    color: #777;
}

.dark-theme .msg-empty i,
body.dark-theme .messages-page .msg-empty i {
    color: #555;
}

/* 移动端消息页 */
@media (max-width: 768px) {
    .messages-page {
        padding: 20px 14px 40px;
    }
    .msg-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    .msg-header-left h2 {
        font-size: 19px;
    }
    .msg-mark-all-btn {
        width: 100%;
        justify-content: center;
    }
    .msg-filter-bar {
        gap: 6px;
        margin-bottom: 16px;
    }
    .msg-filter-item {
        padding: 5px 10px;
        font-size: 12px;
    }
    .msg-filter-count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }
    .msg-item {
        padding: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .msg-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .msg-body {
        flex: 1;
        width: calc(100% - 46px);
    }
    .msg-top-row {
        gap: 4px;
    }
    .msg-action {
        font-size: 12px;
    }
    .msg-text {
        font-size: 13px;
        line-height: 1.6;
        overflow-wrap: break-word;
        word-break: break-all;
    }
    .msg-time {
        width: auto;
        margin-left: auto;
        margin-top: 6px;
        font-size: 11px;
    }
    .msg-unread-dot {
        margin-top: 10px;
    }
}

/* ========== 评论回复样式 ========== */
.reply-comment-btn {
    background: #10D482;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}
.reply-comment-btn:hover {
    background: #0BB86F;
}
.comment-replies {
    margin-top: 12px;
    margin-left: 24px;
    padding-left: 12px;
    border-left: 2px solid #f0f0f0;
}
.comment-reply-item {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.comment-reply-item:last-child {
    border-bottom: none;
}
.reply-author {
    font-weight: 500;
    color: #1890ff;
    font-size: 13px;
}
.reply-time {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}
.reply-content {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}
.reply-to {
    color: #10D482;
    font-weight: 500;
    margin-right: 4px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .ranking-page .scheme-switch {
        flex-wrap: wrap;
    }
    .tier-gun-list {
        justify-content: center;
    }
}

/* 右下角悬浮聊天按钮 */
.chat-float-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
}
.chat-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}
.chat-float-btn.hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

/* 聊天窗口基础样式 */
.chat-window {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 360px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.3s ease;
}
.chat-window.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.chat-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-title { font-weight: 500; font-size: 15px; }
.chat-online { font-size: 12px; opacity: 0.85; }
.chat-close { font-size: 20px; cursor: pointer; line-height: 1; }

/* 消息列表容器 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f5f7fa;
    scroll-behavior: smooth;
}

/* 单条消息基础样式 */
.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 85%;
}

/* 他人消息：整体左对齐 */
.chat-message.other {
    align-self: flex-start;
}

/* 自己消息：整体右对齐 */
.chat-message.self {
    align-self: flex-end;
}

/* 头像样式 */
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
}

/* 消息内容区 */
.chat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}

/* 他人消息元信息：用户名+时间 */
.chat-message.other .chat-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    gap: 8px;
    align-items: center;
    padding-left: 4px;
}

.chat-username {
    font-weight: 500;
    color: #374151;
}

.chat-time {
    font-size: 11px;
}

/* 气泡基础样式 */
.chat-bubble {
    width: fit-content;      /* 核心：宽度由文本内容决定，不再强制撑满父容器 */
    max-width: 100%;        /* 长文本不溢出，自动换行 */
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
}

/* 他人气泡：白色背景 + 左上角切角 + 左对齐 */
.chat-message.other .chat-bubble {
    background: #ffffff;
    color: #1f2937;
    border-top-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* 自己气泡：绿色背景 + 右上角切角 + 右对齐 */
.chat-message.self .chat-bubble {
    background: #10b981;
    color: #ffffff;
    border-top-right-radius: 4px;
    margin-left: auto;       /* 核心：在内容区内靠右对齐 */
}

/* 系统消息：居中灰色 */
.chat-message.system {
    align-self: center;
    max-width: 90%;
}

.chat-message.system .chat-bubble {
    background: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    border-radius: 12px;
    padding: 6px 12px;
}

/* 悬浮按钮 */
.chat-float-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
}
.chat-float-btn:hover { transform: scale(1.1); }
.chat-float-btn.hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

/* 输入区 */
.chat-input-wrap { position: relative; }
.chat-input-area {
    padding: 10px 12px;
    border-top: 1px solid #ebeef5;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    background: #fff;
    align-items: center;
}
.chat-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input-area input:focus { border-color: #667eea; }
.chat-input-area button {
    padding: 0 16px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.chat-input-area button:hover { background: #5a6fd6; }

/* 表情面板 */
.emoji-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dcdfe6;
    background: #fff;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.emoji-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 280px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    display: none;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    z-index: 10;
}
.emoji-panel.show { display: grid; }
.emoji-item {
    width: 28px;
    height: 28px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}
.emoji-item:hover { background: #f0f2f5; }

/* 移动端适配 */
@media (max-width: 768px) {
    .chat-window {
        right: 15px;
        bottom: 15px;
        width: calc(100vw - 30px);
        height: 60vh;
    }
    .chat-float-btn {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}

/* 导航栏用户名基础样式 */
.nav-username {
    color: #fff;
    font-size: 15px;
    margin-right: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 永久会员：金色渐变文字 + 微光效果 */
.nav-username.is-vip {
    background: linear-gradient(90deg, #ffd700, #ffb800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-username {
        font-size: 13px;
        margin-right: 8px;
    }
}

/* ========== 聊天室滚动条定制：变细 + 贴边 ========== */
/* Webkit 内核浏览器（Chrome、Edge、Safari）*/
.chat-messages::-webkit-scrollbar {
    width: 6px;          /* 垂直滚动条宽度，数值越小越细，推荐 4-8px */
    height: 6px;         /* 水平滚动条高度，基本用不到可忽略 */
}

/* 滚动条轨道：透明背景，完全贴紧容器边缘 */
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
    margin: 4px 0;       /* 上下留少量留白，避免顶到边角，不需要可以删掉 */
}

/* 滚动条滑块：半透明圆角，视觉上不突兀 */
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(153, 153, 153, 0.4);
    border-radius: 3px;
    transition: background 0.2s ease;
}

/* 鼠标悬停滑块时加深颜色，提升交互感 */
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(153, 153, 153, 0.6);
}

/* Firefox 浏览器兼容 */
.chat-messages {
    scrollbar-width: thin;                              /* 系统细滚动条 */
    scrollbar-color: rgba(153, 153, 153, 0.4) transparent; /* 滑块色 + 轨道色 */
}

/* 聊天消息内的emoji图片，和文字自然对齐 */
.emoji-img {
    width: 1.3em;
    height: 1.3em;
    vertical-align: -0.25em;
    display: inline-block;
    margin: 0 1px;
    object-fit: contain;
    border: none;
    background: transparent;
}


/* 表情选择面板内的emoji图片 */
.emoji-item .emoji-img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* 经典emoji图片样式 */
.emoji-img {
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.2em;
    display: inline-block;
    margin: 0 1px;
    object-fit: contain;
}

/* 表情面板内的图片大小 */
.emoji-item .emoji-img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* 聊天标题、悬浮按钮内的emoji统一 */
.chat-header .emoji-img,
.chat-float-btn .emoji-img {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
}

.hidden { display: none !important; }

.sens-page {
    min-height: calc(100vh - 80px);
    padding: 24px 5% 40px;
    background: #fafbfc;
    position: relative;
}

.sens-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: start;
}

.sens-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sens-main-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sens-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e4e8;
}

.sens-head-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex: 1;
}

.sens-title {
    font-size: 18px;
    font-weight: 600;
    color: #24292f;
}

.sens-subtitle {
    font-size: 12px;
    color: #6a737d;
}

.sens-theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #57606a;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sens-theme-toggle:hover {
    border-color: #10D482;
    color: #10D482;
}

.sens-theme-icon {
    display: block;
}

.sens-stage {
    padding: 4px 0;
}

.sens-stage-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sens-big-number {
    font-size: 48px;
    font-weight: 600;
    color: #10D482;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sens-stage-title {
    font-size: 15px;
    font-weight: 600;
    color: #24292f;
}

.sens-stage-desc {
    font-size: 13px;
    color: #57606a;
    line-height: 1.5;
    max-width: 420px;
}

.sens-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sens-meta-item {
    font-size: 12px;
    color: #57606a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sens-meta-item b {
    color: #24292f;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.sens-feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 380px;
}

.sens-fb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #24292f;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.sens-fb-btn:hover {
    border-color: #0969da;
    color: #0969da;
    background: #f6f8fa;
}

.sens-fb-perfect {
    border-color: #10D482;
    color: #10D482;
}

.sens-fb-perfect:hover {
    background: #dafbeb;
    color: #0a8f5c;
}

.sens-primary-btn {
    background: #10D482;
    color: #ffffff;
    border: 1px solid #10D482;
    border-radius: 6px;
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sens-primary-btn:hover {
    background: #0eb572;
    border-color: #0eb572;
}

.sens-primary-btn:active {
    background: #0a8f5c;
    border-color: #0a8f5c;
}

.sens-ghost-btn {
    background: #ffffff;
    color: #24292f;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sens-ghost-btn:hover {
    border-color: #10D482;
    color: #10D482;
}

.sens-settings {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
    border-top: 1px solid #eaeef2;
}

.sens-settings-title {
    font-size: 13px;
    font-weight: 600;
    color: #24292f;
}

.sens-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.sens-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sens-field label {
    font-size: 12px;
    color: #57606a;
    font-weight: 500;
}

.sens-field label em {
    color: #8c959f;
    font-style: normal;
    font-weight: 400;
}

.sens-field input,
.sens-field select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
    color: #24292f;
    outline: none;
    transition: border-color 0.15s ease;
    font-family: inherit;
}

.sens-field input:focus,
.sens-field select:focus {
    border-color: #10D482;
}

.sens-field input::placeholder {
    color: #8c959f;
}

.sens-info-bar {
    padding: 10px 16px;
    background: #f6f8fa;
    border: 1px solid #eaeef2;
    border-radius: 6px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.sens-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sens-info-label {
    color: #57606a;
    font-size: 11px;
}

.sens-info-value {
    color: #24292f;
    font-weight: 600;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.sens-res-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sens-res-row input {
    flex: 1;
    min-width: 0;
}

.sens-res-x {
    color: #8c959f;
    font-weight: 400;
    font-size: 13px;
}

.sens-result-value {
    font-size: 48px;
    font-weight: 600;
    color: #10D482;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sens-result-meta {
    font-size: 13px;
    color: #57606a;
}

.sens-result-meta b {
    color: #24292f;
    font-weight: 600;
}

.sens-result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sens-side-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sens-side-head {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeef2;
}

.sens-side-title {
    font-size: 13px;
    font-weight: 600;
    color: #24292f;
}

.sens-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sens-guide-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sens-guide-num {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    color: #57606a;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sens-guide-content {
    flex: 1;
}

.sens-guide-title {
    font-size: 12px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 2px;
}

.sens-guide-desc {
    font-size: 11px;
    color: #57606a;
    line-height: 1.4;
}

.sens-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sens-tip-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.sens-tip-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d0d7de;
    margin-top: 6px;
    flex-shrink: 0;
}

.sens-tip-text {
    font-size: 12px;
    color: #57606a;
    line-height: 1.4;
}

.sens-history {
    max-height: 180px;
    overflow-y: auto;
    background: #f6f8fa;
    border: 1px solid #eaeef2;
    border-radius: 4px;
}

.sens-history-empty {
    text-align: center;
    color: #8c959f;
    padding: 20px 0;
    font-size: 12px;
}

.sens-history-item {
    padding: 6px 10px;
    border-bottom: 1px solid #eaeef2;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    color: #57606a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.sens-history-item:last-child {
    border-bottom: none;
}

.sens-history-item.history-final {
    color: #10D482;
    font-weight: 600;
    background: #dafbeb;
}

.sens-history-item .h-round {
    color: #8c959f;
    font-size: 10px;
}

.sens-history-item .h-sens {
    color: #24292f;
    font-weight: 600;
}

.sens-history-item .h-fb {
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    color: #ffffff;
}

.h-fb-fast { background: #cf222e; }
.h-fb-perfect { background: #10D482; }
.h-fb-slow { background: #6e7781; }

.sens-edpi-box {
    background: #f6f8fa;
    border: 1px solid #eaeef2;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sens-edpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sens-edpi-result {
    text-align: center;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #eaeef2;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sens-edpi-label {
    font-size: 11px;
    color: #57606a;
}

.sens-edpi-value {
    font-size: 18px;
    font-weight: 600;
    color: #10D482;
    font-variant-numeric: tabular-nums;
}

.sens-page[data-theme="dark"] {
    background: #0d1117;
}

.sens-page[data-theme="dark"] .sens-main-card,
.sens-page[data-theme="dark"] .sens-side-card {
    background: #161b22;
    border-color: #30363d;
}

.sens-page[data-theme="dark"] .sens-card-head,
.sens-page[data-theme="dark"] .sens-side-head {
    border-bottom-color: #30363d;
}

.sens-page[data-theme="dark"] .sens-title {
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-subtitle {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-stage-title {
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-stage-desc {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-big-number {
    color: #0FF796;
}

.sens-page[data-theme="dark"] .sens-meta-item {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-meta-item b {
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-field label {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-field label em {
    color: #6e7681;
}

.sens-page[data-theme="dark"] .sens-field input,
.sens-page[data-theme="dark"] .sens-field select {
    background: #0d1117;
    border-color: #30363d;
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-field input:focus,
.sens-page[data-theme="dark"] .sens-field select:focus {
    border-color: #0FF796;
}

.sens-page[data-theme="dark"] .sens-field input::placeholder {
    color: #6e7681;
}

.sens-page[data-theme="dark"] .sens-settings-title,
.sens-page[data-theme="dark"] .sens-side-title {
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-info-bar {
    background: #0d1117;
    border-color: #30363d;
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-info-label {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-info-value {
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-result-value {
    color: #0FF796;
}

.sens-page[data-theme="dark"] .sens-result-meta {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-result-meta b {
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-history {
    background: #0d1117;
    border-color: #30363d;
}

.sens-page[data-theme="dark"] .sens-history-empty {
    color: #6e7681;
}

.sens-page[data-theme="dark"] .sens-history-item {
    border-bottom-color: #30363d;
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-history-item .h-round {
    color: #6e7681;
}

.sens-page[data-theme="dark"] .sens-history-item .h-sens {
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-history-item.history-final {
    color: #0FF796;
    background: rgba(15, 247, 150, 0.12);
}

.sens-page[data-theme="dark"] .sens-guide-title {
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-guide-desc {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-tip-text {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-tip-dot {
    background: #484f58;
}

.sens-page[data-theme="dark"] .sens-edpi-box {
    background: #0d1117;
    border-color: #30363d;
}

.sens-page[data-theme="dark"] .sens-edpi-result {
    background: #161b22;
    border-color: #30363d;
}

.sens-page[data-theme="dark"] .sens-edpi-label {
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-edpi-value {
    color: #0FF796;
}

.sens-page[data-theme="dark"] .sens-theme-toggle {
    background: #0d1117;
    border-color: #30363d;
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-theme-toggle:hover {
    border-color: #0FF796;
    color: #0FF796;
}

.sens-page[data-theme="dark"] .sens-primary-btn {
    background: #0FF796;
    border-color: #0FF796;
    color: #0d1117;
}

.sens-page[data-theme="dark"] .sens-primary-btn:hover {
    background: #0de088;
    border-color: #0de088;
}

.sens-page[data-theme="dark"] .sens-ghost-btn {
    background: #0d1117;
    color: #f0f6fc;
    border-color: #30363d;
}

.sens-page[data-theme="dark"] .sens-ghost-btn:hover {
    border-color: #0FF796;
    color: #0FF796;
}

.sens-page[data-theme="dark"] .sens-guide-num {
    background: #0d1117;
    border-color: #30363d;
    color: #8b949e;
}

.sens-page[data-theme="dark"] .sens-res-x {
    color: #6e7681;
}

.sens-page[data-theme="dark"] .sens-fb-btn {
    background: #0d1117;
    border-color: #30363d;
    color: #f0f6fc;
}

.sens-page[data-theme="dark"] .sens-fb-btn:hover {
    border-color: #0FF796;
    color: #0FF796;
    background: rgba(15, 247, 150, 0.08);
}

.sens-page[data-theme="dark"] .sens-fb-perfect {
    border-color: #0FF796;
    color: #0FF796;
}

.sens-page[data-theme="dark"] .sens-fb-perfect:hover {
    background: rgba(15, 247, 150, 0.12);
}

.sens-page[data-theme="dark"] .sens-settings {
    border-top-color: #30363d;
}

@media (max-width: 768px) {
    .sens-page {
        padding: 16px 4%;
    }

    .sens-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sens-side-grid {
        grid-template-columns: 1fr;
    }

    .sens-main-card,
    .sens-side-card {
        padding: 16px;
    }

    .sens-form-grid {
        grid-template-columns: 1fr;
    }

    .sens-big-number,
    .sens-result-value {
        font-size: 40px;
    }

    .sens-feedback-row {
        grid-template-columns: 1fr;
    }

    .sens-title {
        font-size: 16px;
    }
}

