* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #F5F5F7; color: #1F2937; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 顶部工具栏 */
.top-bar {
    background: linear-gradient(90deg, #6a96f5 0%, #8BB4F5 50%, #6a96f5 100%);
    color: #ffffff;
    font-size: 12px;
    padding: 0 32px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar span::before { content: "🏠 "; font-size: 12px; }
.top-bar a { color: rgba(255,255,255,0.85); margin-left: 20px; transition: color 0.2s; font-weight: 500; }
.top-bar a:hover { color: #fff; }

/* 主头部 */
.header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #F3F4F6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.header-top { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; color: #2563EB; flex-shrink: 0; letter-spacing: 1.5px; }
.logo img { height: 38px; }

.search-box { flex: 1; max-width: 520px; position: relative; }
.search-box input { width: 100%; padding: 10px 50px 10px 18px; border: 2px solid #E5E7EB; border-radius: 24px; font-size: 14px; outline: none; transition: all 0.3s; background: #F9FAFB; font-family: inherit; color: #374151; }
.search-box input::placeholder { color: #9CA3AF; }
.search-box input:focus { border-color: #2563EB; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.10); }
.search-box button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; background: #2563EB; color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.search-box button:hover { background: #1D4ED8; }

.user-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-name { font-size: 14px; color: #374151; font-weight: 500; }
.btn-login { padding: 8px 20px; border: 2px solid #2563EB; border-radius: 24px; font-size: 14px; color: #2563EB; font-weight: 600; transition: all 0.25s; }
.btn-login:hover { background: #2563EB; color: #fff; }
.btn-reg { padding: 8px 20px; border-radius: 24px; font-size: 14px; background: #2563EB; color: #fff; font-weight: 600; transition: all 0.25s; }
.btn-reg:hover { background: #1D4ED8; }
.btn-logout { padding: 7px 18px; border-radius: 20px; font-size: 14px; border: 1.5px solid #E5E7EB; color: #6B7280; font-weight: 500; }
.btn-logout:hover { border-color: #DC2626; color: #DC2626; }

/* 导航栏 */
.nav-bar { display: flex; border-top: 1px solid #F3F4F6; padding: 0 8px; }
.nav-bar a { display: block; padding: 12px 22px; font-size: 15px; color: #6B7280; font-weight: 600; transition: all 0.2s; position: relative; }
.nav-bar a:hover { color: #2563EB; background: #F0F5FF; }
.nav-bar a.active { color: #2563EB; font-weight: 700; }

/* 主容器 */
.container { max-width: 1200px; margin: 24px auto; padding: 0 24px; }

/* 快捷入口 */
.quick-links { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.quick-link { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; border-radius: 12px; transition: all 0.2s; cursor: pointer; }
.quick-link:hover { background: #F0F5FF; transform: translateY(-2px); }
.quick-link-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.quick-link span { font-size: 13px; color: #374151; font-weight: 500; }

/* 主体网格 */
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-bottom: 20px; }

/* 热门资讯区 */
.banner-section { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.section-title { font-size: 16px; font-weight: 600; color: #1F2937; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #F3F4F6; display: flex; justify-content: space-between; align-items: center; }
.section-title a, .section-title-link { font-size: 13px; color: #2563EB; font-weight: normal; }
.section-title a:hover, .section-title-link:hover { color: #1D4ED8; }
.banner-list { display: flex; flex-direction: column; gap: 10px; }
.banner-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #F9FAFB; transition: all 0.2s; }
.banner-item:hover { background: #EFF6FF; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: #D1D5DB; flex-shrink: 0; }
.banner-item:first-child .banner-dot { background: #2563EB; }
.banner-item span { font-size: 14px; color: #374151; font-weight: 500; }
.banner-item:first-child span { color: #1F2937; font-weight: 600; }

/* 用户卡片 */
.user-card { background: #fff; border-radius: 16px; padding: 24px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.user-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.user-greeting { font-size: 14px; color: #9CA3AF; margin-bottom: 16px; }
.user-btns { display: flex; gap: 8px; justify-content: center; }
.user-btn-primary { padding: 8px 20px; background: #2563EB; color: #fff; border-radius: 20px; font-size: 14px; font-weight: 500; }
.user-btn-primary:hover { background: #1D4ED8; }
.user-btn-secondary { padding: 8px 20px; border: 1.5px solid #2563EB; color: #2563EB; border-radius: 20px; font-size: 14px; font-weight: 500; }
.user-btn-secondary:hover { background: #2563EB; color: #fff; }

/* 相亲卡片 */
.match-card { margin-top: 16px; background: linear-gradient(135deg, #F0F5FF 0%, #FDF4F4 100%); border-radius: 12px; padding: 16px; text-align: left; }
.match-title { font-size: 13px; color: #9CA3AF; margin-bottom: 10px; }
.match-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F0F0F0; }
.match-item:last-child { border-bottom: none; }
.match-avatar { width: 36px; height: 36px; border-radius: 50%; background: #E5E7EB; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.match-info { flex: 1; min-width: 0; }
.match-name { font-size: 13px; font-weight: 500; color: #374151; }
.match-desc { font-size: 12px; color: #9CA3AF; }

/* 热点列表 */
.hot-section { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.hot-section-title { font-size: 16px; font-weight: 600; color: #1F2937; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #F3F4F6; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.hot-section-title::before { content: ""; display: block; width: 4px; height: 16px; background: #DC2626; border-radius: 2px; }
.hot-section-title a { font-size: 12px; color: #9CA3AF; font-weight: 400; text-decoration: none; }
.hot-section-title a:hover { color: #2563EB; }
.hot-post-list { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 20px; }
.hot-post-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #F3F4F6; gap: 16px; cursor: pointer; }
.hot-post-item:last-child { border-bottom: none; }
.hot-post-item:hover .hot-post-title { color: #2563EB; }
.hot-post-title { flex: 1; font-size: 14px; color: #374151; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.hot-post-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hot-post-tag { background: #EFF6FF; color: #2563EB; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.hot-post-replies { width: 28px; height: 28px; border-radius: 50%; background: #F3F4F6; color: #9CA3AF; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.hot-post-replies.active { background: #DC2626; color: #fff; }
.hot-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid #F3F4F6; gap: 16px; }
.hot-item:last-child { border-bottom: none; }
.hot-title { flex: 1; font-size: 14px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: color 0.2s; }
.hot-title:hover { color: #2563EB; }
.hot-meta { font-size: 12px; color: #9CA3AF; flex-shrink: 0; display: flex; gap: 8px; align-items: center; }
.hot-tag { background: #EFF6FF; color: #2563EB; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.hot-tag.red { background: #FEF2F2; color: #DC2626; }
.hot-time { color: #9CA3AF; }

/* 导读页右侧用户卡+嘉宾推荐 */
.daodu-right { display: flex; flex-direction: column; gap: 0; }
.daodu-right .user-card { flex-shrink: 0; }

/* 分类区块 */
.section-block { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.section-block-title { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #F3F4F6; display: flex; justify-content: space-between; align-items: center; }
.section-block-title .title-left { display: flex; align-items: center; gap: 10px; }
.section-block-title .title-text { font-size: 18px; font-weight: 700; }
.section-block-title a { font-size: 13px; color: #6a96f5; font-weight: 500; }
.section-block-title a:hover { color: #4a7de0; }

.section-block-body { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.section-block-img { width: 300px; height: 300px; border-radius: 12px; overflow: hidden; position: relative; }
.section-block-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.section-block-img .carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.section-block-img .carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.section-block-img .carousel-dot.active { background: #fff; }
.section-block-list .hot-item:first-child { border-top: none; }

/* 社区热图 */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-card { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; }
.photo-card .photo-img { aspect-ratio: 1; overflow: hidden; }
.photo-card .photo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-card:hover .photo-img img { transform: scale(1.05); }
.photo-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 10px 10px; font-size: 13px; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,0.7)); transform: translateY(100%); transition: transform 0.3s; }
.photo-card:hover .photo-label { transform: translateY(0); }

/* ===== 页脚 ===== */
footer { background: linear-gradient(180deg, #1E3A5F 0%, #152D4A 100%); margin-top: 40px; padding: 60px 32px 32px; position: relative; }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #6a96f5, #2563EB, #6a96f5); }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #6a96f5; margin-bottom: 18px; letter-spacing: 1px; padding-bottom: 10px; border-bottom: 1px solid rgba(106,150,245,0.2); }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.65); display: block; padding: 3px 0; transition: all 0.2s; font-weight: 500; }
.footer-col a:hover { color: #fff; padding-left: 8px; }
.footer-bottom { max-width: 1200px; margin: 28px auto 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: #6a96f5; }
.footer-brand { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.7); letter-spacing: 1px; }

/* ===== 论坛/帖子列表页 ===== */
.forum-tabs { display: flex; gap: 4px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.forum-tab { padding: 8px 20px; border-radius: 8px; font-size: 14px; color: #6B7280; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.forum-tab.active { background: #2563EB; color: #fff; }
.forum-tab:hover:not(.active) { background: #F3F4F6; color: #374151; }

.forum-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.forum-content { display: flex; flex-direction: column; }

.forum-section-block { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.forum-section-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid; display: flex; align-items: center; gap: 8px; }
.forum-section-title::before { content: ""; display: block; width: 4px; height: 18px; border-radius: 2px; }
.forum-section-title.sht { color: #DC2626; border-color: #DC2626; }
.forum-section-title.sht::before { background: #DC2626; }
.forum-section-title.ms { color: #D97706; border-color: #D97706; }
.forum-section-title.ms::before { background: #D97706; }
.forum-section-title.shqz { color: #059669; border-color: #059669; }
.forum-section-title.shqz::before { background: #059669; }
.forum-section-title.fw { color: #7C3AED; border-color: #7C3AED; }
.forum-section-title.fw::before { background: #7C3AED; }
.forum-section-title.tc { color: #0369A1; border-color: #0369A1; }
.forum-section-title.tc::before { background: #0369A1; }

.forum-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.forum-card { display: block; padding: 16px 18px; border: 1px solid #E5E7EB; border-radius: 12px; transition: all 0.2s; }
.forum-card:hover { border-color: #2563EB; box-shadow: 0 4px 16px rgba(37,99,235,0.1); transform: translateY(-2px); }
.forum-card-name { font-size: 15px; font-weight: 600; color: #2563EB; margin-bottom: 4px; }
.forum-card-desc { font-size: 12px; color: #9CA3AF; margin-bottom: 8px; }
.forum-card-stats { display: flex; gap: 12px; font-size: 12px; color: #9CA3AF; }
.forum-card-stats strong { color: #374151; font-weight: 600; }
.forum-card-stats .today { color: #2563EB; font-weight: 500; }

.right-sidebar { position: sticky; top: 112px; }
.side-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.side-title { font-size: 14px; font-weight: 600; color: #1F2937; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #F3F4F6; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F9FAFB; }
.rank-item:last-child { border-bottom: none; }
.rank-num { width: 18px; height: 18px; border-radius: 4px; background: #F3F4F6; font-size: 11px; font-weight: 700; color: #9CA3AF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-num.top { background: #DC2626; color: #fff; }
.rank-num.second { background: #D97706; color: #fff; }
.rank-num.third { background: #92400E; color: #fff; }
.rank-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 13px; color: #374151; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-posts { font-size: 11px; color: #9CA3AF; }
.rank-hot { font-size: 12px; color: #DC2626; font-weight: 600; flex-shrink: 0; }
.sidebar-post-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #F9FAFB; }
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item:hover .sidebar-post-title { color: #2563EB; }
.sidebar-post-title { flex: 1; font-size: 13px; color: #374151; line-height: 1.4; }
.sidebar-post-replies { font-size: 12px; color: #9CA3AF; flex-shrink: 0; margin-top: 2px; }

/* 轮播 */
.module-carousel-news { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 20px; }
.carousel-container { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); position: relative; height: 300px; }
.carousel-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.carousel-slide { min-width: 100%; height: 300px; position: relative; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; font-size: 15px; font-weight: 500; }
.carousel-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.carousel-dot.active { background: #fff; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(0,0,0,0.4); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: background 0.2s; border: none; }
.carousel-arrow:hover { background: rgba(0,0,0,0.6); }

.breaking-news { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); height: 300px; display: flex; flex-direction: column; }
.breaking-title { font-size: 15px; font-weight: 600; color: #1F2937; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #DC2626; display: flex; align-items: center; gap: 6px; }
.breaking-dot { width: 8px; height: 8px; border-radius: 50%; background: #DC2626; animation: blink 1.5s infinite; flex-shrink: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.breaking-list { flex: 1; overflow: hidden; }
.breaking-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
.breaking-item:hover .breaking-text { color: #2563EB; }
.breaking-num { width: 18px; height: 18px; border-radius: 4px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.breaking-text { flex: 1; font-size: 13px; color: #374151; line-height: 1.5; }
.breaking-text:hover { color: #2563EB; }

/* ===== 分区列表页 ===== */
.breadcrumb { font-size: 13px; color: #9CA3AF; margin-bottom: 16px; }
.breadcrumb a { color: #9CA3AF; }
.breadcrumb a:hover { color: #2563EB; }
.breadcrumb .sep { margin: 0 6px; }

.section-header { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); display: flex; align-items: center; gap: 16px; }
.section-avatar { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #2563EB, #1D4ED8); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex-shrink: 0; }
.section-info { flex: 1; }
.section-info h1 { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: #1F2937; }
.section-info p { font-size: 13px; color: #6B7280; margin: 0; }
.section-stats { display: flex; gap: 24px; text-align: center; }
.stat-item strong { display: block; font-size: 18px; font-weight: 700; color: #1F2937; }
.stat-item span { font-size: 12px; color: #9CA3AF; }

.filter-bar { display: flex; gap: 8px; padding: 14px 24px; border-bottom: 1px solid #F3F4F6; flex-wrap: wrap; background: #fff; border-radius: 16px 16px 0 0; }
.filter-tag { padding: 5px 14px; border-radius: 16px; font-size: 13px; color: #6B7280; background: #F3F4F6; cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s; }
.filter-tag.active { background: #EFF6FF; color: #2563EB; border-color: #2563EB; }

.post-list-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; margin-bottom: 16px; }
.post-row { display: flex; align-items: flex-start; gap: 14px; padding: 18px 24px; border-bottom: 1px solid #F3F4F6; transition: background 0.15s; }
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: #F9FAFB; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0; }
.post-main { flex: 1; min-width: 0; }
.post-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.pin-badge { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; background: #FEE2E2; color: #DC2626; }
.post-title-link { font-size: 15px; color: #1F2937; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.post-title-link:hover { color: #2563EB; }
.post-meta { display: flex; gap: 8px; font-size: 12px; color: #9CA3AF; flex-wrap: wrap; }
.post-meta .sep { color: #D1D5DB; }
.post-replies { min-width: 44px; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; text-align: center; flex-shrink: 0; margin-top: 4px; }
.post-replies.active { background: #EFF6FF; color: #2563EB; }
.post-replies:not(.active) { background: #F3F4F6; color: #9CA3AF; }
.empty-state { padding: 40px; text-align: center; color: #9CA3AF; font-size: 14px; }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px; flex-wrap: wrap; }
.page-btn { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1.5px solid #E5E7EB; font-size: 13px; color: #374151; background: #fff; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.page-btn:hover { border-color: #2563EB; color: #2563EB; }
.page-current { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; background: #2563EB; border: 1.5px solid #2563EB; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ===== 帖子详情页 ===== */
.post-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; margin-bottom: 16px; }
.post-detail { padding: 24px 24px 0; }
.post-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.post-title { font-size: 22px; font-weight: 700; color: #1F2937; line-height: 1.4; margin-bottom: 16px; }
.post-info-row { display: flex; gap: 16px; font-size: 13px; color: #9CA3AF; padding-bottom: 16px; border-bottom: 1px solid #F3F4F6; flex-wrap: wrap; }
.post-info-row .sep { color: #D1D5DB; }
.reply-count { color: #DC2626; font-weight: 600; }

.post-author-row { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid #F3F4F6; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; flex-shrink: 0; }
.author-info { display: flex; align-items: center; gap: 10px; }
.author-name { font-size: 15px; font-weight: 600; color: #2563EB; }
.author-level { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #FEF3C7; color: #92400E; font-weight: 600; }
.post-content { padding: 20px 24px; font-size: 14px; color: #374151; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.post-actions { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid #F3F4F6; flex-wrap: wrap; }
.action-btn { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 20px; border: 1.5px solid #E5E7EB; font-size: 13px; color: #6B7280; background: #fff; cursor: pointer; transition: all 0.2s; }
.action-btn:hover { border-color: #2563EB; color: #2563EB; }

/* 评论 */
.comment-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; margin-bottom: 16px; }
.comment-header { display: flex; align-items: center; gap: 8px; padding: 16px 24px; border-bottom: 1px solid #F3F4F6; }
.comment-header span:first-child { font-size: 15px; font-weight: 600; color: #1F2937; }
.comment-total { font-size: 13px; color: #9CA3AF; font-weight: 400; }
.comment-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; border-bottom: 1px solid #F3F4F6; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-author { font-size: 14px; font-weight: 600; color: #2563EB; }
.comment-floor { font-size: 12px; color: #9CA3AF; background: #F3F4F6; padding: 2px 8px; border-radius: 10px; }
.comment-time { font-size: 12px; color: #9CA3AF; }
.comment-content { font-size: 14px; color: #374151; line-height: 1.8; white-space: pre-wrap; }
.comment-actions { display: flex; gap: 12px; margin-top: 10px; }
.comment-reply-btn { font-size: 12px; color: #9CA3AF; cursor: pointer; }
.comment-reply-btn:hover { color: #2563EB; }

.reply-form { padding: 20px 24px; border-top: 1px solid #F3F4F6; }
.reply-title { font-size: 13px; color: #6B7280; margin-bottom: 10px; font-weight: 500; }
.reply-form-inner { display: flex; gap: 12px; align-items: flex-end; }
.reply-form-inner textarea { flex: 1; padding: 12px 16px; border: 1.5px solid #E5E7EB; border-radius: 12px; font-size: 14px; color: #374151; resize: vertical; min-height: 80px; font-family: inherit; outline: none; background: #FAFAFA; transition: border-color 0.2s; }
.reply-form-inner textarea:focus { border-color: #2563EB; background: #fff; }
.btn-submit { padding: 10px 24px; background: #2563EB; color: #fff; border: none; border-radius: 20px; font-size: 14px; font-weight: 500; cursor: pointer; flex-shrink: 0; }
.btn-submit:hover { background: #1D4ED8; }
.reply-login-tip { font-size: 13px; color: #6B7280; text-align: center; padding: 20px; }
.reply-login-tip a { color: #2563EB; }

/* ===== 登录注册页 ===== */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { background: #fff; border-radius: 12px; padding: 40px 32px; width: 100%; max-width: 380px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.auth-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 8px; color: #2563EB; }
.auth-desc { font-size: 14px; color: #6B7280; text-align: center; margin-bottom: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form input { padding: 10px 14px; border: 1px solid #E5E7EB; border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.auth-form input:focus { border-color: #2563EB; }
.error-msg { padding: 10px 14px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 6px; font-size: 13px; color: #DC2626; margin-bottom: 16px; display: block; }
.auth-tip { font-size: 13px; color: #6B7280; text-align: center; margin-top: 20px; }
.link-primary { color: #2563EB; font-weight: 500; }

/* ===== 搜索页 ===== */
.search-result-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.search-form-box { margin-bottom: 20px; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; padding: 10px 16px; border: 1.5px solid #E5E7EB; border-radius: 24px; font-size: 14px; outline: none; }
.search-form input:focus { border-color: #2563EB; }
.search-form button { padding: 10px 24px; background: #2563EB; color: #fff; border: none; border-radius: 24px; cursor: pointer; }
.search-stats { font-size: 14px; color: #6B7280; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #F3F4F6; }
.search-stats strong { color: #1F2937; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header-top { flex-wrap: wrap; height: auto; padding: 12px 0; }
    .search-box { max-width: 100%; order: 3; }
    .container { padding: 0 12px; }
    .main-grid { grid-template-columns: 1fr; }
    .forum-layout { grid-template-columns: 1fr; }
    .right-sidebar { position: static; }
    .module-carousel-news { grid-template-columns: 1fr; }
    .forum-card-grid { grid-template-columns: 1fr; }
    .quick-links { grid-template-columns: repeat(3, 1fr); }
    .nav-bar { flex-wrap: wrap; }
    .nav-bar a { padding: 8px 12px; font-size: 14px; }
    .auth-page { padding: 20px 12px; }
    .section-block-body { grid-template-columns: 1fr; }
    .section-block-img { width: 100%; height: 200px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =======================
   导读页 - Tab + 瀑布流
   ======================= */

.daodu-tabs { margin-bottom: 24px; }
.tab-bar {
    display: flex;
    gap: 4px;
    background: #fff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tab-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.tab-btn:hover { color: #2563EB; background: #F0F5FF; }
.tab-btn.active {
    background: linear-gradient(135deg, #2563EB, #4F8EF7);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.featured-card { display: block; margin-bottom: 24px; border-radius: 16px; overflow: hidden; }
.featured-img-wrap { width: 100%; height: 280px; position: relative; }
.featured-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F97316, #FB923C);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; letter-spacing: 0.5px;
}
.featured-title { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 8px; }
.featured-meta { font-size: 13px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.featured-sep { color: rgba(255,255,255,0.5); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.post-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s; display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }

.card-img-wrap { height: 120px; overflow: hidden; position: relative; }
.post-card.card-large .card-img-wrap { height: 160px; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .card-img { transform: scale(1.05); }
.card-section-tag {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.55); color: #fff;
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
}
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title {
    font-size: 14px; font-weight: 600; color: #1F2937;
    line-height: 1.5; margin-bottom: 12px;
    overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.post-card.card-large .card-title { font-size: 15px; -webkit-line-clamp: 2; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #9CA3AF; }
.card-author { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card-avatar {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-stats { display: flex; gap: 8px; align-items: center; }
.card-replies { color: #D1D5DB; }
.card-replies.active { color: #2563EB; }
.card-time { color: #D1D5DB; }
.card-desc { font-size: 11px; color: #9CA3AF; display: block; margin-top: 4px; }

.load-more-wrap { text-align: center; margin: 20px 0 40px; }
.load-more-btn {
    padding: 12px 40px; border: 2px solid #E5E7EB; border-radius: 24px;
    background: #fff; font-size: 14px; font-weight: 600; color: #6B7280;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.load-more-btn:hover { border-color: #2563EB; color: #2563EB; box-shadow: 0 2px 8px rgba(37,99,235,0.1); }

/* ===== 导读页 ===== */
.daodu-hero {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(191,219,254,0.6);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 24px;
    color: #1F2937;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(37,99,235,0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.daodu-hero::before { content: ""; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(106,150,245,0.15) 0%, transparent 70%); pointer-events: none; }
.daodu-hero::after { content: ""; position: absolute; bottom: -40px; left: 40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%); pointer-events: none; }
.daodu-hero h1 { font-size: 26px; font-weight: 800; color: #1E3A8A; margin-bottom: 6px; letter-spacing: -0.5px; position: relative; }
.daodu-hero p { color: #6B7280; font-size: 14px; position: relative; }
.daodu-hero .stats { display: flex; gap: 48px; margin-top: 20px; position: relative; }
.daodu-hero .stat { text-align: center; }
.daodu-hero .stat strong { display: block; font-size: 30px; font-weight: 900; color: #2563EB; letter-spacing: -1px; }
.daodu-hero .stat span { display: block; font-size: 12px; color: #9CA3AF; margin-top: 4px; font-weight: 500; letter-spacing: 0.5px; }

.daodu-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }

.section-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid rgba(243,244,246,0.8); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.section-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(37,99,235,0.1), 0 2px 8px rgba(0,0,0,0.06); }
.section-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #F3F4F6; }
.section-card-title { font-size: 16px; font-weight: 600; color: #1F2937; display: flex; align-items: center; gap: 8px; }
.section-card-title::before { content: ""; display: block; width: 4px; height: 16px; background: #2563EB; border-radius: 2px; }
.section-card-title[data-section="shantou"]::before { background: #2563EB; }
.section-card-title[data-section="minsheng"]::before { background: #F59E0B; }
.section-card-title[data-section="qinggan"]::before { background: #EC4899; }
.section-card-title[data-section="meishi"]::before { background: #EF4444; }
.section-card-title[data-section="hot"]::before { background: #DC2626; }
.section-card-title[data-section="latest"]::before { background: #7C3AED; }
.section-card-more { font-size: 13px; color: #2563EB; }
.section-card-more:hover { text-decoration: underline; }

.post-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; position: relative; }
.post-row::after { content: ""; position: absolute; bottom: 0; left: 48px; right: 0; height: 1px; background: linear-gradient(90deg, rgba(37,99,235,0.06), transparent); }
.post-row:last-child::after { display: none; }
.post-row:hover .post-row-title { color: #2563EB; }
.post-row-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; flex-shrink: 0; }
.post-row-avatar.rank1 { box-shadow: 0 0 0 3px rgba(220,38,38,0.25); }
.post-row-avatar.rank2 { box-shadow: 0 0 0 3px rgba(249,115,22,0.25); }
.post-row-avatar.rank3 { box-shadow: 0 0 0 3px rgba(245,158,11,0.25); }
.post-row-body { flex: 1; min-width: 0; }
.post-row-title { font-size: 14px; color: #1F2937; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; max-height: 3em; transition: color 0.2s; }
.post-row-meta { font-size: 12px; color: #9CA3AF; margin-top: 6px; display: flex; align-items: center; gap: 12px; }
.post-row-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-row-hot { color: #DC2626; font-weight: 600; }

.sidebar-card { background: rgba(255,255,255,0.72); backdrop-filter: blur(12px); border: 1px solid rgba(191,219,254,0.5); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 16px rgba(37,99,235,0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sidebar-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,0.1); }
.sidebar-card-title { font-size: 14px; font-weight: 600; color: #1F2937; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #F3F4F6; display: flex; align-items: center; gap: 6px; }
.sidebar-card-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #E5E7EB, transparent); margin-left: 8px; }
.sidebar-post-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(243,244,246,0.6); cursor: pointer; }
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item:hover .sidebar-post-title { color: #2563EB; }
.post-row-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-right: 4px; }
.post-row-badge.top1 { background: #DC2626; color: #fff; }
.post-row-badge.top2 { background: #F97316; color: #fff; }
.post-row-badge.top3 { background: #F59E0B; color: #fff; }
.post-row-badge.normal { background: #E5E7EB; color: #6B7280; }
.sidebar-post-num { font-size: 11px; color: #9CA3AF; flex-shrink: 0; }
.sidebar-post-title { flex: 1; font-size: 13px; color: #374151; line-height: 1.4; }

.daodu-right { display: flex; flex-direction: column; gap: 0; }
.daodu-right .user-card { flex-shrink: 0; }

@media (max-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .featured-img-wrap { height: 200px; }
    .tab-btn { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
}