/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #5B9BD5;
    --primary-light: #E8F1FB;
    --primary-dark: #3A7BC8;
    --accent: #7BC67E;
    --accent-light: #E8F5E9;
    --text-main: #2C3E50;
    --text-sub: #7F8C8D;
    --text-light: #BDC3C7;
    --bg-page: #F5F7FA;
    --bg-card: #FFFFFF;
    --border: #ECEFF1;
    --shadow: 0 2px 12px rgba(91, 155, 213, 0.08);
    --shadow-hover: 0 4px 20px rgba(91, 155, 213, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --tab-height: 60px;
    --header-height: 52px;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--text-main);
    background: var(--bg-page);
    overflow-x: hidden;
}

body {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background: var(--bg-page);
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; border: none; }

/* ===== 顶部导航 ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(91, 155, 213, 0.3);
}

.app-header .back-btn {
    position: absolute;
    left: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
}

.app-header .back-btn:active { background: rgba(255,255,255,0.2); }

.app-header .header-right {
    position: absolute;
    right: 12px;
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
}

.icon-btn:active { background: rgba(255,255,255,0.2); }

/* ===== 主内容区 ===== */
.app-content {
    padding-bottom: calc(var(--tab-height) + 20px);
    min-height: calc(100vh - var(--header-height));
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 底部导航 ===== */
.app-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--tab-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    border-top: 1px solid var(--border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-light);
    font-size: 11px;
    transition: color 0.2s;
    position: relative;
}

.tab-item .tab-icon {
    font-size: 22px;
    line-height: 1;
}

.tab-item.active {
    color: var(--primary);
}

.tab-item.active .tab-icon {
    transform: scale(1.1);
}

.tab-publish {
    position: relative;
}

.tab-publish .tab-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-top: -20px;
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.4);
}

/* ===== 分类标签 ===== */
.category-bar {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-tag {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-sub);
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.category-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(91, 155, 213, 0.3);
}

/* ===== 壁纸瀑布流 ===== */
.wallpaper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px;
}

.wallpaper-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
}

.wallpaper-card:active { transform: scale(0.97); }

.wallpaper-card .wp-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: #eee;
}

.wallpaper-card .wp-info {
    padding: 8px 10px;
}

.wallpaper-card .wp-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallpaper-card .wp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-light);
}

.wallpaper-card .wp-meta .like {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ===== 文章列表 ===== */
.article-list {
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    gap: 12px;
}

.article-card:active { transform: scale(0.98); }

.article-card .art-cover {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.article-card .art-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.article-card .art-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .art-summary {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card .art-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-light);
}

.article-card .art-footer .author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card .art-footer .stats {
    display: flex;
    gap: 10px;
}

.article-card .art-cat {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 10px;
    margin-right: 6px;
}

/* ===== 交流帖子 ===== */
.post-list {
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.post-card:active { transform: scale(0.99); }

.post-card .post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.post-card .post-user {
    flex: 1;
}

.post-card .post-user .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.post-card .post-user .time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.post-card .post-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
}

.post-card .post-image {
    margin-top: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-height: 300px;
}

.post-card .post-image img {
    width: 100%;
    object-fit: cover;
}

.post-card .post-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.post-card .post-footer .action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-sub);
}

.post-card .post-footer .action.liked { color: #E74C3C; }

/* ===== 详情页 ===== */
.detail-page {
    padding: 16px;
}

.detail-page .detail-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 12px;
}

.detail-page .detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-page .detail-meta .author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
}

.detail-page .detail-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.detail-page .detail-image img {
    width: 100%;
}

.detail-page .detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-page .detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.3);
}

.btn-primary:active { transform: scale(0.97); }

.btn-outline {
    background: var(--bg-card);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:active { background: var(--primary-light); }

.btn-like {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-like.liked {
    background: #FDE8E8;
    color: #E74C3C;
}

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

.comment-section .section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

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

.comment-item .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-item .comment-body {
    flex: 1;
}

.comment-item .comment-user {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.comment-item .comment-text {
    font-size: 13px;
    color: var(--text-main);
    margin-top: 4px;
    line-height: 1.6;
}

.comment-item .comment-time {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 4px;
}

.comment-input-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 100;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.comment-input-bar input {
    flex: 1;
    height: 38px;
    padding: 0 16px;
    border-radius: 19px;
    background: var(--bg-page);
    font-size: 14px;
    color: var(--text-main);
}

.comment-input-bar .send-btn {
    width: 60px;
    height: 38px;
    border-radius: 19px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-input-bar .send-btn:active { background: var(--primary-dark); }

/* ===== 发布表单 ===== */
.publish-page {
    padding: 16px;
}

.publish-page .form-group {
    margin-bottom: 18px;
}

.publish-page .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}

.publish-page .form-label .required {
    color: #E74C3C;
    margin-left: 2px;
}

.publish-page input[type="text"],
.publish-page textarea,
.publish-page select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.publish-page input[type="text"]:focus,
.publish-page textarea:focus,
.publish-page select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

.publish-page textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.7;
}

.publish-page .upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-card);
}

