/* 广场 页面样式 - 自动抽取自 discover.php */
* {
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: auto !important;
    min-height: 100% !important;
    background: #eef0f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    background: #F5F7FB;
    color: #1A1E2B;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: calc(52px + env(safe-area-inset-bottom));
    word-break: break-word;
    
    
    width: 100% !important;
    position: relative !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.04);
}


@keyframes pageSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-transition {
    animation: pageFadeIn 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in { animation: pageFadeIn 0.3s ease both; }
.slide-down { animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.slide-up { animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.bounce-in { animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
.float-in { animation: floatIn 0.4s ease both; }


a {
    transition: all 0.2s ease;
}
a:active {
    opacity: 0.7;
    transform: scale(0.97);
}


button, [role="button"] {
    transition: all 0.15s ease;
}
button:active, [role="button"]:active {
    transform: scale(0.95);
}


.toast-enter {
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-exit {
    animation: slideDown 0.25s ease reverse forwards;
}




:root {
    --color-primary: #4E6CF7;
    --color-primary-dark: #3D5DE0;
    --color-primary-light: #6783FF;
    --color-primary-bg: rgba(78,108,247,0.08);
    --bg-page: #F5F7FB;
    --bg-card: #FFFFFF;
    --bg-input: #F8FAFC;
    --text-primary: #1A1E2B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --text-white: #FFFFFF;
    --border-color: rgba(0,0,0,0.06);
    --border-light: #E5E7EB;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-btn: 0 4px 14px rgba(78,108,247,0.25);
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --max-width: 100%;
    --bg-image-height: 350px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s cubic-bezier(0.16,1,0.3,1);
}



.sticky-topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    display: flex; align-items: center; justify-content: space-between;
}
.sticky-topbar .back-btn {
    width: 36px; height: 36px; border-radius: 10px;
    background: #f1f5f9; display: flex; align-items: center; justify-content: center;
    color: #475569; text-decoration: none; transition: all .2s;
    border: 1px solid var(--border-light);
}
.sticky-topbar .back-btn:active { transform: scale(0.95); }
.sticky-topbar .topbar-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.sticky-topbar .topbar-spacer { width: 36px; }


.top-tab-bar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-around;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    padding-top: max(12px, env(safe-area-inset-top));
}
.top-tab-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 12px;
    font-size: 12px; color: #6b7280; text-decoration: none;
    transition: all .2s; position: relative;
}
.top-tab-item.active { color: #4E6CF7; font-weight: 700; }
.top-tab-item.active::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 2px; background: #4E6CF7;
}
.top-tab-icon { font-size: 18px; margin-bottom: 1px; }



.masonry-card {
    break-inside: avoid; margin-bottom: 10px;
    border-radius: var(--radius-lg); background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform var(--transition-normal);
}
.masonry-card:active { transform: scale(0.98); }


.feed-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md); margin-bottom: var(--spacing-md);
    overflow: hidden; transition: transform var(--transition-normal);
}
.feed-card:active { transform: scale(0.98); }


.btn-primary {
    background-color: #4E6CF7;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(78, 108, 247, 0.2);
}
.btn-primary:hover {
    background-color: #3D5DE0;
    box-shadow: 0 4px 12px rgba(78, 108, 247, 0.3);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: scale(0.96) translateY(0);
}

.btn-success {
    background-color: #10B981;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
    background-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background-color: #F59E0B;
    color: white;
    border-radius: 12px;
    font-weight: 600;
}
.btn-warning:hover {
    background-color: #D97706;
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.modal-content {
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: #E5E7EB;
    color: #374151;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    color: #4B5563;
    line-height: 1.6;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}


.card {
    background: white;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}


.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    color: #111827;
    background: #FAFBFC;
    transition: all 0.2s ease;
    outline: none;
}
.input-field:focus {
    border-color: #4E6CF7;
    background: white;
    box-shadow: 0 0 0 3px rgba(78, 108, 247, 0.1);
}
.input-field::placeholder {
    color: #9CA3AF;
}


