/* ==========================================================================
   李基志律师官网 - 全站样式
   设计基准：PC 1440 / 移动 390，容器 1280
   ========================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--sj-bg);
    color: var(--sj-ink);
    font-family: var(--sj-font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

:focus-visible {
    outline: 2px solid var(--sj-gold);
    outline-offset: 3px;
}

[id] { scroll-margin-top: 92px; }

/* ---------- Tokens ---------- */
:root {
    --sj-bg: #faf8f5;
    --sj-bg-soft: #f4f0e8;
    --sj-ink: #1c1a17;
    --sj-ink-2: #3a3631;
    --sj-muted: #6f6a63;
    --sj-line: #e7e2d9;
    --sj-gold: #b08a4f;
    --sj-gold-soft: #c9a96a;
    --sj-dark: #1f1d1a;
    --sj-white: #ffffff;
    --sj-font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --sj-font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    --sj-container: 1280px;
    --sj-radius: 4px;
    --sj-shadow: 0 18px 40px rgba(31, 29, 26, .08);
}

/* ---------- Layout ---------- */
.sj-container {
    width: 100%;
    max-width: var(--sj-container);
    margin: 0 auto;
    padding: 0 32px;
}

.sj-container--narrow { max-width: var(--sj-container); }

.sj-section { padding: 96px 0; }
.sj-section--tight { padding: 56px 0 72px; }

.sj-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sj-icon {
    width: 20px;
    height: 20px;
    flex: none;
}

/* ---------- Typography ---------- */
.sj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--sj-gold);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sj-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--sj-gold);
}

.sj-h1,
.sj-h2,
.sj-h3,
.sj-hero__title,
.sj-featured__title,
.sj-post__title,
.sj-aside-card__title {
    font-family: var(--sj-font-serif);
    font-weight: 600;
    color: var(--sj-ink);
    letter-spacing: .01em;
}

.sj-h1 { font-size: 42px; line-height: 1.3; }
.sj-h2 { font-size: 38px; line-height: 1.36; }
.sj-h1--article { font-size: 36px; line-height: 1.42; margin-top: 16px; }

.sj-meta {
    display: block;
    color: var(--sj-muted);
    font-size: 13px;
    letter-spacing: .02em;
}

.sj-tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(176, 138, 79, .45);
    color: var(--sj-gold);
    font-size: 12px;
    letter-spacing: .08em;
    line-height: 1.4;
}

.sj-note {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--sj-line);
    color: var(--sj-muted);
    font-size: 13px;
}

/* ---------- Clamp ---------- */
.sj-card__title,
.sj-casecard__title,
.sj-post__title,
.sj-featured__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.sj-card__desc,
.sj-casecard__desc,
.sj-featured__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* ---------- Buttons / Links ---------- */
.sj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--sj-radius);
    font-size: 15px;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.sj-btn--dark {
    background: var(--sj-dark);
    color: #fff;
}

.sj-btn--dark:hover { background: #000; transform: translateY(-1px); }

.sj-btn--outline {
    border-color: var(--sj-ink);
    color: var(--sj-ink);
}

.sj-btn--outline:hover { background: var(--sj-ink); color: #fff; }

.sj-btn--gold {
    background: var(--sj-gold);
    color: #1f1d1a;
}

.sj-btn--gold:hover { background: var(--sj-gold-soft); }

.sj-btn--ghost-light {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.sj-btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.sj-btn--block { width: 100%; }

.sj-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sj-gold);
    font-size: 14px;
    letter-spacing: .04em;
}

.sj-link .sj-icon { width: 16px; height: 16px; transition: transform .2s ease; }
.sj-link:hover .sj-icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.sj-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.sj-header.is-scrolled {
    background: rgba(250, 248, 245, .96);
    border-bottom-color: var(--sj-line);
    box-shadow: 0 8px 24px rgba(31, 29, 26, .06);
    backdrop-filter: saturate(1.2) blur(8px);
}

.sj-header__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 80px;
}

.sj-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.sj-logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--sj-gold);
    color: var(--sj-gold);
    font-family: var(--sj-font-serif);
    font-size: 18px;
    line-height: 1;
}

.sj-logo__text { display: flex; flex-direction: column; }
.sj-logo__text strong {
    font-family: var(--sj-font-serif);
    font-size: 19px;
    letter-spacing: .08em;
    line-height: 1.3;
}
.sj-logo__text em {
    color: var(--sj-muted);
    font-size: 11px;
    font-style: normal;
    letter-spacing: .12em;
}

