:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #60a5fa;
    --secondary-dark: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-300: #d1d5db;
    --grey-400: #9ca3af;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-700: #374151;
    --grey-800: #1f2937;
    --grey-900: #111827;

    --pink: #ec4899;
    --pink-light: #f472b6;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.625rem;
    --radius-xl: 0.75rem;

    --transition: all 0.3s ease;
}

/* Lucide 图标占位 - 防止 JS 加载前布局跳动 */
[data-lucide] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.navbar-dropdown .navbar-item [data-lucide],
.sidebar-group-menu a [data-lucide] {
    width: 15px;
    height: 15px;
}

.sidebar-logo-icon[data-lucide] {
    width: 22px;
    height: 22px;
}

.sidebar-group-title [data-lucide] {
    width: 14px;
    height: 14px;
}

.collapse-icon[data-lucide] {
    width: 14px;
    height: 14px;
}

.button [data-lucide],
.navbar-item [data-lucide] {
    width: 16px;
    height: 16px;
}

.burger-icon-open[data-lucide],
.burger-icon-close[data-lucide] {
    width: 20px;
    height: 20px;
}

.stat-icon[data-lucide] {
    width: 20px;
    height: 20px;
}

.quick-action [data-lucide] {
    width: 22px;
    height: 22px;
}

.admin-btn [data-lucide] {
    width: 13px;
    height: 13px;
}

.mobile-sidebar-toggle [data-lucide] {
    width: 18px;
    height: 18px;
}

/* Vue cloak */
[v-cloak] { opacity: 0; transition: opacity 0.2s ease; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: var(--grey-800);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 1rem 0;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    position: relative;
}

.navbar-logo {
    height: 32px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

.navbar-start {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 1;
    min-width: 0;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.75rem;
    animation: pulse 2s infinite;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.navbar-menu.is-active {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    animation: slideDown 0.3s ease;
    transform-origin: top;
}

.navbar-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.navbar-menu.is-active .navbar-start,
.navbar-menu.is-active .navbar-end {
    flex-direction: column;
    width: 100%;
}

.navbar-menu.is-active .navbar-item {
    width: 100%;
    justify-content: flex-start;
}

.navbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    color: var(--grey-600);
    font-weight: 500;
    transition: var(--transition);
}

.navbar-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: currentColor;
}

.navbar-item:hover {
    background: var(--grey-100);
    color: var(--primary);
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.navbar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.25rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 100;
}

.navbar-item.has-dropdown.is-hoverable:hover .navbar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.navbar-link::after {
    content: '';
    border: 2px solid var(--grey-400);
    border-right: 0;
    border-top: 0;
    width: 6px;
    height: 6px;
    transform: rotate(-45deg);
    margin-left: 0.25rem;
    transition: var(--transition);
}

.navbar-item.has-dropdown:hover .navbar-link::after {
    transform: rotate(135deg);
    border-color: var(--primary);
}

.navbar-divider {
    height: 1px;
    background: var(--grey-200);
    margin: 0.25rem 0;
}

.navbar-dropdown .navbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    width: 100%;
    font-size: 0.875rem;
}

.navbar-dropdown .navbar-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.navbar-dropdown.is-right {
    left: auto;
    right: 0;
}

.navbar-burger {
    display: none;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--grey-100);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.navbar-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    flex-shrink: 0;
}

/* 桌面端：隐藏手机铃铛，显示桌面铃铛 */
.navbar-bell-mobile { display: none; }
.navbar-bell-desktop { display: flex; }

/* 通知面板样式 */
#notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9998;
    overflow: hidden;
}

.navbar-bell:hover {
    background: var(--grey-100);
}

.navbar-burger:hover {
    background: var(--grey-200);
}

.navbar-burger svg {
    width: 22px;
    height: 22px;
    color: var(--grey-700);
    transition: all 0.2s ease;
}

.navbar-burger .burger-icon-close {
    display: none;
}

.navbar-burger.is-active .burger-icon-open {
    display: none;
}

.navbar-burger.is-active .burger-icon-close {
    display: block;
}

/* Hero Section */
.hero {
    background: var(--primary);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 1rem;
}