.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-primary { background: #EFF6FF; color: #4E6CF7; }
.badge-success { background: #ECFDF5; color: #059669; }
.badge-warning { background: #FFFBEB; color: #D97706; }
.badge-danger { background: #FEF2F2; color: #DC2626; }


.progress-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #4E6CF7;
    border-radius: 3px;
    transition: width 0.5s ease;
}


.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #E5E7EB, transparent);
    margin: 16px 0;
}


.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #9CA3AF;
}
.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.empty-text {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}
.empty-subtext {
    font-size: 13px;
}


.avatar-wrap { position: relative; display: inline-block; }
.v-badge-corner {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #fff;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    z-index: 2;
}
.v-badge-corner.blue { background: #3B82F6; }
.v-badge-corner.orange { background: #F97316; }

.v-badge-corner.lg { width: 18px; height: 18px; font-size: 10px; bottom: 0; right: 0; }


@media (min-width: 431px) {
    body {
        padding-bottom: 80px;
        font-size: 14px;
    }
    .container {
        
        
        padding: 0 16px;
    }
    body::-webkit-scrollbar { width: 6px; }
    body::-webkit-scrollbar-thumb { background: rgba(78,108,247,0.2); border-radius: 3px; }
    body::-webkit-scrollbar-track { background: transparent; }

    
    .bottom-nav {
        justify-content: center;
        gap: 60px;
    }
    .nav-tab {
        flex: 0 0 auto;
    }
}


@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(2deg); } }
html { scroll-behavior: smooth; }
.card-enter { animation: slideInUp 0.45s cubic-bezier(0.16,1,0.3,1) both; }
.card-enter:nth-child(1) { animation-delay: 0s; } .card-enter:nth-child(2) { animation-delay: 0.05s; } .card-enter:nth-child(3) { animation-delay: 0.1s; } .card-enter:nth-child(4) { animation-delay: 0.15s; } .card-enter:nth-child(5) { animation-delay: 0.2s; } .card-enter:nth-child(6) { animation-delay: 0.25s; } .card-enter:nth-child(7) { animation-delay: 0.3s; } .card-enter:nth-child(8) { animation-delay: 0.35s; } .card-enter:nth-child(9) { animation-delay: 0.4s; } .card-enter:nth-child(10) { animation-delay: 0.45s; }
.img-hover-zoom { overflow: hidden; } .img-hover-zoom img { transition: transform 0.4s ease; } .img-hover-zoom:hover img { transform: scale(1.05); }
.card-hover { transition: all 0.3s cubic-bezier(0.4,0,0.2,1); } .card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); } .card-hover:active { transform: scale(0.98); }
.btn-ripple { position: relative; overflow: hidden; } .btn-ripple::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%); transform: translateX(-100%); transition: transform 0.5s; } .btn-ripple:hover::after { transform: translateX(100%); } .btn-ripple:active { transform: scale(0.96); }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
.smooth-transition { transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.list-stagger > * { animation: slideInUp 0.4s ease both; }
.list-stagger > *:nth-child(1) { animation-delay: 0s; } .list-stagger > *:nth-child(2) { animation-delay: 0.06s; } .list-stagger > *:nth-child(3) { animation-delay: 0.12s; } .list-stagger > *:nth-child(4) { animation-delay: 0.18s; } .list-stagger > *:nth-child(5) { animation-delay: 0.24s; } .list-stagger > *:nth-child(6) { animation-delay: 0.3s; } .list-stagger > *:nth-child(7) { animation-delay: 0.36s; } .list-stagger > *:nth-child(8) { animation-delay: 0.42s; } .list-stagger > *:nth-child(9) { animation-delay: 0.48s; } .list-stagger > *:nth-child(10) { animation-delay: 0.54s; }


@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.8); } 70% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideDownFade { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
@keyframes floatLoop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 5px rgba(78,108,247,0.2); } 50% { box-shadow: 0 0 20px rgba(78,108,247,0.4); } }
@keyframes borderGlow { 0%,100% { border-color: rgba(78,108,247,0.15); } 50% { border-color: rgba(78,108,247,0.4); } }
@keyframes rotateIn { from { opacity: 0; transform: rotate(-10deg) scale(0.9); } to { opacity: 1; transform: rotate(0) scale(1); } }