.sj-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    font-size: 15px;
}

.sj-nav a {
    position: relative;
    padding: 6px 0;
    color: var(--sj-ink-2);
    transition: color .2s ease;
}

.sj-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--sj-gold);
    transition: right .25s ease;
}

.sj-nav a:hover { color: var(--sj-gold); }
.sj-nav a:hover::after { right: 0; }

.sj-header__cta { padding: 12px 22px; font-size: 14px; }

.sj-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
}
.sj-burger .sj-icon { width: 24px; height: 24px; }

/* 顶部为 banner 时，未滚动的 header 用浅色文字 */
.sj-page--banner .sj-header:not(.is-scrolled) .sj-logo__text strong { color: #fff; }
.sj-page--banner .sj-header:not(.is-scrolled) .sj-logo__text em { color: rgba(255, 255, 255, .6); }
.sj-page--banner .sj-header:not(.is-scrolled) .sj-nav a { color: rgba(255, 255, 255, .84); }
.sj-page--banner .sj-header:not(.is-scrolled) .sj-nav a:hover { color: var(--sj-gold-soft); }
.sj-page--banner .sj-header:not(.is-scrolled) .sj-burger { color: #fff; }
.sj-page--banner .sj-header:not(.is-scrolled) .sj-header__cta {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

/* ---------- Drawer ---------- */
.sj-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
}

.sj-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 84vw);
    padding: 24px 24px 32px;
    background: var(--sj-bg);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.sj-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sj-line);
}

.sj-drawer__title {
    font-family: var(--sj-font-serif);
    font-size: 18px;
    letter-spacing: .12em;
}

.sj-drawer__close {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
}

.sj-drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.sj-drawer__nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--sj-line);
    font-size: 16px;
}

.sj-drawer__foot { margin-top: auto; padding-top: 24px; }

.sj-drawer__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--sj-gold);
    font-family: var(--sj-font-serif);
    font-size: 18px;
    letter-spacing: .06em;
}

.sj-mask {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(20, 18, 16, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

body.sj-menu-open { overflow: hidden; }
body.sj-menu-open .sj-drawer__panel { transform: translateX(0); }
body.sj-menu-open .sj-mask { opacity: 1; visibility: visible; }
body.sj-wechat-open { overflow: hidden; }

/* ---------- Hero ---------- */
.sj-hero {
    padding: 160px 0 88px;
    background:
        radial-gradient(900px 420px at 82% 18%, rgba(201, 169, 106, .12), transparent 70%),
        var(--sj-bg);
}

.sj-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    align-items: center;
    gap: 72px;
}

.sj-hero__title {
    margin-bottom: 24px;
    font-size: 60px;
    line-height: 1.22;
}

.sj-hero__desc {
    max-width: 540px;
    color: var(--sj-muted);
    font-size: 16px;
    line-height: 1.9;
}

.sj-hero__btns {
    display: flex;
    gap: 14px;
    margin-top: 36px;
}

.sj-hero__stats {
    display: flex;
    gap: 0;
    margin-top: 56px;
}

.sj-hero__stats li {
    padding: 0 32px;
    border-left: 1px solid var(--sj-line);
}

.sj-hero__stats li:first-child { padding-left: 0; border-left: 0; }

.sj-hero__stats strong {
    display: block;
    font-family: var(--sj-font-serif);
    font-size: 30px;
    font-weight: 600;
    color: var(--sj-ink);
    letter-spacing: .02em;
}

.sj-hero__stats span {
    color: var(--sj-muted);
    font-size: 13px;
}

.sj-hero__media {
    position: relative;
}

.sj-hero__media img {
    width: 100%;
    height: auto;
}

/* ---------- Section head ---------- */
.sj-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 48px;
}

.sj-section__intro { max-width: 750px; }

.sj-section__desc {
    max-width: 380px;
    color: var(--sj-muted);
    font-size: 15px;
    line-height: 1.9;
}

.sj-section__foot {
    margin-top: 48px;
    text-align: center;
}

/* ---------- Service cards ---------- */
.sj-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sj-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--sj-white);
    border: 1px solid var(--sj-line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sj-card:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 138, 79, .5);
    box-shadow: var(--sj-shadow);
}

.sj-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border: 1px solid rgba(176, 138, 79, .4);
    color: var(--sj-gold);
}

.sj-card__icon .sj-icon { width: 24px; height: 24px; }

.sj-card__title {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.5;
}