.hero-body {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Stats Section */
.stats-section {
    padding: 1rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--grey-500);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--grey-50);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-700);
}

.card-content {
    padding: 1rem;
}

/* Post Cards */
.posts-section {
    padding: 0.5rem 0;
}

.create-post-btn {
    margin-bottom: 0.5rem;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    background: white;
    color: var(--primary);
    font-weight: 500;
}

.sort-toggle:hover {
    background: var(--primary);
    color: white;
}

.sort-arrow {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.posts-main {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media screen and (min-width: 600px) {
    .posts-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 900px) {
    .posts-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card .post-footer {
    margin-top: auto;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.post-type-badge .tag {
    font-size: 0.75rem;
    font-weight: 600;
}

.post-time {
    font-size: 0.875rem;
    color: var(--grey-400);
}

.post-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--grey-800);
}

.post-title a:hover {
    color: var(--primary);
}

.post-preview {
    color: var(--grey-600);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.post-thumbnail {
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--grey-100);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.author-name {
    font-weight: 500;
    color: var(--grey-700);
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--grey-500);
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Post Detail */
.post-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 1rem;
}

.post-detail-card {
    margin-bottom: 1rem;
}

.post-detail-card .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.post-detail-card .post-title {
    font-size: 1.75rem;
}

.post-detail-card .post-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grey-700);
    margin: 1rem 0;
}

.post-image {
    margin: 1rem 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-image img {
    width: 100%;
}

.post-detail-card .post-footer {
    padding-top: 1rem;
    margin-top: 1rem;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

/* 移动端按钮只显示图标 */
@media screen and (max-width: 768px) {
    .post-actions .btn-label {
        display: none;
    }
    .post-actions .button {
        padding: 0.5rem;
    }
}

/* Create Post */
.create-post-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
}

.create-form .post-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.post-type-option {
    cursor: pointer;
}

.post-type-option input {
    display: none;
}

.post-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem;
    border: 2px solid var(--grey-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.post-type-option input:checked + .post-type-label {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.post-type-icon {
    font-size: 1.5rem;
}

.notice-card {
    height: fit-content;
}

.notice-list {
    list-style: disc;
    padding-left: 1.5rem;
}

.notice-list li {
    padding: 0.5rem 0;
    color: var(--grey-600);
}

/* Comments */
.comments-section {
    margin-top: 1rem;
}

.comments-list {
    margin-top: 0.75rem;
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--grey-100);
}

.comment-reply {
    margin-left: 3rem;
    padding-left: 1rem;
    border-left: 2px solid var(--grey-200);
}

.comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--grey-700);
}

.comment-time {
    font-size: 0.875rem;
    color: var(--grey-400);
}

.comment-body {
    color: var(--grey-600);
    line-height: 1.6;
}

.comment-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--grey-500);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
    transition: var(--transition);
}

.comment-actions button:hover {
    color: var(--primary);
}

.comment-actions .delete-comment-btn {
    color: var(--grey-400);
}

.comment-actions .delete-comment-btn:hover {
    color: var(--danger);
}