.page-wrapper { animation: pageEnter 0.35s cubic-bezier(0.16,1,0.3,1) both; }

.badge-pulse { animation: badgePulse 2s infinite; }

.float-loop { animation: floatLoop 3s ease-in-out infinite; }

.glow-pulse { animation: glowPulse 2s ease-in-out infinite; }

.border-glow { animation: borderGlow 2s ease-in-out infinite; }

.pop-in { animation: popIn 0.35s cubic-bezier(0.175,0.885,0.32,1.275) both; }

.rotate-in { animation: rotateIn 0.45s cubic-bezier(0.16,1,0.3,1) both; }

.fade-in-slow { animation: fadeIn 0.6s ease both; }

.slide-down-fade { animation: slideDownFade 0.4s cubic-bezier(0.16,1,0.3,1) both; }

.slide-up-fade { animation: slideUpFade 0.4s cubic-bezier(0.16,1,0.3,1) both; }


a, button, input, select, textarea {
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

img { opacity: 1; transition: opacity 0.4s ease; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded { opacity: 1; }


::selection { background: rgba(78,108,247,0.15); color: #1a1e2b; }




@media (max-width: 430px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }
    
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    
    .table-wrap, table {
        max-width: 100%;
        overflow-x: auto;
        display: block;
    }
    
    
    input, select, textarea, button {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    
    p, span, div {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    
    .modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
    }
    
    
    .form-control, .form-input, .form-textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    
    .card, .feed-card, .masonry-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    
    .masonry {
        column-count: 2 !important;
        column-gap: 8px !important;
        padding: 6px !important;
    }
    
    
    .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    
    .sticky-topbar, .top-tab-bar, .header-bg {
        padding-top: calc(12px + env(safe-area-inset-top)) !important;
    }
}


@media (max-width: 375px) {
    body {
        font-size: 11px;
    }
    
    .masonry {
        column-count: 2 !important;
    }
    
    .nav-label {
        font-size: 9px !important;
    }
    
    .nav-icon {
        font-size: 18px !important;
    }
}


img, video, iframe, canvas, svg,
input, select, textarea, button,
table, pre, code {
    max-width: 100%;
}


.flex-child {
    min-width: 0;
    min-height: 0;
}


pre, code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.image-container, .img-wrap, .avatar-wrap {
    overflow: hidden;
}


@media (min-width: 431px) {
    .pc-container {
        
        
        padding: 0 16px;
    }
}


.uni-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    padding-top: env(safe-area-inset-top);
    transition: all 0.25s ease;
}
.uni-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.uni-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    min-height: 48px;
}
.uni-back, .uni-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.uni-back:active, .uni-action:active {
    transform: scale(0.92);
    background: #F1F5F9;
}
.uni-title {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1A1E2B;
    text-align: center;
    letter-spacing: -0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}
.uni-title-large {
    font-size: 22px;
    font-weight: 800;
    text-align: left;
    letter-spacing: -0.5px;
}
.uni-placeholder { width: 38px; flex-shrink: 0; }


.uni-header-gradient {
    background: linear-gradient(135deg, #4E6CF7 0%, #6783FF 100%);
    color: #fff;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(78,108,247,0.18);
}
.uni-header-gradient .uni-back,
.uni-header-gradient .uni-action {
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}
.uni-header-gradient .uni-back:active,
.uni-header-gradient .uni-action:active {
    background: rgba(255,255,255,0.32);
}
.uni-header-gradient .uni-title { color: #fff; }


.uni-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: baseline;
    padding: 8px 16px 10px;
}
.uni-tabs::-webkit-scrollbar { display: none; }
.uni-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #94A3B8;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border-radius: 8px;
}
.uni-tab.current {
    color: #1a1a2e;
    font-size: 26px;
    font-weight: 800;
    padding: 0 14px 0 0;
    letter-spacing: -0.5px;
}
.uni-tab:active { transform: scale(0.96); }


.uni-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F1F5F9;
    border-radius: 28px;
    padding: 10px 16px;
    margin: 8px 16px 12px;
    border: 2px solid transparent;
    transition: all 0.25s;
}
.uni-search:focus-within {
    border-color: #4E6CF7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(78,108,247,0.06);
}
.uni-search i { color: #94A3B8; font-size: 15px; flex-shrink: 0; }
.uni-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1E293B;
    outline: none;
    font-family: inherit;
    min-width: 0;
}
.uni-search input::placeholder { color: #94A3B8; }
.uni-search-btn {
    background: linear-gradient(135deg, #4E6CF7, #6783FF);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.uni-search-btn:active { transform: scale(0.95); }


.uni-page {
    max-width: 100%;
    
    padding: 0 14px;
}
@media (min-width: 431px) {
    .uni-page {  }
}


.uni-card {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}
.uni-card-header {
    padding: 14px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.uni-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.uni-card-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, #4E6CF7, #6783FF);
    border-radius: 2px;
}
.uni-card-action {
    font-size: 12px;
    font-weight: 600;
    color: #4E6CF7;
    text-decoration: none;
    padding: 4px 10px;
    background: #EEF2FF;
    border-radius: 10px;
}


.uni-empty {
    text-align: center;
    padding: 50px 20px 40px;
}
.uni-empty-icon {
    width: 72px; height: 72px;
    border-radius: 22px;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    background: #F1F5F9;
    color: #94A3B8;
}
.uni-empty-title {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}
.uni-empty-sub {
    font-size: 12px;
    color: #94A3B8;
}





@media (max-width: 375px) {
    .uni-title { font-size: 16px; }
    .uni-title-large { font-size: 20px; }
    .uni-tab.current { font-size: 22px; }
    .uni-header-row { padding: 8px 12px; }
    .uni-back, .uni-action { width: 34px; height: 34px; font-size: 14px; }
}


.uni-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}
.uni-btn:active { transform: scale(0.96); }
.uni-btn-primary {
    background: linear-gradient(135deg, #4E6CF7, #6783FF);
    color: #fff;
    box-shadow: 0 3px 10px rgba(78,108,247,0.3);
}
.uni-btn-ghost {
    background: #F1F5F9;
    color: #475569;
}
.uni-btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    box-shadow: 0 3px 10px rgba(239,68,68,0.3);
}


.uni-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}
.uni-badge-blue { background: #DBEAFE; color: #2563EB; }
.uni-badge-green { background: #DCFCE7; color: #16A34A; }
.uni-badge-orange { background: #FED7AA; color: #EA580C; }
.uni-badge-red { background: #FEE2E2; color: #DC2626; }
.uni-badge-purple { background: #EDE9FE; color: #7C3AED; }
.uni-badge-gray { background: #F1F5F9; color: #64748B; }


.uni-hide-scroll::-webkit-scrollbar { display: none; }
.uni-hide-scroll { scrollbar-width: none; }


.uni-loading {
    text-align: center;
    padding: 40px 20px;
    color: #94A3B8;
    font-size: 13px;
}
.uni-loading i {
    font-size: 24px;
    color: #CBD5E1;
    display: block;
    margin-bottom: 8px;
}




.nav-back, .back, .nav-btn, .uni-back,
.back-btn, .header-content .nav-btn, .top-bar .back {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    -webkit-tap-highlight-color: transparent;
}
.nav-back:active, .back:active, .nav-btn:active, .uni-back:active {
    transform: scale(0.88) !important;
}


.nav-title, .top-bar h1, .header-content h1,
.uni-title, .top-nav .nav-title {
    letter-spacing: -0.3px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


.header-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4E6CF7 0%, #6783FF 60%, #818CF8 100%) !important;
    box-shadow: 0 4px 20px rgba(78,108,247,0.18);
}
.header-bg .glow {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
    animation: headerGlow 8s ease-in-out infinite;
}
.header-bg .glow:nth-child(1) {
    top: -60px; right: -40px;
    width: 180px; height: 180px;
    animation-delay: 0s;
}
.header-bg .glow:nth-child(2) {
    bottom: -50px; left: -30px;
    width: 140px; height: 140px;
    animation-delay: 2s;
}
.header-bg .glow:nth-child(3) {
    top: 40%; left: 60%;
    width: 100px; height: 100px;
    animation-delay: 4s;
    opacity: 0.5;
}
@keyframes headerGlow {
    0%,100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(10px, -10px) scale(1.15); opacity: 0.3; }
}
.header-content {
    position: relative;
    z-index: 2;
}


.top-bar {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease;
}
.top-bar.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}


.top-nav {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: box-shadow 0.25s ease;
}
.top-nav.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.top-nav-link {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.top-nav-link:active { transform: scale(0.94); }


header.sticky, .sticky > .top-nav, .sticky > .top-bar,
.back-nav, .page-top, .detail-header, .publish-header,
.topbar, .chat-header, .animated-bg {
    transition: box-shadow 0.25s ease;
}
.back-nav.scrolled, .page-top.scrolled,
.detail-header.scrolled, .publish-header.scrolled,
.topbar.scrolled, .chat-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}


.search-bar, .uni-search {
    transition: all 0.25s ease;
}
.search-bar:focus-within {
    box-shadow: 0 0 0 4px rgba(78,108,247,0.08);
}


.feature-card, .info-card, .version-card,
.uni-card, .card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}


.info-item, .feature-item, .contact-item {
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, transform 0.18s ease;
}
.info-item:active, .feature-item:active, .contact-item:active {
    transform: scale(0.98);
}




@media (max-width: 375px) {
    .nav-back, .back, .nav-btn, .uni-back, .top-back, .top-action, .cover-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }
    .nav-title, .top-bar h1, .uni-title, .top-title {
        font-size: 16px !important;
    }
    .header-content {
        padding: 12px 14px !important;
    }
}


@media (min-width: 431px) {
    header, .top-nav, .top-bar, .header-bg, .uni-header,
    .back-nav, .page-top, .detail-header, .publish-header,
    .topbar, .chat-header, .animated-bg {
        
        
        
    }
    .header-content, .uni-header-row, .top-nav > div, .top-bar {
        
        
        
    }
}


button, .btn, .submit-btn, a.btn,
.back-btn, .top-back, .top-action, .cover-btn, .top-bar-back {
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
button:active, .btn:active, .submit-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}


img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}


.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #94A3B8;
}
.empty-state i {
    font-size: 40px;
    color: #CBD5E1;
    margin-bottom: 12px;
    display: block;
}
.empty-state p {
    font-size: 13px;
    margin: 4px 0;
}


@media (min-width: 431px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    ::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.15);
        border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.25);
    }
}



