/* ========================================
   蓝易网 - 主样式表
   ======================================== */

/* 重置 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; }

/* 顶部状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #eee;
}
.status-left { display: flex; align-items: center; gap: 8px; }
.status-right { display: flex; align-items: center; gap: 12px; }

/* 顶部导航 */
.top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-nav-left { display: flex; align-items: center; gap: 12px; }
.app-logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-nav-right { display: flex; align-items: center; gap: 16px; }
.top-nav-btn {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    position: relative;
}
.top-nav-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    background: #fff;
    overflow-x: auto;
    padding: 0 12px;
    border-bottom: 1px solid #eee;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}
.category-tab.active {
    color: #e4393c;
    font-weight: 600;
}
.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #e4393c;
    border-radius: 2px;
}

/* 应用卡片 */
.app-list { padding: 12px; }
.app-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info { flex: 1; min-width: 0; }
.app-title-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.app-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.tag-new { background: #4caf50; color: #fff; }
.tag-first { background: #2196f3; color: #fff; }
.tag-official { background: #4caf50; color: #fff; }
.app-meta { font-size: 12px; color: #999; margin-bottom: 6px; }
.app-desc {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-download {
    padding: 6px 16px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 16px;
    font-size: 12px;
    flex-shrink: 0;
    align-self: center;
    cursor: pointer;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 8px 0;
    z-index: 1000;
}
.bottom-nav.hide-nav { display: none; }
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 10px;
    cursor: pointer;
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: #e4393c; }
.nav-item.active i { color: #e4393c; }
.nav-center { position: relative; top: -20px; }
.nav-center-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 发布弹窗 */
.publish-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: flex-end;
}
.publish-modal.show { display: flex; }
.publish-panel {
    background: #fff;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.publish-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.publish-title { font-size: 18px; font-weight: 600; }
.publish-close { font-size: 24px; color: #999; cursor: pointer; }
.publish-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.publish-tab {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    background: #f5f5f5;
    color: #666;
}
.publish-tab.active { background: #e4393c; color: #fff; }
.publish-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.publish-action { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.publish-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}
.publish-action-icon.post { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.publish-action-icon.app { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.publish-action-icon.site { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.publish-action-icon.task { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.publish-action-label { font-size: 12px; color: #666; }

/* 分类页面 */
.category-section { padding: 16px; }
.category-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-section-title i { color: #e4393c; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.forum-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
}
.forum-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #e4393c;
}
.forum-info { flex: 1; }
.forum-name { font-size: 14px; font-weight: 600; color: #333; }
.forum-stats { font-size: 12px; color: #999; margin-top: 4px; }

/* 发现页面 */
.discover-header { padding: 16px; background: #fff; border-bottom: 1px solid #eee; }
.discover-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px 0; }
.discover-tool { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.discover-tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}
.discover-tool-label { font-size: 12px; color: #666; }

/* 消息列表 */
.message-list { background: #fff; }
.message-item { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid #f0f0f0; }
.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.message-sender { font-weight: 600; }
.message-time { font-size: 12px; color: #999; }
.message-text { font-size: 13px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 个人中心 */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    color: #fff;
}
.profile-user { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.profile-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 12px;
}
.profile-stats { display: flex; gap: 24px; margin-bottom: 16px; }
.profile-stat { text-align: center; }
.profile-stat-value { font-size: 18px; font-weight: 600; }
.profile-stat-label { font-size: 12px; opacity: 0.8; }
.profile-jiamo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}
.profile-jiamo-label { font-size: 14px; }
.profile-jiamo-value { font-size: 16px; font-weight: 600; }

/* 功能菜单 */
.menu-section { padding: 16px; }
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}
.menu-item-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}
.menu-item-label { font-size: 12px; color: #666; }

.menu-list { background: #fff; border-radius: 12px; }
.menu-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}
.menu-list-item:last-child { border-bottom: none; }
.menu-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    margin-right: 12px;
}
.menu-list-text { flex: 1; font-size: 15px; }
.menu-list-arrow { color: #ccc; }

/* 夜间模式 */
.night-mode-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    margin-top: 12px;
}

/* 表单样式 */
.form-container { padding: 20px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}
.form-input:focus { outline: none; border-color: #667eea; }
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.btn-block { width: 100%; }

/* 搜索框 */
.search-box { position: relative; flex: 1; max-width: 300px; }
.search-input {
    width: 100%;
    padding: 8px 16px 8px 36px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 14px;
}
.search-input::placeholder { color: rgba(255,255,255,0.7); }
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
}

/* 登录/注册页 */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.auth-header { padding: 40px 20px; text-align: center; color: #fff; }
.auth-logo { font-size: 32px; font-weight: bold; margin-bottom: 10px; }
.auth-form { flex: 1; background: #fff; border-radius: 24px 24px 0 0; padding: 30px; }
.auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 2px solid #eee; }
.auth-tab {
    flex: 1;
    padding-bottom: 12px;
    text-align: center;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    position: relative;
}
.auth-tab.active { color: #667eea; font-weight: 600; }
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state i { font-size: 60px; margin-bottom: 20px; }

/* 加载更多 */
.load-more { text-align: center; padding: 20px; color: #999; font-size: 13px; }

/* ========== 暗色模式 ========== */
body.dark-mode {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
}
body.dark-mode .app-container { background: #1a1a2e !important; }
body.dark-mode .bottom-nav {
    background: #16213e !important;
    border-top-color: #2a2a4a !important;
}
body.dark-mode .bottom-nav .nav-item span { color: #888 !important; }
body.dark-mode .bottom-nav .nav-item.active span,
body.dark-mode .bottom-nav .nav-item.active i { color: #667eea !important; }
body.dark-mode .top-nav { background: #16213e !important; }
body.dark-mode .menu-section { background: transparent !important; }
body.dark-mode .menu-list,
body.dark-mode .night-mode-toggle { background: #16213e !important; }
body.dark-mode .menu-list-text,
body.dark-mode .night-mode-toggle span { color: #e0e0e0 !important; }
body.dark-mode .menu-list-arrow { color: #555 !important; }
body.dark-mode .profile-header {
    background: linear-gradient(135deg, #2a2a5e 0%, #1a1a3e 100%) !important;
}
body.dark-mode .profile-stat-value,
body.dark-mode .profile-name { color: #e0e0e0 !important; }
body.dark-mode .profile-stat-label { color: #aaa !important; }
body.dark-mode .profile-badge {
    background: rgba(102,126,234,0.3) !important;
    color: #8ea4f0 !important;
}
body.dark-mode .profile-jiamo { background: rgba(102,126,234,0.15) !important; }
body.dark-mode .profile-jiamo-label { color: #8ea4f0 !important; }
body.dark-mode .post-card,
body.dark-mode .app-card,
body.dark-mode .category-item,
body.dark-mode .search-box,
body.dark-mode .tool-item,
body.dark-mode .online-tool-card {
    background: #16213e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}
body.dark-mode .post-title,
body.dark-mode .app-title { color: #e0e0e0 !important; }
body.dark-mode .post-meta,
body.dark-mode .app-meta,
body.dark-mode .post-content { color: #999 !important; }
body.dark-mode .form-input,
body.dark-mode textarea,
body.dark-mode select {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}
body.dark-mode .tab-bar { background: #16213e !important; }
body.dark-mode .tab-item { color: #888 !important; }
body.dark-mode .tab-item.active {
    color: #667eea !important;
    border-bottom-color: #667eea !important;
}
body.dark-mode .section-title { color: #e0e0e0 !important; }
body.dark-mode .wallet-card {
    background: linear-gradient(135deg, #2a2a5e 0%, #1a1a3e 100%) !important;
}
body.dark-mode .order-card,
body.dark-mode .card-key-item {
    background: #16213e !important;
    border-color: #2a2a4a !important;
}
body.dark-mode .settings-section-title { color: #999 !important; }
body.dark-mode .toggle-switch { background: #444 !important; }
body.dark-mode .toggle-switch.active { background: #667eea !important; }
body.dark-mode .about-card { background: #16213e !important; }
body.dark-mode .chat-bubble {
    background: #16213e !important;
    color: #e0e0e0 !important;
}
body.dark-mode .chat-input-area {
    background: #16213e !important;
    border-top-color: #2a2a4a !important;
}
body.dark-mode .comment-item {
    background: #16213e !important;
    border-color: #2a2a4a !important;
}
body.dark-mode .auth-container {
    background: linear-gradient(135deg, #2a2a5e 0%, #1a1a3e 100%) !important;
}

/* Toggle开关组件 */
.toggle-switch {
    width: 50px;
    height: 28px;
    background: #ccc;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle-switch.active { background: #667eea; }
.toggle-switch::after {
    content: '';
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}
.toggle-switch.active::after { transform: translateX(22px); }

/* 设置页子页面 */
.settings-form { padding: 20px; }
.settings-form .form-group { margin-bottom: 20px; }
.settings-form .form-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}
body.dark-mode .settings-form .form-label { color: #aaa !important; }
.settings-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 3px solid #667eea;
}
.avatar-upload { text-align: center; margin-bottom: 20px; }
.avatar-upload-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #667eea;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}
.btn-danger {
    width: 100%;
    padding: 14px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 30px;
}
.about-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px;
}
.about-logo { font-size: 48px; color: #667eea; margin-bottom: 12px; }
.about-name { font-size: 20px; font-weight: bold; margin-bottom: 8px; }
.about-version { color: #999; font-size: 14px; margin-bottom: 20px; }
.about-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-links { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.about-links a { color: #667eea; font-size: 14px; }
.settings-section-title { padding: 12px 20px 6px; font-size: 13px; color: #999; }
.privacy-option { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.privacy-option span { font-size: 14px; }
.cache-info { text-align: center; padding: 40px 20px; }
.cache-size { font-size: 48px; font-weight: bold; color: #667eea; }
.cache-unit { font-size: 16px; color: #999; }

/* ========== 响应式适配 ========== */

/* ===== 手机 (<768px) ===== */
@media (max-width: 767px) {
    body { padding-bottom: 60px; }
    .pc-wrapper { max-width: 100%; }
    .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; }
    .bottom-nav.hide-nav { display: none; }
    .publish-actions { grid-template-columns: repeat(4, 1fr); }
    .menu-grid { grid-template-columns: repeat(4, 1fr); }
    .discover-tools { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-stats { gap: 16px; }
    .status-bar { display: flex; }
    .top-nav { border-radius: 0; }
}

/* 小屏手机 (<360px) */
@media (max-width: 359px) {
    .publish-actions { grid-template-columns: repeat(2, 1fr) !important; }
    .menu-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .discover-tools { grid-template-columns: repeat(3, 1fr) !important; }
    .category-grid { grid-template-columns: 1fr !important; }
    .profile-stats { gap: 12px !important; }
    .profile-stat-value { font-size: 15px !important; }
    .profile-header { padding: 20px 16px !important; }
    .top-nav { padding: 10px 12px !important; }
    .app-logo { font-size: 16px !important; }
    .search-box { max-width: 200px !important; }
}

/* 横屏手机 */
@media (max-width: 767px) and (orientation: landscape) {
    .profile-header { padding: 16px 20px !important; }
    .profile-stats { gap: 16px !important; }
    .menu-grid { grid-template-columns: repeat(5, 1fr) !important; }
    .bottom-nav { padding: 4px 0 !important; }
    .nav-item { gap: 2px !important; }
    .nav-item i { font-size: 16px !important; }
}

/* ===== 平板 (768px-1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    body { padding-bottom: 60px; background: #e8e8e8; }
    .pc-wrapper {
        max-width: 720px;
        margin: 0 auto;
        min-height: 100vh;
        background: #f5f5f5;
        box-shadow: 0 0 30px rgba(0,0,0,0.1);
    }
    body.dark-mode .pc-wrapper { background: #1a1a2e; }
    body.dark-mode { background: #0d0d1a !important; }
    .bottom-nav {
        max-width: 720px;
        left: 50%;
        transform: translateX(-50%);
        position: fixed;
        bottom: 0;
    }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .menu-grid { grid-template-columns: repeat(4, 1fr); }
    .publish-actions { grid-template-columns: repeat(4, 1fr); }
    .discover-tools { grid-template-columns: repeat(4, 1fr); }
    .form-container { max-width: 500px; margin: 0 auto; }
    .settings-form { max-width: 500px; margin: 0 auto; }
    .profile-header { padding: 40px 30px; }
    .profile-stats { gap: 32px; }
}

/* ===== 桌面 (1024px+) ===== */
@media (min-width: 1024px) {
    body { padding-bottom: 60px; background: #e8e8e8; }
    .pc-wrapper {
        max-width: 960px;
        margin: 0 auto;
        min-height: 100vh;
        background: #f5f5f5;
        box-shadow: 0 0 40px rgba(0,0,0,0.1);
    }
    body.dark-mode .pc-wrapper { background: #1a1a2e; }
    body.dark-mode { background: #0d0d1a !important; }
    /* 桌面端底部导航保持底部，不拖到顶部 */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        max-width: 960px;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        border-radius: 0;
    }
    body.dark-mode .bottom-nav { background: #16213e; border-top-color: #2a2a4a; }
    .bottom-nav .nav-center { top: -20px; }
    .nav-center-btn { width: 50px; height: 50px; font-size: 24px; box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
    .nav-item { font-size: 10px; }
    .nav-item i { font-size: 20px; }
    /* 隐藏手机状态栏 */
    .status-bar { display: none; }
    /* 桌面网格增强 */
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .menu-grid { grid-template-columns: repeat(6, 1fr); }
    .publish-actions { grid-template-columns: repeat(4, 1fr); }
    .discover-tools { grid-template-columns: repeat(6, 1fr); }
    .app-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; }
    .app-card { margin-bottom: 0; }
    /* 表单居中 */
    .form-container { max-width: 600px; margin: 0 auto; }
    .settings-form { max-width: 600px; margin: 0 auto; }
    /* 个人中心 */
    .profile-header { padding: 50px 40px; border-radius: 0; }
    .profile-stats { gap: 40px; }
    .profile-user { max-width: 600px; margin: 0 auto 20px; }
    .profile-jiamo { max-width: 600px; margin: 0 auto; }
    /* 消息列表 */
    .message-list { max-width: 800px; margin: 0 auto; }
    /* 帖子列表 */
    .post-list { max-width: 800px; margin: 0 auto; }
    /* 聊天 */
    .chat-container { max-width: 800px; margin: 0 auto; }
    .chat-message-content { max-width: 50%; }
    /* 状态栏桌面隐藏 */
    .status-bar { display: none; }
    /* 顶部导航增强 */
    .top-nav { border-radius: 0; padding: 14px 24px; }
    .search-box { max-width: 400px; }
}

/* ===== 宽屏桌面 (1400px+) ===== */
@media (min-width: 1400px) {
    .pc-wrapper { max-width: 1200px; }
    .bottom-nav { max-width: 1200px; }
    .category-grid { grid-template-columns: repeat(5, 1fr); }
    .menu-grid { grid-template-columns: repeat(8, 1fr); }
    .discover-tools { grid-template-columns: repeat(8, 1fr); }
    .app-list { grid-template-columns: repeat(3, 1fr); }
    .chat-container { max-width: 1000px; }
    .post-list { max-width: 1000px; }
    .message-list { max-width: 1000px; }
    .form-container { max-width: 700px; }
    .settings-form { max-width: 700px; }
}

/* ===== 超宽屏 (1900px+) ===== */
@media (min-width: 1900px) {
    .pc-wrapper { max-width: 1400px; }
    .bottom-nav { max-width: 1400px; }
    .category-grid { grid-template-columns: repeat(6, 1fr); }
    .app-list { grid-template-columns: repeat(4, 1fr); }
    .chat-container { max-width: 1200px; }
    .post-list { max-width: 1200px; }
    .message-list { max-width: 1200px; }
}

/* 打印样式 */
@media print {
    .bottom-nav, .top-nav, .status-bar { display: none !important; }
    body { padding: 0; background: #fff; }
    .pc-wrapper { max-width: 100%; box-shadow: none; margin: 0; }
}