.reply-form-container {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--grey-50);
    border-radius: var(--radius);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cancel-reply-btn {
    background: none;
    border: none;
    color: var(--grey-500);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.cancel-reply-btn:hover {
    color: var(--grey-700);
    text-decoration: underline;
}

/* Profile */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-card {
    text-align: center;
}

.profile-header {
    padding: 1rem;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: var(--grey-50);
    border-radius: var(--radius);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    padding: 1rem;
    border-bottom: 1px solid var(--grey-100);
}

.post-item:last-child {
    border-bottom: none;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f1f5f9;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    opacity: 0.9;
}

.auth-form {
    padding: 1.25rem;
}

.auth-footer {
    padding: 1rem 1.25rem;
    background: var(--grey-50);
    text-align: center;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    min-height: 34px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-sizing: border-box;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button.is-primary {
    background: var(--primary);
    color: white;
}

.button.is-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button.is-secondary {
    background: var(--grey-100);
    color: var(--grey-700);
}

.button.is-light {
    background: var(--grey-100);
    color: var(--grey-600);
}

.button.is-light:hover {
    background: var(--grey-200);
}

.button.is-success {
    background: var(--success);
    color: white;
}

.button.is-warning {
    background: var(--warning);
    color: white;
}

.button.is-danger {
    background: var(--danger);
    color: white;
}

.button.is-link {
    background: transparent;
    color: var(--primary);
}

.button.is-link:hover {
    background: var(--grey-100);
}

.buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.button.is-fullwidth {
    width: 100%;
}

.button.is-medium {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.button.is-large {
    min-height: 52px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.button .icon {
    font-size: 1rem;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.is-size-small {
    font-size: 0.75rem;
}

.button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.button.is-small svg {
    width: 14px;
    height: 14px;
}

.button.is-small {
    min-height: 32px;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.input.is-small {
    min-height: 32px;
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
}

.button.is-medium svg {
    width: 18px;
    height: 18px;
}

.button.is-large svg {
    width: 20px;
    height: 20px;
}

/* Inputs */
.input, .textarea, .select select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 2px solid var(--grey-200);
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
    outline: none;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.field {
    margin-bottom: 0.875rem;
}

.field.has-addons {
    display: flex;
    align-items: center;
}

.field.has-addons .control {
    flex: 1;
}

.field.has-addons .control:last-child .input,
.field.has-addons .control:last-child .button {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.field.has-addons .control:first-child .input {
    border-radius: var(--radius) 0 0 var(--radius);
}

.field.has-addons .control:not(:last-child) .input {
    border-right: none;
}

.label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--grey-700);
}

.help {
    font-size: 0.875rem;
    color: var(--grey-500);
    margin-top: 0.25rem;
}

.help.is-danger {
    color: var(--danger);
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox input {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

/* Select */
.select {
    display: inline-block;
    position: relative;
}

.select select {
    padding-right: 2.5rem;
    appearance: none;
}

.select::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--grey-500);
    pointer-events: none;
}

/* File Input */
.file {
    display: flex;
    align-items: stretch;
}

.file.has-name .file-input {
    display: none;
}

.file-cta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--grey-100);
    border: 2px dashed var(--grey-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.file:hover .file-cta {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-name {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--grey-200);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: white;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.tag.is-pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink);
}

.tag.is-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.tag.is-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.tag.is-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.tag.is-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.tag.is-link {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.tag.is-grey {
    background: rgba(107, 114, 128, 0.1);
    color: var(--grey-500);
}

.tag.is-light {
    background: var(--grey-100);
    color: var(--grey-600);
}

/* Notifications */
.notification {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification.is-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.notification.is-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.notification.is-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.notification.is-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.pagination-link, .pagination-previous, .pagination-next {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    border: 1px solid var(--grey-200);
    background: white;
    color: var(--grey-600);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-link:hover, .pagination-previous:hover, .pagination-next:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-link.is-current {
    background: var(--primary);
    border-color: transparent;
    color: white;
}

.pagination-ellipsis {
    color: var(--grey-400);
    padding: 0 0.5rem;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--grey-200);
    padding: 1.5rem 0 1rem;
    margin-top: 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--grey-500);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--grey-700);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--grey-500);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid var(--grey-100);
    text-align: center;
    color: var(--grey-500);
    font-size: 0.875rem;
}

.footer-credit {
    margin-top: 0.5rem;
    color: var(--primary);
}

.footer-credit svg {
    width: 14px;
    height: 14px;
    color: var(--pink);
    vertical-align: middle;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .create-post-container {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    /* 菜单保持flex，铃铛始终可见 */
    .navbar-menu {
        display: flex;
        align-items: center;
        gap: 0;
    }

    /* 默认隐藏标签和头像区域 */
    .navbar-menu .navbar-start,
    .navbar-menu .navbar-end {
        display: none;
    }

    /* 激活时：标签和头像区域展开为下拉 */
    .navbar-menu.is-active {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 0.5rem;
        margin: 0 1rem;
        border-radius: var(--radius-lg);
        animation: slideDown 0.3s ease;
        transform-origin: top;
    }


    .navbar-menu.is-active .navbar-start,
    .navbar-menu.is-active .navbar-end {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .navbar-menu.is-active .navbar-item {
        width: 100%;
        justify-content: flex-start;
        padding: 0.375rem 0.75rem;
        border-radius: var(--radius);
        animation: fadeInUp 0.3s ease backwards;
        min-height: auto;
    }
    
    .navbar-menu.is-active .has-dropdown {
        flex-direction: column;
    }
    
    .navbar-menu.is-active .has-dropdown .navbar-dropdown {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
        transform: none;
        animation: none;
        display: none;
        margin-top: 0.25rem;
    }
    
    .navbar-menu.is-active .has-dropdown.is-active .navbar-dropdown {
        display: block;
    }
    
    .navbar-menu.is-active .navbar-dropdown .navbar-item {
        padding: 0.375rem 0.75rem 0.375rem 2rem;
        font-size: 0.875rem;
    }
    
    .navbar-menu.is-active .navbar-divider {
        margin: 0.25rem 0;
    }
    
    .navbar-menu.is-active .navbar-start .navbar-item:nth-child(1) { animation-delay: 0.02s; }
    .navbar-menu.is-active .navbar-start .navbar-item:nth-child(2) { animation-delay: 0.04s; }
    .navbar-menu.is-active .navbar-start .navbar-item:nth-child(3) { animation-delay: 0.06s; }
    .navbar-menu.is-active .navbar-start .navbar-item:nth-child(4) { animation-delay: 0.08s; }
    
    .navbar-menu.is-active .navbar-end .navbar-item,
    .navbar-menu.is-active .navbar-end .buttons {
        animation: fadeInUp 0.2s ease 0.1s backwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-burger {
        display: flex;
    }
    
    /* 手机端：显示手机铃铛，隐藏桌面铃铛 */
    .navbar-bell-mobile {
        display: flex;
        position: absolute;
        top: 50%;
        right: 3.5rem;
        transform: translateY(-50%);
        z-index: 10;
        width: 38px;
        height: 38px;
    }
    .navbar-bell-desktop { display: none; }

    /* 移动端通知面板：fixed定位防溢出 */
    #notif-panel {
        position: fixed;
        top: 56px;
        left: 1rem;
        width: calc(100vw - 2rem);
        max-width: none;
        max-height: 70vh;
        overflow-y: auto;
    }

    .navbar-burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 0.5rem;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .navbar-burger span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--grey-600);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .create-form .post-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utilities */
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.is-flex { display: flex; }
.is-justify-content-space-between { justify-content: space-between; }
.is-justify-content-center { justify-content: center; }
.is-align-items-center { align-items: center; }
.has-text-centered { text-align: center; }
.has-text-right { text-align: right; }
.has-text-grey { color: var(--grey-500); }
.has-text-danger { color: var(--danger); }
.is-fullwidth { width: 100%; }
.is-expanded { flex: 1; }

/* Empty States */
.empty-comments {
    padding: 2rem 1rem;
    text-align: center;
}

.empty-comments .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-comments svg {
    color: var(--grey-400);
}

/* Admin specific */
.admin-login-page .auth-container {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.maintenance-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f8fafc;
}

.maintenance-container {
    text-align: center;
    padding: 2rem;
}

.maintenance-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.maintenance-icon svg {
    color: var(--warning);
}

.maintenance-content h1 {
    font-size: 2.5rem;
    color: var(--grey-700);
    margin-bottom: 1rem;
}

.maintenance-content p {
    color: var(--grey-500);
    font-size: 1.125rem;
}

.maintenance-time {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--warning);
}

/* Pinned Posts */
.pinned-posts-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 2px solid var(--warning);
}

.pinned-posts-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--warning);
}

.pinned-posts-header svg {
    width: 20px;
    height: 20px;
}

.pinned-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card.is-pinned {
    border: 2px solid var(--warning);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.post-card.is-pinned:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

/* Icon alignment */
.navbar-item,
.button,
.post-stats span,
.card-header-title,
.post-link,
.quick-action,
.stat-item {
    display: inline-flex;
    align-items: center;
}

.post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.post-stats span svg {
    width: 14px;
    height: 14px;
}

/* Ensure Lucide icons align with text */
[data-lucide],
svg.lucide {
    display: inline-block;
    vertical-align: middle;
}

/* ===== 静态公告条（有链接，不滚动） ===== */
.announcement-static {
    position: relative;
    z-index: 999;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 16px;
    box-shadow: 0 1px 6px rgba(125, 211, 252, 0.15);
    max-width: 95%;
    width: 95%;
    margin: 10px auto 0;
    overflow: hidden;
}

.announcement-static-inner {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 14px;
    gap: 10px;
}

.announcement-static-label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0369a1;
    white-space: nowrap;
}

.announcement-static-text {
    flex: 1;
    font-size: 0.8rem;
    color: #0c4a6e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-static-link {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    padding: 2px 10px;
    border-radius: 8px;
    background: rgba(125, 211, 252, 0.2);
    transition: all 0.2s;
}

.announcement-static-link:hover {
    background: rgba(125, 211, 252, 0.4);
    color: #0369a1;
}

/* ===== 滚动公告条（CSS 跑马灯） ===== */
.announcement-banner {
    position: relative;
    z-index: 999;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 16px;
    box-shadow: 0 1px 6px rgba(125, 211, 252, 0.15);
    max-width: 95%;
    width: 95%;
    margin: 10px auto 0;
    overflow: hidden;
}

.banner-inner {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    gap: 10px;
}

.banner-label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0369a1;
    white-space: nowrap;
}