.sj-card__desc {
    margin-bottom: 24px;
    color: var(--sj-muted);
    font-size: 14px;
    line-height: 1.85;
}

.sj-card .sj-link { margin-top: auto; }

.sj-card:hover .sj-link .sj-icon { transform: translateX(4px); }

/* ---------- Case cards ---------- */
.sj-cases { background: var(--sj-bg-soft); }

.sj-casegrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sj-casecard {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    background: var(--sj-white);
    border: 1px solid var(--sj-line);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.sj-casecard:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 138, 79, .5);
    box-shadow: var(--sj-shadow);
}

.sj-casecard .sj-tag { align-self: flex-start; }

.sj-casecard__result {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sj-line);
}

.sj-casecard__result strong {
    color: var(--sj-gold);
    font-family: var(--sj-font-serif);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .02em;
}

.sj-casecard__title {
    margin-bottom: 10px;
    font-family: var(--sj-font-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--sj-ink);
}

.sj-casecard__desc {
    margin-bottom: 22px;
    color: var(--sj-muted);
    font-size: 14px;
    line-height: 1.85;
}

.sj-casecard .sj-link { margin-top: auto; }

.sj-casecard:hover .sj-link .sj-icon { transform: translateX(4px); }

.sj-casecard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--sj-line);
}

.sj-casecard__desc { flex: 1 1 auto; }

.sj-casecard__foot .sj-link { flex: none; }

/* ---------- Stats band ---------- */
.sj-stats {
    background: var(--sj-dark);
    padding: 56px 0;
}

.sj-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sj-stat {
    padding: 0 24px;
    border-left: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

.sj-stat:first-child { border-left: 0; }

.sj-stat strong {
    display: block;
    font-family: var(--sj-font-serif);
    font-size: 40px;
    font-weight: 600;
    color: var(--sj-gold-soft);
    letter-spacing: .02em;
    line-height: 1.2;
}

.sj-stat span {
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    letter-spacing: .06em;
}

/* ---------- News ---------- */
.sj-featured {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 0;
    margin-bottom: 24px;
    background: var(--sj-bg-soft);
    transition: box-shadow .25s ease;
}

.sj-featured:hover { box-shadow: var(--sj-shadow); }

.sj-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(120% 120% at 15% 15%, #f2ece1 0%, #e4dacb 45%, #cfc3b1 100%);
    color: #a2957f;
    font-size: 12px;
    letter-spacing: .3em;
    overflow: hidden;
}

.sj-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .4s ease;
}

.sj-featured:hover .sj-thumb img,
.sj-post:hover .sj-thumb img { transform: scale(1.04); }

.sj-thumb--featured {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
    background:
        radial-gradient(120% 120% at 20% 20%, #efe7da 0%, #ddd2c1 45%, #c7baa6 100%);
}

.sj-featured__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 40px 44px;
}

.sj-featured__title {
    font-size: 26px;
    line-height: 1.5;
}

.sj-featured__desc {
    color: var(--sj-muted);
    font-size: 14px;
    line-height: 1.9;
}

.sj-featured__body .sj-link { margin-top: 8px; }

.sj-news__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sj-post {
    display: flex;
    flex-direction: column;
    background: var(--sj-white);
    border: 1px solid var(--sj-line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sj-post:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 138, 79, .5);
    box-shadow: var(--sj-shadow);
}

.sj-post__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    padding: 20px 22px 24px;
}

.sj-post__title {
    font-size: 16px;
    line-height: 1.65;
}

.sj-post__body .sj-meta { margin-top: auto; padding-top: 4px; }

/* ---------- Steps ---------- */
.sj-process { background: var(--sj-bg-soft); }

.sj-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.sj-step {
    padding-top: 24px;
    border-top: 1px solid var(--sj-line);
    position: relative;
}

.sj-step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--sj-gold);
}

.sj-step__no {
    display: block;
    margin-bottom: 14px;
    font-family: var(--sj-font-serif);
    font-size: 28px;
    color: var(--sj-gold);
    line-height: 1;
}

.sj-step__title {
    margin-bottom: 10px;
    font-family: var(--sj-font-serif);
    font-size: 19px;
    font-weight: 600;
}

.sj-step__desc {
    color: var(--sj-muted);
    font-size: 14px;
    line-height: 1.85;
}

/* ---------- FAQ ---------- */
.sj-faq__list { border-top: 1px solid var(--sj-line); }

.sj-faq__item { border-bottom: 1px solid var(--sj-line); }

