/* ============================================
   Pure White 纯白简洁论坛模板
   配色: #007AFF(蓝) #FFFFFF #000000 #E5E5E5
   CSS前缀: .pw-
   ============================================ */

/* ========== 重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #FFFFFF;
    color: #000000;
    line-height: 1.8;
    font-size: 14px;
}

a {
    color: #007AFF;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ========== 变量 ========== */
:root {
    --pw-blue: #007AFF;
    --pw-blue-hover: #0056b3;
    --pw-bg: #FFFFFF;
    --pw-surface: #FFFFFF;
    --pw-text: #000000;
    --pw-text-secondary: #86868B;
    --pw-border: #E5E5E5;
    --pw-border-light: #F0F0F0;
}

/* ========== 通用 ========== */
.pw-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.pw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.15s ease;
    line-height: 1;
}

.pw-btn-primary {
    background: #007AFF;
    color: #FFFFFF;
}

.pw-btn-primary:hover {
    background: #0056b3;
    text-decoration: none;
    color: #FFFFFF;
}

.pw-btn-follow {
    background: #FFFFFF;
    color: #007AFF;
    border: 1px solid #007AFF;
    padding: 6px 14px;
    font-size: 12px;
}

.pw-btn-follow:hover {
    background: #007AFF;
    color: #FFFFFF;
    text-decoration: none;
}

.pw-avatar {
    border-radius: 50%;
    display: block;
}

.pw-avatar-xs { width: 16px; height: 16px; }
.pw-avatar-sm { width: 28px; height: 28px; }
.pw-avatar-md { width: 48px; height: 48px; }
.pw-avatar-lg { width: 64px; height: 64px; }

.pw-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #007AFF;
    color: #FFFFFF;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pw-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.pw-icon-btn:hover {
    background: #F5F5F5;
}

.pw-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 500;
    line-height: 1.4;
}

.pw-tag-essence {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.pw-tag-hot {
    background: rgba(255, 99, 71, 0.08);
    color: #FF6347;
    border: 1px solid rgba(255, 99, 71, 0.2);
}

/* ========== 头部导航 ========== */
.pw-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
}

.pw-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 20px;
    gap: 24px;
}

.pw-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    flex-shrink: 0;
}

.pw-logo:hover {
    text-decoration: none;
    color: #000000;
}

.pw-logo img {
    width: 28px;
    height: 28px;
}

.pw-nav {
    flex: 1;
    overflow: hidden;
}

.pw-nav-list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pw-nav-list::-webkit-scrollbar {
    display: none;
}

.pw-nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #000000;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.pw-nav-link:hover {
    color: #007AFF;
    text-decoration: none;
    background: #F5F5F5;
}

.pw-nav-link.pw-active {
    color: #007AFF;
    font-weight: 500;
}

.pw-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pw-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    transition: border-color 0.15s ease;
}

.pw-search-box:focus-within {
    border-color: #007AFF;
}

.pw-search-box .pw-icon {
    color: #86868B;
}

.pw-search-input {
    width: 140px;
    font-size: 13px;
    background: transparent;
}

.pw-search-input::placeholder {
    color: #86868B;
}

.pw-user-area {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pw-avatar-link {
    display: block;
}

.pw-avatar-link img {
    width: 32px;
    height: 32px;
}

.pw-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* ========== Banner ========== */
.pw-banner {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.pw-banner-inner {
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    overflow: hidden;
}

.pw-banner-img {
    width: 100%;
    height: auto;
}

/* ========== 主容器 ========== */
.pw-main {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.pw-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pw-content {
    flex: 1;
    min-width: 0;
}

.pw-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ========== 快捷发帖 ========== */
.pw-quick-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    margin-bottom: 24px;
}

.pw-quick-post .pw-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.pw-quick-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.15s ease;
}

.pw-quick-input:focus {
    border-color: #007AFF;
}

.pw-quick-input::placeholder {
    color: #86868B;
}

/* ========== 板块区域 ========== */
.pw-section {
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #FFFFFF;
}

.pw-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #E5E5E5;
}

.pw-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pw-section-icon {
    color: #007AFF;
}

.pw-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
}

.pw-section-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #86868B;
}

.pw-stat-divider {
    color: #E5E5E5;
}

.pw-thread-list {
    padding: 0;
}

.pw-thread-item {
    padding: 12px 20px;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.15s ease;
}

