/* 餐界网 · 前台样式（红色门户风格） */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red: #d8261f;
  --red-d: #b51d18;
  --red-l: #fff5f4;
  --gold: #f5a623;
  --ink: #222;
  --ink2: #555;
  --ink3: #999;
  --line: #eee;
  --bg: #f7f7f8;
}
body { font: 15px/1.7 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航 ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.topbar-in { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--red), var(--red-d)); color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(216,38,31,.35); }
.logo-txt { font-size: 22px; font-weight: 800; color: var(--ink); }
.logo-txt small { display: block; font-size: 11px; color: var(--ink3); font-weight: 400; letter-spacing: 2px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a { padding: 0 14px; height: 64px; line-height: 64px; font-size: 15px; color: var(--ink2); white-space: nowrap; position: relative; }
.nav a:hover, .nav a.on { color: var(--red); }
.nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--red); border-radius: 2px; }
.topbtn { padding: 7px 16px; border-radius: 6px; background: var(--red); color: #fff; font-size: 13px; flex-shrink: 0; }
.topbtn:hover { background: var(--red-d); color: #fff; }

/* ---------- 轮播 ---------- */
.banner-wrap { position: relative; max-width: 1200px; margin: 16px auto; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.bn-slide { display: block; height: 340px; background-size: cover; background-position: center; position: relative; opacity: 0; transition: opacity .6s; }
.bn-slide.on { opacity: 1; }
.bn-slide:not(.on) { position: absolute; top: 0; left: 0; right: 0; }
.bn-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 28px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.bn-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.bn-sub { font-size: 14px; opacity: .9; }
.bn-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 6px; z-index: 5; }
.bn-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.bn-dot.on { background: var(--red); width: 22px; border-radius: 5px; }

/* ---------- 首页双栏 ---------- */
.home-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; margin: 16px auto; max-width: 1200px; padding: 0 16px; }
.block { background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.block-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.block-hd h3 { font-size: 18px; font-weight: 700; }
.ic-ic { font-size: 18px; }
.ic-ic.flash { color: var(--red); }
.more { margin-left: auto; font-size: 13px; color: var(--ink3); }

/* 资讯列表项 */
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-img { width: 180px; height: 120px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; background-color: #f0f0f0; }
.news-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.news-t { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-s { font-size: 13px; color: var(--ink2); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 12px; font-size: 12px; color: var(--ink3); flex-wrap: wrap; }
.tag-cat { padding: 2px 8px; border-radius: 4px; background: var(--red-l); color: var(--red); font-size: 12px; }

/* 头条精选 */
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-card { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }
.feat-img { height: 140px; background-size: cover; background-position: center; background-color: #f0f0f0; }
.feat-txt { padding: 10px 12px; background: #fafafa; }
.feat-t { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feat-s { font-size: 12px; color: var(--ink3); }

/* 专栏文章 */
.col-list { display: flex; flex-direction: column; }
.col-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.col-item:last-child { border: 0; }
.col-author { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--red); margin-bottom: 6px; }
.col-badge { padding: 1px 6px; border-radius: 3px; background: var(--red); color: #fff; font-size: 11px; }
.col-t { font-size: 15px; font-weight: 600; }

/* 快讯 */
.quick-list { list-style: none; }
.quick-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.quick-list li:last-child { border: 0; }
.q-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.quick-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-time { font-size: 12px; color: var(--ink3); }

/* 热门排行 */
.hot-list { list-style: none; counter-reset: hot; }
.hot-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.hot-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-no { font-style: italic; font-weight: 800; font-size: 16px; color: var(--ink3); width: 22px; text-align: center; flex-shrink: 0; }
.hot-no.top { color: var(--red); }

/* 专栏作者卡片 */
.col-authors { display: flex; flex-direction: column; gap: 10px; }
.col-author-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #fafafa; }
.ca-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--gold)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ca-name { font-size: 14px; font-weight: 600; }
.ca-title { font-size: 12px; color: var(--ink3); }

/* ---------- 侧栏 ---------- */
.home-side .block { margin-bottom: 16px; }

/* ---------- 列表页 ---------- */
.page-hd { background: #fff; border-radius: 10px; padding: 24px 28px; margin: 16px auto; max-width: 1200px; }
.page-h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.page-crumb { font-size: 13px; color: var(--ink3); }
.list-wrap { max-width: 1200px; margin: 0 auto 24px; padding: 0 16px; }
.list-wrap .news-list { background: #fff; border-radius: 10px; padding: 0 20px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 20px 0; }
.pg { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.pg.on, .pg:hover { background: var(--red); color: #fff; border-color: var(--red); }
.empty { padding: 60px 0; text-align: center; color: var(--ink3); }

/* ---------- 详情页 ---------- */
.art-cover { margin: 16px auto; max-width: 960px; padding: 0 16px; }
.art-cover img { width: 100%; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.art-hd { background: #fff; border-radius: 10px; padding: 28px 32px 20px; margin: 16px auto; max-width: 960px; }
.art-title { font-size: 26px; font-weight: 800; line-height: 1.4; margin: 12px 0; }
.art-meta { display: flex; gap: 16px; font-size: 13px; color: var(--ink3); padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.art-content { background: #fff; border-radius: 10px; padding: 28px 32px; margin: 16px auto; max-width: 960px; line-height: 1.85; font-size: 16px; }
.art-content p { margin-bottom: 16px; }
.art-content img { border-radius: 8px; margin: 16px 0; }
.art-content h2, .art-content h3 { margin: 24px 0 12px; }
.art-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.art-tag { padding: 4px 10px; border-radius: 4px; background: var(--red-l); color: var(--red); font-size: 13px; }
.art-rel { max-width: 960px; margin: 0 auto 24px; }
.rel-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rel-item { display: flex; gap: 10px; }
.rel-img { width: 90px; height: 60px; border-radius: 6px; background-size: cover; background-position: center; background-color: #f0f0f0; flex-shrink: 0; }
.rel-t { font-size: 14px; line-height: 1.5; }

/* ---------- 快讯页 ---------- */
.quick-wrap { max-width: 960px; margin: 0 auto 24px; padding: 0 16px; }
.quick-timeline { position: relative; padding-left: 24px; }
.quick-timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.qt-item { position: relative; padding-bottom: 20px; }
.qt-dot { position: absolute; left: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--red); }
.qt-card { background: #fff; border-radius: 10px; padding: 16px 20px; }
.qt-time { font-size: 12px; color: var(--ink3); margin-bottom: 6px; }
.qt-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.qt-summary { font-size: 14px; color: var(--ink2); margin-bottom: 6px; }
.qt-source { font-size: 12px; color: var(--ink3); }

/* ---------- 专栏页 ---------- */
.columns-grid { max-width: 1200px; margin: 16px auto 24px; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.col-card { background: #fff; border-radius: 10px; padding: 24px 16px; text-align: center; }
.cc-ava { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--gold)); color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.cc-name { font-size: 17px; font-weight: 700; }
.cc-title { font-size: 12px; color: var(--red); margin: 4px 0 8px; }
.cc-desc { font-size: 13px; color: var(--ink3); }
.col-hd { display: flex; gap: 16px; align-items: center; }
.col-hd-ava { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--gold)); color: #fff; font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.col-hd-title { color: var(--red); font-size: 14px; margin: 4px 0; }
.col-hd-desc { color: var(--ink3); font-size: 13px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0; }
.nf-code { font-size: 80px; font-weight: 800; color: var(--red); }
.notfound p { color: var(--ink3); margin: 16px 0 24px; }
.nf-back { display: inline-block; padding: 10px 24px; border-radius: 6px; background: var(--red); color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: #2b2b2d; color: #aaa; margin-top: 32px; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 32px; padding: 40px 16px 24px; }
.foot-logo { color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.foot-logo .logo-mark { width: 32px; height: 32px; font-size: 18px; }
.foot-desc { font-size: 13px; line-height: 1.8; color: #999; margin-bottom: 6px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-links a { font-size: 13px; color: #999; }
.foot-links a:hover { color: #fff; }
.foot-copy { text-align: center; padding: 16px; border-top: 1px solid #3a3a3c; font-size: 13px; color: #888; }
.foot-copy a { color: #9aa0a6; text-decoration: none; margin-left: 2px; }
.foot-copy a:hover { color: #fff; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .home-grid { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .columns-grid { grid-template-columns: repeat(2, 1fr); }
  .rel-list { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .news-img { width: 130px; height: 88px; }
  .news-t { font-size: 16px; }
  .bn-slide { height: 220px; }
  .art-title { font-size: 22px; }
  .nav { gap: 0; }
  .nav a { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 600px) {
  .topbar-in { height: 56px; gap: 12px; }
  .news-img { width: 110px; height: 74px; }
  .banner-wrap { margin: 8px; }
}