.banner-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.banner-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: bannerScroll var(--dur, 0s) linear infinite;
    width: max-content;
}

.banner-track:hover {
    animation-play-state: paused;
}

.banner-item {
    font-size: 0.8rem;
    color: #0c4a6e;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.banner-sep {
    margin: 0 6px;
    color: #7dd3fc;
    font-size: 0.8rem;
    opacity: 0.6;
}

@keyframes bannerScroll {
    0% {
        transform: translateX(var(--start, 100%));
    }
    100% {
        transform: translateX(var(--end, -100%));
    }
}

/* ===== 弹窗公告 ===== */
.announcement-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.announcement-popup {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 460px;
    width: 90%;
    overflow: hidden;
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.popup-icon {
    font-size: 1.5rem;
}

.popup-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.popup-body {
    padding: 1.5rem;
    color: var(--grey-700);
    line-height: 1.8;
    font-size: 0.9375rem;
    max-height: 300px;
    overflow-y: auto;
}

.popup-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--grey-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.popup-btn-dismiss {
    font-size: 0.8125rem;
}

.popup-btn-close {
    font-size: 0.8125rem;
}

/* ======== 多图上传功能样式 ======== */

/* 九宫格展示 */
.post-images {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    max-width: 360px;
}
.post-images.count-1 { grid-template-columns: 1fr; max-width: 280px; }
.post-images.count-1 .post-image-item { aspect-ratio: auto; max-height: 400px; }
.post-images.count-2 { grid-template-columns: 1fr 1fr; max-width: 240px; }
.post-images.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.post-images.count-4 { grid-template-columns: 1fr 1fr; max-width: 240px; }
.post-images.count-5,
.post-images.count-6,
.post-images.count-7,
.post-images.count-8,
.post-images.count-9 { grid-template-columns: 1fr 1fr 1fr; }

.post-image-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    display: block;
}
.post-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}
.post-image-item:hover img { opacity: 0.85; }