.sj-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 26px 0;
    text-align: left;
    font-family: var(--sj-font-serif);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.6;
    transition: color .2s ease;
}

.sj-faq__q:hover { color: var(--sj-gold); }

.sj-faq__icon {
    width: 20px;
    height: 20px;
    color: var(--sj-gold);
    transition: transform .25s ease;
}

.sj-faq__item.is-open .sj-faq__icon { transform: rotate(45deg); }

.sj-faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.sj-faq__item.is-open .sj-faq__a { grid-template-rows: 1fr; }

.sj-faq__a-inner {
    overflow: hidden;
    min-height: 0;
}

.sj-faq__a-inner p {
    max-width: 820px;
    padding-bottom: 18px;
    color: var(--sj-muted);
    font-size: 15px;
    line-height: 1.9;
}

.sj-faq__a-inner .sj-link { margin-bottom: 26px; }

/* ---------- CTA ---------- */
.sj-cta {
    position: relative;
    padding: 72px 0;
    background: var(--sj-dark);
    color: #fff;
    overflow: hidden;
}

.sj-cta::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(201, 169, 106, .18);
    border-radius: 50%;
}

.sj-cta__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.sj-cta h2 {
    font-family: var(--sj-font-serif);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.45;
}

.sj-cta p {
    margin-top: 12px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

.sj-cta__action { text-align: right; }

.sj-cta__phone {
    display: block;
    margin-bottom: 18px;
    font-family: var(--sj-font-serif);
    font-size: 34px;
    letter-spacing: .04em;
    color: var(--sj-gold-soft);
}

.sj-cta__btns {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ---------- Footer ---------- */
.sj-footer {
    padding: 64px 0 28px;
    background: var(--sj-dark);
    color: var(--sj-white);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sj-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 48px;
}

.sj-footer__brand h2 {
    margin-bottom: 16px;
    font-family: var(--sj-font-serif);
    font-size: 22px;
    letter-spacing: .08em;
    color: var(--sj-white);
}

.sj-footer__brand p {
    max-width: 420px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.9;
}

.sj-footer__col h3 {
    margin-bottom: 18px;
    font-size: 13px;
    letter-spacing: .16em;
    color: var(--sj-white);
}

.sj-footer__col a,
.sj-footer__col p {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    transition: color .2s ease;
}

.sj-footer__col a:hover { color: var(--sj-gold-soft); }

.sj-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
}

.sj-footer__bottom a:hover { color: var(--sj-gold-soft); }

/* ---------- Banner / breadcrumb ---------- */
.sj-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    padding: 172px 0 68px;
    background: var(--sj-dark) url("../img/subpage-banner.jpg") center right / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.sj-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 18, 16, .84) 0%, rgba(20, 18, 16, .58) 42%, rgba(20, 18, 16, .2) 100%);
}

.sj-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.sj-banner .sj-crumb { color: rgba(255, 255, 255, .72); }
.sj-banner .sj-crumb a:hover { color: #fff; }
.sj-banner .sj-crumb span { color: rgba(255, 255, 255, .4); }
.sj-banner .sj-eyebrow { color: var(--sj-gold-soft); }
.sj-banner .sj-h1 { color: #fff; }
.sj-banner .sj-meta { color: rgba(255, 255, 255, .66); }
.sj-banner .sj-tag {
    border-color: rgba(201, 169, 106, .6);
    color: var(--sj-gold-soft);
}

.sj-banner__desc {
    max-width: 640px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.9;
}

.sj-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--sj-muted);
    font-size: 13px;
}

.sj-crumb a:hover { color: var(--sj-gold); }
.sj-crumb span { color: #b3aca1; }

/* ---------- Filters ---------- */
.sj-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.sj-filter {
    padding: 8px 18px;
    border: 1px solid var(--sj-line);
    background: var(--sj-white);
    color: var(--sj-muted);
    font-size: 14px;
    transition: all .2s ease;
}

.sj-filter:hover { border-color: var(--sj-gold); color: var(--sj-gold); }

.sj-filter.is-active {
    background: var(--sj-dark);
    border-color: var(--sj-dark);
    color: #fff;
}

/* ---------- Article list ---------- */
.sj-news__grid--list { margin-top: 0; }

/* ---------- Rich text (detail pages) ---------- */
.sj-richtext { font-size: 14px; line-height: 32px; }

/* ---------- Article prev / next ---------- */
.sj-postnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--sj-line);
}

.sj-postnav__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    background: var(--sj-white);
    border: 1px solid var(--sj-line);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