.publish-page .upload-area:active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.publish-page .upload-area .upload-icon {
    font-size: 40px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.publish-page .upload-area .upload-text {
    font-size: 13px;
    color: var(--text-sub);
}

.publish-page .upload-area .upload-hint {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.publish-page .preview-img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    max-height: 300px;
    object-fit: cover;
}

.publish-page .type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.publish-page .type-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
    transition: all 0.2s;
}

.publish-page .type-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.publish-page .submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(91, 155, 213, 0.35);
    margin-top: 8px;
}

.publish-page .submit-btn:active { transform: scale(0.98); }

.publish-page .submit-btn:disabled {
    opacity: 0.6;
}

/* ===== 加载与空状态 ===== */
.loading {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 13px;
}

.loading .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    font-size: 50px;
    margin-bottom: 12px;
}

.empty-state .empty-text {
    font-size: 14px;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    max-width: 80%;
    text-align: center;
}

.toast.show { opacity: 1; }

/* ===== 横幅 ===== */
.banner {
    margin: 12px;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, #7EB8E8 50%, var(--accent) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.banner .banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner .banner-desc {
    font-size: 12px;
    opacity: 0.9;
}

/* ===== 下拉刷新提示 ===== */
.refresh-tip {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 置顶标记 ===== */
.top-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 600;
    vertical-align: middle;
}

/* ===== 弹窗 ===== */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    width: 85%;
    max-width: 360px;
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-main);
}

.modal-tabs {
    display: flex;
    margin-bottom: 20px;
    background: var(--bg-page);
    border-radius: 10px;
    padding: 4px;
}

.modal-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    color: var(--text-sub);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-tab.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.modal-box .form-group {
    margin-bottom: 14px;
}

.modal-box input[type="text"],
.modal-box input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--bg-page);
    border: 1px solid transparent;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s;
}

.modal-box input:focus {
    border-color: var(--primary);
    background: #fff;
}

.modal-box .submit-btn {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(91,155,213,0.3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
}

.modal-close:active { background: var(--bg-page); }

/* ===== 个人中心 ===== */
.user-center {
    padding: 16px;
}

.user-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(91,155,213,0.3);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info { flex: 1; }

.user-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-id {
    font-size: 12px;
    opacity: 0.8;
}

.user-menu {
    margin-top: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

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

.user-menu-item:active { background: var(--bg-page); }

.user-menu-item .arrow {
    margin-left: auto;
    color: var(--text-light);
    font-size: 18px;
}

/* ===== 发布页登录提示 ===== */
.publish-page .login-tip {
    text-align: center;
    padding: 60px 20px;
}

/* ===== 头部登录按钮 ===== */
.app-header .icon-btn.login-btn {
    width: auto;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
}

/* ===== 头部发布按钮 ===== */
.app-header .icon-btn.publish-header-btn {
    width: auto;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,0.25);
    font-weight: 500;
}

.app-header .icon-btn.publish-header-btn:active {
    background: rgba(255,255,255,0.4);
}

/* ===== 我的发布列表 ===== */
#myPublishList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#myPublishList .article-card {
    margin: 0;
}

/* ===== 个人中心未登录卡片 ===== */
.user-card {
    display: flex;
}

/* ===== 搜索页面 ===== */
.search-page {
    padding: 12px;
}

.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-box input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-main);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91,155,213,0.1);
}

.search-btn {
    width: 70px;
    height: 40px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.search-btn:active { background: var(--primary-dark); }

.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar { display: none; }

.search-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text-sub);
    font-size: 13px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.search-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.search-section {
    margin-bottom: 20px;
}

.search-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-left: 4px;
}

/* 搜索-壁纸网格 */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.search-wp-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.search-wp-item:active { transform: scale(0.97); }

.search-wp-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: #eee;
}

.search-wp-title {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 搜索-文章列表 */
.search-art-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.search-art-item:active { transform: scale(0.98); }

.search-art-cover {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-art-placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.search-art-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.search-art-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-art-summary {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.search-art-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 搜索-动态列表 */
.search-post-item {
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.search-post-item:active { transform: scale(0.98); }

.search-post-content {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-post-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 8px;
}

.search-post-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== 加载更多按钮 ===== */
.load-more-wrap {
    text-align: center;
    padding: 20px 16px;
}

.load-more-btn {
    padding: 10px 40px;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:active {
    background: var(--primary);
    color: #fff;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== 审核状态标签 ===== */
.badge-audit-pending {
    background: #FEF5E7;
    color: #F39C12;
}

.badge-audit-pass {
    background: #E8F5E9;
    color: #27AE60;
}

.badge-audit-reject {
    background: #FDE8E8;
    color: #E74C3C;
}

/* ===== 一言卡片 ===== */
.hitokoto-card {
    margin: 12px 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: 14px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s;
}

.hitokoto-card:active {
    transform: scale(0.98);
}

.hitokoto-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
}

.hitokoto-text::before {
    content: '"';
    font-size: 20px;
    color: var(--primary);
    margin-right: 2px;
}

.hitokoto-text::after {
    content: '"';
    font-size: 20px;
    color: var(--primary);
    margin-left: 2px;
}

.hitokoto-from {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-light);
    text-align: right;
}

.hitokoto-from::before {
    content: '—— ';
}