/* 发布页图片上传区 */
.image-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.image-grid-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}
.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-grid-item .img-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    z-index: 2;
}
.image-grid-item .img-delete-btn:hover { background: rgba(220, 38, 38, 1); }
.image-grid-item .img-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.2);
}
.image-grid-item .img-progress-bar {
    height: 100%;
    background: #6366f1;
    transition: width 0.2s;
    border-radius: 0 0 0 8px;
}
.image-grid-item.uploading { opacity: 0.6; }
.image-grid-item.upload-failed { border: 2px solid #ef4444; }
.image-grid-item.sortable-ghost { opacity: 0.4; transform: scale(1.05); }
.image-grid-add {
    aspect-ratio: 1;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-size: 28px;
    transition: border-color 0.2s, color 0.2s;
    user-select: none;
    -webkit-user-select: none;
}
.image-grid-add:hover { border-color: #6366f1; color: #6366f1; }
.image-grid-add-wrap {
    display: flex;
    margin-top: 8px;
}
.image-grid-add-wrap .image-grid-add {
    width: 80px;
    height: 80px;
    aspect-ratio: auto;
}
.image-upload-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
}

/* ======== 新闻系统样式 ======== */

/* 新闻列表页 */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-list-header {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e293b;
}

/* 新闻卡片 */
.news-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.news-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.news-card-cover {
    width: 140px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-card-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    gap: 12px;
    align-items: center;
}

.news-card-meta i,
.news-card-meta [data-lucide] {
    width: 12px;
    height: 12px;
}

.news-pin {
    color: #6366f1;
    font-size: 12px;
    font-weight: 600;
}

/* 新闻空状态 */
.news-empty {
    text-align: center;
    padding: 60px 0;
    color: #9ca3af;
}

.news-empty i,
.news-empty [data-lucide] {
    opacity: 0.3;
    width: 64px;
    height: 64px;
}

.news-empty p {
    margin-top: 16px;
    font-size: 15px;
}

/* 新闻详情页 */
.news-detail {
    max-width: 768px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news-detail h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1e293b;
}

.news-detail .meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.news-detail .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-detail .meta [data-lucide] {
    width: 14px;
    height: 14px;
}

.news-detail .cover {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
    object-fit: cover;
    max-height: 400px;
}

.news-detail .content {
    font-size: 16px;
    line-height: 1.9;
    color: #1e293b;
}

.news-detail .content h1,
.news-detail .content h2,
.news-detail .content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #1e293b;
}