.pw-thread-item:last-child {
    border-bottom: none;
}

.pw-thread-item:hover {
    background: #FAFAFA;
}

.pw-thread-title {
    display: block;
    font-size: 14px;
    color: #000000;
    margin-bottom: 6px;
    line-height: 1.6;
}

.pw-thread-title:hover {
    color: #007AFF;
    text-decoration: none;
}

.pw-thread-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #86868B;
}

.pw-thread-meta .pw-icon {
    color: #C7C7CC;
    margin-right: 2px;
}

.pw-thread-author {
    color: #86868B;
}

.pw-view-more {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: #007AFF;
    border-top: 1px solid #F0F0F0;
    transition: background 0.15s ease;
}

.pw-view-more:hover {
    background: #FAFAFA;
    text-decoration: none;
}

/* ========== 侧边栏组件 ========== */
.pw-widget {
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #FFFFFF;
}

.pw-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    border-bottom: 1px solid #E5E5E5;
}

.pw-widget-title .pw-icon {
    color: #007AFF;
}

/* 在线统计 */
.pw-online-stats {
    padding: 12px 16px;
}

.pw-online-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}

.pw-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34C759;
    flex-shrink: 0;
}

.pw-online-label {
    color: #000000;
    flex: 1;
}

.pw-online-num {
    color: #007AFF;
    font-weight: 600;
}

/* 热门列表 */
.pw-hot-list {
    padding: 8px 0;
}

.pw-hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    transition: background 0.15s ease;
}

.pw-hot-item:hover {
    background: #FAFAFA;
}

.pw-hot-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #86868B;
    flex-shrink: 0;
}

.pw-rank-1 { color: #FF3B30; }
.pw-rank-2 { color: #FF9500; }
.pw-rank-3 { color: #FFCC00; }

.pw-hot-link {
    flex: 1;
    font-size: 13px;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw-hot-link:hover {
    color: #007AFF;
    text-decoration: none;
}

.pw-hot-count {
    font-size: 11px;
    color: #86868B;
    flex-shrink: 0;
}

/* 用户列表 */
.pw-user-list {
    padding: 8px 0;
}

.pw-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}

.pw-user-item .pw-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.pw-user-info {
    flex: 1;
    min-width: 0;
}

.pw-user-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
}

.pw-user-desc {
    display: block;
    font-size: 11px;
    color: #86868B;
}

/* 公告 */
.pw-notice-box {
    padding: 12px 16px;
}

.pw-notice-box p {
    font-size: 13px;
    color: #000000;
    line-height: 1.8;
}

/* ========== 面包屑 ========== */
.pw-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 16px;
    font-size: 13px;
    color: #86868B;
}

.pw-breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #86868B;
}

.pw-breadcrumb-link:hover {
    color: #007AFF;
    text-decoration: none;
}

.pw-breadcrumb-sep {
    color: #C7C7CC;
}

.pw-breadcrumb-current {
    color: #000000;
    font-weight: 500;
}

/* ========== 板块信息 ========== */
.pw-board-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    margin-bottom: 16px;
}

.pw-board-name {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.pw-board-desc {
    font-size: 13px;
    color: #86868B;
}

.pw-board-stats {
    display: flex;
    gap: 32px;
}

.pw-board-stat-item {
    text-align: center;
}

.pw-board-stat-num {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #007AFF;
}

.pw-board-stat-label {
    display: block;
    font-size: 12px;
    color: #86868B;
    margin-top: 2px;
}

/* ========== 列表工具栏 ========== */
.pw-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 16px;
}

.pw-btn-new {
    padding: 8px 18px;
    font-size: 13px;
}

.pw-sort-tabs {
    display: flex;
    gap: 4px;
}

.pw-sort-tab {
    padding: 6px 14px;
    font-size: 13px;
    color: #86868B;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.pw-sort-tab:hover {
    color: #007AFF;
    background: #F5F5F5;
}

.pw-sort-active {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.08);
    font-weight: 500;
}

/* ========== 帖子列表表格 ========== */
.pw-list-table {
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pw-list-head {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #FAFAFA;
    border-bottom: 1px solid #E5E5E5;
    font-size: 12px;
    font-weight: 500;
    color: #86868B;
}

.pw-col-title-col { flex: 1; min-width: 0; }
.pw-col-author { width: 140px; text-align: left; }
.pw-col-reply { width: 70px; text-align: center; }
.pw-col-views { width: 80px; text-align: center; }
.pw-col-time { width: 140px; text-align: right; }

.pw-list-body {
    background: #FFFFFF;
}

.pw-list-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.15s ease;
}

