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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f6f8;
    color: #333;
    line-height: 1.6;
    padding-bottom: 70px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

/* ===== 顶部导航栏 ===== */
.srf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    width: 100%;
}

/* 当没有左右元素时，中间内容居中 */
.srf-header:has(.srf-header-center:only-child) {
    justify-content: center;
}

/* 左右自定义元素样式 */
.srf-topbar-left,
.srf-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.srf-topbar-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.srf-topbar-item:hover {
    background: rgba(0,0,0,0.05);
    transform: scale(1.05);
}

.srf-topbar-item:active {
    transform: scale(0.95);
}

.srf-topbar-icon {
    font-size: 18px;
}

.srf-topbar-text {
    font-size: 14px;
}

/* 小屏幕自适应 */
@media (max-width: 480px) {
    .srf-topbar-item {
        padding: 4px 8px;
        font-size: 12px;
    }
    .srf-topbar-icon {
        font-size: 16px;
    }
    .srf-topbar-text {
        font-size: 12px;
    }
    .srf-topbar-left,
    .srf-topbar-right {
        gap: 6px;
    }
}

.srf-header-left {
    display: flex;
    align-items: center;
}

.srf-home-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #3f51b5;
    cursor: pointer;
    transition: all 0.2s;
}

.srf-home-btn:active {
    transform: scale(0.95);
}

.srf-home-btn .icon {
    font-size: 18px;
}

