/* 首页 页面样式 - 自动抽取自 index.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: #E0E7FF; color: #4E6CF7; }
.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;
}

html { background: #eef0f5; }
        body { background: #F5F6F8; padding-bottom: calc(80px + env(safe-area-inset-bottom)); font-family: 'PingFang SC', 'Inter', system-ui, sans-serif; min-height: 100vh; }
        
        .header-bg { background: #1E293B; position: relative; overflow: hidden; }
        .masonry { column-count: 2; column-gap: 8px; padding: 6px; }
        .masonry-item { break-inside: avoid; margin-bottom: 10px; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); display:block; text-decoration:none; color:inherit; background:#fff; transition:all 0.25s; border:1px solid rgba(0,0,0,0.05); }
        .masonry-item:active { transform:scale(0.98); box-shadow:0 4px 16px rgba(30,41,59,0.12); }
        .masonry-cover { position:relative; width:100%; overflow:hidden; background:#f0f2f6; }
        .masonry-cover img { width:100%; height:auto; display:block; transition:transform 0.4s ease; }
        .masonry-item:active .masonry-cover img { transform:scale(1.04); }
        .masonry-title { padding:9px 11px 4px; font-size:13px; font-weight:600; color:#1a1e2b; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
        .masonry-body { padding:16px 13px 14px; min-height:104px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; position:relative; overflow:hidden; }
        .masonry-body::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; }
        .masonry-body::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; }
        .masonry-body h3 { font-size:13px; 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; padding:0 6px; }
        .masonry-cover-title { position:absolute; bottom:0; left:0; right:0; padding:8px 10px 6px; background:linear-gradient(to top,rgba(0,0,0,0.6),transparent); color:#fff; font-size:12px; font-weight:600; line-height:1.4; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
        .masonry-video-badge { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,0.55); display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; backdrop-filter:blur(4px); }
        .video-play-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.2); z-index:2; }
        .video-play-overlay .play-btn { width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.9); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(0,0,0,0.3); }
        .video-play-overlay .play-btn i { color:#4E6CF7; font-size:14px; margin-left:2px; }
        .masonry-body .card-icon { font-size:28px; margin-bottom:10px; opacity:0.35; position:relative; z-index:1; }
        .masonry-footer { display:flex; align-items:center; justify-content:space-between; padding:7px 11px 9px; gap:4px; }
        .masonry-footer .user { display:flex; align-items:center; gap:5px; flex:1; min-width:0; }
        .masonry-footer .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); }
        .masonry-footer .nickname { font-size:11px; font-weight:500; color:#6b7280; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0; }
        .masonry-footer .right { display:flex; align-items:center; gap:4px; flex-shrink:0; }
        .masonry-footer .views { font-size:10px; color:#9ca3af; display:flex; align-items:center; gap:2px; white-space:nowrap; }
        .masonry-footer .views i { font-size:9px; }
        
        .quick-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
        .quick-card { position:relative; display:flex; flex-direction:column; align-items:center; gap:7px; padding:16px 4px 14px; border-radius:14px; text-decoration:none; background:transparent; border:none; transition:all .22s ease; }
        .quick-card:active { transform:translateY(1px) scale(.97); border-color:rgba(0,0,0,0.12); box-shadow:0 2px 12px rgba(0,0,0,0.06); }
        .quick-card .qk-icon { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:17px; position:relative; z-index:1; transition:transform .22s ease; }
        .quick-card:active .qk-icon { transform:scale(1.06); }
        .quick-card .qk-name { font-size:11px; font-weight:600; color:#1E293B; text-align:center; line-height:1.2; }
        .quick-card .qk-sub { font-size:10px; color:#94A3B8; text-align:center; line-height:1; margin-top:-2px; }
        .marquee-container { overflow: hidden; white-space: nowrap; }
        .marquee-text { animation: marquee 30s linear infinite; display: inline-block; }
        @keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
        .carousel-container { position: relative; }
        .carousel-slides { position: relative; height: 128px; }
        .carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease-in-out; }
        .carousel-slide.active { opacity: 1; z-index: 1; }
        .carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
        .indicator-dot { cursor: pointer; }
        .indicator-dot.active { background: white !important; width: 16px !important; }
        .v-badge { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border-radius:50%; font-size:8px; color:#fff; flex-shrink:0; margin-left:1px; }
        .avatar-wrap { position:relative; display:inline-flex; }
        .v-badge-corner { position:absolute; bottom:-2px; right:-2px; width:12px; height:12px; border-radius:50%; border:1.5px solid #fff; display:flex; align-items:center; justify-content:center; font-size:7px; color:#fff; font-weight:700; box-shadow:0 1px 3px rgba(0,0,0,0.15); }
        .v-badge-corner.blue { background:linear-gradient(135deg,#3B82F6,#2563EB); }
        .v-badge-corner.orange { background:linear-gradient(135deg,#F97316,#EA580C); }
        .v-badge.blue { background:linear-gradient(135deg,#3B82F6,#2563EB); }
        .v-badge.orange { background:linear-gradient(135deg,#F97316,#EA580C); }
        .title-tag { font-size:8px; font-weight:700; padding:1px 5px; border-radius:6px; background:rgba(30,41,59,0.1); color:#1E293B; white-space:nowrap; max-width:60px; overflow:hidden; text-overflow:ellipsis; }
        .scrollbar-hide::-webkit-scrollbar { display:none; }
        .scrollbar-hide { -ms-overflow-style:none; scrollbar-width:none; }

        
        .fade-in-up { animation: fadeInUp 0.55s cubic-bezier(0.22,1,0.36,1) both; will-change: transform, opacity; }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
        main > .fade-in-up:nth-of-type(1) { animation-delay: 0.04s; }
        main > .fade-in-up:nth-of-type(2) { animation-delay: 0.11s; }
        main > .fade-in-up:nth-of-type(3) { animation-delay: 0.18s; }
        main > .fade-in-up:nth-of-type(4) { animation-delay: 0.25s; }
        main > .fade-in-up:nth-of-type(5) { animation-delay: 0.32s; }
        @media (prefers-reduced-motion: reduce) { .fade-in-up { animation: none; } }

        
        main > .fade-in-up > div > h2 { letter-spacing: -0.2px; }
        .quick-card .qk-icon { box-shadow: 0 1px 4px rgba(0,0,0,0.05); }

.city-picker-overlay{position:fixed;inset:0;z-index:300;background:rgba(0,0,0,0);display:none;visibility:hidden;pointer-events:none;transition:background 0.3s;}
.city-picker-overlay.active{background:rgba(0,0,0,0.4);}
.city-picker-panel{position:fixed;bottom:0;left:0;right:0;z-index:310;background:#fff;border-radius:24px 24px 0 0;padding:12px 20px calc(env(safe-area-inset-bottom) + 20px);transform:translateY(100%);visibility:hidden;transition:transform 0.35s cubic-bezier(0.32,0.72,0,1),visibility 0.35s;box-shadow:0 -8px 40px rgba(0,0,0,0.1);}
.cp-handle{width:36px;height:4px;border-radius:4px;background:#d1d5db;margin:0 auto 14px;}
.cp-title{text-align:center;font-size:16px;font-weight:700;color:#1a1e2b;margin-bottom:16px;}
.cp-input-wrap{margin-bottom:16px;}
.cp-input{width:100%;padding:12px 16px;border:2px solid #e2e8f0;border-radius:14px;font-size:14px;outline:none;box-sizing:border-box;transition:border-color 0.2s;}
.cp-input:focus{border-color:#4E6CF7;}
.cp-hot-title{font-size:12px;font-weight:600;color:#94a3b8;margin-bottom:10px;}
.cp-hot-grid{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;}
.cp-hot-tag{padding:8px 16px;background:#f1f5f9;border-radius:20px;font-size:13px;font-weight:600;color:#475569;cursor:pointer;transition:all 0.2s;}
.cp-hot-tag:active{background:#4E6CF7;color:#fff;transform:scale(0.95);}
.cp-btns{display:flex;gap:10px;}
.cp-btn{flex:1;padding:14px;border-radius:14px;font-size:15px;font-weight:700;border:none;cursor:pointer;transition:all 0.2s;}
.cp-btn.cancel{background:#f1f5f9;color:#64748b;}
.cp-btn.cancel:active{background:#e2e8f0;}
.cp-btn.confirm{background:#4E6CF7;color:#fff;}
.cp-btn.confirm:active{background:#3B5DE7;transform:scale(0.97);}