:root {
    --background: oklch(1.0000 0 0); --foreground: oklch(0.3211 0 0); --card: oklch(1.0000 0 0); --primary: oklch(0.6231 0.1880 259.8145); --primary-foreground: oklch(1.0000 0 0); --secondary-foreground: oklch(0.4461 0.0263 256.8018); --muted-foreground: oklch(0.5510 0.0234 264.3637); --accent: oklch(0.9514 0.0250 236.8242); --accent-foreground: oklch(0.3791 0.1378 265.5222); --destructive: oklch(0.6368 0.2078 25.3313); --border: oklch(0.9276 0.0058 264.5313); --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; --radius: 0.5rem; --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.dark {
    --background: oklch(0.15 0.01 260); --foreground: oklch(0.95 0.01 260); --card: oklch(0.20 0.015 260); --primary: oklch(0.7 0.2 260); --secondary-foreground: oklch(0.90 0.01 260); --muted-foreground: oklch(0.65 0.02 260); --accent: oklch(0.25 0.02 260); --accent-foreground: oklch(0.95 0.01 260); --border: oklch(0.3 0.015 260);
}

*, *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; font-family: var(--font-sans); background-color: var(--background); color: var(--foreground); line-height: 1.7; overflow-x: hidden; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes animate-glow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: background-color 0.3s ease, box-shadow 0.3s ease; } .navbar.scrolled { background-color: oklch(from var(--background) l c h / 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px oklch(from var(--background) l c h / 0.1); } .logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; } .logo-icon { width: 40px; height: 40px; border-radius: 50%; } .logo-text { font-size: 1.25rem; font-weight: 600; color: var(--foreground); } .nav-links { display: flex; gap: 2rem; } .nav-link { text-decoration: none; color: var(--muted-foreground); font-weight: 500; transition: color 0.2s; } .nav-link:hover { color: var(--primary); } .nav-actions { display: flex; gap: 1rem; } .btn { padding: 0.6rem 1.2rem; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-decoration: none; display: inline-block; text-align: center; } .btn-secondary { background-color: transparent; border: 1px solid var(--border); color: var(--foreground); } .btn-secondary:hover { background-color: var(--accent); } .btn-primary { background-color: var(--primary); color: var(--primary-foreground); border: 1px solid var(--primary); } .btn-primary:hover { opacity: 0.9; transform: scale(1.05); }
.footer { background-color: var(--card); border-top: 1px solid var(--border); padding: 4rem 2rem 2rem; color: var(--muted-foreground); } .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto 3rem; text-align: left; } .footer-column .logo { margin-bottom: 1rem; } .footer-heading { font-size: 1.1rem; font-weight: 600; color: var(--foreground); margin-bottom: 1rem; } .footer-links { list-style: none; padding: 0; margin: 0; } .footer-links li { margin-bottom: 0.5rem; } .footer-link { text-decoration: none; color: var(--muted-foreground); transition: color 0.2s; } .footer-link:hover { color: var(--primary); } .footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; max-width: 1200px; margin: 0 auto; text-align: center; font-size: 0.9rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 2rem 2rem; overflow: hidden; } .hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: radial-gradient(ellipse at 70% 20%, oklch(from var(--primary) l c h / 0.15) 0%, transparent 50%), radial-gradient(ellipse at 30% 80%, oklch(0.7 0.15 280 / 0.1) 0%, transparent 50%), radial-gradient(ellipse at top, oklch(from var(--background) calc(l + 0.05) c h), var(--background)); background-size: 200% 200%; animation: animate-glow 20s ease-in-out infinite alternate; } .hero-section::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background-image: repeating-linear-gradient(45deg, oklch(from var(--border) l c h / 0.2) 0, oklch(from var(--border) l c h / 0.2) 1px, transparent 1px, transparent 60px), repeating-linear-gradient(-45deg, oklch(from var(--border) l c h / 0.2) 0, oklch(from var(--border) l c h / 0.2) 1px, transparent 1px, transparent 60px); } .hero-content { max-width: 800px; animation: fadeIn 1s ease-out; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; display: inline-block; } .hero-title-line { display: block; background: linear-gradient(120deg, var(--primary), oklch(from var(--foreground) calc(l + 0.1) c h)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } .hero-title-line:first-child { transform: translateX(-20px); } .hero-title-line:last-child { transform: translateX(20px); }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--muted-foreground); max-width: 600px; margin: 0 auto 2.5rem; }
.content-section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; } .section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem; } .section-title::after { content: ''; display: block; width: 60px; height: 3px; background-color: var(--primary); margin: 0.75rem auto 0; border-radius: 2px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; } .post-card { background-color: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; animation: fadeIn 0.5s ease-out backwards; } .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } .card-image { width: 100%; height: 200px; object-fit: cover; background-color: var(--accent); } .card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; } .card-title { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--foreground); } .card-summary { margin: 0 0 1rem; font-size: 0.9rem; color: var(--secondary-foreground); flex: 1; } .card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted-foreground); } .card-tags { margin-top: 1rem; } .tag { background-color: var(--accent); color: var(--accent-foreground); padding: 0.2rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; margin-right: 0.5rem; display: inline-block; } .status-message { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--muted-foreground); background-color: var(--card); border-radius: var(--radius); } .error-message { color: var(--destructive); border: 1px solid var(--destructive); }
.about-content { display: flex; gap: 3rem; align-items: center; flex-wrap: wrap; } .about-text { flex: 1; min-width: 300px; } .about-image { flex: 1; max-width: 400px; text-align: center; min-width: 300px; } .about-image svg { width: 100%; height: auto; }

