/* 老吕谈新钱 · 公共样式
   与 index.html 改版后的设计语系保持一致：
   近黑冷灰 + 亮黄强调 + 重字重无衬线 + 超宽栅格 + 6px 圆角 */

:root {
    --ink: #05070b;
    --text: #222833;
    --muted: #737b8c;
    --line: #e7e9ee;
    --soft: #f7f8fa;
    --yellow: #ffc400;
    --yellow-dark: #f0a900;
    --panel: #ffffff;
    --shadow: 0 18px 45px rgba(20, 26, 39, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button { border: 0; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.page { min-height: 100vh; overflow-x: hidden; }

.shell {
    max-width: 1762px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- 顶栏 ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    padding: 0 62px 0 44px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 184px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.brand::after,
.section-title::after,
.page-head h1::after,
.mini-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 64px;
    height: 4px;
    background: var(--yellow);
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(34px, 5vw, 92px);
    color: #111723;
    font-size: 16px;
    font-weight: 500;
}

.nav a { position: relative; padding: 10px 0; }

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav a.is-active { color: var(--ink); font-weight: 700; }

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 22px;
}

/* ---------- 按钮 ---------- */
.primary-btn,
.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 clamp(18px, 3vw, 44px);
    border-radius: 6px;
    font-weight: 700;
    /* flex 子项默认 min-width:auto 会阻止收缩，导致窄屏溢出父容器 */
    min-width: 0;
    max-width: 100%;
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-btn {
    color: #111;
    background: var(--yellow);
    box-shadow: 0 10px 22px rgba(255, 196, 0, 0.22);
}

.outline-btn {
    color: #202633;
    background: #fff;
    border: 1px solid #cfd3dc;
}

.primary-btn:hover,
.outline-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(24, 32, 47, 0.12);
}

/* ---------- 栏目页头 ---------- */
.page-head {
    padding: 76px 24px 44px;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    position: relative;
    margin: 0 0 40px;
    color: var(--ink);
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 900;
    line-height: 1.15;
}

.page-head h1::after { bottom: -20px; width: 60px; }

.page-head .lead {
    max-width: 760px;
    margin: 0 0 22px;
    color: #5f6777;
    font-size: 18px;
    line-height: 1.85;
}

.page-head .stat {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.page-head .stat b { color: var(--ink); font-weight: 800; }

/* ---------- 区块标题 ---------- */
.section-title {
    position: relative;
    display: inline-block;
    margin: 0 0 22px 24px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
}

.section-title::after { bottom: -10px; width: 30px; height: 3px; }

/* ---------- 筛选条 ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 24px 26px;
}

.chip {
    padding: 9px 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: #5f6777;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.chip:hover { border-color: #cfd3dc; color: var(--ink); }

.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    font-weight: 700;
}

/* ---------- 精选大卡 ---------- */
.featured-card {
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: center;
    min-height: 0;
    margin: 0 24px 28px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid #d9dde5;
    border-radius: 6px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.featured-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.featured-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2.35 / 1;
    object-fit: cover;
    filter: grayscale(100%);
}

.featured-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 20px 38px;
}

.tag {
    color: var(--yellow-dark);
    font-size: 14px;
    font-weight: 700;
}

.featured-body h3 {
    max-width: 540px;
    margin: 10px 0 8px;
    color: #111722;
    font-size: clamp(22px, 1.6vw, 28px);
    font-weight: 900;
    line-height: 1.3;
}

.featured-body p {
    max-width: 560px;
    margin: 0 0 12px;
    color: #747d8c;
    font-size: 14px;
    line-height: 1.55;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #737b89;
    font-size: 14px;
}

.meta-row .read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #111722;
    font-weight: 700;
}

/* ---------- 文章列表 ---------- */
.article-list { margin: 0 24px; padding-right: 10px; }

.article-row {
    display: grid;
    grid-template-columns: 1fr auto 24px;
    align-items: center;
    gap: 24px;
    min-height: 92px;
    border-bottom: 1px solid var(--line);
    transition: background 180ms ease;
}