.pw-list-row:last-child {
    border-bottom: none;
}

.pw-list-row:hover {
    background: #FAFAFA;
}

.pw-list-row .pw-col-title-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pw-list-title {
    font-size: 14px;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw-list-title:hover {
    color: #007AFF;
    text-decoration: none;
}

.pw-list-row .pw-col-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pw-list-author-name {
    font-size: 13px;
    color: #86868B;
}

.pw-list-row .pw-col-reply,
.pw-list-row .pw-col-views {
    font-size: 13px;
    color: #86868B;
}

.pw-list-row .pw-col-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.pw-list-time {
    font-size: 12px;
    color: #86868B;
}

.pw-list-last-user {
    font-size: 11px;
    color: #C7C7CC;
}

/* ========== 分页 ========== */
.pw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
}

.pw-page-btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-size: 13px;
    color: #000000;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.pw-page-btn:hover:not(.pw-page-disabled):not(.pw-page-active) {
    border-color: #007AFF;
    color: #007AFF;
    text-decoration: none;
}

.pw-page-active {
    background: #007AFF;
    color: #FFFFFF;
    border-color: #007AFF;
}

.pw-page-disabled {
    color: #C7C7CC;
    cursor: not-allowed;
}

.pw-page-ellipsis {
    padding: 0 4px;
    color: #86868B;
    font-size: 13px;
}

/* ========== 详情页 ========== */
.pw-detail-header {
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 20px;
}

.pw-detail-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pw-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    flex: 1;
}

.pw-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #86868B;
}

.pw-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pw-detail-meta-item .pw-icon {
    color: #C7C7CC;
}

/* 帖子 */
.pw-post {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #F0F0F0;
}

.pw-post-op {
    padding: 20px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    margin-bottom: 20px;
}

.pw-post-left {
    width: 140px;
    flex-shrink: 0;
    text-align: center;
}

.pw-post-left .pw-avatar {
    margin: 0 auto 10px;
}

.pw-post-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pw-post-username {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.pw-post-role {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    border-radius: 3px;
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.pw-role-user {
    background: #F5F5F5;
    color: #86868B;
    border-color: #E5E5E5;
}

.pw-post-user-stats {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #86868B;
}

.pw-post-body {
    flex: 1;
    min-width: 0;
}

.pw-post-floor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F0F0F0;
}

.pw-floor-label {
    font-size: 12px;
    font-weight: 600;
    color: #007AFF;
}

.pw-post-time {
    font-size: 12px;
    color: #86868B;
}

.pw-post-content {
    font-size: 14px;
    color: #000000;
    line-height: 1.8;
}

.pw-post-content p {
    margin-bottom: 14px;
}

.pw-post-image {
    width: 100%;
    max-width: 560px;
    margin: 16px 0;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
}

.pw-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #F0F0F0;
}

.pw-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    color: #86868B;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.pw-action-btn:hover {
    color: #007AFF;
    border-color: #007AFF;
}

.pw-action-btn .pw-icon {
    color: #C7C7CC;
}

.pw-action-like:hover .pw-icon,
.pw-action-liked .pw-icon {
    color: #007AFF;
}

.pw-action-liked {
    color: #007AFF;
    border-color: #007AFF;
}

/* 回复列表头 */
.pw-replies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 4px;
}

.pw-replies-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

/* 回复框 */
.pw-reply-box {
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    padding: 16px;
    margin-top: 24px;
}

.pw-reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pw-reply-hint {
    font-size: 14px;
    color: #86868B;
}

.pw-reply-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 13px;
    color: #000000;
    resize: vertical;
    min-height: 100px;
    line-height: 1.8;
    transition: border-color 0.15s ease;
}

.pw-reply-textarea:focus {
    border-color: #007AFF;
}

.pw-reply-textarea::placeholder {
    color: #C7C7CC;
}

.pw-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.pw-reply-tools {
    display: flex;
    gap: 4px;
}

.pw-tool-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #86868B;
    transition: all 0.15s ease;
}

.pw-tool-btn:hover {
    color: #007AFF;
    background: #F5F5F5;
}

/* 帖子信息 */
.pw-info-list {
    padding: 12px 16px;
}

