/* ===== 平台公告 前台页面样式（列表页 / 详情页共用）===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #fff; color: #1e293b; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
ul, ol { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- 顶部导航 ---- */
.navbar { position: sticky; top: 0; z-index: 99; background: #fff; box-shadow: 0 1px 12px rgba(15, 23, 42, .06); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; color: #0f172a; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.logo div { font-size: 17px; font-weight: 800; line-height: 1.2; }
.logo small { display: block; font-size: 10px; color: #94a3b8; font-weight: 500; letter-spacing: .5px; }
.nav-menu { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-menu a { color: #475569; font-size: 14px; font-weight: 600; transition: color .2s; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: #4f46e5; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn-login { color: #4f46e5; font-size: 14px; font-weight: 600; }
.nav-actions .btn-register { background: #4f46e5; color: #fff; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 8px; }
.nav-actions .btn-register:hover { background: #4338ca; }
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; color: #0f172a; cursor: pointer; }
@media (max-width: 900px) {
    .nav-menu { position: fixed; left: 0; right: 0; top: 66px; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 16px; box-shadow: 0 12px 24px rgba(15,23,42,.08); display: none; }
    .nav-menu.open { display: flex; }
    .nav-inner { position: relative; }
    .nav-actions .btn-login, .nav-actions .btn-register { display: none; }
    .menu-toggle { display: block; margin-left: auto; }
}

/* ---- 页头横幅 ---- */
.page-hero { background: linear-gradient(135deg, #4338ca 0%, #6366f1 55%, #8b5cf6 100%); color: #fff; padding: 52px 0 54px; }
.page-hero .crumbs { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.page-hero .crumbs a { color: rgba(255,255,255,.85); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,.85); max-width: 760px; line-height: 1.8; }

/* ---- 公告列表 ---- */
.page-main { background: #f8fafc; min-height: 50vh; padding: 40px 0 70px; }
.notice-list-box { background: #fff; border: 1px solid #eef1f6; border-radius: 14px; box-shadow: 0 2px 10px rgba(15,23,42,.04); overflow: hidden; }
.notice-list-box .row { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.notice-list-box .row:hover { background: #f8faff; }
.notice-list-box .row .pin { background: #fef3c7; color: #b45309; font-size: 12px; padding: 2px 8px; border-radius: 4px; flex: none; font-weight: 600; }
.notice-list-box .row .body { min-width: 0; flex: 1; }
.notice-list-box .row .body h3 { font-size: 16px; color: #0f172a; font-weight: 700; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list-box .row:hover .body h3 { color: #4f46e5; }
.notice-list-box .row .body p { font-size: 13px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list-box .row .meta { text-align: right; flex: none; }
.notice-list-box .row .meta .date { display: block; font-size: 13px; color: #94a3b8; }
.notice-list-box .row .meta .views { font-size: 12px; color: #cbd5e1; }
.empty-tip { padding: 60px 20px; text-align: center; color: #94a3b8; font-size: 14px; }
.total-tip { padding: 16px 24px; font-size: 13px; color: #94a3b8; }

/* ---- 公告详情 ---- */
.detail-box { background: #fff; border: 1px solid #eef1f6; border-radius: 14px; box-shadow: 0 2px 10px rgba(15,23,42,.04); padding: 40px 48px; max-width: 880px; margin: 0 auto; }
.detail-box h1 { font-size: 26px; font-weight: 800; color: #0f172a; line-height: 1.4; margin-bottom: 16px; }
.detail-meta { display: flex; align-items: center; gap: 18px; color: #94a3b8; font-size: 13px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; margin-bottom: 26px; }
.detail-meta .pin { background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.detail-back { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 13px; margin-bottom: 18px; }
.detail-back:hover { color: #4f46e5; }
.article-body { font-size: 15.5px; line-height: 1.95; color: #334155; word-break: break-word; }
.article-body h2 { font-size: 21px; color: #0f172a; font-weight: 800; margin: 30px 0 14px; }
.article-body h3 { font-size: 18px; color: #0f172a; font-weight: 700; margin: 24px 0 12px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.article-body table th, .article-body table td { border: 1px solid #e2e8f0; padding: 9px 12px; text-align: left; }
.article-body table th { background: #f8fafc; color: #0f172a; font-weight: 700; }
.article-body a { color: #4f46e5; word-break: break-all; }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote { border-left: 4px solid #4f46e5; background: #f8faff; padding: 12px 18px; color: #475569; margin: 0 0 16px; border-radius: 0 8px 8px 0; }
.article-body pre { background: #0f172a; color: #e2e8f0; padding: 16px 20px; border-radius: 10px; overflow-x: auto; font-size: 13.5px; margin: 0 0 16px; }
.article-body code { background: #f1f5f9; color: #be185d; padding: 2px 6px; border-radius: 4px; font-size: 13.5px; }
.article-body pre code { background: none; color: inherit; padding: 0; }

/* ---- 页脚 ---- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 48px 0 26px; }
.site-footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.site-footer h4 { color: #e2e8f0; font-size: 15px; margin-bottom: 14px; }
.site-footer p { font-size: 13px; line-height: 2; }
.site-footer .f-nav { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.site-footer .f-nav a { color: #94a3b8; }
.site-footer .f-nav a:hover { color: #fff; }
.site-footer .f-bottom { border-top: 1px solid #1e293b; padding-top: 20px; font-size: 12px; color: #64748b; text-align: center; }
@media (max-width: 900px) {
    .site-footer .f-grid { grid-template-columns: 1fr; gap: 24px; }
    .detail-box { padding: 26px 22px; }
    .notice-list-box .row { padding: 16px 16px; }
}