.animated-bg {
    background: linear-gradient(135deg, #4E6CF7 0%, #6783FF 50%, #5B7FFF 100%);
    background-size: 200% 200%;
    animation: animatedBgShift 6s ease-in-out infinite;
    position: relative;
}
.animated-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatBlob 8s ease-in-out infinite;
}
.animated-bg::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatBlob 10s ease-in-out infinite reverse;
}
@keyframes animatedBgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -10px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}


.will-change-transform { will-change: transform; }
.gpu-accelerated { transform: translateZ(0); backface-visibility: hidden; perspective: 1000px; }



body {
    
    
}

/* 统一移动端列容器：宽屏下为 390px 居中列并加细分隔线，保证全站页面尺寸一致且小于满屏 */
@media (min-width: 391px) {
    body {
        
        
    }
}

.app-container, .main-content, .page-container, #app {
    
    
    width: 100% !important;
}

.bottom-nav, .tabbar, .nav-bar {
    
    
    
}

.top-nav.fixed, .top-bar.fixed, .uni-header.fixed, .header-bg.fixed, .page-top.fixed {
    
    
    
    width: 100% !important;
}

:root{--safe-top:env(safe-area-inset-top);--safe-bottom:env(safe-area-inset-bottom);--brand:#4E6CF7;--brand-2:#6783FF}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}
html{background:#eef0f5;min-height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:#F5F7FB;color:#1a1e2b;-webkit-font-smoothing:antialiased;min-height:100vh;padding-bottom:calc(80px + var(--safe-bottom))}


.top-nav{position:sticky;top:0;z-index:100;background:rgba(255,255,255,0.96);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);padding:calc(var(--safe-top) + 8px) 16px 0;box-shadow:0 1px 0 rgba(0,0,0,0.04);transition:box-shadow 0.25s ease}
.top-nav.scrolled{box-shadow:0 2px 16px rgba(0,0,0,0.06)}
.top-nav-row{display:flex;align-items:center;gap:2px;padding:6px 0 8px}
.top-nav-links{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;align-items:baseline}
.top-nav-links::-webkit-scrollbar{display:none}
.top-nav-link{flex-shrink:0;padding:6px 14px;font-size:14px;font-weight:500;color:#94A3B8;transition:all .2s;text-decoration:none;white-space:nowrap}
.top-nav-link.current{color:#1a1a2e;font-size:26px;font-weight:800;padding:0}
.top-nav-search-row{padding:0 0 10px}
.top-nav-search{display:flex;align-items:center;gap:8px;background:#F1F5F9;border-radius:14px;padding:9px 14px;border:1.5px solid transparent;transition:all 0.2s;text-decoration:none;color:#94A3B8}
.top-nav-search:active{background:#E8EDF5}
.top-nav-search i{font-size:13px;flex-shrink:0}
.top-nav-search span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.stats-bar{display:flex;gap:6px;padding:8px 12px 2px}
.stat-pill{flex:1;background:#fff;border-radius:12px;padding:7px 4px;text-align:center;border:1px solid rgba(0,0,0,0.04);box-shadow:0 1px 2px rgba(0,0,0,0.02)}
.stat-pill .sp-num{font-size:15px;font-weight:800;color:#4E6CF7;line-height:1.2;letter-spacing:-0.3px}
.stat-pill .sp-label{font-size:9px;color:#9ca3af;margin-top:1px;font-weight:500}

.section-block{margin:6px 12px;background:#fff;border-radius:14px;padding:11px 10px;border:1px solid rgba(0,0,0,0.04);box-shadow:0 1px 3px rgba(0,0,0,0.02)}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.section-header h3{font-size:12px;font-weight:800;color:#1a1e2b;display:flex;align-items:center;gap:5px}
.section-header h3::before{content:'';width:3px;height:12px;background:#4E6CF7;border-radius:2px;display:inline-block}
.section-header span{font-size:10px;color:#9ca3af}

.modules-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.mod-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 2px 8px;border-radius:12px;text-decoration:none;transition:all 0.2s;background:#F8FAFC;border:1px solid transparent;color:inherit;cursor:pointer;position:relative}
.mod-card:active{transform:scale(0.92)}
.mod-card:hover{background:#F0F4FF;transform:translateY(-1px)}
.mod-card.active{background:#EEF2FF;border:1px solid #C7D2FE;box-shadow:0 3px 10px rgba(78,108,247,0.1)}
.mod-card.active::after{content:'';position:absolute;bottom:-1px;left:50%;transform:translateX(-50%);width:16px;height:2.5px;border-radius:2px;background:#4E6CF7}
.mod-card .mod-icon{width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all 0.2s}
.mod-card:hover .mod-icon{transform:scale(1.08)}
.mod-card .mod-name{font-size:10.5px;font-weight:700;color:#374151;text-align:center;line-height:1.3}
.mod-card .mod-badge{position:absolute;top:4px;right:4px;min-width:14px;height:14px;padding:0 4px;border-radius:7px;background:#4E6CF7;color:#fff;font-size:8px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1}

.feed-toolbar{position:sticky;top:calc(var(--safe-top) + 96px);z-index:90;background:rgba(255,255,255,0.96);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);margin:6px 12px 0;border-radius:12px;border:1px solid rgba(0,0,0,0.04);box-shadow:0 1px 4px rgba(0,0,0,0.03);overflow:hidden}
.sort-bar{display:flex;align-items:center;padding:3px 4px 0}
.sort-btn{flex:1;padding:8px 0 7px;font-size:12px;font-weight:600;color:#94A3B8;text-align:center;cursor:pointer;transition:all 0.2s;border:none;background:none;position:relative;display:flex;align-items:center;justify-content:center;gap:4px}
.sort-btn i{font-size:10px;opacity:0.7}
.sort-btn.active{color:#4E6CF7}
.sort-btn.active i{opacity:1}
.sort-btn.active::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:20px;height:2.5px;background:#4E6CF7;border-radius:2px}

.feed{padding:6px 12px 0;column-count:2;column-gap:7px}
.post-card{break-inside:avoid;margin-bottom:7px;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,0.04);border:1px solid rgba(0,0,0,0.05);display:block;text-decoration:none;color:inherit;background:#fff;transition:all 0.25s}
.post-card:active{transform:scale(0.985)}
.post-card .pc-cover{position:relative;width:100%;overflow:hidden;background:#f0f2f6}
.post-card .pc-cover img{width:100%;height:auto;display:block}
.post-card .pc-cover .pc-video-badge{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px}
.post-card .pc-cover .pc-cat-tag{position:absolute;top:5px;left:5px;padding:2px 6px;border-radius:8px;font-size:9px;font-weight:600;color:#fff;backdrop-filter:blur(4px)}
.post-card .pc-no-cover{padding:14px 12px 12px;min-height:92px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative;overflow:hidden}
.post-card .pc-no-cover::before{content:'';position:absolute;top:-15px;right:-15px;width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,0.3);pointer-events:none}
.post-card .pc-no-cover::after{content:'';position:absolute;bottom:-10px;left:-10px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.25);pointer-events:none}
.post-card .pc-no-cover h3{font-size:12.5px;font-weight:700;color:#374151;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;position:relative;z-index:1;text-shadow:0 1px 0 rgba(255,255,255,0.5);padding:0 4px;margin:0}
.post-card .pc-info{padding:7px 9px 8px}
.post-card .pc-title{font-size:11.5px;font-weight:700;color:#1a1e2b;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:5px}
.post-card .pc-user{display:flex;align-items:center;gap:4px}
.post-card .pc-avatar{width:16px;height:16px;border-radius:50%;object-fit:cover;background:#eef0f4;flex-shrink:0}
.post-card .pc-nick{font-size:10px;color:#9ca3af;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.post-card .pc-views{font-size:9px;color:#cbd5e1;display:flex;align-items:center;gap:2px;flex-shrink:0}
.post-card .pc-footer{display:flex;align-items:center;justify-content:space-between;padding:6px 10px 7px;gap:4px}
.post-card .pc-footer .pc-f-avatar{width:18px;height:18px;border-radius:50%;object-fit:cover;flex-shrink:0;border:1px solid rgba(255,255,255,0.8);box-shadow:0 1px 2px rgba(0,0,0,0.06)}
.post-card .pc-footer .pc-f-nick{font-size:10.5px;font-weight:500;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.post-card .pc-footer .pc-f-views{font-size:9.5px;color:#9ca3af;display:flex;align-items:center;gap:2px;white-space:nowrap}

.loading-row{text-align:center;padding:14px;font-size:11.5px;color:#94A3B8}
.loading-row .spinner{display:inline-block;width:14px;height:14px;border:2px solid #4E6CF7;border-top-color:transparent;border-radius:50%;animation:spin 0.7s linear infinite;vertical-align:middle;margin-right:5px}
@keyframes spin{to{transform:rotate(360deg)}}
.empty-state{text-align:center;padding:36px 20px;color:#94A3B8}
.empty-state i{font-size:38px;margin-bottom:8px;opacity:0.2;display:block;color:#4E6CF7}
.empty-state p{font-size:12.5px;font-weight:500}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.post-card{animation:fadeUp 0.35s ease backwards}