.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem; }
.auth-container { background-color: var(--card); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border); width: 100%; max-width: 420px; animation: fadeIn 0.5s ease-out; }
.auth-title { font-size: 2rem; font-weight: 700; text-align: center; margin: 0 0 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--secondary-foreground); }
.form-input { width: 100%; padding: 0.75rem 1rem; background-color: var(--background); border: 1px solid var(--border); border-radius: var(--radius); color: var(--foreground); font-size: 1rem; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px oklch(from var(--primary) l c h / 0.5); }
.auth-message { margin-bottom: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); text-align: center; }
.auth-message.success { background-color: oklch(0.4 0.15 150 / 0.2); color: oklch(0.8 0.15 150); }
.auth-message.error { background-color: oklch(from var(--destructive) l c h / 0.2); color: var(--destructive); }
.switch-auth-text { text-align: center; margin-top: 1.5rem; color: var(--muted-foreground); }
.switch-auth-link { color: var(--primary); font-weight: 600; text-decoration: none; }

.theme-toggle {
    background-color: transparent;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.theme-toggle:hover {
    color: var(--foreground);
    background-color: var(--accent);
}
.theme-toggle svg {
    transition: transform 0.3s ease;
}
.theme-toggle:hover svg {
    transform: scale(1.1) rotate(45deg);
}
.form-input.is-invalid {
    border-color: var(--destructive);
}
.form-input.is-invalid:focus {
    box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.5);
}
.form-validation-message {
    font-size: 0.8rem;
    color: var(--destructive);
    margin-top: 0.25rem;
    display: none;
}

.btn.is-loading {
    position: relative;
    color: transparent !important;
    cursor: wait;
}
.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid oklch(from var(--primary-foreground) l c h / 0.5);
    border-top-color: var(--primary-foreground);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.user-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.user-display-name {
    color: var(--foreground);
}
.page-header {
    padding-top: 8rem;
    padding-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}