.srf-header-center {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.srf-site-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.srf-site-icon {
    font-size: 28px;
}

.srf-site-name {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 小屏幕自适应 */
@media (max-width: 480px) {
    .srf-site-name {
        font-size: 18px;
    }
    .srf-site-icon {
        font-size: 22px;
    }
    .srf-site-logo {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 360px) {
    .srf-site-name {
        font-size: 16px;
    }
}

.srf-header-right {
    display: flex;
    align-items: center;
}

.srf-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.srf-search-btn:active {
    transform: scale(0.9);
    background: #e0e0e0;
}

/* ===== 文章列表 ===== */
.srf-content {
    padding: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

/* 统一所有页面容器间距 */
.srf-page-container,
.srf-profile-page,
.srf-chat-page,
.srf-wallet-page,
.srf-publish-page,
.srf-auth-page-new {
    padding: 12px;
    box-sizing: border-box;
    max-width: 100%;
}

/* 统一卡片间距 */
.srf-post-card,
.srf-feature-card,
.srf-quick-links-card,
.srf-stats-card,
.srf-admin-card,
.srf-accordion-card,
.srf-wallet-balance-card,
.srf-wallet-form-card,
.srf-chat-user-card {
    margin-bottom: 8px;
    box-sizing: border-box;
}

/* 统一网格间距 */
.srf-quick-links-grid,
.srf-categories-grid-inline,
.srf-wallet-balance-grid {
    gap: 8px;
    margin-bottom: 8px;
}

/* 统一表单间距 */
.srf-form-group,
.srf-input-group {
    margin-bottom: 8px;
}

.srf-form-input,
.srf-input-new,
.srf-form-textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 6px;
}

/* 统一按钮间距 */
.srf-submit-btn,
.srf-auth-btn-new,
.srf-logout-btn,
.srf-admin-btn {
    margin-top: 8px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* 统一标题间距 */
.srf-profile-name,
.srf-wallet-title,
.srf-chat-title {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* 统一分割线 */
.srf-stats-divider {
    margin: 0 8px;
}

/* 小屏幕自适应 */
@media (max-width: 480px) {
    .srf-content,
    .srf-page-container,
    .srf-profile-page,
    .srf-chat-page,
    .srf-wallet-page,
    .srf-publish-page {
        padding: 8px;
    }

    .srf-post-card,
    .srf-feature-card,
    .srf-quick-links-card,
    .srf-stats-card {
        margin-bottom: 6px;
    }

    .srf-quick-links-grid,
    .srf-categories-grid-inline {
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .srf-content,
    .srf-page-container,
    .srf-profile-page,
    .srf-chat-page,
    .srf-wallet-page,
    .srf-publish-page {
        padding: 6px;
    }

    .srf-post-card,
    .srf-feature-card,
    .srf-quick-links-card,
    .srf-stats-card {
        margin-bottom: 5px;
    }
}

.srf-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 8px 11px;
    padding-left: 11px;
    padding-right: 11px;
    margin-bottom: 1px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    max-height: 200px;
    display: flex;
    flex-direction: column;
}

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

.srf-post-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    text-align: center;
    flex-shrink: 0;
}

.srf-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.srf-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.srf-tag-sticky {
    background: linear-gradient(135deg, #f06292 0%, #ec407a 100%);
}

.srf-tag-recommend {
    background: linear-gradient(135deg, #ff8a65 0%, #ff7043 100%);
}

.srf-tag-featured {
    background: linear-gradient(135deg, #ffb74d 0%, #ffa726 100%);
}

.srf-tag-star {
    background: linear-gradient(135deg, #ffd54f 0%, #ffca28 100%);
    color: #f57f17;
}

.srf-tag-essence {
    background: linear-gradient(135deg, #ffcc80 0%, #ffb74d 100%);
    color: #e65100;
}

.srf-tag-selected {
    background: linear-gradient(135deg, #81d4fa 0%, #4fc3f7 100%);
    color: #01579b;
}

/* ===== 文章图片网格 ===== */
.srf-post-images {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 60px;
    height: 60px;
    flex-shrink: 0;
}
.srf-post-images a {
    display: block;
    flex: 1;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}
.srf-post-single-image {
    display: block;
    margin-bottom: 5px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 60px;
    height: 60px;
    flex-shrink: 0;
}
.srf-post-single-image a {
    display: block;
    width: 100%;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}

.srf-post-images img,
.srf-post-single-image img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.srf-post-single-image {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.srf-post-single-image img {
    width: 100%;
    border-radius: 12px;
}

/* ===== 文章分类标签 ===== */
.srf-post-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== 文章附件 ===== */
.srf-post-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 12px;
}

.srf-attachment-icon {
    font-size: 24px;
}

.srf-attachment-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.srf-attachment-size {
    font-size: 13px;
    color: #999;
}

.srf-attachment-download {
    padding: 6px 14px;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: #fff;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== 文章元信息 ===== */
.srf-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.srf-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.srf-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.srf-author-name {
    font-weight: 600;
    color: #666;
}

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

/* ===== 底部导航栏 ===== */
/* ===== 确保底部固定导航栏不挡住内容 ===== */
body {
    padding-bottom: 90px !important;
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
}

/* 底部统计信息区域间距 */
footer .srf-stats-bar,
footer .srf-performance-bar {
    margin-bottom: 10px;
}

/* 确保footer中所有内容不被固定导航栏遮挡 */
.srf-footer-content {
    padding-bottom: 20px;
}

/* 小屏幕自适应 */
@media (max-width: 480px) {
    body {
        padding-bottom: 85px !important;
        padding-bottom: calc(85px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 360px) {
    body {
        padding-bottom: 80px !important;
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

.srf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    overflow: hidden;
    z-index: 99999 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 确保底部导航栏在安全区域内 */
@supports (padding: max(0px)) {
    .srf-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

.srf-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    flex: 1;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srf-nav-item .icon {
    font-size: 22px;
    flex-shrink: 0;
}

.srf-nav-item.active {
    color: #66bb6a;
}

.srf-nav-item .icon {
    font-size: 24px;
}

.srf-nav-publish {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5d6a7 0%, #81c784 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.srf-nav-publish .icon {
    font-size: 26px;
    color: #fff;
}

.srf-nav-publish:active {
    transform: scale(0.9);
}

.srf-nav-publish .icon {
    font-size: 28px;
    color: #fff;
}

/* ===== 文章详情页 ===== */
.srf-single-header {
    background: #fff;
    padding: 20px;
    margin-bottom: 12px;
}

.srf-single-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.5px;
    word-break: break-word;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ffecd2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 16px 20px;
    text-align: center;
    background-color: rgba(102,126,234,0.1);
    border-radius: 14px;
    border-left: 4px solid #667eea;
    border-right: 4px solid #f093fb;
    border-top: 2px solid rgba(102,126,234,0.2);
    box-shadow: 0 4px 16px rgba(102,126,234,0.15), inset 0 1px 0 rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

.srf-single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #999;
}

.srf-single-content {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.srf-single-content img {
    border-radius: 12px;
    margin: 12px 0;
}

.srf-single-content p {
    margin-bottom: 16px;
}

/* ===== 分页 ===== */
/* ========== 分页样式 ========== */
.srf-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px 10px !important;
    margin: 15px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.srf-pagination nav.navigation,
.srf-pagination .navigation {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.srf-pagination .nav-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.srf-pagination a.page-numbers,
.srf-pagination span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35) !important;
    line-height: 1 !important;
}

.srf-pagination a.page-numbers:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5) !important;
    color: #fff !important;
}

.srf-pagination span.page-numbers.current {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.45) !important;
}

.srf-pagination a.prev.page-numbers,
.srf-pagination a.next.page-numbers {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.45) !important;
    font-size: 18px !important;
    padding: 0 12px !important;
    font-weight: 700 !important;
}

.srf-pagination span.page-numbers.dots {
    background: transparent !important;
    box-shadow: none !important;
    color: #999 !important;
    min-width: 24px !important;
    font-size: 16px !important;
}

.srf-pagination h2.screen-reader-text {
    display: none !important;
}

.srf-page-numbers {
    display: flex;
    gap: 8px;
}

.srf-page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.srf-page-number.current {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: #fff;
}

/* ===== 404页面 ===== */
.srf-404 {
    text-align: center;
    padding: 60px 20px;
}

.srf-404-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.srf-404-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.srf-404-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 24px;
}

.srf-404-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: #fff;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
}

/* ===== 搜索框 ===== */
.srf-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    padding: 20px;
}

.srf-search-overlay.show {
    display: block;
}

.srf-search-box {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-top: 60px;
}

.srf-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.srf-search-input:focus {
    border-color: #66bb6a;
}

.srf-search-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.srf-search-submit, .srf-search-cancel {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.srf-search-submit {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: #fff;
}

.srf-search-cancel {
    background: #f0f0f0;
    color: #666;
}

/* ===== 后台设置页面样式 ===== */
.srf-admin-wrap {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.srf-admin-header {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: #fff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.srf-admin-header h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.srf-admin-header p {
    margin: 0;
    opacity: 0.9;
}

.srf-admin-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.srf-admin-card h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.srf-form-group {
    margin-bottom: 20px;
}

.srf-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.srf-form-group input[type="text"],
.srf-form-group input[type="url"],
.srf-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.srf-form-group input[type="text"]:focus,
.srf-form-group input[type="url"]:focus,
.srf-form-group textarea:focus {
    border-color: #66bb6a;
}

.srf-form-group .description {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.srf-upload-preview {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    margin-top: 10px;
    border: 2px solid #e0e0e0;
}

.srf-submit-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.srf-submit-btn:hover {
    opacity: 0.9;
}

/* ===== 文章卡片属性标签（超美化版） ===== */
.srf-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    margin-top: 4px;
}
.srf-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.srf-card-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.6s ease;
}
.srf-card-badge::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}
.srf-card-badge:hover::before {
    left: 100%;
}
.srf-card-badge:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* 置顶 - 红色渐变（超立体） */
.card-badge-sticky {
    background: linear-gradient(135deg, #ff8a80 0%, #ff5252 30%, #d32f2f 70%, #b71c1c 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,82,82,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 精品 - 紫色渐变（超立体） */
.card-badge-boutique {
    background: linear-gradient(135deg, #ce93d8 0%, #ab47bc 30%, #8e24aa 70%, #6a1b9a 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(171,71,188,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 精选 - 金色渐变（超立体） */
.card-badge-selected {
    background: linear-gradient(135deg, #fff59d 0%, #ffee58 30%, #fdd835 70%, #f9a825 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(253,216,53,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 推荐 - 橙色渐变（超立体） */
.card-badge-recommended {
    background: linear-gradient(135deg, #ffcc80 0%, #ffa726 30%, #fb8c00 70%, #ef6c00 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(251,140,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 热门 - 粉红渐变（超立体） */
.card-badge-hot {
    background: linear-gradient(135deg, #f8bbd0 0%, #f06292 30%, #ec407a 70%, #c2185b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(236,64,122,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 最新 - 绿色渐变（超立体） */
.card-badge-new {
    background: linear-gradient(135deg, #a5d6a7 0%, #66bb6a 30%, #43a047 70%, #2e7d32 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(67,160,71,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 原创 - 蓝色渐变（超立体） */
.card-badge-original {
    background: linear-gradient(135deg, #90caf9 0%, #42a5f5 30%, #1e88e5 70%, #1565c0 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30,136,229,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 精华 - 金色渐变（深色，超立体） */
.card-badge-essence {
    background: linear-gradient(135deg, #ffe082 0%, #ffca28 30%, #ffb300 70%, #ff8f00 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,179,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 独家 - 靛蓝渐变（超立体） */
.card-badge-exclusive {
    background: linear-gradient(135deg, #9fa8da 0%, #5c6bc0 30%, #3949ab 70%, #283593 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(57,73,171,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* VIP - 金色渐变（尊贵，超立体） */
.card-badge-vip {
    background: linear-gradient(135deg, #fff9c4 0%, #fff176 20%, #ffd54f 50%, #ffb300 80%, #ff6f00 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,179,0,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,215,0,0.6);
}

/* ===== 响应式：电脑端铺满自适应（手机端样式不受影响）===== */
@media (min-width: 768px) {
    body {
        max-width: 100%;
        margin: 0 auto;
        overflow-x: hidden;
    }

    /* 底部导航栏：背景条铺满全屏，内部图标居中限宽（与顶部导航一致） */
    .srf-bottom-nav {
        max-width: 100%;
        left: 0;
        right: 0;
        transform: none;
        padding-left: max(20px, calc((100vw - 1400px) / 2));
        padding-right: max(20px, calc((100vw - 1400px) / 2));
    }
}

/* 小屏幕手机适配 */
@media (max-width: 360px) {
    .srf-bottom-nav {
        padding: 6px 5px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
    }

    .srf-nav-item {
        padding: 2px 4px;
        font-size: 10px;
        gap: 1px;
    }

    .srf-nav-item .icon {
        font-size: 18px;
    }

    .srf-nav-publish {
        width: 42px;
        height: 42px;
        min-width: 42px;
        margin-top: -16px;
    }

    .srf-nav-publish .icon {
        font-size: 22px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 320px) {
    .srf-bottom-nav {
        padding: 5px 3px;
        padding-bottom: calc(5px + env(safe-area-inset-bottom));
    }

    .srf-nav-item {
        padding: 2px 3px;
        font-size: 9px;
    }

    .srf-nav-item .icon {
        font-size: 16px;
    }

    .srf-nav-publish {
        width: 38px;
        height: 38px;
        min-width: 38px;
        margin-top: -14px;
    }

    .srf-nav-publish .icon {
        font-size: 20px;
    }
}

/* 确保底部导航栏内容不被遮挡 */
body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    overflow-x: hidden;
}

@supports (padding: max(0px)) {
    body {
        padding-bottom: max(60px, env(safe-area-inset-bottom));
    overflow-x: hidden;
}
}

/* ===== 用户中心 - 文章分类展示（强制生效） ===== */
.srf-profile-container .srf-categories-card {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    border: 1px solid #f0f0f0 !important;
    display: block !important;
}

.srf-profile-container .srf-categories-header {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f5f5f5 !important;
    display: block !important;
}

.srf-profile-container .srf-categories-title {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 4px !important;
}

.srf-profile-container .srf-categories-subtitle {
    display: block !important;
    font-size: 12px !important;
    color: #999 !important;
}

.srf-profile-container .srf-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

.srf-profile-container .srf-category-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 8px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: #fff !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    min-height: 100px !important;
    width: auto !important;
    float: none !important;
}

.srf-profile-container .srf-category-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}

.srf-profile-container .srf-category-item:active {
    transform: translateY(0) !important;
}

.srf-profile-container .srf-category-icon {
    font-size: 28px !important;
    margin-bottom: 1px !important;
}

.srf-profile-container .srf-category-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 1px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    color: #fff !important;
}

.srf-profile-container .srf-category-count {
    font-size: 11px !important;
    opacity: 0.9 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    color: #fff !important;
}

.srf-profile-container .srf-no-categories {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 30px !important;
    color: #999 !important;
    font-size: 14px !important;
}

/* 分类展示响应式 */
@media (max-width: 360px) {
    .srf-profile-container .srf-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) {
    .srf-profile-container .srf-categories-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ========== 页面性能信息 ========== */
.srf-performance-info {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 12px 15px !important;
    margin: 10px 15px 15px !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    box-sizing: border-box !important;
}

.srf-performance-item {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.srf-performance-item .icon {
    font-size: 14px !important;
}

.srf-performance-item .value {
    font-weight: 700 !important;
    color: #667eea !important;
}
