@charset "utf-8";
/* ==========================================================================
   糖酒快讯网 · 前台样式
   ========================================================================== */

:root {
    --brand: #8c1c13;
    --brand-dark: #6d140e;
    --brand-light: #b8281c;
    --gold: #c8a15a;
    --ink: #17181c;
    --text: #33353b;
    --muted: #83878f;
    --line: #eceef2;
    --bg: #f5f6f8;
    --card: #ffffff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(20, 22, 28, .06);
    --shadow-lg: 0 18px 50px rgba(20, 22, 28, .12);
    --wrap: 1240px;
    --header-h: 74px;
    --hero-h: 426px; /* 首页 banner 固定高度（16:9.5，宽 717） */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.75 "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.4; }
p { margin: 0 0 14px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }

/* ---------------- 顶部条 ---------------- */
.topbar { background: #1b1c20; color: #c9ccd3; font-size: 13px; height: 38px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar .sep { width: 1px; height: 12px; background: #3a3d45; display: inline-block; }
.topbar a:hover { color: #fff; }

/* ---------------- 头部 ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.site-header.stuck { box-shadow: 0 6px 22px rgba(20, 22, 28, .08); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; }
.logo-text b { display: block; font-size: 21px; letter-spacing: 1px; color: var(--brand); line-height: 1.15; }
.logo-text i { display: block; font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.nav-link {
    position: relative; padding: 8px 13px; font-size: 16px; color: var(--ink); white-space: nowrap; border-radius: 8px;
}
.nav-link:hover { background: #fdf0ee; color: var(--brand); }
.nav-link.active { color: var(--brand); font-weight: 600; }
.nav-link.active::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
    width: 18px; height: 3px; border-radius: 3px; background: var(--brand);
}

.header-tools { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
    width: 190px; height: 38px; padding: 0 38px 0 14px; border: 1px solid var(--line);
    border-radius: 999px; background: #f6f7f9; transition: width .25s, border-color .25s;
}
.search-box input:focus { width: 240px; border-color: var(--brand); background: #fff; }
.search-box button {
    position: absolute; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.search-box button:hover { color: var(--brand); }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff; border: 0; border-radius: 999px; padding: 0 20px; height: 38px;
    font-size: 14px; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(140, 28, 19, .28); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-ghost {
    display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--line);
    border-radius: 999px; background: #fff; font-size: 13px; color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------------- 通用区块 ---------------- */
/* 主内容区与页头/页脚统一容器宽度（.wrap：1240px + 左右内边距），避免大屏下无限拉伸 */
.page-main {
    width: 100%; max-width: var(--wrap); margin: 0 auto;
    padding: 26px 20px 46px;
}
.section { margin-bottom: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.section-title::before { content: ""; width: 4px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--brand)); }
.section-sub { font-size: 13px; color: var(--muted); font-weight: 400; }
.section-more { font-size: 13px; color: var(--muted); }
.section-more:hover { color: var(--brand); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* ---------------- 首屏 Hero ---------------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #222; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero-slider .slide.active { opacity: 1; position: relative; }
/* 固定高度：与无图占位时一致（717 × 426，16:9.5），不再随图片原始比例/宽度变化
   注意：slide-img 是 <a>，默认 inline，height/aspect-ratio 对 inline 元素无效，必须 display:block */
.hero-slider .slide-img {
    display: block; position: relative; width: 100%; height: var(--hero-h);
    aspect-ratio: auto; overflow: hidden; background: #2a2b30;
}
.hero-slider .slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slider .slide-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slide-img .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 74px; color: rgba(255, 255, 255, .85); font-weight: 700; }
.hero-slider .slide-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 52px 26px 22px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78));
    color: #fff;
}
.hero-slider .tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand); font-size: 12px; margin-bottom: 10px;
}
.hero-slider h2 { color: #fff; font-size: 26px; line-height: 1.35; margin-bottom: 8px; }
.hero-slider h2 a { color: #fff; }
.hero-slider h2 a:hover { color: var(--gold); }
.hero-slider .meta { font-size: 12px; color: rgba(255, 255, 255, .72); }
.hero-slider .dots { position: absolute; right: 16px; bottom: 18px; display: flex; gap: 6px; z-index: 3; }
.hero-slider .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; transition: .25s; }
.hero-slider .dots i.active { background: var(--gold); width: 20px; border-radius: 5px; }
.hero-slider .arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .32); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: .25s; z-index: 3;
}
.hero-slider:hover .arrow { opacity: 1; }
.hero-slider .arrow.prev { left: 14px; }
.hero-slider .arrow.next { right: 14px; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-headline { background: var(--card); border-radius: var(--radius); padding: 18px 18px 8px; box-shadow: var(--shadow); }
.hero-headline h3 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hero-headline h3 span { font-size: 12px; font-weight: 400; color: var(--muted); }
.headline-item { display: flex; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--line); }
.headline-item:first-of-type { border-top: 0; }
.headline-item .idx { flex: 0 0 22px; height: 22px; border-radius: 6px; background: #f2f3f5; color: var(--muted); font-size: 12px; display: grid; place-items: center; margin-top: 3px; }
.headline-item:nth-child(2) .idx { background: var(--brand); color: #fff; }
.headline-item:nth-child(3) .idx { background: rgba(140, 28, 19, .16); color: var(--brand); }
.headline-item .txt { min-width: 0; }
.headline-item .txt a { display: block; font-size: 15px; line-height: 1.55; color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.headline-item .txt time { font-size: 12px; color: var(--muted); }

/* 快讯 */
.ticker { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow); }
.ticker-label { display: flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.ticker-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(140, 28, 19, .14); }
.ticker-view { flex: 1 1 auto; overflow: hidden; height: 26px; position: relative; }
.ticker-list { position: absolute; inset: 0; transition: transform .5s ease; }
.ticker-list li { height: 26px; line-height: 26px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 频道 Tab 卡片 ---------------- */
.cat-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cat-tabs { display: flex; gap: 6px; padding: 14px 18px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cat-tabs button {
    border: 0; background: transparent; padding: 8px 16px; font-size: 16px; color: var(--muted); cursor: pointer; border-radius: 10px 10px 0 0; position: relative;
}
.cat-tabs button.active { color: var(--brand); font-weight: 700; }
.cat-tabs button.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; background: var(--brand); border-radius: 3px; }
.cat-body { padding: 18px; }
.cat-body .pane { display: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.cat-body .pane.active { display: grid; }

/* ---------------- 文章卡片 ---------------- */
.news-card { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.news-card:last-child { border-bottom: 0; }
.news-card .thumb {
    flex: 0 0 128px; width: 128px; height: 86px; border-radius: var(--radius-sm); overflow: hidden; background-size: cover; background-position: center;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 700; }
.news-card .info { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.news-card h4 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.news-card h4 a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card:hover h4 a { color: var(--brand); }
.news-card .summary { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card .meta { font-size: 12px; color: #a0a4ac; display: flex; gap: 10px; flex-wrap: wrap; }
.news-card .meta .cat { color: var(--brand); }
.news-card .meta .cat::before { content: "#"; }

.feature-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: #2a2b30; min-height: 260px; height: 100%; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feature-card .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 60px; color: rgba(255, 255, 255, .8); font-weight: 700; }
.feature-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)); color: #fff; }
.feature-card .cap h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.feature-card .cap p { font-size: 13px; color: rgba(255, 255, 255, .75); margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.grid-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.grid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.grid-card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background-size: cover; }
.grid-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.grid-card:hover .thumb img { transform: scale(1.05); }
.grid-card .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 700; }
.grid-card .body { padding: 14px 16px 16px; }
.grid-card h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.grid-card .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }

/* ---------------- 榜单 ---------------- */
.rank-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .no { flex: 0 0 22px; height: 22px; border-radius: 6px; background: #f2f3f5; color: var(--muted); font-size: 12px; display: grid; place-items: center; margin-top: 2px; font-weight: 700; }
.rank-list li:nth-child(1) .no { background: var(--brand); color: #fff; }
.rank-list li:nth-child(2) .no { background: rgba(140, 28, 19, .28); color: var(--brand); }
.rank-list li:nth-child(3) .no { background: rgba(140, 28, 19, .14); color: var(--brand); }
.rank-list .t { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rank-list .n { font-size: 12px; color: var(--muted); flex: 0 0 auto; }

/* ---------------- 品牌 ---------------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.brand-card {
    background: var(--card); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow);
    text-align: center; transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brand-card .badge { position: absolute; top: 0; right: 0; background: var(--gold); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 0 0 0 10px; }
.brand-card .avatar { width: 76px; height: 76px; margin: 4px auto 12px; border-radius: 20px; overflow: hidden; background-size: cover; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.brand-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-card h3 { font-size: 17px; margin-bottom: 6px; }
.brand-card .ind { font-size: 12px; color: var(--brand); background: rgba(140, 28, 19, .08); display: inline-block; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.brand-card .desc { font-size: 13px; color: var(--muted); line-height: 1.65; height: 42px; overflow: hidden; }
.brand-card .foot { display: flex; justify-content: space-between; font-size: 12px; color: #a0a4ac; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--card); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.filter-bar .group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-bar .label { font-size: 13px; color: var(--muted); }
.filter-bar a { font-size: 13px; padding: 5px 14px; border-radius: 999px; background: #f4f5f7; color: var(--text); }
.filter-bar a:hover { background: #fdeceb; color: var(--brand); }
.filter-bar a.on { background: var(--brand); color: #fff; }
.filter-bar form { margin-left: auto; display: flex; gap: 8px; }
.filter-bar input { height: 34px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fafbfc; width: 180px; }
.filter-bar button { height: 34px; border: 0; border-radius: 999px; padding: 0 16px; background: var(--brand); color: #fff; cursor: pointer; }

/* ---------------- 布局：内容 + 侧栏 ---------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 18px); }
.widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.widget-title { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.widget-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--brand)); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { font-size: 13px; padding: 5px 12px; border-radius: 8px; background: #f4f5f7; color: var(--text); }
.tag-cloud a:hover { background: var(--brand); color: #fff; }
.side-brand li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-brand li:last-child { border-bottom: 0; }
.side-brand .av { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px; display: grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden; background-size: cover; }
.side-brand .av img { width: 100%; height: 100%; object-fit: cover; }
.side-brand .nm { font-size: 14px; }
.side-brand .sm { font-size: 12px; color: var(--muted); }

/* ---------------- 文章详情 ---------------- */
.article-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 38px 38px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { color: var(--brand); }
.article-title { font-size: 30px; line-height: 1.4; margin-bottom: 14px; letter-spacing: -.2px; }
.article-sub { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.article-meta .src { color: var(--brand); }
.article-content { font-size: 17px; line-height: 1.95; color: #26282e; word-break: break-word; }
.article-content p { margin: 0 0 18px; text-align: justify; }
.article-content img { border-radius: 10px; margin: 10px auto; max-width: 100%; height: auto; }
.article-content h2, .article-content h3, .article-content h4 { margin: 28px 0 14px; font-size: 20px; }
.article-content h3 { font-size: 18px; }
.article-content blockquote {
    margin: 20px 0; padding: 14px 18px; background: #faf7f5; border-left: 4px solid var(--gold); color: #5c5f66; border-radius: 0 8px 8px 0;
}
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 24px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 15px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 8px 12px; }
.article-content th { background: #fafbfc; }

/* 相关阅读：每行一篇 */
.rel-list { display: flex; flex-direction: column; gap: 12px; }
.rel-item {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rel-item:hover { border-color: rgba(140, 28, 19, .28); box-shadow: var(--shadow); transform: translateY(-1px); }
.rel-thumb { flex: 0 0 132px; width: 132px; height: 84px; border-radius: 8px; overflow: hidden; background: #f2f3f5; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-body { min-width: 0; flex: 1 1 auto; }
.rel-title {
    font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rel-item:hover .rel-title { color: var(--brand); }
.rel-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }

.article-share { display: flex; align-items: center; gap: 10px; margin: 30px 0 20px; flex-wrap: wrap; }
.article-share .lb { font-size: 14px; color: var(--muted); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: #f4f5f7; font-size: 13px; cursor: pointer; border: 0; color: var(--text); }
.share-btn:hover { background: var(--brand); color: #fff; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.article-tags a { font-size: 13px; padding: 5px 12px; border-radius: 8px; background: rgba(140, 28, 19, .07); color: var(--brand); }
.article-tags a:hover { background: var(--brand); color: #fff; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.prev-next a { display: block; padding: 14px 16px; background: #fafbfc; border-radius: var(--radius-sm); font-size: 14px; }
.prev-next a:hover { background: #fdf0ee; color: var(--brand); }
.prev-next .none { padding: 14px 16px; background: #fafbfc; border-radius: var(--radius-sm); font-size: 14px; color: #b6b9bf; }
.prev-next .dir { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }

.brand-mini { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; background: #fdfcfb; }
.brand-mini .av { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; flex: 0 0 54px; display: grid; place-items: center; color: #fff; font-weight: 700; background-size: cover; }
.brand-mini .av img { width: 100%; height: 100%; object-fit: cover; }
.brand-mini .nm { font-size: 16px; font-weight: 700; color: var(--ink); }
.brand-mini .ds { font-size: 13px; color: var(--muted); }

/* ---------------- 品牌详情 ---------------- */
.brand-hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.brand-hero .cover { height: 220px; position: relative; background-size: cover; background-position: center; }
.brand-hero .cover .mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)); }
.brand-hero .cover .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 80px; color: rgba(255, 255, 255, .8); font-weight: 700; }
.brand-hero .info { display: flex; gap: 20px; padding: 0 26px 24px; margin-top: -46px; position: relative; z-index: 2; }
.brand-hero .avatar { width: 108px; height: 108px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; flex: 0 0 108px; display: grid; place-items: center; font-size: 40px; font-weight: 700; color: #fff; background-size: cover; }
.brand-hero .avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-hero .meta { padding-top: 52px; flex: 1 1 auto; min-width: 0; }
.brand-hero h1 { font-size: 26px; margin-bottom: 8px; }
.brand-hero .row { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.brand-hero .row span { background: #f4f5f7; border-radius: 999px; padding: 3px 12px; }
.brand-hero .row span.k { background: rgba(140, 28, 19, .08); color: var(--brand); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.stat-row .item { background: var(--card); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat-row .item b { display: block; font-size: 24px; color: var(--brand); font-family: Georgia, "Times New Roman", serif; }
.stat-row .item span { font-size: 12px; color: var(--muted); }

/* ---------------- 列表页 ---------------- */
.list-head { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.list-head h1 { font-size: 24px; margin-bottom: 8px; }
.list-head p { font-size: 14px; color: var(--muted); margin: 0; }
.list-body { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 24px 18px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty b { display: block; font-size: 40px; color: #dfe1e6; margin-bottom: 10px; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; justify-content: center; }
.page-btn { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; }
.page-btn:hover { background: var(--brand); color: #fff; }
.page-btn.current { background: var(--brand); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: .45; pointer-events: none; }
.page-dots { padding: 0 4px; color: var(--muted); }
.page-total { font-size: 13px; color: var(--muted); margin-left: 8px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #1b1c20; color: #9ea3ad; margin-top: 30px; padding: 44px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid #2b2d33; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #9ea3ad; }
.footer-col a:hover { color: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { width: 38px; height: 38px; border-radius: 8px; }
.footer-logo b { color: #fff; font-size: 17px; }
.footer-col p { line-height: 1.8; }
.footer-contact { font-size: 13px; color: #7d828c; }
.qr-tip { margin-top: 12px; font-size: 12px; color: #7d828c; background: #23252a; border-radius: 8px; padding: 10px 12px; line-height: 1.6; }
.footer-bottom { padding-top: 20px; font-size: 13px; color: #7d828c; text-align: center; }
.footer-bottom p { margin: 0 0 6px; }
.icp { color: #8b9099; }
/* 页脚底部正中央的备案号 */
.footer-icp { margin: 4px 0 6px; font-size: 13px; letter-spacing: .3px; }
.footer-icp a { color: #9ea3ad; }
.footer-icp a:hover { color: var(--gold); }

.back-top {
    position: fixed; right: 24px; bottom: 34px; width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--card); color: var(--brand); box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 50;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); background: rgba(23, 24, 28, .92); color: #fff;
    padding: 10px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1160px) {
    .layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1024px) {
    :root { --hero-h: 380px; }
    .search-box input { width: 140px; }
    .search-box input:focus { width: 180px; }
    .main-nav { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 20px 16px; max-height: 0; overflow: hidden; opacity: 0; transition: .25s; }
    .main-nav.open { max-height: 70vh; opacity: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
    .nav-link { padding: 10px 8px; font-size: 15px; text-align: center; }
    .nav-link.active::after { display: none; }
    .nav-toggle { display: block; }
    .header-tools .btn-primary { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .cat-body .pane.active { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --header-h: 62px; --hero-h: 240px; }
    .wrap { padding: 0 14px; }
    .page-main { padding: 18px 14px 36px; }
    .topbar { display: none; }
    .main-nav.open { grid-template-columns: repeat(2, 1fr); }

    /* 小屏导航：隐藏搜索，LOGO 居中，汉堡菜单靠右 */
    .header-inner { position: relative; gap: 0; }
    .logo {
        position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
        max-width: calc(100% - 64px);
    }
    .logo img { width: 38px; height: 38px; }
    .header-tools { display: none; }
    .nav-toggle { margin-left: auto; }

    .logo-text i { display: none; }
    .logo-text b { font-size: 18px; }
    .hero-slider h2 { font-size: 19px; }
    .hero-slider .slide-caption { padding: 40px 16px 16px; }
    .article-wrap { padding: 20px 16px 26px; }
    .rel-thumb { flex: 0 0 104px; width: 104px; height: 70px; }
    .rel-title { font-size: 15px; }
    .article-title { font-size: 22px; }
    .article-content { font-size: 16px; }
    .brand-hero .cover { height: 150px; }
    .brand-hero .info { flex-direction: column; gap: 12px; padding: 0 16px 20px; margin-top: -40px; }
    .brand-hero .meta { padding-top: 0; }
    .brand-hero .avatar { width: 84px; height: 84px; flex: 0 0 84px; }
    .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .news-card .thumb { flex: 0 0 104px; width: 104px; height: 72px; }
    .prev-next { grid-template-columns: 1fr; }
    .filter-bar form { margin-left: 0; width: 100%; }
    .filter-bar input { flex: 1 1 auto; width: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
    :root { --hero-h: 200px; }
    .section-title { font-size: 18px; }
    .logo img { width: 34px; height: 34px; }
    .logo-text b { font-size: 17px; }
    .hero-slider .arrow { display: none; }
    .news-grid { grid-template-columns: 1fr; }
}