.news-detail .content h2 {
    font-size: 22px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.news-detail .content h3 {
    font-size: 18px;
}

.news-detail .content p {
    margin: 0.8em 0;
}

.news-detail .content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

.news-detail .content blockquote {
    border-left: 3px solid #6366f1;
    padding: 8px 16px;
    margin: 16px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #475569;
}

.news-detail .content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', monospace;
}

.news-detail .content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.news-detail .content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.news-detail .content a {
    color: #6366f1;
    text-decoration: underline;
}

.news-detail .content ul,
.news-detail .content ol {
    padding-left: 1.5em;
    margin: 0.8em 0;
}

.news-detail .content li {
    margin: 0.3em 0;
}

.news-detail .content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.news-detail .content th,
.news-detail .content td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}

.news-detail .content th {
    background: #f8fafc;
    font-weight: 600;
}

/* 返回链接 */
.news-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    font-size: 14px;
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: 500;
}

.news-back:hover {
    text-decoration: underline;
}

.news-back [data-lucide] {
    width: 16px;
    height: 16px;
}

/* 分页 */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.news-pagination a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #6366f1;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-pagination a:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-list {
        padding: 0 12px;
    }

    .news-list-header {
        font-size: 20px;
    }

    .news-card {
        flex-wrap: wrap;
        padding: 14px;
        gap: 10px;
    }

    .news-card-cover {
        width: 100%;
        height: 160px;
        border-radius: 8px;
    }

    .news-card-title {
        font-size: 15px;
    }

    .news-card-summary {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .news-card-meta {
        font-size: 11px;
        gap: 10px;
    }

    .news-detail {
        padding: 16px;
        border-radius: 10px;
    }

    .news-detail h1 {
        font-size: 20px;
    }

    .news-detail .meta {
        font-size: 13px;
        gap: 10px;
    }

    .news-detail .content h2 {
        font-size: 18px;
    }

    .news-detail .content h3 {
        font-size: 16px;
    }

    .news-detail .content pre {
        font-size: 13px;
        padding: 12px;
    }

    .news-detail .content th,
    .news-detail .content td {
        padding: 6px 8px;
        font-size: 13px;
    }

    .news-pagination {
        flex-wrap: wrap;
    }

    .news-pagination a {
        padding: 6px 12px;
        font-size: 13px;
    }
}
