/* V3.0 高审美简洁风格 - 暖米色+琥珀色 */
:root {
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --bg: #fafaf9;
    --card-bg: #ffffff;
    --text: #1c1917;
    --text-secondary: #78716c;
    --border: #e7e5e4;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
/* 导航栏 */
.header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #1c1917;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 2px solid #f59e0b;
}
.header-left { display: flex; align-items: center; gap: 30px; }
.logo { font-size: 20px; font-weight: 700; color: #92400e; }
.header-center { flex: 1; max-width: 500px; margin: 0 30px; }
.search-box { display: flex; gap: 8px; width: 100%; }
.search-box input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #d6d3d1;
    border-radius: 20px;
    outline: none;
    background: white;
}
.search-box input:focus { border-color: #f59e0b; }
.search-btn {
    background: #f59e0b;
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}
.search-btn:hover { background: #d97706; }
.header-right { display: flex; align-items: center; gap: 15px; }
.welcome-text { font-weight: 600; color: #92400e; }
.btn-login, .btn-register {
    background: transparent;
    color: #92400e;
    border: 1px solid #92400e;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}
.btn-login:hover, .btn-register:hover { background: #92400e; color: white; }
.user-menu { display: flex; gap: 10px; }
.user-menu button {
    background: rgba(146, 64, 14, 0.1);
    color: #92400e;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}
.user-menu button:hover { background: #92400e; color: white; }
/* 主容器 */
.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}
/* 侧边栏 */
.sidebar {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}
.board-section h3, .update-log-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid #fde68a;
}
.board-section ul { list-style: none; }
.board-section li {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s;
    color: var(--text-secondary);
}
.board-section li:hover { background: #fef3c7; color: #92400e; }
.board-section li.active { background: #f59e0b; color: white; }
/* 主内容区 */
.main-content-area {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    min-height: 500px;
}
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.toolbar h2 { color: var(--text); }
/* 按钮 */
.btn-primary {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-primary:hover { background: #d97706; }
.btn-outline {
    background: transparent;
    color: #92400e;
    border: 1px solid #92400e;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}
.btn-outline:hover { background: #92400e; color: white; }
.btn-sm { padding: 5px 12px; font-size: 13px; margin-left: 5px; }
.btn-danger { background: #ef4444; color: white; border: none; padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-danger:hover { background: #dc2626; }
/* 帖子列表 */
.post-list { min-height: 400px; }
.post-item {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}
.post-item:hover { background: #fef3c7; }
.post-item:last-child { border-bottom: none; }
.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}
.post-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
/* 管理员红色高亮 */
.admin-name { color: #ef4444 !important; font-weight: 700; }
/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.modal-content {
    background: white;
    margin: 3% auto;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-content.small { max-width: 400px; }
.modal-content.medium { max-width: 600px; }
.modal-content.large { max-width: 900px; }
@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
}
.close:hover { color: var(--text); }
/* 表单 */
form input, form textarea, form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
form input:focus, form textarea:focus, form select:focus { border-color: #f59e0b; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
/* 排版模式选择器 */
.layout-mode-selector {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}
.layout-mode-selector span {
    font-weight: 700;
    color: #92400e;
    font-size: 14px;
    margin-right: 10px;
}
.mode-btn {
    background: white;
    border: 2px solid transparent;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    border-color: #fbbf24;
}
.mode-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}
/* 文件上传区 */
.file-upload-section {
    margin: 15px 0;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
}
.file-upload-section button { margin-right: 10px; margin-bottom: 10px; }
.upload-file-list { margin-top: 10px; }
.uploaded-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 13px;
}
/* 帖子详情 */
.post-detail { padding: 10px; }
.post-detail-title { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.post-detail-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    align-items: center;
}
.post-detail-body {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    min-height: 200px;
}
.post-detail-body img { max-width: 100%; border-radius: 8px; margin: 15px 0; }
/* 互动按钮 */
.action-bar {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.action-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}
.action-btn:hover { border-color: #f59e0b; color: #92400e; }
.action-btn.active { background: #f59e0b; color: white; border-color: #f59e0b; }
/* 评论区 */
.comment-section { margin-top: 20px; }
.comment-section h4 { margin-bottom: 15px; }
.comment-item {
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #f59e0b;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}
.comment-body { font-size: 14px; color: var(--text); line-height: 1.6; }
.comment-actions { margin-top: 8px; }
.reply-btn {
    background: none;
    border: none;
    color: #f59e0b;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
}
.reply-btn:hover { text-decoration: underline; }
.reply-input-box {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
}
.reply-input-box textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
    resize: vertical;
}
.comment-reply {
    margin-top: 10px;
    margin-left: 20px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 2px solid #fbbf24;
}
.comment-form { display: flex; gap: 10px; margin-top: 20px; }
.comment-form textarea { flex: 1; height: 80px; margin-bottom: 0; resize: vertical; }
/* 个人中心标签 */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    flex-wrap: wrap;
}
.tab-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 14px;
}
.tab-btn.active { background: #f59e0b; color: white; border-color: #f59e0b; }
/* 用户资料 */
.user-profile-view { padding: 10px; }
.profile-header { display: flex; gap: 20px; margin-bottom: 20px; }
.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.profile-info { flex: 1; }
.profile-info h2 { margin-bottom: 10px; }
.profile-meta { display: flex; gap: 15px; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; flex-wrap: wrap; }
.profile-bio { color: var(--text-secondary); font-style: italic; }
.profile-stats {
    display: flex;
    gap: 30px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 20px;
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 24px; color: #92400e; }
.stat-item span { font-size: 13px; color: var(--text-secondary); }
.profile-actions { display: flex; gap: 10px; }
/* 好友列表 */
.friend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 10px;
}
.friend-item span { flex: 1; }
/* 对话式私信 */
.conversation-header {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}
.conversation-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #fafaf9;
    border-radius: 12px;
    margin-bottom: 15px;
    min-height: 200px;
}
.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.message-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-bottom-right-radius: 4px;
}
.message-bubble.received {
    align-self: flex-start;
    background: white;
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}
.conversation-input {
    display: flex;
    gap: 10px;
}
.conversation-input textarea {
    flex: 1;
    height: 60px;
    margin-bottom: 0;
    resize: vertical;
}
/* 设置表单 */
.settings-form { padding: 10px; }
.settings-form h3 { margin: 20px 0 10px; color: var(--text); font-size: 16px; }
.settings-form p { margin: 8px 0; color: var(--text-secondary); }
/* 经验值进度条 */
.exp-bar {
    width: 100%;
    height: 20px;
    background: #e7e5e4;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}
/* 管理员表格 */
.admin-section { padding: 10px; }
.admin-section h3 { margin-bottom: 15px; color: var(--text); }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.admin-table th, .admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.admin-table th { background: #fef3c7; font-weight: 600; }
.admin-table select { padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; margin-right: 5px; }
.admin-board-form {
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}
.admin-board-form input { margin-bottom: 0; flex: 1; }
/* 文件管理器 */
.admin-file-manager { padding: 10px; }
.file-path-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 10px;
}
.file-actions { margin-bottom: 15px; }
/* 存储信息 */
.storage-info {
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 20px;
}
.storage-info h4 { margin-bottom: 10px; color: #92400e; }
.storage-info p { margin: 5px 0; font-size: 14px; }
/* 更新日志 */
.update-log-section { margin-top: 20px; }
.update-log-item {
    padding: 8px 0;
    border-bottom: 1px solid #fef3c7;
    font-size: 13px;
    color: var(--text-secondary);
}
.update-log-item strong { color: #f59e0b; }
/* Quill 编辑器 */
#editor-container {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
}
.ql-toolbar { border-radius: 8px 8px 0 0 !important; }
.ql-container { border-radius: 0 0 8px 8px !important; font-size: 15px !important; }
/* 空状态 */
.empty-tip { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
/* 响应式 */
@media (max-width: 768px) {
    .header { flex-direction: column; gap: 10px; padding: 12px; }
    .header-center { margin: 0; width: 100%; }
    .container { grid-template-columns: 1fr; padding: 10px; }
    .sidebar { width: 100%; }
    .action-bar { flex-wrap: wrap; }
    .modal-content { width: 95%; margin: 5% auto; }
    .profile-header { flex-direction: column; }
    .profile-stats { flex-wrap: wrap; }
}