a.sj-postnav__item:hover {
    transform: translateY(-2px);
    border-color: rgba(176, 138, 79, .5);
    box-shadow: var(--sj-shadow);
}

.sj-postnav__item--next {
    align-items: flex-end;
    text-align: right;
}

.sj-postnav__item--empty {
    background: transparent;
    border: 0;
}

.sj-postnav__label {
    color: var(--sj-gold);
    font-size: 12px;
    letter-spacing: .14em;
}

.sj-postnav__title {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: var(--sj-ink);
    font-family: var(--sj-font-serif);
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- Field detail ---------- */
.sj-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.sj-field__aside { position: sticky; top: 104px; }

.sj-aside-card {
    padding: 26px 24px;
    margin-bottom: 20px;
    background: var(--sj-white);
    border: 1px solid var(--sj-line);
}

.sj-aside-card__title {
    margin-bottom: 16px;
    font-size: 18px;
}

.sj-aside-card--dark {
    background: var(--sj-dark);
    border-color: var(--sj-dark);
    color: #fff;
}

.sj-aside-card--dark .sj-aside-card__title { color: #fff; }

.sj-aside-card--dark p {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    line-height: 1.8;
}

/* ---------- Borders ---------- */
.sj-tag,
.sj-logo__mark,
.sj-card,
.sj-card__icon,
.sj-casecard,
.sj-post,
.sj-filter,
.sj-postnav__item,
.sj-aside-card,
.sj-side__btn,
.sj-side__pop,
.sj-side__qr,
.sj-modal__dialog,
.sj-modal__qr {
    border-radius: 4px;
}

/* ---------- Side rail ---------- */
.is-hidden { display: none; }

.sj-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sj-side {
    position: fixed;
    right: 24px;
    bottom: 200px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sj-side__item {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    padding: 0;
}

.sj-side__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    background: var(--sj-white);
    border: 1px solid var(--sj-line);
    color: var(--sj-ink-2);
    box-shadow: 0 6px 18px rgba(31, 29, 26, .08);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.sj-side__btn .sj-icon { width: 22px; height: 22px; }

.sj-side__label {
    font-size: 12px;
    letter-spacing: .04em;
    line-height: 1;
}

.sj-side__item:hover .sj-side__btn,
.sj-side__item:focus-visible .sj-side__btn {
    background: var(--sj-gold);
    border-color: var(--sj-gold);
    color: var(--sj-ink);
}

.sj-side__pop {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);
    padding: 12px 18px;
    background: var(--sj-dark);
    color: #fff;
    font-size: 15px;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    pointer-events: none;
}

.sj-side__pop::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    border: 6px solid transparent;
    border-left-color: var(--sj-dark);
    transform: translateY(-50%);
}

.sj-side__item:hover .sj-side__pop,
.sj-side__item:focus-visible .sj-side__pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.sj-side__pop--qr {
    padding: 14px;
    background: var(--sj-white);
    border: 1px solid var(--sj-line);
    color: var(--sj-ink-2);
    text-align: center;
    box-shadow: var(--sj-shadow);
}

.sj-side__pop--qr::after {
    border-left-color: var(--sj-white);
}

.sj-side__qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin-bottom: 8px;
    background: var(--sj-bg-soft);
    border: 1px dashed var(--sj-line);
    color: var(--sj-muted);
    font-size: 12px;
    letter-spacing: .04em;
}

.sj-side__pop--qr em {
    display: block;
    color: var(--sj-muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.4;
}

.sj-side__item--top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.sj-side__item--top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------- Modal ---------- */
.sj-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 18, 16, .55);
}

.sj-modal.is-open { display: flex; }

.sj-modal__dialog {
    position: relative;
    width: min(360px, 100%);
    padding: 36px 28px 28px;
    background: var(--sj-bg);
    text-align: center;
}

.sj-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--sj-muted);
}

.sj-modal h3 {
    margin-bottom: 20px;
    font-family: var(--sj-font-serif);
    font-size: 20px;
    letter-spacing: .08em;
}

.sj-modal__qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border: 1px solid var(--sj-line);
    background:
        repeating-linear-gradient(45deg, #f2ede4 0 8px, #e9e2d6 8px 16px);
    color: var(--sj-muted);
    font-size: 12px;
    letter-spacing: .16em;
}

.sj-modal p {
    color: var(--sj-muted);
    font-size: 13px;
}