.article-row:hover { background: #fbfcfe; }

.article-row small {
    display: block;
    margin-bottom: 7px;
    color: var(--yellow-dark);
    font-size: 13px;
    font-weight: 700;
}

.article-row strong {
    display: block;
    color: #1c222e;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.article-row span > em {
    display: block;
    margin-top: 6px;
    color: #7b8493;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

.article-row time { color: #637086; font-size: 14px; white-space: nowrap; }
.article-row i { color: #1d2635; font-size: 20px; }

/* ---------- 法规条目 ---------- */
.law-list { margin: 0 24px; }

.law-item {
    display: grid;
    grid-template-columns: 1fr 170px 150px 24px;
    align-items: center;
    gap: 24px;
    min-height: 96px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    transition: background 180ms ease;
}

.law-item:hover { background: #fbfcfe; }

.law-name {
    color: #111722;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.law-note {
    display: block;
    margin-top: 6px;
    color: #7b8493;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.law-meta { color: #637086; font-size: 14px; }

.law-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.law-status.is-active { background: var(--yellow); color: #111; }
.law-status.is-draft { background: var(--soft); color: #5f6777; border: 1px solid var(--line); }
.law-status.is-new { background: #eef4ff; color: #2b57a8; }

/* ---------- 分类带 ---------- */
.category-band {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 46px 24px 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
}

.category {
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
    min-height: 102px;
    padding: 23px 41px 22px 49px;
    border-right: 1px solid var(--line);
    transition: background 180ms ease;
}

.category:last-child { border-right: 0; }
.category:hover { background: #fbfcfe; }

.mini-title {
    position: relative;
    display: inline-block;
    margin: 0 0 8px;
    color: #111722;
    font-size: 21px;
    font-weight: 900;
}

.mini-title::after { bottom: -7px; width: 23px; height: 3px; }

.category p {
    margin: 0;
    color: #7b8493;
    font-size: 13px;
    line-height: 1.5;
}

.category i { justify-self: end; color: #0c111a; font-size: 24px; }

/* ---------- 关于页 ---------- */
/* 两栏栅格：分隔线改用 border-left，避免中间 1px 列被挤扁 */
.profile-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 28%, 420px);
    gap: clamp(32px, 3.5vw, 56px);
    align-items: start;
    min-width: 0;
    margin: 28px 24px;
    padding: 40px 52px 42px 45px;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
}

.profile-left {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    min-width: 0;
}

.avatar {
    flex: 0 0 170px;
    width: 170px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #eef1f5;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.profile-copy h2 {
    margin: 0 0 8px;
    color: #111722;
    font-size: 23px;
    font-weight: 900;
}

.profile-copy p {
    max-width: 850px;
    margin: 0 0 14px;
    color: #687181;
    font-size: 15px;
    line-height: 1.8;
}

/* 右侧栏：自绘左侧分隔线，随内容高度伸展 */
.wechat-box {
    display: grid;
    gap: 16px;
    padding-left: clamp(32px, 3.5vw, 56px);
    min-width: 0;
}

@media (min-width: 1101px) {
    .profile-card > .wechat-box {
        align-self: stretch;
        border-left: 1px solid var(--line);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 24px;
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
}

.info-grid dt { color: #8a92a0; }
.info-grid dd { margin: 0; color: #2a3240; font-weight: 500; }

.wechat-box { display: grid; gap: 18px; }

.wechat-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #232936;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.wechat-title i { color: #31bf43; font-size: 30px; flex: none; line-height: 1.2; }

/* 宽度自适应父容器，不再写死 320px（窄屏会撑出卡片） */
.wechat-box .primary-btn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    padding: 0 24px;
}

/* ---------- 执业领域（关于页） ---------- */
.service-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 20px 24px 40px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
}

.service {
    padding: 30px 40px 32px;
    border-right: 1px solid var(--line);
}

.service:last-child { border-right: 0; }

.service h3 {
    margin: 0 0 16px;
    color: #111722;
    font-size: 19px;
    font-weight: 900;
}

.service li {
    padding: 8px 0;
    color: #5f6777;
    font-size: 14.5px;
    list-style: none;
}

.service li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 12px;
    background: var(--yellow);
    vertical-align: middle;
}

/* ---------- 文章详情 ---------- */
.article-head {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 24px 32px;
}

.crumb { margin-bottom: 26px; color: #8a92a0; font-size: 13.5px; }
.crumb a:hover { color: var(--ink); }
.crumb i { font-size: 14px; vertical-align: -2px; }

.article-head h1 {
    position: relative;
    margin: 0 0 44px;
    color: var(--ink);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 900;
    line-height: 1.28;
}

.article-head h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -22px;
    width: 60px;
    height: 4px;
    background: var(--yellow);
}

.byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    color: #737b89;
    font-size: 14px;
}

.byline .author { color: #111722; font-weight: 800; }

.article-cover {
    max-width: 1100px;
    margin: 0 auto 44px;
    overflow: hidden;
    border-radius: 6px;
    background: #e9edf1;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 2.2 / 1;
    object-fit: cover;
    filter: grayscale(100%);
}

.article-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px 20px;
}

.article-body h2 {
    position: relative;
    margin: 48px 0 18px;
    padding-left: 18px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 900;
    line-height: 1.45;
}

.article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--yellow);
}

.article-body h3 {
    margin: 34px 0 12px;
    color: #111722;
    font-size: 19px;
    font-weight: 800;
}

.article-body p {
    margin: 0 0 20px;
    color: #4b5567;
    font-size: 17px;
    line-height: 1.95;
}

.article-body ul { margin: 0 0 24px; padding: 0; }

.article-body li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 22px;
    color: #4b5567;
    font-size: 17px;
    line-height: 1.9;
    list-style: none;
}

.article-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    background: var(--yellow);
}

.article-body blockquote {
    margin: 30px 0;
    padding: 6px 0 6px 24px;
    border-left: 3px solid var(--yellow);
    color: #1c222e;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.85;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 780px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.article-tags span {
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: #5f6777;
    font-size: 13.5px;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 56px auto 0;
    padding: 0 24px;
}

.post-nav a {
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color 180ms ease, background 180ms ease;
}

.post-nav a:hover { border-color: #cfd3dc; background: #fbfcfe; }
.post-nav small { display: block; margin-bottom: 8px; color: #8a92a0; font-size: 13px; }
.post-nav strong { color: #111722; font-size: 16px; font-weight: 800; line-height: 1.5; }
.post-nav .next { text-align: right; }

/* ---------- 分页 ---------- */
.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 46px 24px 8px;
}

.pager a,
.pager span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #5f6777;
    font-size: 14px;
    font-weight: 500;
}

.pager a:hover { border-color: #cfd3dc; color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 56px;
    background: var(--soft);
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: 1762px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding: 56px 32px 40px;
}

.footer-brand {
    position: relative;
    margin: 0 0 26px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
}

.footer-brand::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 34px;
    height: 3px;
    background: var(--yellow);
}

.footer-sub { margin: 0; color: #8a92a0; font-size: 14px; line-height: 1.8; }

.footer-title {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.footer-text { margin: 0 0 8px; color: #687181; font-size: 14.5px; line-height: 1.85; }

.footer-bar {
    max-width: 1762px;
    margin: 0 auto;
    padding: 28px 32px 40px;
    border-top: 1px solid var(--line);
}

.disclaimer { margin: 0; color: #8a92a0; font-size: 13px; line-height: 1.9; }
.disclaimer b { color: #5f6777; font-weight: 700; }

.copyright { margin: 14px 0 0; color: #a0a7b3; font-size: 13px; }

/* ---------- toast ---------- */
.toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 40;
    max-width: calc(100vw - 56px);
    padding: 15px 18px;
    color: #111722;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--yellow);
    border-radius: 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .topbar { height: auto; min-height: 74px; padding: 14px 24px; }
    .brand { font-size: 26px; }
    .menu-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 22px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }
    .nav.is-open { display: flex; }
    .topbar > .primary-btn { display: none; }
    .category-band,
    .service-band,
    .profile-card,
    .post-nav { grid-template-columns: 1fr; }
    .category, .service { border-right: 0; border-bottom: 1px solid var(--line); }
    .category:last-child, .service:last-child { border-bottom: 0; }
    .profile-card { gap: 28px; padding: 24px; }
    .profile-left { gap: 28px; }
    .wechat-box { padding-left: 0; }
    .wechat-box .primary-btn { max-width: 100%; min-height: 50px; }
    .divider { display: none; }
    .law-item { grid-template-columns: 1fr 24px; gap: 8px; padding: 18px 0; }
    .law-meta, .law-status { grid-column: 1; justify-self: start; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
    .shell { padding: 0 16px; }
    .topbar { min-height: 68px; padding: 12px 20px; box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05); }
    .brand { min-width: 0; font-size: 22px; }
    .brand::after { width: 38px; height: 3px; bottom: -11px; }
    .nav { top: 68px; padding: 8px 20px 18px; box-shadow: 0 18px 30px rgba(17, 24, 39, 0.08); }
    .nav a { padding: 14px 0; font-size: 15px; }
    .page-head { padding: 44px 16px 32px; }
    .page-head h1 { font-size: 30px; }
    .page-head .lead { font-size: 16px; }
    .featured-card { grid-template-columns: 1fr; margin: 0 16px 24px; }
    .featured-body { padding: 24px; }
    .article-list, .law-list, .filter-bar, .category-band, .service-band, .profile-card { margin-left: 16px; margin-right: 16px; }
    .article-row { grid-template-columns: 1fr 24px; gap: 12px; padding: 16px 0; }
    .article-row time { grid-column: 1 / -1; grid-row: 2; }
    .profile-left { display: block; }
    .avatar { float: left; width: 116px; flex-basis: auto; margin: 0 18px 10px 0; }
    .article-head { padding: 36px 16px 24px; }
    .article-cover { margin-bottom: 32px; }
    .article-body { padding: 0 16px; }
    .article-body p, .article-body li { font-size: 16px; }
    .article-tags, .post-nav { padding: 0 16px; }
    .wechat-box .primary-btn { width: 100%; }
    .footer-inner, .footer-bar { padding-left: 16px; padding-right: 16px; }
}
