/* ==========================================================================
   广告之家 (ggzj) 前台样式
   版心硬约束：容器 1360px = 左侧主体 1020px + 间隔 40px + 右侧边栏 300px
   主色：广告橙 #ff6a00 ；辅色：深蓝 #17233d
   ========================================================================== */

:root {
    --primary: #ff6a00;
    --primary-dark: #e85f00;
    --primary-soft: #fff3e9;
    --navy: #17233d;
    --navy-2: #232f4b;
    --text: #26303f;
    --text-2: #5b6675;
    --text-3: #8b95a5;
    --line: #e8ebf0;
    --bg: #f4f5f7;
    --white: #fff;
    --green: #16a34a;
    --red: #e0301e;
    --radius: 4px;
    --shadow: 0 1px 2px rgba(23, 35, 61, .06);
    --w-wrap: 1360px;
    --w-main: 1020px;
    --w-side: 300px;
    --w-gap: 40px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system, "Segoe UI", Arial, sans-serif;
    min-width: 1400px;
}

a { color: var(--text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
img { max-width: 100%; border: 0; display: block; }
ul, ol, li, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 700; }
input, select, button, textarea { font-family: inherit; font-size: 14px; color: inherit; }

.container {
    width: var(--w-wrap);
    margin: 0 auto;
}
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--text-3); }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
    background: #eceef2;
    border-bottom: 1px solid #e0e3ea;
    font-size: 12px;
    color: var(--text-2);
    height: 34px;
    line-height: 34px;
}
.topbar a { color: var(--text-2); margin-left: 14px; }
.topbar a:hover { color: var(--primary); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-date { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.topbar-tip { color: var(--text-3); }
.topbar-right { display: flex; align-items: center; }
.topbar .tb-register { color: var(--primary); }
.topbar .muted { font-size: 12px; }

/* ---------------------------------------------------------------- 站头 */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.site-header .container { height: 90px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 52px; }
.logo-mark {
    width: 48px; height: 48px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #ff9a3d);
    color: #fff; font-size: 26px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 106, 0, .3);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text b { font-size: 26px; color: var(--navy); letter-spacing: 1px; }
.logo-text i { font-style: normal; font-size: 11px; color: var(--text-3); letter-spacing: 2px; }
.header-ad { text-align: right; max-width: 600px; }
.header-ad-title { font-size: 18px; font-weight: 700; color: var(--primary); }
.header-ad-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------------------------------------------------------------- 主导航 */
.main-nav {
    background: var(--navy);
    box-shadow: 0 2px 6px rgba(23, 35, 61, .18);
    position: relative;
    z-index: 20;
}
.main-nav .container { display: flex; align-items: stretch; }
.main-nav a {
    display: block;
    padding: 0 26px;
    line-height: 46px;
    font-size: 16px;
    color: #dfe4ee;
    position: relative;
}
.main-nav a:hover { color: #fff; background: var(--navy-2); }
.main-nav a.active { color: #fff; background: var(--primary); font-weight: 700; }

/* ---------------------------------------------------------------- 面包屑 */
.breadcrumb {
    font-size: 12px;
    color: var(--text-3);
    padding: 12px 0 0;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--text-2); }

/* ---------------------------------------------------------------- 提示条 */
.alert {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------------------------------------------------------------- 版心布局 */
.main-layout {
    display: flex;
    align-items: flex-start;
    gap: var(--w-gap);
    margin: 16px 0 30px;
}
.main-content { width: var(--w-main); flex: 0 0 var(--w-main); min-width: 0; }
.sidebar { width: var(--w-side); flex: 0 0 var(--w-side); }
.main-layout.no-sidebar .main-content { width: 100%; flex: 1 1 auto; }

/* ---------------------------------------------------------------- 面板 */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}
.panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    position: relative;
    padding-left: 12px;
}
.panel-title::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 18px;
    background: var(--primary);
    border-radius: 2px;
}
.panel-title a { color: inherit; }
.panel-sub { font-size: 12px; color: var(--text-3); }
.panel-more { margin-left: auto; font-size: 12px; color: var(--text-3); }
.panel-count { margin-left: auto; font-size: 12px; color: var(--text-3); }
.empty-tip { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.empty-tip a { color: var(--primary); }

/* ---------------------------------------------------------------- 首页头条 */
.hero-body { display: flex; gap: 20px; padding: 18px 20px; }
.hero-main { display: flex; gap: 18px; width: 620px; flex: 0 0 620px; }
/* 封面几何尺寸与「CSS 伪图片」样式见下方「文章封面」小节 */
.hero-thumb {
    width: 240px; height: 160px; border-radius: var(--radius);
    overflow: hidden; position: relative;
}
.hero-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero-title { font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.hero-main:hover .hero-title { color: var(--primary); }
.hero-summary { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.hero-meta { margin-top: auto; font-size: 12px; color: var(--text-3); display: flex; gap: 16px; }
.hero-meta i { font-style: normal; }
.hero-side { flex: 1 1 auto; border-left: 1px dashed var(--line); padding-left: 20px; }
.hero-side li { padding: 11px 0; border-bottom: 1px dotted var(--line); }
.hero-side li:last-child { border-bottom: 0; }
.hs-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.6; }
.hs-sum { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ---------------------------------------------------------------- 首页栏目区块 */
.block-body { display: flex; gap: 20px; padding: 18px 20px; }
.block-lead { display: flex; flex-direction: column; gap: 8px; width: 300px; flex: 0 0 300px; }
.block-thumb {
    width: 300px; height: 170px; border-radius: var(--radius);
    overflow: hidden;
}
.block-lead-title { font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.block-lead-sum { font-size: 12px; color: var(--text-3); line-height: 1.8; }
.block-lead:hover .block-lead-title { color: var(--primary); }
.block-list { flex: 1 1 auto; }
.block-list li {
    display: flex; align-items: baseline; gap: 10px;
    padding: 9px 0; border-bottom: 1px dotted var(--line);
}
.block-list li:last-child { border-bottom: 0; }
.block-list li::before {
    content: ""; width: 4px; height: 4px; border-radius: 50%;
    background: #cbd2dd; flex: 0 0 4px; transform: translateY(-3px);
}
.block-list a { flex: 1 1 auto; font-size: 14px; line-height: 1.7; }
.list-date { font-size: 12px; color: var(--text-3); flex: 0 0 auto; }

/* ---------------------------------------------------------------- 文章列表（栏目页 / 搜索页） */
.sub-cats { padding: 12px 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.sub-cats a {
    padding: 4px 12px; background: #f6f7f9; border-radius: 20px; font-size: 13px; color: var(--text-2);
}
.sub-cats a:hover { background: var(--primary-soft); color: var(--primary); }
.sub-cats i { font-style: normal; color: var(--text-3); margin-left: 4px; font-size: 12px; }

.post-list { padding: 6px 20px 14px; }
.post-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-item:last-child { border-bottom: 0; }
.pi-thumb {
    width: 200px; height: 130px; flex: 0 0 200px;
    border-radius: var(--radius); overflow: hidden;
}
.pi-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pi-title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.pi-title a { color: var(--navy); }
.pi-title a:hover { color: var(--primary); }
.tag-top {
    font-style: normal; font-size: 12px; font-weight: 400; color: #fff;
    background: var(--red); border-radius: 2px; padding: 1px 6px; margin-right: 8px; vertical-align: middle;
}
.pi-summary { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.9; }
.pi-meta { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pi-tag { background: #f4f6f9; border-radius: 3px; padding: 2px 8px; color: var(--text-2); margin-right: 4px; }
.post-list.simple .pi-thumb { display: none; }

/* -------------------------------------------------------- 列表封面（CSS 伪图片）
   封面不存真图：后台只填「封面关键词」，列表页渲成一块底色 + 居中文字；
   详情页不在正文前出封面块（文章开头直接进正文）；
   底色 class（cv-0 ~ cv-7）由 cover_class() 按「关键词+标题+ID」哈希取定，
   同一篇文章每次都是同一个色，不同文章错开（helpers.php 里的 % 8 要与下面的色板数量一致） */
.hero-thumb, .block-thumb, .pi-thumb {
    display: flex; align-items: center; justify-content: center;
    background-color: #f0f2f5;
    background-image: linear-gradient(135deg, rgba(255,255,255,.22), rgba(0,0,0,.2));
}
.hero-thumb b, .block-thumb b, .pi-thumb b {
    color: #fff; font-weight: 700; letter-spacing: 2px; line-height: 1.7;
    text-align: center; padding: 0 14px; overflow-wrap: anywhere;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.pi-thumb b { font-size: 20px; }
.block-thumb b { font-size: 26px; }
.hero-thumb b { font-size: 30px; }
.cv-0 { background-color: #0ba368; background-image: linear-gradient(135deg, #2fd08c, #0b9b62); }
.cv-1 { background-color: #2f6ae0; background-image: linear-gradient(135deg, #5b9bff, #2b62d8); }
.cv-2 { background-color: #f08c00; background-image: linear-gradient(135deg, #ffb32e, #ec8600); }
.cv-3 { background-color: #d6246e; background-image: linear-gradient(135deg, #f06aa8, #cf1f66); }
.cv-4 { background-color: #7c4fe0; background-image: linear-gradient(135deg, #a98bf7, #7443dd); }
.cv-5 { background-color: #12a0b8; background-image: linear-gradient(135deg, #3ec8d8, #0e97ae); }
.cv-6 { background-color: #f04e2e; background-image: linear-gradient(135deg, #ff8a5c, #e8452a); }
.cv-7 { background-color: #4348d8; background-image: linear-gradient(135deg, #6f7bf7, #3d42cf); }

/* ---------------------------------------------------------------- 文章流卡片（首页 / 栏目页 2026-09 新排版）
   一篇一张白卡：左封面色块（关键词大字）+ 右标题 / 标签与发布时间 / 摘要，整卡可点；
   卡内不再放第二个链接（标签只做徽章），搜索页与标签页仍用旧的 .post-list 行式版式 */
.post-flow { display: flex; flex-direction: column; gap: 14px; }
.pf-item {
    display: flex; align-items: stretch; min-height: 132px;
    background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow); transition: box-shadow .15s;
}
.pf-item:hover { box-shadow: 0 4px 14px rgba(23, 35, 61, .14); }
.pf-thumb {
    width: 150px; flex: 0 0 150px;
    display: flex; align-items: center; justify-content: center;
    background-color: #f0f2f5;
}
.pf-thumb b {
    color: #fff; font-size: 30px; font-weight: 700; letter-spacing: 2px; line-height: 1.6;
    text-align: center; padding: 0 12px; overflow-wrap: anywhere;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.pf-body { flex: 1 1 auto; min-width: 0; padding: 18px 24px; display: flex; flex-direction: column; gap: 9px; }
.pf-title {
    font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-item:hover .pf-title { color: var(--primary); }
.pf-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); }
.pf-tag { font-style: normal; background: #eef0ff; color: #5b6bd5; border-radius: 10px; padding: 1px 10px; }
.pf-time { font-style: normal; }
.pf-sum {
    font-size: 13px; color: var(--text-2); line-height: 1.8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- 置顶区块（首页 / 栏目页）
   置顶只做区块分离展示：首页出「栏目名称 + 标题 + 时间」，栏目页出「标题 + 时间」 */
.top-list { padding: 4px 20px 10px; }
.top-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.top-list li:last-child { border-bottom: 0; }
.tl-cat {
    flex: 0 0 auto; font-size: 12px; color: var(--primary);
    background: var(--primary-soft); border-radius: 10px; padding: 1px 10px;
}
.tl-cat:hover { background: var(--primary); color: #fff; }
.tl-title {
    flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-title:hover { color: var(--primary); }
.tl-time { flex: 0 0 auto; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 分页 */
.pagination { display: flex; align-items: center; gap: 6px; padding: 18px 20px 22px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 34px; padding: 6px 10px; text-align: center;
    border: 1px solid var(--line); border-radius: 3px; font-size: 13px; color: var(--text-2); background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-total, .pagination .page-dots { border: 0; background: none; color: var(--text-3); }
.pagination .page-btn { font-weight: 600; }

/* ---------------------------------------------------------------- 文章详情 */
.post-detail { padding-bottom: 24px; }
.pd-head { padding: 24px 30px 16px; border-bottom: 1px solid var(--line); }
.pd-title { font-size: 28px; line-height: 1.45; color: var(--navy); font-weight: 700; }
.pd-summary { margin-top: 12px; font-size: 14px; color: var(--text-2); background: #fafbfc; border-left: 3px solid var(--primary); padding: 10px 14px; line-height: 1.9; }
.pd-meta { margin-top: 14px; font-size: 12px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.pd-cat { background: var(--primary-soft); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.pd-content {
    padding: 22px 30px 8px;
    font-size: 16px;
    line-height: 2;
    color: #2f3846;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.pd-content h2 { font-size: 20px; margin: 26px 0 12px; padding-left: 10px; border-left: 4px solid var(--primary); color: var(--navy); }
.pd-content h3 { font-size: 17px; margin: 22px 0 10px; color: var(--navy); }
.pd-content p { margin: 0 0 14px; text-align: justify; }
.pd-content img { margin: 14px auto; border-radius: var(--radius); }
.pd-content ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.pd-content ol { list-style: decimal; padding-left: 24px; margin-bottom: 14px; }
.pd-content li { margin: 6px 0; }
.pd-content blockquote { margin: 16px 0; padding: 12px 18px; background: #fafbfc; border-left: 4px solid var(--line); color: var(--text-2); }
.pd-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.pd-content table th, .pd-content table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.pd-content table th { background: #f7f8fa; color: var(--navy); }
.pd-content pre { background: #f7f8fa; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; overflow: auto; font-size: 13px; }
.pd-content a { color: var(--primary); text-decoration: underline; }
.pd-tags { padding: 14px 30px 0; font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pd-tags a { background: #f4f6f9; border-radius: 3px; padding: 3px 10px; color: var(--text-2); }
.pd-tags a:hover { background: var(--primary-soft); color: var(--primary); }
.pd-source { padding: 10px 30px 0; font-size: 12px; color: var(--text-3); word-break: break-all; }
.pd-neighbors { display: flex; justify-content: space-between; gap: 20px; margin: 20px 30px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.pd-neighbors .right { text-align: right; }
.rel-list { padding: 6px 20px 14px; }
.rel-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: 14px; }
.rel-list li:last-child { border-bottom: 0; }
.rel-list span { color: var(--text-3); font-size: 12px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- 栏目单页（988） */
/* 正文直接复用文章详情的 .pd-content 排版，只改页头与底部留白 */
.cat-page { padding-bottom: 26px; }
.cp-head { padding: 22px 30px 16px; border-bottom: 1px solid var(--line); }
.cp-title { font-size: 26px; line-height: 1.45; color: var(--navy); font-weight: 700; margin: 0; }
.cp-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.9; color: var(--text-2); background: #fafbfc; border-left: 3px solid var(--primary); padding: 10px 14px; }
.cat-page .cp-content { padding-bottom: 0; }

/* ---------------------------------------------------------------- 侧栏卡片 */
.side-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.side-title {
    font-size: 15px; font-weight: 700; color: var(--navy);
    padding: 11px 14px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    background: #fafbfc;
}
.side-title.has-more span { flex: 1 1 auto; }
.side-more { font-size: 12px; font-weight: 400; color: var(--text-3); }
.side-more:hover { color: var(--primary); }

/* 站内搜索：裸框一行高，不套卡片外壳，宽度跟随 300px 侧栏 */
.side-search { display: flex; gap: 0; margin-bottom: 16px; }
.search-input {
    flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 10px;
    border: 1px solid var(--line); border-right: 0; border-radius: 3px 0 0 3px;
    background: var(--white); font-size: 13px;
}
.search-input:focus { outline: none; border-color: var(--primary); }
.side-search .search-btn {
    flex: 0 0 52px; height: 34px; border: 0; border-radius: 0 3px 3px 0;
    background: var(--primary); color: #fff; font-size: 13px; cursor: pointer;
}
.side-search .search-btn:hover { background: var(--primary-dark); }

/* 站点统计 */
.stats-list li { display: flex; align-items: center; padding: 9px 14px; font-size: 13px; border-bottom: 1px dotted var(--line); }
.stats-list li:last-child { border-bottom: 0; }
.stats-label { color: var(--text-2); }
.stats-value { margin-left: auto; color: var(--primary); font-weight: 700; font-size: 15px; }
.stats-unit { color: var(--text-3); font-size: 12px; margin-left: 3px; }

/* 排行 */
.rank-list { padding: 8px 14px 12px; }
.rank-list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-no {
    flex: 0 0 18px; height: 18px; line-height: 18px; text-align: center;
    font-size: 12px; color: var(--text-3); background: #f1f3f6; border-radius: 2px;
}
.rank-no.top { background: var(--primary); color: #fff; }
.rank-list a { flex: 1 1 auto; font-size: 13px; line-height: 1.6; }

/* 侧栏普通列表 */
.mini-list { padding: 8px 14px 12px; }
.mini-list li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { flex: 1 1 auto; font-size: 13px; line-height: 1.6; }
.mini-date { font-size: 12px; color: var(--text-3); flex: 0 0 auto; }

/* 侧栏栏目 */
.cat-list { padding: 6px 0; }
.cat-list li { display: flex; align-items: center; }
.cat-list a { flex: 1 1 auto; padding: 8px 14px; font-size: 14px; border-left: 3px solid transparent; }
.cat-list li.on a { border-left-color: var(--primary); color: var(--primary); font-weight: 700; background: var(--primary-soft); }
.cat-count { padding-right: 14px; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 搜索页 */
.search-tabs { display: flex; gap: 8px; padding: 14px 20px 0; flex-wrap: wrap; }
.search-tabs a, .search-tabs span { padding: 5px 14px; border-radius: 20px; background: #f4f6f9; font-size: 13px; color: var(--text-2); }
.search-tabs a:hover { background: var(--primary-soft); color: var(--primary); }
.search-tabs a.on { background: var(--primary); color: #fff; }
.search-tabs .off { color: var(--text-3); opacity: .7; }
.search-line { display: flex; gap: 0; padding: 14px 20px; }
.search-line select { flex: 0 0 90px; height: 38px; border: 1px solid var(--line); border-right: 0; border-radius: 3px 0 0 3px; background: #f7f8fa; }
.search-line input { flex: 1 1 auto; height: 38px; padding: 0 12px; border: 1px solid var(--line); }
.search-line input:focus { outline: none; border-color: var(--primary); }
.search-line button { flex: 0 0 84px; height: 38px; border: 0; background: var(--primary); color: #fff; border-radius: 0 3px 3px 0; cursor: pointer; }
.search-line button:hover { background: var(--primary-dark); }
.search-count { padding: 0 20px; font-size: 13px; color: var(--text-3); }
.search-count b { color: var(--primary); }
.cat-result { padding: 10px 20px 18px; }
.cat-result li { padding: 14px 0; border-bottom: 1px dotted var(--line); }
.cat-result li:last-child { border-bottom: 0; }
.cr-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.cr-name:hover { color: var(--primary); }
.cr-count { font-size: 12px; color: var(--text-3); margin-left: 10px; }
.cr-desc { font-size: 13px; color: var(--text-2); margin-top: 5px; }

/* ------------------------------------------------- 标签（006 详情页 / 007 标签中心）
   标签云不做成一行一条的列表：两字的、七八个字的混排，一行塞得下就塞，放不下自然换行 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; }
.tag-cloud a {
    max-width: 100%; padding: 4px 12px; background: #f4f6f9; border-radius: 3px;
    font-size: 13px; line-height: 1.6; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag-cloud a:hover { background: var(--primary-soft); color: var(--primary); }
.tag-cloud-side { padding: 12px 14px; gap: 6px; }
.tag-cloud-side a { padding: 3px 9px; font-size: 12px; }

.tag-page .tag-head { align-items: baseline; flex-wrap: wrap; padding: 16px 20px; }
.tag-name { font-size: 30px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.tag-desc {
    padding: 14px 20px; border-bottom: 1px solid var(--line);
    font-size: 14px; line-height: 1.9; color: var(--text-2);
}
.tag-desc p { margin: 6px 0; }
.tag-desc a { color: var(--primary); }
.tag-desc img { max-width: 100%; }

.tag-index { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.tag-index a {
    min-width: 34px; padding: 4px 8px; text-align: center;
    border: 1px solid var(--line); border-radius: 3px; font-size: 13px; color: var(--text-2);
}
.tag-index a:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.tag-index .ti-num { font-weight: 700; }
.tag-group { padding: 2px 0 6px; border-bottom: 1px dotted var(--line); }
.tag-group:last-child { border-bottom: 0; }
.tag-letter { padding: 14px 20px 0; font-size: 16px; font-weight: 700; color: var(--navy); }
.tag-none { padding: 6px 20px 14px; font-size: 13px; color: var(--text-3); }

/* 单索引页（989）与懒加载：索引切换条当前项、文章数角标、加载更多按钮、相关标签区块 */
.tag-letter-title { font-size: 26px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.tag-back { margin-left: auto; font-size: 13px; color: var(--primary); }
.tag-back:hover { color: var(--primary-dark); }
.tag-index .ti-on { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 700; }
.tag-letter-more { margin-left: 10px; font-size: 12px; font-weight: 400; color: var(--primary); }
.tag-letter-more:hover { color: var(--primary-dark); }
.tg-count {
    font-style: normal; margin-left: 4px; padding: 0 5px; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: 11px; line-height: 16px; vertical-align: 1px;
}
.load-more-wrap { padding: 2px 20px 16px; text-align: center; }
.load-more {
    min-width: 140px; padding: 7px 18px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 4px; background: #fff;
    color: var(--text-2); font-size: 13px;
}
.load-more:hover { border-color: var(--primary); color: var(--primary); }
.load-more:disabled { opacity: .6; cursor: default; }
.tag-relate { border-top: 1px solid var(--line); }
.tag-relate-title { padding: 12px 20px 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.tag-relate .tag-cloud { padding-top: 10px; }

/* 列表页与标签页里的标签小片：现在是指向 /tag/别名 的链接 */
a.pi-tag { color: var(--text-2); }
a.pi-tag:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------------------------------------------------------------- 404 */
.page-404 { text-align: center; padding: 50px 30px 60px; }
.code-404 { font-size: 72px; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: 2px; }
.page-404 h1 { font-size: 20px; color: var(--navy); margin: 14px 0 6px; }
.path-line { font-size: 13px; color: var(--text-3); }
.path-line code { background: #f4f6f9; padding: 2px 8px; border-radius: 3px; }
.tip-line { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.go-home { display: flex; gap: 12px; justify-content: center; }
.btn-primary, .btn-plain { display: inline-block; padding: 8px 24px; border-radius: 3px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-plain { border: 1px solid var(--line); color: var(--text-2); }
.btn-plain:hover { border-color: var(--primary); color: var(--primary); }
.quick-cats { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quick-cats a { font-size: 13px; padding: 4px 12px; background: #f6f7f9; border-radius: 20px; color: var(--text-2); }

/* ---------------------------------------------------------------- 页脚 */
.footer {
    background: var(--navy);
    color: #9aa6bd;
    font-size: 13px;
    padding: 24px 0 20px;
    line-height: 2;
}
.footer a { color: #c4cdde; }
.footer a:hover { color: #fff; }
.footer-line { text-align: center; }
.footer-bottom { text-align: center; margin-top: 6px; color: #7d8aa5; }
.footer-bottom .dot { margin: 0 8px; color: #4d5a75; }
.footer-custom { text-align: center; margin-top: 6px; }

/* 友情链接（996）：flex 居中、13px 灰字，与页脚融合不抢视觉 */
.footer-links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
    padding-bottom: 6px; font-size: 13px; color: #9aa6bd;
}
.footer-links-label { color: #7d8aa5; }

/* ---------------------------------------------------------------- 通用小工具 */
.text-center { text-align: center; }
.mt10 { margin-top: 10px; }
.mb10 { margin-bottom: 10px; }

/* ================================================================ 广告制作（008）
   /tool 工具中心、/tool/别名 制作台、制作台说明区、侧栏工具清单 */
.tool-notice {
    padding: 13px 20px; font-size: 13px; line-height: 1.9; color: var(--text-2);
    background: var(--primary-soft); border-bottom: 1px solid var(--line);
}
.tool-notice b { color: var(--primary); }

/* 工具卡片一行为两个：用 grid 而不是 flex + 50%，否则奇数张时末行会剩一张孤卡 */
.tool-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
    padding: 16px 20px 20px;
}
.tool-grid li { min-width: 0; }
.tool-card {
    display: flex; align-items: flex-start; gap: 12px; height: 100%;
    padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.tool-card:hover { border-color: var(--primary); box-shadow: 0 3px 12px rgba(255, 106, 0, .12); }
.tc-icon {
    flex: 0 0 46px; height: 46px; border-radius: 6px; font-style: normal;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center;
}
.tc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tc-name { font-size: 16px; font-weight: 700; color: var(--navy); }
/* 分类名降级成卡片标题后的小标签（工具中心不再按分类分段） */
.tc-cat {
    display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 1px 7px;
    font-style: normal; font-weight: 400; font-size: 12px; line-height: 1.7;
    color: var(--text-3); background: #f4f6f9; border-radius: 2px;
}
.tool-card:hover .tc-name { color: var(--primary); }
.tc-spec { font-size: 12px; color: var(--text-3); }
.tc-intro { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tc-tags em {
    font-style: normal; font-size: 12px; color: var(--text-2); background: #f4f6f9;
    border-radius: 2px; padding: 1px 7px;
}
.tc-tags em.ly { background: var(--primary-soft); color: var(--primary); }
.tc-go { flex: 0 0 auto; align-self: center; font-size: 12px; color: var(--primary); white-space: nowrap; }

/* 侧栏：广告制作工具清单 */
.tool-mini { padding: 6px 0; }
.tool-mini li a {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    font-size: 13px; border-left: 3px solid transparent;
}
.tool-mini li.on a { border-left-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.tool-mini i {
    flex: 0 0 24px; height: 24px; line-height: 24px; border-radius: 4px;
    font-style: normal; font-size: 11px; text-align: center; color: #fff;
}
.tool-mini span { flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 制作台说明区 */
.usage-list { padding: 12px 20px 4px; }
.usage-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.usage-list li b {
    flex: 0 0 22px; height: 22px; line-height: 22px; border-radius: 50%; margin-top: 3px;
    background: var(--primary); color: #fff; text-align: center; font-size: 12px;
}
.spec-wrap { padding: 6px 20px 0; }
.spec-title { font-size: 15px; font-weight: 700; color: var(--navy); padding: 12px 0 8px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; color: var(--text-2); }
.spec-table th { background: #f7f8fa; color: var(--navy); font-weight: 700; }
.spec-table code { background: #f4f6f9; border-radius: 3px; padding: 1px 6px; font: 13px/1.6 Consolas, Menlo, monospace; color: var(--navy); }
.tip-list { padding: 12px 20px 4px; }
.tip-list li { position: relative; padding: 5px 0 5px 16px; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.tip-list li::before {
    content: ""; position: absolute; left: 2px; top: 14px;
    width: 5px; height: 5px; border-radius: 50%; background: #cbd2dd;
}
.tool-relate {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 14px; padding: 14px 20px 18px; border-top: 1px dashed var(--line);
}
.tr-label { font-size: 13px; color: var(--text-3); }
.tool-relate a { font-size: 13px; padding: 3px 12px; background: #f4f6f9; border-radius: 20px; color: var(--text-2); }
.tool-relate a:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------------------------------------------------- 制作台本体（DOM 由 gg-admaker.js 生成）
   一个 .gg-admaker 占位 div → 引擎注出：舞台（顶栏 + 画布）+ 两列参数区
   画布是「导出什么就显示什么」，勾选跳动时逐帧重绘，不靠 CSS 动画 */
.am { position: relative; padding: 16px 20px 20px; }
.am-stage { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.am-bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding: 10px 12px; background: #fafbfc; border-bottom: 1px solid var(--line);
}
.am-bar-l, .am-bar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.am-bar-size { font-size: 15px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.am-bar-zoom { font-size: 12px; color: var(--text-3); }
.am-canvas-box {
    display: flex; justify-content: center; align-items: flex-start; padding: 16px; overflow: auto;
    min-height: 130px;
    /* 棋盘底：圆角与透明区能看出来不是丢图 */
    background-color: #f6f7f9;
    background-image: linear-gradient(45deg, #e9ebef 25%, transparent 25%), linear-gradient(-45deg, #e9ebef 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e9ebef 75%), linear-gradient(-45deg, transparent 75%, #e9ebef 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.am-canvas-holder { position: relative; flex: 0 0 auto; outline: 1px solid #d8dce3; box-shadow: 0 3px 12px rgba(23, 35, 61, .14); }
.am-canvas-holder:focus { outline: 2px solid var(--primary); }
.am-canvas { display: block; touch-action: none; }
.am-sel {
    position: absolute; border: 1px dashed var(--primary); pointer-events: none; box-sizing: border-box;
    background: rgba(255, 106, 0, .06);
}
.am-sel::after {
    content: attr(data-label); position: absolute; left: 0; top: -20px; white-space: nowrap;
    background: var(--primary); color: #fff; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 2px;
}

.am-cols { display: flex; align-items: flex-start; gap: 20px; margin-top: 16px; }
.am-col { flex: 1 1 0; min-width: 0; }
.am-group { border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; margin-bottom: 12px; overflow: hidden; }
.am-group-head {
    display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fff;
}
.am-group-title { font-size: 14px; font-weight: 700; color: var(--navy); }
.am-group-tip { font-size: 12px; color: var(--text-3); }
.am-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px dotted var(--line); }
.am-group-body > .am-row:last-child { border-bottom: 0; }
.am-row-top { align-items: flex-start; }
.am-row-top .am-label { line-height: 30px; }
.am-label { flex: 0 0 66px; text-align: right; font-size: 13px; color: var(--text-2); }
.am-ctl { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.am-row-wide { display: block; }
.am-row-wide .am-label { display: block; width: auto; flex: none; text-align: left; line-height: 1.6; margin-bottom: 6px; }
.am-unit { font-style: normal; font-size: 12px; color: var(--text-3); flex: 0 0 auto; }

.am-input {
    flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 13px;
}
.am-input:focus { outline: none; border-color: var(--primary); }
.am-input-mini { flex: 0 0 68px; width: 68px; }
.am-input-color { flex: 0 0 86px; width: 86px; text-transform: lowercase; }
.am-textarea { height: auto; padding: 5px 8px; line-height: 1.7; resize: vertical; }
.am-range-wrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.am-range { flex: 1 1 auto; min-width: 60px; accent-color: var(--primary); cursor: pointer; }
.am-color { flex: 0 0 46px; width: 46px; height: 30px; padding: 2px; border: 1px solid var(--line); border-radius: 3px; background: #fff; cursor: pointer; }
.am-select {
    flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 6px;
    border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 13px;
}
.am-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.am-seg-btn { padding: 4px 18px; border: 0; background: #fff; color: var(--text-2); font-size: 13px; line-height: 20px; cursor: pointer; }
.am-seg-btn + .am-seg-btn { border-left: 1px solid var(--line); }
.am-seg-btn.on { background: var(--primary); color: #fff; font-weight: 700; }

.am-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.am-chip {
    padding: 4px 11px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
    color: var(--text-2); font-size: 12px; line-height: 18px; cursor: pointer;
}
.am-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.am-chip-add { border-style: dashed; border-color: #ffd2b3; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.am-chip-quick[data-style="red"] { background: #e0301e; border-color: #e0301e; color: #fff; }
.am-chip-quick[data-style="yellow"] { background: #ffd400; border-color: #ffd400; color: #c8100c; }
.am-chip-quick[data-style="white"] { background: #fff; border-color: #d8dce3; color: #e0301e; }
.am-chip-quick[data-style="grad"] { background: linear-gradient(135deg, #ff8a00, #e02d00); border-color: #e02d00; color: #fff; }
.am-chip-quick[data-style="dark"] { background: #17233d; border-color: #17233d; color: #ffd400; }
.am-chip-quick[data-style="outline"] { background: #fff; border-color: #17233d; border-style: dashed; color: #17233d; }

.am-btn {
    height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px;
    background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer;
}
.am-btn:hover { border-color: var(--primary); color: var(--primary); }
.am-btn-dl { border-color: #ffd2b3; background: var(--primary-soft); color: var(--primary); }
.am-btn-dl:hover { background: #ffe6d5; color: var(--primary-dark); }
.am-btn-main { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.am-btn-main:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
/* GIF 动图导出按钮：跟橙色系拉开对比，一眼看出这是「会动的那一个」 */
.am-btn-gif { border-color: #1f5fd0; background: #1f5fd0; color: #fff; font-weight: 700; }
.am-btn-gif:hover { background: #1645a0; border-color: #1645a0; color: #fff; }

.am-layers { max-height: 216px; padding: 6px 8px; overflow: auto; }
.am-layer {
    display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 3px;
    font-size: 13px; cursor: pointer;
}
.am-layer:hover { background: #fff; }
.am-layer.on { background: var(--primary-soft); }
.al-icon {
    flex: 0 0 22px; height: 22px; line-height: 22px; border-radius: 3px; text-align: center;
    background: var(--navy); color: #fff; font-style: normal; font-size: 12px;
}
.am-layer.on .al-icon { background: var(--primary); }
.al-name { flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.al-size { flex: 0 0 auto; font-size: 12px; color: var(--text-3); }
.al-ops { flex: 0 0 auto; display: flex; gap: 3px; }
.al-op {
    width: 20px; height: 20px; line-height: 18px; text-align: center; font-style: normal;
    border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--text-2);
    font-size: 12px; cursor: pointer;
}
.al-op:hover { border-color: var(--primary); color: var(--primary); }
.al-op.off { opacity: .35; cursor: not-allowed; }
.al-op-del:hover { border-color: var(--red); color: var(--red); }
.am-layer-empty, .am-none { padding: 12px; font-size: 13px; line-height: 1.8; color: var(--text-3); }

/* 引擎初始化失败时的兜底文案（不留空壳） */
.am-fail {
    padding: 28px 16px; text-align: center; font-size: 14px; line-height: 1.8; color: var(--text-2);
    background: #fafbfc; border: 1px dashed var(--line); border-radius: var(--radius);
}

.am-toast {
    position: absolute; left: 50%; bottom: 26px; z-index: 6; pointer-events: none;
    padding: 8px 16px; border-radius: 4px; background: rgba(23, 35, 61, .92); color: #fff;
    font-size: 13px; white-space: nowrap; opacity: 0;
    transform: translateX(-50%) translateY(8px); transition: opacity .2s, transform .2s;
}
.am-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   网址导航（995，对照参考图③）
   ========================================================================== */
/* 快速导航锚点平滑滚动 */
html { scroll-behavior: smooth; }

.nav-intro .nav-intro-body { padding: 22px 24px; }
.nav-intro-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--navy); }
.nav-intro-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.9; color: var(--text-2); }

/* 区块 div 避开吸顶导航 */
.nav-block { scroll-margin-top: 80px; }
.nav-block-title { display: flex; align-items: center; gap: 8px; }
.nav-folder { font-size: 16px; line-height: 1; }

/* 网址列表：左右间距 20px、上下间距 8px */
.nav-links { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; padding: 16px 20px 20px; }
.nav-link { color: var(--primary); font-size: 14px; line-height: 1.8; }
.nav-link:hover { text-decoration: underline; }
.nav-links-empty { color: var(--text-3); font-size: 13px; }

/* 侧栏快速导航 */
.nav-quick-list { padding: 6px 0; }
.nav-quick-list li { display: flex; align-items: center; gap: 10px; }
.nav-quick-list a {
    flex: 1 1 auto; padding: 9px 14px; font-size: 14px; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border-left: 3px solid transparent;
}
.nav-quick-list a:hover { border-left-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.nav-quick-count { padding-right: 14px; font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   会员认证（注册/登录独立页，版式照社群CMS：左品牌面板 + 右表单卡片）
   ========================================================================== */
.auth-body {
    min-height: 100vh; padding: 40px 16px;
    background: #eef1f6;
    display: flex; align-items: center; justify-content: center;
}
.auth-card {
    display: flex; width: 960px; max-width: 100%; min-height: 660px;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(31, 45, 61, .14);
}
.auth-brand {
    flex: 0 0 380px; position: relative; overflow: hidden;
    background: var(--navy);
    background-image: linear-gradient(160deg, rgba(255, 106, 0, .18), rgba(255, 255, 255, 0) 55%);
    color: #fff; padding: 46px 42px; display: flex; flex-direction: column;
}
.auth-brand::after {
    content: ''; position: absolute; right: -70px; bottom: -70px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.auth-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.auth-logo .mark {
    width: 34px; height: 34px; border-radius: 7px; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: #fff;
}
.auth-brand h1 { margin: 78px 0 16px; font-size: 30px; letter-spacing: 2px; }
.auth-brand-sub { margin: 0; font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .8); }
.auth-points { list-style: none; margin: 30px 0 0; padding: 0; font-size: 13px; color: rgba(255, 255, 255, .82); }
.auth-points li { position: relative; margin: 12px 0; padding-left: 14px; }
.auth-points li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
.auth-ver { margin-top: auto; font-size: 12px; color: rgba(255, 255, 255, .5); }

.auth-main { flex: 1 1 auto; min-width: 0; background: #f7f8fa; padding: 46px 56px 30px; }
.auth-title { margin: 0; font-size: 24px; font-weight: 800; color: var(--navy); }
.auth-sub { margin: 8px 0 24px; font-size: 13px; color: var(--text-3); }
.auth-errors { margin-bottom: 16px; }
.auth-errors div { line-height: 1.8; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--navy); }
.auth-field label i { font-style: normal; color: #e04a4a; }
.auth-field label .opt { font-weight: 400; color: var(--text-3); }
.auth-field input {
    width: 100%; box-sizing: border-box; height: 42px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 4px;
    background: #eef0f4; font-size: 14px; color: var(--text-1, #22304a);
}
.auth-field input:focus { border-color: var(--primary); background: #fff; outline: none; }
.auth-submit {
    width: 100%; height: 44px; margin-top: 6px; border: 0; border-radius: 4px;
    background: var(--primary); color: #fff; font-size: 16px; letter-spacing: 8px;
    cursor: pointer; transition: background .15s;
}
.auth-submit:hover { background: var(--primary-dark); }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--text-2); }
.auth-switch a { color: var(--primary); }
.auth-foot { margin-top: 34px; text-align: center; font-size: 12px; color: var(--text-3); }

/* 会员中心（主布局内的账号信息卡） */
.account-body { padding: 22px 26px 26px; }
.account-dl { display: grid; grid-template-columns: 90px 1fr; row-gap: 14px; margin: 0; font-size: 14px; }
.account-dl dt { color: var(--text-3); }
.account-dl dd { margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.account-actions { margin-top: 26px; }
.account-tip { margin: 14px 0 0; font-size: 12px; color: var(--text-3); }
.account-links { margin-top: 24px; }
.account-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; transition: border-color .15s, background .15s; }
.account-link:hover { border-color: var(--primary); background: var(--primary-soft); }
.al-main { flex: 1 1 auto; min-width: 0; }
.al-title { display: block; font-size: 15px; font-weight: 700; color: var(--navy); }
.al-desc { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.al-badge { flex: 0 0 auto; padding: 2px 10px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; }
.al-go { flex: 0 0 auto; font-size: 22px; color: var(--text-3); line-height: 1; }
.account-link:hover .al-go { color: var(--primary); }

/* ==========================================================================
   广告位交易（/adslot）：列表 / 详情 / 发布编辑表单 / 会员中心
   ========================================================================== */
.btn-sm { padding: 5px 14px; font-size: 13px; }
.adslot-inline-alert { margin: 12px 20px 0; }

/* 类型 / 状态徽章（列表、详情、会员共用） */
.ac-type { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-style: normal; font-weight: 600; line-height: 1.7; margin-right: 6px; vertical-align: middle; }
.ac-type.sale { background: #eef4ff; color: #2f6bd8; }
.ac-type.ex { background: var(--primary-soft); color: var(--primary-dark); }
.ad-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-style: normal; line-height: 1.6; white-space: nowrap; border: 1px solid transparent; }
.ad-badge.badge-done { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.ad-badge.badge-open { background: var(--primary-soft); color: var(--primary-dark); border-color: #ffd9bd; }
.ad-badge.st-pending { background: #fff7e6; color: #b45309; border-color: #fde3a7; }
.ad-badge.st-published { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.ad-badge.st-rejected { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.ad-badge.st-offline { background: #f1f2f4; color: var(--text-2); border-color: var(--line); }
.ad-badge.st-draft { background: #f1f2f4; color: var(--text-3); border-color: var(--line); }

/* ------------------------------------------------------------------ 列表页 */
.adslot-tabs { display: flex; align-items: center; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.adslot-tabs a { padding: 6px 18px; border-radius: 3px; font-size: 14px; color: var(--text-2); border: 1px solid transparent; }
.adslot-tabs a:hover { color: var(--primary); }
.adslot-tabs a.active { background: var(--primary); color: #fff; }
.adslot-pub { margin-left: auto; background: var(--primary-soft); color: var(--primary-dark); border-color: #ffd9bd; font-weight: 600; }
.adslot-pub:hover { background: #ffe8d5; color: var(--primary-dark); }
.adslot-filter { display: flex; align-items: center; gap: 16px; padding: 12px 20px; flex-wrap: wrap; background: #fafbfc; }
.adslot-filter label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.adslot-filter select, .adslot-filter input[type="text"] { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.adslot-kw input { width: 200px; }
.adslot-reset { font-size: 13px; color: var(--text-3); }
.adslot-reset:hover { color: var(--primary); }

.adslot-list { margin: 0 0 16px; }
.adslot-list li { margin-bottom: 10px; }
.adslot-card { display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.adslot-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(255, 106, 0, .1); }
.ac-main { flex: 1 1 auto; min-width: 0; }
.ac-title { display: block; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adslot-card:hover .ac-title { color: var(--primary); }
.ac-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; flex-wrap: wrap; }
.ac-meta b { color: var(--text); font-weight: 600; }
.ac-meta i { font-style: normal; color: var(--text-3); }
.ac-spec { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-spec em { font-style: normal; font-size: 12px; color: var(--text-2); background: var(--bg); border-radius: 3px; padding: 2px 8px; }
.ac-spec em.hp { background: var(--primary-soft); color: var(--primary-dark); }
.ac-side { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ac-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.ac-done { font-size: 13px; font-weight: 700; color: var(--green); }
.ac-open { font-size: 13px; font-weight: 700; color: var(--primary-dark); }

/* ------------------------------------------------------------------ 详情页 */
.adslot-detail-head { flex-wrap: wrap; gap: 10px; }
.adslot-detail-head .panel-title { flex: 1 1 auto; min-width: 0; }
.adslot-owner-bar { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--primary-soft); border-bottom: 1px solid #ffe0c7; font-size: 13px; }
.adslot-owner-bar .ob-tip { color: var(--primary-dark); font-weight: 600; }
.adslot-owner-bar .ob-pending { margin-left: auto; color: var(--primary-dark); }
.adslot-detail-body { padding: 6px 20px 16px; }
.af-group { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.af-group-full { border-bottom: 0; }
.af-group-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--navy); border-left: 3px solid var(--primary); padding-left: 10px; line-height: 1.3; }
.af-dl { display: grid; grid-template-columns: 96px 1fr; row-gap: 11px; margin: 0; font-size: 14px; }
.af-dl dt { color: var(--text-3); }
.af-dl dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.af-dl dd a { color: var(--primary); }
.af-note { font-size: 12px; color: var(--text-3); }
.af-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.adslot-desc { font-size: 14px; line-height: 1.9; color: var(--text-2); }

.adslot-contact { padding: 16px 20px 22px; border-top: 1px solid var(--line); }
.contact-list { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.contact-list span { color: var(--text-3); }
.contact-list b { color: var(--navy); font-weight: 700; }
.contact-none { margin: 0; color: var(--text-3); font-size: 13px; }
.contact-lock { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); }
.contact-lock p { margin: 0; margin-right: auto; color: var(--text-2); font-size: 14px; }

.adslot-dealt-body { display: flex; align-items: stretch; gap: 16px; padding: 20px; }
.deal-side { flex: 1 1 0; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.deal-side h4 { margin: 0 0 12px; font-size: 14px; color: var(--primary-dark); font-weight: 700; }
.deal-side dl { display: grid; grid-template-columns: 78px 1fr; row-gap: 9px; margin: 0; font-size: 13px; }
.deal-side dt { color: var(--text-3); }
.deal-side dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.deal-side dd a { color: var(--primary); }
.deal-x { flex: 0 0 auto; align-self: center; font-size: 26px; font-weight: 800; color: var(--primary); }

/* ------------------------------------------------------------------ 表单（申请 + 发布/编辑共用字段样式） */
.apply-form { padding: 16px 20px 22px; }
.adslot-form { padding: 6px 20px 22px; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.af-field { margin-bottom: 15px; }
.af-label, .af-field > label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.af-label i, .af-field > label i { font-style: normal; color: var(--red); }
.af-opt { font-weight: 400; color: var(--text-3); }
.af-field input[type="text"], .af-field select, .af-field textarea,
.adslot-form input[type="text"], .adslot-form select, .adslot-form textarea {
    width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 14px;
}
.af-field input:focus, .af-field select:focus, .af-field textarea:focus,
.adslot-form input:focus, .adslot-form select:focus, .adslot-form textarea:focus { border-color: var(--primary); outline: none; }
.af-field textarea, .adslot-form textarea { resize: vertical; line-height: 1.7; }
.af-tip { display: block; margin-top: 5px; font-size: 12px; color: var(--text-3); }
.af-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.af-set { border: 0; border-bottom: 1px dashed var(--line); margin: 0 0 6px; padding: 14px 0; }
.af-set:last-of-type { border-bottom: 0; }
.af-legend { font-size: 15px; font-weight: 700; color: var(--navy); border-left: 3px solid var(--primary); padding: 0 0 0 10px; margin-bottom: 14px; line-height: 1.3; }
.af-radios { display: flex; gap: 22px; }
.af-radio, .af-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; margin: 0; font-weight: 400; }
.af-radio span, .af-check span { font-size: 14px; color: var(--text); }

/* 申请交换：从我自己的广告位里选一个（单选卡片列表） */
.apply-offers { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.offer-item { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s, background .15s; }
.offer-item:hover { border-color: var(--primary); }
.offer-item.on { border-color: var(--primary); background: var(--primary-soft); }
.offer-item input { margin-top: 3px; flex: 0 0 auto; }
.offer-body { min-width: 0; }
.offer-body b { display: block; font-size: 14px; color: var(--text); line-height: 1.5; }
.offer-body small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }

/* ------------------------------------------------------------------ 会员中心 */
.am-pub { margin-left: auto; }
.am-sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.am-sec:last-child { border-bottom: 0; }
.am-sec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--navy); }
.am-count { display: inline-block; min-width: 20px; padding: 0 6px; height: 20px; line-height: 20px; text-align: center; background: var(--bg); border-radius: 10px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.am-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.am-table th, .am-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.am-table th { background: #fafbfc; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.am-title a { color: var(--navy); font-weight: 600; }
.am-title a:hover { color: var(--primary); }
.am-reason { display: block; margin-top: 3px; font-size: 12px; color: var(--red); }
.am-ops { white-space: nowrap; }
.am-ops a { color: var(--primary); margin-right: 12px; }
.am-ops a:hover { text-decoration: underline; }
.am-st { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; line-height: 1.7; white-space: nowrap; }
.am-st.st-pending, .am-st.ds-pending { background: #fff7e6; color: #b45309; }
.am-st.st-published, .am-st.ds-accepted { background: #f0fdf4; color: #166534; }
.am-st.st-rejected { background: #fef2f2; color: #991b1b; }
.am-st.st-offline, .am-st.ds-rejected { background: #f1f2f4; color: var(--text-2); }
.am-st.ds-cancelled { background: #f1f2f4; color: var(--text-3); }
.am-st.st-draft { background: #f1f2f4; color: var(--text-3); }
.deal-list { margin: 0; }
.deal-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.deal-item:last-child { margin-bottom: 0; }
.deal-item.ds-accepted { border-color: #bbf7d0; background: #fafffb; }
.di-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.di-site { font-size: 15px; font-weight: 700; color: var(--navy); }
.di-site:hover { color: var(--primary); }
.di-time { margin-left: auto; font-size: 12px; color: var(--text-3); }
.di-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.di-meta a { color: var(--primary); }
.di-ad { font-size: 13px; color: var(--text-2); }
.di-msg { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.di-actions { display: flex; gap: 10px; margin-top: 12px; }
.di-actions form { margin: 0; }