.pw-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.pw-info-label {
    color: #86868B;
}

.pw-info-value {
    color: #000000;
    font-weight: 500;
}

/* 相关帖子 */
.pw-related-list {
    padding: 8px 0;
}

.pw-related-item {
    padding: 10px 16px;
    border-bottom: 1px solid #F0F0F0;
}

.pw-related-item:last-child {
    border-bottom: none;
}

.pw-related-link {
    display: block;
    font-size: 13px;
    color: #000000;
    margin-bottom: 4px;
    line-height: 1.6;
}

.pw-related-link:hover {
    color: #007AFF;
    text-decoration: none;
}

.pw-related-meta {
    font-size: 11px;
    color: #86868B;
}

/* ========== 搜索页 ========== */
.pw-search-section {
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 20px;
}

.pw-search-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
}

.pw-search-page-title .pw-icon {
    color: #007AFF;
}

.pw-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.pw-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    transition: border-color 0.15s ease;
}

.pw-search-input-wrap:focus-within {
    border-color: #007AFF;
}

.pw-search-icon-lg {
    color: #86868B;
}

.pw-search-large-input {
    flex: 1;
    font-size: 14px;
    background: transparent;
    color: #000000;
}

.pw-search-large-input::placeholder {
    color: #C7C7CC;
}

.pw-search-clear {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #86868B;
    transition: all 0.15s ease;
}

.pw-search-clear:hover {
    color: #007AFF;
    background: #F5F5F5;
}

.pw-btn-search {
    padding: 10px 28px;
}

.pw-search-result-info {
    font-size: 13px;
    color: #86868B;
}

.pw-result-count {
    color: #007AFF;
    font-weight: 600;
}

.pw-result-keyword {
    color: #000000;
    font-weight: 500;
}

/* 搜索筛选 */
.pw-search-filters {
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.pw-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    flex-wrap: wrap;
}

.pw-filter-label {
    font-size: 12px;
    color: #86868B;
    font-weight: 500;
    margin-right: 4px;
    flex-shrink: 0;
}

.pw-filter-tag {
    padding: 4px 12px;
    font-size: 12px;
    color: #000000;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.pw-filter-tag:hover {
    color: #007AFF;
    background: #F5F5F5;
    text-decoration: none;
}

.pw-filter-active {
    color: #FFFFFF;
    background: #007AFF;
}

.pw-filter-active:hover {
    color: #FFFFFF;
    background: #0056b3;
}

/* 搜索结果 */
.pw-search-results {
    margin-bottom: 16px;
}

.pw-search-result-item {
    padding: 16px 20px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: border-color 0.15s ease;
}

.pw-search-result-item:hover {
    border-color: #C7C7CC;
}

.pw-result-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pw-result-title {
    font-size: 15px;
    font-weight: 500;
    color: #000000;
}

.pw-result-title:hover {
    color: #007AFF;
    text-decoration: none;
}

.pw-result-summary {
    font-size: 13px;
    color: #86868B;
    line-height: 1.8;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pw-highlight {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 0 2px;
    border-radius: 2px;
}

.pw-result-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #86868B;
    flex-wrap: wrap;
}

.pw-result-board,
.pw-result-author,
.pw-result-time,
.pw-result-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pw-result-meta .pw-icon {
    color: #C7C7CC;
}

.pw-result-author .pw-avatar {
    border: 1px solid #E5E5E5;
}

/* 热门搜索标签 */
.pw-hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
}

.pw-hot-search-tag {
    padding: 4px 12px;
    font-size: 12px;
    color: #000000;
    border: 1px solid #E5E5E5;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.pw-hot-search-tag:hover {
    color: #007AFF;
    border-color: #007AFF;
    text-decoration: none;
}

/* 搜索历史 */
.pw-clear-history {
    margin-left: auto;
    font-size: 11px;
    color: #86868B;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.pw-clear-history:hover {
    color: #007AFF;
    background: #F5F5F5;
}

.pw-history-list {
    padding: 8px 0;
}

.pw-history-item {
    padding: 6px 16px;
}

.pw-history-link {
    font-size: 13px;
    color: #000000;
}

.pw-history-link:hover {
    color: #007AFF;
    text-decoration: none;
}

/* ========== 页脚 ========== */
.pw-footer {
    border-top: 1px solid #E5E5E5;
    margin-top: 40px;
    padding: 32px 20px;
    background: #FFFFFF;
}

