* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 10px; }
::selection { color: #fff; background-color: #a855f7; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #050810 0%, #0a1128 100%); color: #e2e8f0; min-height: 100vh; display: flex; flex-direction: column; }

.header { background: rgba(8, 12, 21, 0.9); backdrop-filter: blur(12px); border-bottom: none; position: sticky; top: 0; z-index: 100; }
.nav { display: flex; justify-content: space-between; align-items: center; max-width: 120rem; margin: 0 auto; padding: 1.5rem 3rem; gap: 2rem; }
.logo { font-size: 2.4rem; font-weight: 700; background: linear-gradient(90deg, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; flex-shrink: 0; }
.nav-list { display: flex; list-style: none; gap: 0.5rem; }
.nav-list li { display: flex; align-items: center; }
.nav-list a { text-decoration: none; color: #94a3b8; font-size: 1.6rem; padding: 0.5rem 1rem; transition: all 0.3s ease; border-radius: 0.8rem; white-space: nowrap; }
.nav-list a:hover, .nav-list a.active { color: #a855f7; background: rgba(168, 85, 247, 0.1); }

.nav-avatar { display: flex; align-items: center; gap: 1rem; padding: 0.4rem 1rem; border-radius: 2rem; text-decoration: none; transition: all 0.3s ease; flex-shrink: 0; }
.nav-avatar:hover { background: rgba(168, 85, 247, 0.1); }
.nav-avatar img { width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover; border: 2px solid rgba(168, 85, 247, 0.4); transition: all 0.3s ease; }
.nav-avatar:hover img { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }
.nav-avatar-name { font-size: 1.4rem; color: #e2e8f0; font-weight: 500; white-space: nowrap; }

/* 导航栏搜索 */
.nav-search { position: relative; flex-shrink: 0; }
.nav-search input { height: 3.6rem; width: 20rem; padding: 0 1rem 0 3.2rem; font-size: 1.4rem; border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 2rem; outline: none; background: rgba(255, 255, 255, 0.04); color: #e2e8f0; transition: all 0.3s; }
.nav-search input::placeholder { color: #475569; }
.nav-search input:focus { border-color: #a855f7; width: 26rem; background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 20px rgba(168, 85, 247, 0.15); }
.nav-search::before { content: '🔍'; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; pointer-events: none; }

/* 账号切换下拉 */
.account-dropdown { display: none; position: absolute; top: calc(100% + 0.8rem); right: 0; min-width: 22rem; background: rgba(15, 23, 42, 0.98); border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); z-index: 200; overflow: hidden; backdrop-filter: blur(20px); }
.account-dropdown.show { display: block; animation: dropIn 0.2s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: translateY(0); } }
.dropdown-header { padding: 1rem 1.5rem; font-size: 1.2rem; color: #64748b; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dropdown-empty { padding: 1.5rem; text-align: center; font-size: 1.3rem; color: #475569; }
.dropdown-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; cursor: pointer; transition: background 0.2s ease; }
.dropdown-item:hover { background: rgba(168, 85, 247, 0.1); }
.dropdown-item img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 1px solid rgba(168, 85, 247, 0.2); }
.dropdown-item span { flex: 1; font-size: 1.4rem; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-remove { background: none; border: none; color: #475569; cursor: pointer; font-size: 1.2rem; padding: 0.3rem; border-radius: 0.3rem; transition: all 0.2s; }
.dropdown-remove:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.dropdown-footer { padding: 0.8rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.dropdown-footer a { font-size: 1.3rem; color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.dropdown-footer a:hover { color: #a855f7; }

.main { max-width: 120rem; margin: 0 auto; padding: 3rem 2rem; flex: 1; }

/* Search Bar */
.toolbar { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.search-box { display: flex; }
.search-box input { height: 4.5rem; width: 35rem; padding: 0 1.5rem; font-size: 1.5rem; border: 1px solid rgba(168, 85, 247, 0.3); border-radius: 0.8rem 0 0 0.8rem; outline: none; background: rgba(255, 255, 255, 0.05); color: #e2e8f0; }
.search-box input::placeholder { color: #64748b; }
.search-box input:focus { border-color: #a855f7; }
.search-box button { height: 4.5rem; padding: 0 2rem; font-size: 1.5rem; border: none; border-radius: 0 0.8rem 0.8rem 0; background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; cursor: pointer; transition: all 0.3s ease; }
.search-box button:hover { filter: brightness(1.1); box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.filter-box select { height: 4.5rem; padding: 0 3.5rem 0 1.5rem; font-size: 1.5rem; border: 1px solid rgba(168, 85, 247, 0.3); border-radius: 2.5rem; outline: none; cursor: pointer; background: rgba(15, 23, 42, 0.9); color: #e2e8f0; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.filter-box select:focus { border-color: #a855f7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.2); }
.category-filter-wrap { position: relative; display: inline-block; }
.filter-arrow { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); color: #a855f7; font-size: 1rem; pointer-events: none; }

/* Content */
.content { display: flex; gap: 3rem; }
.article-list { flex: 1; display: flex; flex-direction: column; gap: 2.5rem; }
.article-card { display: flex; background: linear-gradient(135deg, rgba(168, 85, 247, 0.06) 0%, rgba(236, 72, 153, 0.04) 100%); border: 1px solid rgba(168, 85, 247, 0.15); border-radius: 1.5rem; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); cursor: pointer; }
.article-card:hover { transform: translateY(-0.5rem) scale(1.01); border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 20px 40px -12px rgba(168, 85, 247, 0.3); }
.article-img { width: 28rem; height: 20rem; background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%); flex-shrink: 0; }
.article-info { padding: 2rem 2.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.tag { display: inline-block; width: auto; text-align: center; padding: 0.4rem 1rem; background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; font-size: 1.2rem; border-radius: 0.5rem; }
.article-info h3 { font-size: 2rem; color: #e2e8f0; }
.article-info p { font-size: 1.4rem; color: #94a3b8; line-height: 1.8; flex: 1; }
.article-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; font-size: 1.3rem; color: #64748b; padding-top: 0.5rem; }
.article-meta span:last-child { color: #a855f7; }
.empty-msg { text-align: center; color: #64748b; font-size: 1.6rem; padding: 3rem; }

/* Sidebar */
.sidebar { width: 32rem; flex-shrink: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.widget { background: linear-gradient(135deg, rgba(168, 85, 247, 0.06) 0%, rgba(236, 72, 153, 0.04) 100%); border: 1px solid rgba(168, 85, 247, 0.15); border-radius: 1.5rem; padding: 2rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); }
.widget h4 { font-size: 1.8rem; background: linear-gradient(90deg, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid rgba(168, 85, 247, 0.3); }
.avatar { display: block; width: 8rem; height: 8rem; border-radius: 50%; margin: 0 auto 1.5rem; object-fit: cover; border: 0.3rem solid #a855f7; box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
.widget p { font-size: 1.4rem; color: #94a3b8; text-align: center; line-height: 1.8; }
.category-list { list-style: none; }
.category-list li { padding: 0.8rem 0; border-bottom: 1px solid rgba(168, 85, 247, 0.1); }
.category-list a { text-decoration: none; color: #94a3b8; font-size: 1.4rem; transition: color 0.3s; }
.category-list a:hover { color: #a855f7; }

.footer { background: rgba(8, 12, 21, 0.9); border-top: 1px solid rgba(168, 85, 247, 0.1); text-align: center; padding: 2rem; margin-top: auto; }
.footer p { font-size: 1.4rem; color: #64748b; }

/* 作者链接 */
.author-link { color: #a855f7; text-decoration: none; transition: color 0.2s; }
.author-link:hover { color: #ec4899; }

/* 通知铃铛 */
.notification-bell { position: relative; flex-shrink: 0; }
.bell-btn { background: none; border: none; font-size: 1.8rem; cursor: pointer; padding: 0.4rem; transition: transform 0.2s; }
.bell-btn:hover { transform: scale(1.15); }
.bell-badge { position: absolute; top: -0.3rem; right: -0.3rem; min-width: 1.6rem; height: 1.6rem; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; font-size: 1rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1; }
.notification-panel { display: none; position: fixed; top: 6rem; right: 3rem; width: 36rem; max-height: 50rem; background: rgba(15, 23, 42, 0.98); border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); z-index: 250; overflow: hidden; backdrop-filter: blur(20px); }
.notification-panel.show { display: flex; flex-direction: column; animation: dropIn 0.2s ease; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 1.5rem; color: #e2e8f0; font-weight: 600; }
.notif-read-all { background: none; border: none; color: #a855f7; font-size: 1.2rem; cursor: pointer; padding: 0.3rem 0.6rem; border-radius: 0.3rem; transition: all 0.2s; }
.notif-read-all:hover { background: rgba(168, 85, 247, 0.1); }
.notif-list { flex: 1; overflow-y: auto; max-height: 40rem; }
.notif-empty { text-align: center; padding: 3rem; color: #475569; font-size: 1.3rem; }
.notif-item { display: flex; gap: 0.8rem; padding: 1rem 1.5rem; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.notif-item:hover { background: rgba(168, 85, 247, 0.05); }
.notif-item.unread { background: rgba(168, 85, 247, 0.04); }
.notif-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #a855f7; margin-top: 0.6rem; flex-shrink: 0; opacity: 0; }
.notif-item.unread .notif-dot { opacity: 1; }
.notif-title { font-size: 1.3rem; color: #e2e8f0; }
.notif-item.unread .notif-title { font-weight: 600; }
.notif-content { font-size: 1.2rem; color: #64748b; margin-top: 0.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { font-size: 1.1rem; color: #475569; margin-top: 0.3rem; }

/* 移动端汉堡菜单 */
.nav-hamburger { display: none; flex-direction: column; gap: 0.5rem; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 300; }
.nav-hamburger span { display: block; width: 2.4rem; height: 0.2rem; background: #e2e8f0; border-radius: 0.1rem; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(0.5rem, 0.5rem); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(0.5rem, -0.5rem); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 50; backdrop-filter: blur(4px); }
.mobile-overlay.show { display: block; }
body.no-scroll { overflow: hidden; }

@media (max-width: 90rem) { .content { flex-direction: column; } .sidebar { width: 100%; } }
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .nav-search { display: none; }
    .nav-list { display: none; position: fixed; top: 0; left: 0; width: min(28rem, 80vw); height: 100vh; background: rgba(8, 12, 21, 0.98); flex-direction: column; padding: 8rem 2rem 3rem; gap: 0.5rem; z-index: 200; border-right: 1px solid rgba(168, 85, 247, 0.2); overflow-y: auto; backdrop-filter: blur(20px); }
    .nav-list.mobile-open { display: flex; animation: slideIn 0.3s ease; }
    @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
    .nav-list a { font-size: 1.8rem; padding: 1.2rem 1.5rem; }
    .nav-avatar-name { display: none; }
    .article-card { flex-direction: column; }
    .article-img { width: 100%; height: 15rem; }
    .search-box input { width: 100%; }
    .content { flex-direction: column; }
    .sidebar { width: 100%; }
    .notification-panel { width: calc(100% - 2rem); right: 1rem; left: 1rem; max-height: 60vh; }
    .account-dropdown { min-width: 28rem; width: 90vw; max-width: 40rem; right: 1rem; }
    .dropdown-item { padding: 1.2rem 1.5rem; }
    .dropdown-item img { width: 4rem; height: 4rem; }
    .dropdown-item span { font-size: 1.6rem; }
    .bell-btn { padding: 0.6rem; font-size: 2rem; }
    .widget { min-width: 100%; }
}
@media (max-width: 60rem) { .search-box input { width: 22rem; } }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding: 3rem 0; flex-wrap: wrap; }
.page-btn { height: 3.6rem; min-width: 3.6rem; padding: 0 1rem; font-size: 1.4rem; border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 0.8rem; background: rgba(168, 85, 247, 0.06); color: #e2e8f0; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.page-btn:hover:not([disabled]):not(.active) { background: rgba(168, 85, 247, 0.2); border-color: #a855f7; color: #a855f7; }
.page-btn.active { background: linear-gradient(135deg, #a855f7, #ec4899); border-color: transparent; color: #fff; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.page-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.page-dots { color: #475569; font-size: 1.4rem; padding: 0 0.3rem; }
.page-info { font-size: 1.3rem; color: #64748b; margin-left: 1rem; }

/* 骨架屏加载状态 */
.article-skeleton { display: flex; background: rgba(168, 85, 247, 0.06); border: 1px solid rgba(168, 85, 247, 0.15); border-radius: 1.5rem; overflow: hidden; }
.article-skeleton .skeleton-img { width: 28rem; height: 20rem; background: linear-gradient(90deg, rgba(168,85,247,0.1) 25%, rgba(168,85,247,0.2) 50%, rgba(168,85,247,0.1) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.article-skeleton .skeleton-info { padding: 2rem 2.5rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.article-skeleton .skeleton-tag { width: 6rem; height: 2.4rem; background: linear-gradient(90deg, rgba(168,85,247,0.1) 25%, rgba(168,85,247,0.2) 50%, rgba(168,85,247,0.1) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.5rem; }
.article-skeleton .skeleton-title { width: 70%; height: 2.4rem; background: linear-gradient(90deg, rgba(168,85,247,0.1) 25%, rgba(168,85,247,0.2) 50%, rgba(168,85,247,0.1) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.5rem; }
.article-skeleton .skeleton-text { width: 100%; height: 1.4rem; background: linear-gradient(90deg, rgba(168,85,247,0.08) 25%, rgba(168,85,247,0.15) 50%, rgba(168,85,247,0.08) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.3rem; }
.article-skeleton .skeleton-meta { width: 50%; height: 1.4rem; background: linear-gradient(90deg, rgba(168,85,247,0.08) 25%, rgba(168,85,247,0.15) 50%, rgba(168,85,247,0.08) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.3rem; margin-top: auto; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 空状态 */
.empty-state { text-align: center; padding: 5rem 2rem; color: #64748b; }
.empty-state p { font-size: 1.6rem; margin-bottom: 1.5rem; }
.btn-link { display: inline-block; padding: 0.8rem 2rem; background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; border-radius: 0.8rem; text-decoration: none; border: none; cursor: pointer; font-size: 1.4rem; transition: transform 0.2s; }
.btn-link:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .article-skeleton { flex-direction: column; }
    .article-skeleton .skeleton-img { width: 100%; height: 15rem; }
}

/* 回到顶部按钮 */
#back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 4.4rem; height: 4.4rem; background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; border: none; border-radius: 50%; font-size: 2rem; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(168,85,247,0.4); transition: all 0.3s; z-index: 100; }
#back-to-top:hover { transform: scale(1.1); }
#back-to-top.visible { display: flex; }