.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
}
.pagination-container {
    text-align: center;
    padding: 2rem 0;
}
.post-detail-container {
    padding-top: 8rem;
    max-width: 800px;
}
.post-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}
.post-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}
.post-meta {
    color: var(--muted-foreground);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.post-cover-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.post-content h1, .post-content h2, .post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.post-content p { margin-bottom: 1.2rem; }
.post-content a { color: var(--primary); text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 2rem 0;
    color: var(--muted-foreground);
    font-style: italic;
}
.post-content pre {
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.9rem;
}
.post-content code {
    font-family: 'JetBrains Mono', monospace;
}


.create-post-container {
    padding-top: 8rem;
    max-width: 900px;
}
.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.form-hint {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.simple-textarea {
    width: 100%;
    min-height: 300px;
    padding: 0.75rem 1rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 1rem;
    font-family: var(--font-sans);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.simple-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 
    
    0 0 2px oklch(from var(--primary) l c h / 0.5);
}
.quill-editor-container {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.ql-toolbar.ql-snow {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border: none;
    border-bottom: 1px solid var(--border);
}
.ql-container.ql-snow {
    border: none;
    color: var(--foreground);
}
.ql-editor {
    min-height: 300px;
    font-size: 1rem;
}
.ql-snow .ql-stroke { stroke: var(--muted-foreground); }
.ql-snow .ql-picker-label { color: var(--muted-foreground); }
.ql-snow .ql-picker-options { background-color: var(--card); border-color: var(--border); }
.ql-snow .ql-picker-item:hover { color: var(--primary); }
.ql-snow .ql-tooltip { background-color: var(--card); border-color: var(--border); color: var(--foreground); }
.ql-snow .ql-tooltip input { background-color: var(--background); color: var(--foreground); }
.ql-snow .ql-tooltip a.ql-action::after { content: '保存'; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-top: 8rem;
}
.profile-sidebar {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    align-self: start; /* 让侧边栏不拉伸 */
}
.profile-main-content {
    min-width: 0; /* 防止内容溢出 */
}
.profile-user-info {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.profile-user-info .username {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}
.profile-user-info .join-date {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}
.profile-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.stat-value { font-size: 1.2rem; font-weight: 600; }
.stat-label { font-size: 0.8rem; color: var(--muted-foreground); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
}
.section-title::after { display: none; }

.dashboard-post-list { display: flex; flex-direction: column; gap: 1rem; }
.post-list-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.5rem; background-color: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: background-color 0.2s ease, border-color 0.2s ease; }
.post-list-item:hover { background-color: var(--accent); border-color: var(--primary); }
.post-list-item-title { font-weight: 600; color: var(--foreground); text-decoration: none; }
.post-list-item-meta { font-size: 0.9rem; color: var(--muted-foreground); }
.post-list-item-actions { display: flex; gap: 0.75rem; }
.btn-icon { background: none; border: none; padding: 0.25rem; cursor: pointer; color: var(--muted-foreground); transition: color 0.2s; }
.btn-icon:hover { color: var(--primary); }
.btn-icon.delete:hover { color: var(--destructive); }

.invite-code-list { display: flex; flex-direction: column; gap: 0.75rem; }
.invite-code-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background-color: var(--accent); border-radius: var(--radius); }
.invite-code { font-family: var(--font-mono); font-weight: 500; }
.invite-status { font-size: 0.8rem; padding: 0.2rem 0.5rem; border-radius: 99px; }
.invite-status.available { background-color: oklch(0.4 0.15 150 / 0.3); color: oklch(100% 0.00011 271.152); }
.invite-status.used { background-color: oklch(from var(--destructive) l c h / 0.3); color: oklch(from var(--destructive) l c h / 0.8); }





.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.badge-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.badge-card-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
}
.badge-card-description {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.profile-badges-container {
    margin-top: 1.5rem;
}
.profile-badge {
    display: inline-block;
    font-size: 1.5rem;
    padding: 0.5rem;
    background-color: var(--accent);
    border-radius: 50%;
    margin: 0.25rem;
    line-height: 1;
    transition: transform 0.2s;
}
.profile-badge:hover {
    transform: scale(1.2);
}

.form-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.switch-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--card);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.switch-field label {
    cursor: pointer;
    font-weight: 500;
}
.switch-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 40px;
    height: 22px;
    background-color: var(--accent);
    border-radius: 99px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.switch-field input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}
.switch-field input[type="checkbox"]:checked {
    background-color: var(--primary);
}
.switch-field input[type="checkbox"]:checked::before {
    transform: translateX(18px);
}
.post-type-tag {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    color: var(--primary-foreground);
    background-color: var(--primary);
}
.post-type-tag.reprint {
    background-color: var(--muted-foreground);
}



.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.comment-item {
    display: flex;
    gap: 1rem;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}
.comment-body {
    flex-grow: 1;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.comment-author {
    font-weight: 600;
    color: var(--foreground);
}
.comment-date {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}
.comment-content {
    line-height: 1.6;
}
.comment-form-container {
    margin-top: 2rem;
}
.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px oklch(from var(--primary) l c h / 0.5);
}

.comment-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.comment-item:hover .comment-actions {
    opacity: 1;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.search-input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px oklch(from var(--primary) l c h / 0.5);
}




.admin-panel-container {
    padding-top: 8rem;
    max-width: 1200px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    background-color: var(--accent);
    font-weight: 600;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-table tr:hover {
    background-color: var(--accent);
}
.status-banned {
    color: var(--destructive);
    font-weight: bold;
}


.admin-actions-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}
.admin-actions-group input[type="number"] {
    width: 80px;
    padding: 0.5rem;
}
.admin-table select {
    padding: 0.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    border-radius: var(--radius);
}

.profile-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0.5rem 0;
    min-height: 1.5rem;
}
.profile-roles {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}
.edit-profile-btn {
    margin-top: 1.5rem;
    width: 100%;
}

.comment-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.comment-avatar {
    width: 100%;
    height: 100%;
}
.role-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--primary-foreground);
    line-height: 1;
}
.role-badge.sadmin { background-color: oklch(0.63 0.20 25); }
.role-badge.dev { background-color: oklch(0.7 0.18 90); }

.user-popover {
    position: absolute;
    z-index: 10;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    width: 250px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
}
.user-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s, transform 0.2s;
}
.popover-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.popover-avatar { width: 48px; height: 48px; border-radius: 50%; }
.popover-user-info .username { font-weight: 600; }
.popover-user-info .title { font-size: 0.9rem; color: var(--primary); }
.popover-roles { font-size: 0.8rem; color: var(--muted-foreground); margin-bottom: 1rem; }

/* 热门标签 (标签云) */
.tags-cloud {
    margin-bottom: 2rem;
    text-align: center;
}
.tag-link {
    display: inline-block;
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    margin: 0.25rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.tag-link:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.settings-page {
    padding-top: 8rem;
    max-width: 600px;
}
.settings-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.settings-footer {
    margin-top: 2rem;
    text-align: center;
}