.pw-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.pw-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.pw-footer-brand img {
    width: 24px;
    height: 24px;
}

.pw-footer-nav {
    display: flex;
    gap: 20px;
}

.pw-footer-nav a {
    font-size: 13px;
    color: #86868B;
}

.pw-footer-nav a:hover {
    color: #007AFF;
    text-decoration: none;
}

.pw-footer-copy {
    font-size: 12px;
    color: #C7C7CC;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .pw-container {
        flex-direction: column;
    }

    .pw-sidebar {
        width: 100%;
    }

    .pw-nav {
        display: none;
    }

    .pw-menu-toggle {
        display: flex;
    }

    .pw-header-inner {
        gap: 12px;
    }

    .pw-search-box {
        display: none;
    }

    .pw-board-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .pw-board-stats {
        justify-content: center;
    }

    .pw-list-head {
        display: none;
    }

    .pw-list-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }

    .pw-list-row .pw-col-title-col {
        width: 100%;
        flex: none;
    }

    .pw-list-row .pw-col-author {
        width: auto;
    }

    .pw-list-row .pw-col-reply,
    .pw-list-row .pw-col-views {
        width: auto;
        text-align: left;
    }

    .pw-list-row .pw-col-time {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pw-post {
        flex-direction: column;
        gap: 12px;
    }

    .pw-post-left {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .pw-post-left .pw-avatar {
        margin: 0;
    }

    .pw-post-user-info {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .pw-post-user-stats {
        flex-direction: row;
        margin-top: 0;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .pw-header-inner {
        height: 50px;
        padding: 0 12px;
    }

    .pw-logo span {
        display: none;
    }

    .pw-main {
        padding: 0 12px;
        margin: 16px auto;
    }

    .pw-banner {
        padding: 0 12px;
        margin-top: 12px;
    }

    .pw-section-header {
        padding: 12px 16px;
    }

    .pw-thread-item {
        padding: 10px 16px;
    }

    .pw-thread-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pw-quick-post {
        flex-wrap: wrap;
    }

    .pw-quick-input {
        order: 3;
        width: 100%;
        flex: none;
    }

    .pw-detail-title {
        font-size: 18px;
    }

    .pw-detail-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

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

    .pw-btn-search {
        width: 100%;
        justify-content: center;
    }

    .pw-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .pw-footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .pw-board-stats {
        gap: 20px;
    }

    .pw-board-stat-num {
        font-size: 18px;
    }

    .pw-post-op {
        padding: 16px;
    }

    .pw-post-content {
        font-size: 13px;
    }

    .pw-post-image {
        max-width: 100%;
    }

    .pw-reply-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .pw-reply-footer .pw-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .pw-result-meta {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pw-section-title {
        font-size: 14px;
    }

    .pw-section-stats {
        font-size: 11px;
    }

    .pw-thread-title {
        font-size: 13px;
    }

    .pw-detail-title {
        font-size: 16px;
    }

    .pw-board-name {
        font-size: 18px;
    }

    .pw-search-page-title {
        font-size: 18px;
    }

    .pw-result-title {
        font-size: 14px;
    }

    .pw-pagination {
        flex-wrap: wrap;
    }
}

/* ============================================
   CMS 追加样式 (pw- 变量体系)
   仅使用 --pw-blue, --pw-blue-hover, --pw-bg,
   --pw-surface, --pw-text, --pw-text-secondary,
   --pw-border, --pw-border-light
   不存在的变量已替换: text-faint->#9CA3AF,
   transition->0.2s ease
   ============================================ */

/* ========== CMS 分页 ========== */
.jv-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 16px 0;
    justify-content: center;
}

.jv-page-info {
    font-size: 12px;
    color: #9CA3AF;
    margin-right: 12px;
    letter-spacing: 0.3px;
}

.jv-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: 1px solid var(--pw-border);
    border-radius: 4px;
    color: var(--pw-text);
    transition: all 0.2s ease;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.jv-pagination a:hover {
    color: var(--pw-blue);
    border-color: var(--pw-blue);
    text-decoration: none;
}

.jv-pagination a.active {
    color: #FFFFFF;
    background: var(--pw-blue);
    border-color: var(--pw-blue);
    font-weight: 600;
}

.jv-pagination a.disabled {
    color: #C7C7CC;
    border-color: transparent;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

.jv-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: #9CA3AF;
    font-size: 13px;
}

/* ========== CMS 评论区 ========== */
.comment-section {
    margin-top: 24px;
}

.comment-form-area {
    margin-bottom: 16px;
}

.comment-login-notice {
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    padding: 20px;
    text-align: center;
    border-radius: 4px;
}

.comment-list {
    display: flex;
    flex-direction: column;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--pw-border-light);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pw-blue);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-text);
}

