/* ============================================================
   FatsClick 全站样式 —— Bloomberg 风格改版（八期）
   黑底 / 白字 / 蓝色强调 / 密集多栏 / 响应式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #000000;
  --panel: #121316;
  --panel-2: #17181c;
  --border: #26282b;
  --border-2: #33363b;
  --text: #e9eaec;
  --text-2: #9b9eab;
  --text-3: #6f7277;
  --blue: #0057ff;
  --blue-hi: #4d9fff;
  --red: #ff4d4d;
  --amber: #ffb02e;
  --green: #37d67a;
}
html { scrollbar-color: #33363b #000; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-hi); text-decoration: none; }
a:hover { color: #8abaff; text-decoration: none; }
h1, h2, h3 { color: #fff; font-weight: 700; }
::selection { background: var(--blue); color: #fff; }

/* ===== 顶部导航（Bloomberg 黑色导航条）===== */
.topnav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 24px; height: 52px; background: #0a0a0b; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.brand { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.brand span { color: var(--blue-hi); }
.brand:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; height: 52px; }
.nav-links a { color: #c9ccd1; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.nav-links a:hover { color: #fff; }
/* 需求4：当前页高亮（蓝色），Today's Report 不再常蓝 */
.nav-links a.active { color: var(--blue-hi); font-weight: 700; }
.nav-links a.nav-premium { color: #c9ccd1; font-weight: 500; }
.nav-links a.nav-premium:hover { color: #fff; }
/* 十三期需求3：修复 Today's Report 当前页不高亮（nav-premium 规则覆盖了 active，需提高优先级） */
.nav-links a.nav-premium.active, .nav-links a.active { color: var(--blue-hi); font-weight: 700; }
.nav-user { color: var(--text-3); font-size: 13px; }
.nav-signup {
  background: var(--blue); color: #fff !important; padding: 7px 16px; border-radius: 2px;
  font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em;
}
.nav-signup:hover { background: #0046cc; color: #fff !important; }
.nav-p-badge {
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; border-radius: 2px;
  padding: 1px 5px; letter-spacing: .08em; vertical-align: 2px;
}

.container { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 26px 18px; }

/* ===== Flash 提示 ===== */
.flash { padding: 10px 14px; border-radius: 2px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.flash-ok { background: #0d2417; border-color: #1d5c39; color: #57d38c; }
.flash-err { background: #2a0f0f; border-color: #6b2323; color: #ff7b7b; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 2px; border: 1px solid var(--border-2);
  background: #1b1d21; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
  letter-spacing: .02em; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--blue-hi); background: #222429; text-decoration: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #0046cc; border-color: #0046cc; }
.btn-danger { color: #ff7b7b; border-color: #5a2626; }
.btn-danger:hover { background: #2a0f0f; border-color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-warn { background: #2a1f0a; color: var(--amber); border: 1px solid #6b5220; }
.btn-warn:hover { background: #38290c; }
.btn-disabled { background: #1b1d21 !important; color: var(--text-3) !important; cursor: not-allowed; border-color: var(--border) !important; }
.hl { color: var(--amber); }

/* ===== 行情滚动条（Bloomberg Ticker）===== */
.ticker { overflow: hidden; white-space: nowrap; background: #0a0a0b; border-bottom: 1px solid var(--border); }
.ticker-inner { display: inline-flex; align-items: center; padding: 7px 0; animation: ticker-move 90s linear infinite; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker-item { color: #c9ccd1; font-size: 12.5px; padding: 0 22px; border-right: 1px solid var(--border-2); }
.ticker-item b { color: #fff; font-weight: 600; }
.ticker-item:hover b { color: var(--blue-hi); }
.ticker-item .tk-cat { color: var(--amber); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-right: 8px; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .ticker { display: none; } }

/* ===== 首页 Hero ===== */
.hero { text-align: center; padding: 54px 0 30px; }
.hero h1 { font-size: 36px; margin-bottom: 24px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--blue-hi); }
.searchbox { max-width: 600px; margin: 0 auto; display: flex; gap: 0; }
.searchbox input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--border-2); border-right: none; border-radius: 2px 0 0 2px;
  font-size: 16px; outline: none; background: #0d0e10; color: var(--text);
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox input:focus { border-color: var(--blue); }
.searchbox button {
  padding: 0 26px; border-radius: 0 2px 2px 0; border: none; background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: .05em;
}
.searchbox button:hover { background: #0046cc; }

/* ===== 首页双栏布局 ===== */
.home-grid { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; margin-top: 26px; }
.home-side .section { margin-top: 0; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }

/* ===== Section 标题（Bloomberg 小节头）===== */
.section { margin-top: 30px; }
.section h2, .table-card h2, .comment-box h2, .recommend-box h2, .feed-head h1, .report-head h1 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .09em; color: #fff;
  border-left: 3px solid var(--blue); padding-left: 10px; margin-bottom: 16px;
}
h2 .filter-links { float: right; font-weight: 400; text-transform: none; letter-spacing: 0; }
.filter-links a { font-size: 12px; color: var(--text-2); padding: 3px 9px; border-radius: 2px; }
.filter-links a.active, .filter-links a:hover { color: #fff; background: #222429; }
.filter-clear { font-size: 12px; margin-left: 8px; font-weight: 400; color: var(--text-2); }
.filter-clear:hover { color: var(--blue-hi); }

/* ===== 资源列表 ===== */
.res-list { list-style: none; }
.res-list li {
  background: var(--panel); border: 1px solid var(--border); border-radius: 2px;
  padding: 15px 18px; margin-bottom: 10px; transition: border-color .15s;
}
.res-list li:hover { border-color: var(--border-2); }
.res-list li.res-item { display: flex; gap: 14px; align-items: flex-start; }
.res-cover { flex: 0 0 68px; width: 68px; height: 92px; border-radius: 2px; overflow: hidden; background: #1b1d21; display: block; }
.res-cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); }
.res-body { flex: 1; min-width: 0; }
.res-title { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.45; }
.res-title:hover { color: var(--blue-hi); }
.res-desc { color: var(--text-2); font-size: 13.5px; margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; }
.res-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .03em; }
.res-meta .cost { color: var(--amber); font-weight: 700; }
.res-meta .like-count { color: #ff8fa3; }

/* ===== Most Read 榜（Bloomberg 编号列表）===== */
.rank-list { list-style: none; counter-reset: rank; }
.rank-list li {
  counter-increment: rank; display: flex; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid #1b1d20; align-items: flex-start;
}
.rank-list li:last-child { border-bottom: none; }
.rank-list li::before {
  content: counter(rank); font-size: 22px; font-weight: 800; color: var(--blue);
  min-width: 26px; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.rank-list a { color: #d6d8dc; font-size: 14px; line-height: 1.45; font-weight: 500; }
.rank-list a:hover { color: #fff; }
.rank-list .rank-meta { display: block; color: var(--text-3); font-size: 11px; margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }

/* ===== 栏目筛选条 ===== */
.cat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cat-chip {
  background: #131417; border: 1px solid var(--border-2); border-radius: 2px; padding: 5px 13px;
  font-size: 12.5px; color: #c9ccd1; text-decoration: none; transition: all .15s;
  text-transform: uppercase; letter-spacing: .04em;
}
.cat-chip span { color: var(--text-3); font-size: 11px; margin-left: 3px; }
.cat-chip:hover { border-color: var(--blue-hi); color: #fff; }
.cat-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-chip.active span { color: #b9d4ff; }

/* ===== 表单 / 卡片 ===== */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: 28px; max-width: 460px; margin: 24px auto; }
.card.wide { max-width: 700px; }
.card h1 { font-size: 24px; margin-bottom: 18px; }
.form-item { margin-bottom: 15px; }
.form-item label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.form-item input, .form-item textarea, .form-item select, .cat-edit-form input, .feed-add-row input, .feed-add-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 2px; font-size: 14px;
  font-family: inherit; background: #0d0e10; color: var(--text); outline: none;
}
.form-item input:disabled { color: var(--text-3); background: #101113; }
.form-item input:focus, .form-item textarea:focus, .form-item select:focus,
.cat-edit-form input:focus, .feed-add-row input:focus { border-color: var(--blue); }
.form-item input::placeholder, .form-item textarea::placeholder, .feed-add-row input::placeholder { color: var(--text-3); }
.form-item textarea { min-height: 100px; resize: vertical; }
.form-item .hint, .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.mini-label { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.mini-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; margin-top: 4px; }
code { background: #1b1d21; border: 1px solid var(--border); border-radius: 2px; padding: 1px 6px; font-size: 12px; color: #c9ccd1; }
input[type="checkbox"] { accent-color: var(--blue); }

/* 提交类型切换 */
.type-switch { display: flex; gap: 0; margin-bottom: 18px; border: 1px solid var(--border-2); border-radius: 2px; overflow: hidden; }
.type-tab { flex: 1; text-align: center; padding: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.type-tab.active { background: var(--blue); color: #fff; }
.type-tab:not(.active):hover { color: #fff; background: #1b1d21; }

/* ===== 详情页 ===== */
.detail { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: 30px; max-width: 780px; margin: 24px auto; }
.detail h1 { font-size: 26px; margin-bottom: 12px; line-height: 1.35; }
.detail .desc { color: #c9ccd1; line-height: 1.85; margin-bottom: 18px; white-space: pre-wrap; font-size: 15px; }
.detail-cover { max-width: 260px; margin-bottom: 16px; }
.detail-cover img { width: 100%; border-radius: 2px; border: 1px solid var(--border); display: block; }
.down-box { background: #0b1524; border: 1px solid #1d3557; border-radius: 2px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.down-box .info { font-size: 13px; color: var(--text-2); }
.down-box .info b { color: var(--amber); }
.expired-note { margin-top: 16px; border: 1px solid #6b2323; background: #2a0f0f; border-radius: 2px; padding: 12px 16px; font-size: 14px; color: #ff7b7b; line-height: 1.7; }

/* ===== 表格 ===== */
.table-card { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: 22px; margin-bottom: 22px; overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.grid th, table.grid td { text-align: left; padding: 10px 10px; border-bottom: 1px solid #1e2023; white-space: nowrap; }
table.grid th { color: var(--text-2); font-weight: 600; background: #0e0f11; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
table.grid tr:hover td { background: #15161a; }
table.grid td { color: #d6d8dc; }

/* ===== 标签 ===== */
.tag { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.tag-pending { background: #2a2413; color: var(--amber); border: 1px solid #5c4c17; }
.tag-approved { background: #0d2417; color: #57d38c; border: 1px solid #1d5c39; }
.tag-rejected { background: #2a0f0f; color: #ff7b7b; border: 1px solid #6b2323; }
.tag-expired { background: #2a0f0f; color: #ff7b7b; border: 1px solid #6b2323; margin-left: 4px; vertical-align: 2px; }
.tag-cat { background: #0b1524; color: var(--blue-hi); font-size: 11px; padding: 1px 7px; border: 1px solid #1d3557; border-radius: 2px; text-decoration: none; }
.tag-cat:hover { border-color: var(--blue-hi); }
.tag-admin { background: #2a2413; color: var(--amber); font-size: 11px; padding: 1px 6px; border-radius: 2px; }
.tag-fav { display: inline-block; background: #2a1f0a; color: var(--amber); border-radius: 2px; font-size: 11px; font-weight: 600; padding: 1px 8px; margin-left: 4px; }
.tag-private { background: #1a1524; color: #b39ddb; border: 1px solid #3a2d57; }
.tag-premium { background: #0b1524; color: var(--blue-hi); border: 1px solid #1d3557; font-weight: 700; }
.tag-premium-until { background: transparent; color: var(--text-3); border: 1px solid var(--border-2); }
.tag-basic { background: #1b1d21; color: var(--text-2); border: 1px solid var(--border-2); }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ===== 后台标签页 ===== */
.admin-tabs { display: flex; gap: 0; margin-bottom: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--border); }
.admin-tabs a {
  padding: 9px 16px; background: transparent; border: none; font-size: 13px; color: var(--text-2);
  font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.admin-tabs a:hover { color: #fff; text-decoration: none; }
.admin-tabs a.active { color: #fff; border-bottom-color: var(--blue); }

/* ===== 后台审核表单 ===== */
.review-cell { min-width: 260px; }
.review-form { display: flex; flex-direction: column; gap: 4px; }
.review-form input[type="text"], .review-form input[type="url"] {
  width: 220px; padding: 5px 8px; border: 1px solid var(--border-2); border-radius: 2px; font-size: 13px;
  font-family: inherit; background: #0d0e10; color: var(--text);
}
.review-form select { padding: 5px 8px; border: 1px solid var(--border-2); border-radius: 2px; background: #0d0e10; color: var(--text); }

/* ===== 点赞 / 报错按钮 ===== */
.like-form { display: inline; }
.like-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-2); background: #1b1d21;
  border-radius: 2px; padding: 8px 15px; font-size: 13px; color: var(--text); cursor: pointer; transition: all .15s;
}
.like-btn:hover { border-color: #ff8fa3; color: #ff8fa3; }
.like-btn:hover svg { stroke: #ff8fa3; }
.like-btn.liked { background: #2a1418; border-color: #66303c; color: #ff8fa3; cursor: default; }
.like-btn.reported { background: #2a0f0f; border-color: #6b2323; color: #ff7b7b; cursor: default; }
.like-save-form { display: inline-flex; align-items: center; gap: 6px; }
.like-save-form input[name="tag"] { border: 1px solid var(--border-2); border-radius: 2px; padding: 7px 12px; font-size: 13px; width: 150px; outline: none; background: #0d0e10; color: var(--text); }
.like-save-form input[name="tag"]:focus { border-color: #ff8fa3; }

.report-toggle { vertical-align: top; text-decoration: none; }
.report-toggle:hover { border-color: var(--red); color: #ff7b7b; }
.report-details-inline { display: inline-block; position: relative; vertical-align: top; }
.report-details-inline > summary { list-style: none; }
.report-details-inline > summary::-webkit-details-marker { display: none; }
.report-details-inline[open] > summary { border-color: var(--red); color: #ff7b7b; }
.report-details-inline .report-form {
  position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: 320px;
  background: #17181c; border: 1px solid var(--border-2); border-radius: 2px; padding: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.6);
}
.report-details-inline .report-form textarea {
  width: 100%; min-height: 70px; border: 1px solid var(--border-2); border-radius: 2px; padding: 8px 10px;
  font-size: 13px; margin-bottom: 8px; box-sizing: border-box; resize: vertical; background: #0d0e10; color: var(--text); font-family: inherit;
}

/* ===== 推荐 ===== */
.recommend-box { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: 22px; margin-top: 26px; }
.rec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rec-item { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.rec-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; color: #d6d8dc; font-size: 13.5px; }
.rec-link:hover { background: #17181c; color: #fff; }
.rec-cover { width: 40px; height: 54px; object-fit: cover; border-radius: 2px; flex: none; filter: saturate(.9); }
.rec-title { flex: 1; line-height: 1.5; }
.rec-meta { display: block; color: var(--text-3); font-size: 11px; margin-top: 4px; text-transform: uppercase; }

/* ===== 评论 ===== */
.comment-box { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: 22px; margin-top: 26px; }
.comment-item { border-top: 1px solid #1e2023; padding: 13px 0; }
.comment-item:first-of-type { border-top: none; }
.comment-head { font-size: 13.5px; color: #fff; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-time { color: var(--text-3); font-size: 11px; margin-left: auto; text-transform: uppercase; }
.comment-content { margin-top: 6px; font-size: 14.5px; color: #c9ccd1; line-height: 1.7; word-break: break-word; }
.comment-form { margin-top: 16px; }
.comment-form textarea { width: 100%; min-height: 80px; border: 1px solid var(--border-2); border-radius: 2px; padding: 10px 12px; font-size: 14px; font-family: inherit; box-sizing: border-box; resize: vertical; background: #0d0e10; color: var(--text); }
.comment-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,87,255,.2); }
.comment-form .btn { margin-top: 10px; }

.cat-add-form, .cat-edit-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cat-add-form input[type=text], .cat-edit-form input[type=text] { border: 1px solid var(--border-2); border-radius: 2px; padding: 8px 12px; font-size: 13px; background: #0d0e10; color: var(--text); }
.cat-add-form input[type=text] { flex: 1; min-width: 200px; }

/* ===== Feed / 新闻系统（八期）===== */
.feed-head, .report-head { padding: 8px 0 4px; }
.feed-head h1, .report-head h1 { border-left: none; padding-left: 0; font-size: 26px; }
.feed-sub { color: var(--text-2); font-size: 14px; line-height: 1.7; margin: 6px 0 4px; }
.feed-count { color: var(--text-2); font-size: 13px; margin: 4px 0 0; }
.feed-count b { color: #fff; }
.feed-add-form { margin-bottom: 4px; }
.feed-add-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.feed-add-row input { flex: 1; min-width: 180px; }
.feed-add-row input::placeholder { color: var(--text-3); }

.news-list { list-style: none; }
.news-item {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 11px 2px; border-bottom: 1px solid #1e2023;
}
.news-item:last-child { border-bottom: none; }
.news-item.news-new { animation: news-flash 2.5s ease-out; }
@keyframes news-flash { 0% { background: rgba(0,87,255,.18); } 100% { background: transparent; } }
.news-src { flex: 0 0 220px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; }
.news-title { flex: 1; min-width: 200px; font-size: 14.5px; color: #d6d8dc; line-height: 1.5; font-weight: 500; }
.news-title:hover { color: #fff; }
.news-time { flex: none; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .news-item { display: block; }
  .news-src { display: block; max-width: none; flex: none; margin-bottom: 3px; }
  .news-time { display: block; margin-top: 3px; }
}

/* Live 小红点（Bloomberg LIVE 风格） */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  vertical-align: 1px; margin-left: 6px; animation: live-pulse 1.6s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,77,.5); }
  70% { box-shadow: 0 0 0 7px rgba(255,77,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}

/* 推送提示 Toast */
.news-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 2px;
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 28px rgba(0,0,0,.55);
}
.push-toggle-wrap { margin-left: auto; }

/* ===== 页脚 ===== */
.footer {
  text-align: center; color: var(--text-3); font-size: 12px; padding: 26px 18px;
  border-top: 1px solid var(--border); margin-top: 40px; background: #0a0a0b;
  text-transform: uppercase; letter-spacing: .06em;
}
.footer a { color: var(--text-2); }

/* ===== 响应式 ===== */
@media (max-width: 600px) {
  .topnav { padding: 0 14px; height: auto; }
  .nav-links { height: auto; padding: 8px 0; gap: 14px; }
  .hero { padding: 30px 0 18px; }
  .hero h1 { font-size: 24px; }
  .searchbox { padding: 0 6px; }
  .container { padding: 16px 12px; }
  .detail, .card, .table-card { padding: 18px; }
  .down-box { flex-direction: column; align-items: flex-start; }
  .news-toast { left: 14px; right: 14px; bottom: 14px; }
}

/* ===== 手机端栏目条：单行横向滑动 ===== */
@media (max-width: 600px) {
  .cat-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px -12px 0; padding: 0 12px 6px; scrollbar-width: none; -ms-overflow-style: none; }
  .cat-bar::-webkit-scrollbar { display: none; }
  .cat-chip { flex: none; white-space: nowrap; }
}
.mytag-bar { margin: 0 0 12px; flex-wrap: wrap; }
.cat-bar.mytag-bar .cat-chip { display: inline-block; }
@media (max-width: 600px) {
  .cat-bar.mytag-bar { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; }
  .report-details-inline .report-form { position: fixed; left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; }
}

/* ============================================================
   十二期（问题12）：关键字订阅 / 公共分类库 / 杂志式今日报告
   ============================================================ */

/* ===== 需求1：关键字标签（高级用户）===== */
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kw-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0, 87, 255, .12); border: 1px solid #1c3f7d;
  color: #9cc0ff; padding: 4px 6px 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.kw-tag form { display: inline; }
.kw-tag button {
  background: none; border: none; cursor: pointer; padding: 0 4px;
  color: #5f7db1; font-size: 15px; line-height: 1; font-weight: 700;
}
.kw-tag button:hover { color: #ff6b6b; }
.kw-add-row { display: flex; gap: 8px; margin-top: 10px; }
.kw-add-row input { flex: 1; }
.kw-hero {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); margin-bottom: 2px;
}

/* ===== 需求2：公共库分类筛选 + 搜索 ===== */
.feed-search { display: flex; gap: 8px; margin: 12px 0 2px; flex-wrap: wrap; }
.feed-search input[type="text"] { flex: 1; min-width: 220px; }
.feed-search .btn { white-space: nowrap; }
.dir-count { color: var(--text-3); font-size: 12px; font-weight: 500; margin-left: 6px; }

/* ===== 需求3：今日报告杂志式布局 ===== */
.mag-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 16px; margin-top: 18px;
}
.mag-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.mag-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.mag-thumb { display: block; position: relative; height: 132px; background: #17191d; overflow: hidden; }
.mag-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b1630 0%, #0a2160 55%, #123079 100%);
}
.mag-noimg span {
  font-size: 19px; font-weight: 800; letter-spacing: .1em; color: #3560c4;
  text-transform: uppercase; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mag-kw {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(0, 87, 255, .92); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 3px; text-transform: uppercase;
}
.mag-body { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mag-src {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--blue-hi);
}
.mag-title {
  font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mag-title:hover { color: #8abaff; }
.mag-time { font-size: 11px; color: var(--text-3); margin-top: auto; }
.mag-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mag-hero { grid-column: span 2; }
.mag-hero .mag-thumb { height: 208px; }
.mag-hero .mag-title { font-size: 18px; -webkit-line-clamp: 2; }
.mag-hero .mag-desc { display: block; }
.mag-section-title {
  font-size: 15px; font-weight: 700; color: #fff; margin: 26px 0 2px;
  border-left: 3px solid var(--blue); padding-left: 10px;
}
.mag-empty { color: var(--text-3); font-size: 13px; margin-top: 10px; }
@media (max-width: 600px) {
  .mag-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mag-hero { grid-column: span 2; }
  .mag-hero .mag-thumb { height: 160px; }
  .mag-title { font-size: 13px; -webkit-line-clamp: 4; }
}
@media (max-width: 400px) {
  .mag-grid { grid-template-columns: 1fr; }
  .mag-hero { grid-column: span 1; }
}

/* ===== 十三期需求4：书柜 BookCase ===== */
.bc-shelf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 14px; padding-top: 6px;
}
.bc-book { position: relative; }
.bc-cover {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 200px; border-radius: 3px 6px 6px 3px; overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.bc-cover::before { /* 书脊装饰线 */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  background: rgba(0,0,0,.28); border-right: 1px solid rgba(255,255,255,.12);
}
.bc-cover:hover { transform: translateY(-4px); box-shadow: 0 12px 22px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.12); }
.bc-spine {
  padding: 14px 12px 14px 18px; font-size: 13px; font-weight: 700; line-height: 1.5;
  color: #fff; text-align: center; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
  text-shadow: 0 1px 2px rgba(0,0,0,.4); word-break: break-word;
}
.bc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-img ~ .bc-spine { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.bc-shine {
  position: absolute; top: 0; right: 0; bottom: 0; width: 14%;
  background: linear-gradient(105deg, rgba(255,255,255,.16), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.bc-info { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.bc-date { color: var(--text-3); font-size: 11px; }
.bc-remove { position: absolute; top: -7px; right: -7px; }
.bc-remove button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid #5a2626;
  background: #2a0f0f; color: #ff7b7b; font-size: 11px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .15s;
}
.bc-book:hover .bc-remove button { opacity: 1; }
.bc-remove button:hover { background: #471515; border-color: var(--red); }
/* 书脊配色（6 种渐变） */
.bc-c0 .bc-cover { background: linear-gradient(160deg, #1d3557, #15263d); }
.bc-c1 .bc-cover { background: linear-gradient(160deg, #3d2a52, #241a33); }
.bc-c2 .bc-cover { background: linear-gradient(160deg, #7a2e2e, #4d1c1c); }
.bc-c3 .bc-cover { background: linear-gradient(160deg, #14532d, #0c301a); }
.bc-c4 .bc-cover { background: linear-gradient(160deg, #7a5a12, #4a370a); }
.bc-c5 .bc-cover { background: linear-gradient(160deg, #284b63, #1a2f3f); }
@media (max-width: 600px) {
  .bc-shelf { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 10px; }
  .bc-cover { height: 168px; }
  .bc-remove button { opacity: 1; }
}

/* ===== 十三期需求1：公共 Feed 目录 AJAX 分页 ===== */
.dir-pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.dir-pager button, .dir-pager span {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 2px;
  border: 1px solid var(--border-2); background: #1b1d21; color: var(--text);
  font-size: 12px; font-weight: 600; cursor: pointer; line-height: 28px; text-align: center;
}
.dir-pager button:hover { border-color: var(--blue-hi); }
.dir-pager button.cur { background: var(--blue); border-color: var(--blue); color: #fff; cursor: default; }
.dir-pager button:disabled { opacity: .4; cursor: default; }
.dir-pager span.ellipsis { border: none; background: none; color: var(--text-3); cursor: default; }
.dir-loading { color: var(--text-3); font-size: 12px; margin-left: 8px; }

/* ===== 十四期需求1：今日报告显示方式切换（杂志式 / 邮件列表式） ===== */
.view-toggle { display: flex; gap: 0; margin: 12px 0 2px; border: 1px solid var(--border-2); border-radius: 6px; overflow: hidden; width: max-content; }
.vt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--text-2); background: #1b1d21; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.vt-btn + .vt-btn { border-left: 1px solid var(--border-2); }
.vt-btn .vt-ico { font-size: 13px; line-height: 1; }
.vt-btn:hover { color: var(--text); background: #23262b; }
.vt-btn.active { background: var(--blue); color: #fff; cursor: default; }
.vt-btn.active:hover { background: var(--blue); color: #fff; }

/* 邮件列表式（收件箱风格） */
.mail-list { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); }
.mail-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--border); text-decoration: none;
  transition: background .12s ease;
}
.mail-list .mail-row:last-child { border-bottom: none; }
.mail-row:hover { background: rgba(56, 108, 228, .07); }
.mail-ava {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b1630, #123079); color: #6f92e8;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; overflow: hidden;
}
.mail-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mail-src { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-hi); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mail-kw {
  background: rgba(0, 87, 255, .92); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; padding: 2px 7px; border-radius: 3px; text-transform: uppercase;
}
.mail-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.mail-title:hover { color: #8abaff; }
.mail-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.mail-time { flex: 0 0 auto; margin-top: 3px; font-size: 11px; color: var(--text-3); white-space: nowrap; }
@media (max-width: 520px) {
  .mail-row { padding: 10px 12px; gap: 9px; }
  .mail-ava { flex-basis: 28px; width: 28px; height: 28px; font-size: 10px; }
  .mail-title { font-size: 13px; }
  .view-toggle { width: 100%; }
  .vt-btn { flex: 1; justify-content: center; }
}

/* ===== 十五期需求2：报告页头标题行 flex 布局，显示方式切换按钮靠右 ===== */
.rh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rh-top h1 { margin: 0; }
@media (max-width: 520px) {
  .rh-top .view-toggle { width: 100%; margin-top: 6px; }
}