/* ---------- Mobile action bar ---------- */
.sj-mbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
    .sj-container { padding: 0 24px; }
    .sj-hero__inner { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
    .sj-hero__title { font-size: 52px; }
    .sj-featured { grid-template-columns: 400px minmax(0, 1fr); }
    .sj-nav { gap: 24px; }
}

@media (max-width: 992px) {
    .sj-nav,
    .sj-header__cta { display: none; }

    .sj-burger { display: flex; }

    .sj-section { padding: 72px 0; }

    .sj-hero { padding-top: 132px; }

    .sj-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .sj-hero__title { font-size: 44px; }

    .sj-hero__media {
        max-width: 460px;
        margin: 0 auto;
        width: 100%;
    }

    .sj-section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 36px;
    }

    .sj-section__desc { max-width: 640px; }

    .sj-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sj-casegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sj-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sj-featured { grid-template-columns: minmax(0, 1fr); }
    .sj-thumb--featured { height: 260px; min-height: 0; }

    .sj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sj-field { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .sj-field__aside { position: static; }

    .sj-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .sj-cta__action { text-align: left; }
    .sj-cta__btns { justify-content: flex-start; }

    .sj-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .sj-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }

    .sj-container { padding: 0 20px; }

    .sj-section { padding: 56px 0; }
    .sj-section--tight { padding: 36px 0 52px; }

    .sj-header__inner { height: 68px; }

    .sj-hero { padding: 112px 0 60px; }
    .sj-hero__title { font-size: 36px; }
    .sj-hero__desc { font-size: 15px; }

    .sj-hero__btns {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 28px;
    }

    .sj-hero__btns .sj-btn { width: 100%; }

    .sj-hero__stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin-top: 40px;
    }

    .sj-hero__stats li { padding: 0 12px; }
    .sj-hero__stats strong { font-size: 22px; }
    .sj-hero__stats span { font-size: 11px; }

    .sj-hero__media img { height: 420px; }

    .sj-h2 { font-size: 28px; }
    .sj-h1 { font-size: 30px; }
    .sj-h1--article { font-size: 26px; }

    .sj-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .sj-card { padding: 26px 22px; }

    .sj-casegrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .sj-casecard { padding: 26px 22px; }
    .sj-casecard__result strong { font-size: 30px; }

    .sj-stats { padding: 40px 0; }
    .sj-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
    .sj-stat:nth-child(3) { border-left: 0; }
    .sj-stat strong { font-size: 30px; }

    .sj-featured__body { padding: 26px 22px 30px; gap: 12px; }
    .sj-featured__title { font-size: 21px; }
    .sj-thumb--featured { height: 200px; }

    .sj-news__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }

    .sj-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }

    .sj-faq__q { font-size: 16px; padding: 20px 0; }

    .sj-cta { padding: 52px 0; }
    .sj-cta h2 { font-size: 26px; }
    .sj-cta__phone { font-size: 28px; }
    .sj-cta__action { width: 100%; text-align: left; }
    .sj-cta__btns { flex-wrap: wrap; }
    .sj-cta__btns .sj-btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; white-space: nowrap; }

    .sj-footer { padding: 44px 0 24px; }
    .sj-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 32px; }
    .sj-footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

    .sj-banner { min-height: 240px; padding: 116px 0 40px; }
    .sj-banner__desc { font-size: 14px; }

    .sj-side { display: none; }

    body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

    .sj-mbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        display: flex;
        gap: 8px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid var(--sj-line);
        box-shadow: 0 -6px 20px rgba(31, 29, 26, .08);
    }

    .sj-mbar__item {
        display: inline-flex;
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 48px;
        padding: 0;
        border: 1px solid transparent;
        border-radius: var(--sj-radius);
        font-family: inherit;
        font-size: 15px;
        letter-spacing: .08em;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
    }

    .sj-mbar__item .sj-icon { width: 18px; height: 18px; }

    .sj-mbar__item--phone {
        background: var(--sj-gold);
        border-color: var(--sj-gold);
        color: var(--sj-ink);
    }

    .sj-mbar__item--wechat {
        background: var(--sj-dark);
        border-color: var(--sj-dark);
        color: #fff;
    }

    .sj-postnav {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 40px;
        padding-top: 32px;
    }

    .sj-postnav__item--next {
        align-items: flex-start;
        text-align: left;
    }

    .sj-postnav__item--empty { display: none; }
}

@media (max-width: 480px) {
    .sj-hero__title { font-size: 31px; }
    .sj-logo__text strong { font-size: 17px; }
    .sj-stat strong { font-size: 26px; }
    .sj-stat span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