.comment-reply-to {
    font-size: 11px;
    color: #9CA3AF;
}

.comment-reply-to::before {
    content: '\2192';
    margin-right: 3px;
}

.comment-time {
    font-size: 11px;
    color: #9CA3AF;
    margin-left: auto;
}

.comment-content {
    font-size: 13px;
    color: var(--pw-text);
    line-height: 1.8;
    word-break: break-word;
}

.comment-actions {
    margin-top: 8px;
}

.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-reply-btn:hover {
    color: var(--pw-blue);
}

.comment-reply-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-reply-input {
    width: 100%;
    border: 1px solid var(--pw-border);
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    background: var(--pw-surface);
    color: var(--pw-text);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.comment-reply-input:focus {
    border-color: var(--pw-blue);
    outline: none;
}

.comment-reply-submit {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    border: 1px solid var(--pw-blue);
    background: var(--pw-blue);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.comment-reply-submit:hover {
    background: var(--pw-blue-hover);
    border-color: var(--pw-blue-hover);
}

.comment-reply-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-replies {
    margin-left: 48px;
    padding-left: 16px;
    border-left: 2px solid var(--pw-border-light);
    display: flex;
    flex-direction: column;
}

.comment-reply-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pw-border-light);
}

.comment-reply-item:last-child {
    border-bottom: none;
}

.comment-reply-item .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.comment-reply-item .comment-author {
    font-size: 12px;
}

.comment-reply-item .comment-content {
    font-size: 12px;
}

.comment-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9CA3AF;
    font-size: 13px;
}

.comment-empty p {
    margin: 0;
}

.comment-load-more {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

.comment-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 24px;
    border: 1px solid var(--pw-border);
    background: var(--pw-surface);
    color: var(--pw-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.comment-load-more-btn:hover {
    border-color: var(--pw-blue);
    color: var(--pw-blue);
}

.comment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-char-count {
    font-size: 13px;
    color: #9CA3AF;
}

/* ========== CMS 下载页 ========== */
.pw-download-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    border-radius: 4px;
    margin-bottom: 20px;
}

.pw-download-file {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pw-border);
    border-radius: 4px;
}

.pw-download-meta {
    flex: 1;
}

.pw-download-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--pw-text);
    margin-bottom: 4px;
}

.pw-download-desc {
    font-size: 13px;
    color: var(--pw-text-secondary);
}

.pw-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid var(--pw-blue);
    background: var(--pw-blue);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 4px;
}

.pw-download-btn:hover {
    background: var(--pw-blue-hover);
    border-color: var(--pw-blue-hover);
    color: #FFFFFF;
    text-decoration: none;
}

/* ========== CMS 标签页 ========== */
.pw-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
}

.pw-tag-item {
    font-size: 13px;
    padding: 6px 16px;
    border: 1px solid var(--pw-border);
    border-radius: 4px;
    color: var(--pw-text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.pw-tag-item:hover {
    border-color: var(--pw-blue);
    color: var(--pw-blue);
    text-decoration: none;
}

/* ========== CMS 用户页 ========== */
.pw-user-page {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 20px;
}

.pw-user-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pw-user-form label {
    font-size: 13px;
    color: var(--pw-text-secondary);
    margin-bottom: 4px;
    display: block;
}

.pw-user-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pw-border);
    border-radius: 4px;
    background: var(--pw-surface);
    color: var(--pw-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.pw-user-form input:focus {
    border-color: var(--pw-blue);
    outline: none;
}

.pw-user-form button {
    padding: 10px 24px;
    border: 1px solid var(--pw-blue);
    background: var(--pw-blue);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.pw-user-form button:hover {
    background: var(--pw-blue-hover);
    border-color: var(--pw-blue-hover);
}

.pw-user-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
}

.pw-user-links a {
    color: var(--pw-text-secondary);
}

.pw-user-links a:hover {
    color: var(--pw-blue);
    text-decoration: none;
}
