* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans SC", sans-serif;
}
body {
    background: #f2f4f6;
    padding: 15px;
    padding-bottom: 80px;
    min-height: 100vh;
}
.container {
    max-width: 600px;
    margin: 0 auto;
}

.app-title {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    margin: 10px 0 20px;
    color: #222;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.login-box input, .login-box button {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: border 0.15s;
}
.login-box input:focus {
    border-color: #1677ff;
}
.login-box button {
    background: #1677ff;
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.login-box button:active {
    transform: scale(0.98);
}
.register-tip {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 6px;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}
.user-detail {
    flex: 1;
}
.username-display {
    font-weight: 500;
    font-size: 15px;
}
.user-code {
    font-size: 12px;
    color: #999;
}

.function-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.func-btn {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.func-btn.primary {
    background: #1677ff;
    color: #fff;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.btn-sm {
    background: #f9fafb;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}
.btn-primary {
    background: #1677ff;
    color: white;
}

.post-editor {
    display: none;
    margin-top: 15px;
}
.post-editor.show {
    display: block;
}
.post-editor textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
    background: #fff;
    margin-bottom: 10px;
}
.editor-actions {
    display: flex;
    gap: 10px;
    margin: 8px 0;
    flex-wrap: wrap;
}
.post-type-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.gold-text {
    font-weight: 700;
    background: linear-gradient(90deg, #c9a82c, #f9e076, #d4af37, #f3d779);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: goldFlow 3.5s linear infinite;
}
@keyframes goldFlow {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

.pro-card {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.pro-bg {
    background: linear-gradient(145deg, #fff9e6, #fff0d4, #ffe8cc) !important;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}
.post-author {
    flex: 1;
}
.author-name {
    font-weight: 500;
    font-size: 15px;
}
.post-time {
    font-size: 12px;
    color: #999;
}
.top-badge {
    background: #f53f3f;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.admin-badge {
    background: #8b5cf6;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    margin-left: 6px;
}
.post-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 10px 0;
    word-break: break-word;
}
.post-image {
    width: 100%;
    border-radius: 10px;
    margin: 6px 0;
    max-height: 360px;
    object-fit: cover;
}
.post-video {
    width: 100%;
    border-radius: 10px;
    margin: 6px 0;
    max-height: 360px;
    object-fit: cover;
}
.post-actions {
    display: flex;
    gap: 16px;
    margin: 10px 0;
}
.like-btn, .comment-btn {
    background: #f9fafb;
    border: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
}
.comment-section {
    margin-top: 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}
.comment-item {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
    color: #333;
}
.comment-user {
    font-weight: 500;
    color: #1677ff;
}
.comment-input-area {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.comment-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.admin-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.admin-btn {
    background: #f9fafb;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
}
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}
.tab-item.active {
    color: #1677ff;
}
.tab-item::before {
    content:"";
    display:block;
    width:20px;
    height:20px;
    margin-bottom:4px;
}
.tab-item.home::before{
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") no-repeat center;
    background-size:100%;
}
.tab-item.home.active::before{
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231677ff'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") no-repeat center;
    background-size:100%;
}
.tab-item.notice::before{
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 2L4 8v14h16V8L12 2zm-2 16h-2v-2h2v2zm0-4h-2V8h2v6zm4 4h-2v-2h2v2zm0-4h-2V8h2v6z'/%3E%3C/svg%3E") no-repeat center;
    background-size:100%;
}
.tab-item.notice.active::before{
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231677ff'%3E%3Cpath d='M12 2L4 8v14h16V8L12 2zm-2 16h-2v-2h2v2zm0-4h-2V8h2v6zm4 4h-2v-2h2v2zm0-4h-2V8h2v6z'/%3E%3C/svg%3E") no-repeat center;
    background-size:100%;
}

.footer-note {
    text-align: center;
    margin: 30px 0 20px;
    color: #999;
    font-size: 12px;
}
.hidden {
    display: none !important;
}
.image-preview {
    margin-top: 8px;
}
.image-preview img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 10px;
}
.video-preview {
    margin-top: 8px;
}
.video-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.loading-box {
    background: white;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
}
.loading-spin {
    width: 24px;
    height: 24px;
    border: 2px solid #f2f2f2;
    border-top: 2px solid #1677ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面切换样式（和你原有风格完全一致） */
.page {
    display: none;
}
.page.active {
    display: block;
}
.hidden {
    display: none !important;
}