/* =========================================================
   China Consign 品牌主题覆盖层
   调性：海军蓝投行风 / 合规供应链 + 制造厂权威感
   色板：深海军蓝 #25324B / 主蓝 #4A5B7A / 石板灰 #5A6780
         浅灰底 #F4F6FA / 描边 #DFE4EE / 金色强调 #E08A34
   ========================================================= */
:root {
    --ll-stone: #5A6780;
    --ll-stone-light: #78859C;
    --ll-wood: #E08A34;
    --ll-wood-dark: #25324B;
    --ll-olive: #4A5B7A;
    --ll-olive-dark: #25324B;
    --ll-bone: #F4F6FA;
    --ll-ink: #25324B;
    --ll-line: #DFE4EE;
    --ll-amber: #E08A34;
    --ll-amber-dark: #C4741F;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    background-color: #ffffff !important;
    /* 机构风：仅一条发丝分隔线，不做悬浮投影 */
    box-shadow: none !important;
    border-bottom: 1px solid var(--ll-line);
}

.menu-link {
    color: var(--ll-ink) !important;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.menu-link:hover,
.menu-item.current-menu-item .menu-link {
    color: var(--ll-olive) !important;
}

.menu-link::after {
    background: linear-gradient(90deg, var(--ll-olive) 0%, var(--ll-wood) 100%) !important;
}

.sub-menu {
    border-color: var(--ll-line) !important;
    box-shadow: 0 18px 48px rgba(37, 50, 75, 0.18) !important;
}

.sub-menu .menu-link {
    color: var(--ll-stone) !important;
}

.sub-menu .menu-link:hover {
    background: linear-gradient(90deg, #FBFCFE 0%, #DFE4EE 100%) !important;
    color: var(--ll-olive) !important;
}

/* Logo 装饰标记 */
.logo-decoration,
.ast-custom-button {
    background: linear-gradient(135deg, var(--ll-olive) 0%, var(--ll-olive-dark) 100%) !important;
    box-shadow: 0 1px 2px rgba(37, 50, 75, 0.10) !important;
}

.ast-custom-button:hover {
    background: linear-gradient(135deg, var(--ll-wood) 0%, var(--ll-wood-dark) 100%) !important;
    box-shadow: 0 1px 2px rgba(37, 50, 75, 0.10) !important;
}

/* 语言切换悬停 */
.language-current:hover,
.language-option:hover {
    background: #DFE4EE !important;
    border-color: var(--ll-olive) !important;
    color: var(--ll-olive) !important;
}

/* 搜索框聚焦 */
.search-input:focus {
    border-color: var(--ll-olive) !important;
    box-shadow: 0 0 0 3px rgba(28, 59, 90, 0.12) !important;
}

/* ---------- 页头标题区（page-header）---------- */
.page-header {
    background:
        radial-gradient(circle at 18% 24%, rgba(224, 138, 52, 0.20), transparent 46%),
        linear-gradient(120deg, #25324B 0%, #16305A 55%, #4A5B7A 100%) !important;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(224, 138, 52, 0.22);
}

.page-header::before {
    background: linear-gradient(120deg, rgba(37, 50, 75, 0.55) 0%, rgba(28, 59, 90, 0.35) 100%) !important;
}

/* ---------- 按钮（全局 Bootstrap 变量已改，这里补充质感）---------- */
.btn-primary {
    background-color: var(--ll-olive) !important;
    border-color: var(--ll-olive) !important;
}

.btn-primary:hover {
    background-color: var(--ll-olive-dark) !important;
    border-color: var(--ll-olive-dark) !important;
}

.btn-outline-primary {
    color: var(--ll-olive) !important;
    border-color: var(--ll-olive) !important;
}

.btn-outline-primary:hover {
    background-color: var(--ll-olive) !important;
    border-color: var(--ll-olive) !important;
}

/* ---------- 企业级页脚 ---------- */
.enterprise-footer {
    background: linear-gradient(150deg, #08162A 0%, #25324B 45%, #2F3F5E 100%) !important;
    color: #FBFCFE;
}

.footer-widget-title {
    color: #FBFCFE !important;
    border-bottom-color: rgba(248, 250, 252, 0.12) !important;
}

.footer-widget-title::after {
    background: var(--ll-amber) !important;
}

.footer-links a:hover,
.legal-links li a:hover,
.footer-copyright a:hover {
    color: var(--ll-amber) !important;
}

.social-icon {
    background: rgba(224, 138, 52, 0.18) !important;
    border: 1px solid rgba(224, 138, 52, 0.32) !important;
    color: #FBFCFE;
}

.social-icon:hover {
    background: var(--ll-wood) !important;
    color: #fff !important;
    box-shadow: 0 5px 20px rgba(224, 138, 52, 0.45) !important;
}

.contact-icon {
    background: linear-gradient(135deg, var(--ll-olive) 0%, var(--ll-olive-dark) 100%) !important;
}

.back-to-top {
    background: linear-gradient(135deg, var(--ll-olive) 0%, var(--ll-olive-dark) 100%) !important;
    border-color: rgba(28, 59, 90, 0.3) !important;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--ll-wood) 0%, var(--ll-wood-dark) 100%) !important;
}

.footer-bottom {
    background: linear-gradient(135deg, rgba(6, 18, 34, 0.98) 0%, rgba(37, 50, 75, 0.96) 100%) !important;
    border-top: 1px solid rgba(224, 138, 52, 0.35) !important;
}

/* ---------- 通用区块标题点缀线 ---------- */
.ll-rule {
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ll-olive) 0%, var(--ll-wood) 100%);
    border: none;
    opacity: 1;
}

/* ---------- 字体：标题衬线（Source Serif 4）---------- */
.ll-serif,
.display-serif {
    font-family: 'Source Serif 4', 'Noto Serif SC', Georgia, 'Times New Roman', serif !important;
}

/* 商品详情页价格区重着色（原为绿色渐变） */
#priceDisplay {
    background: linear-gradient(135deg, #F4F6FA 0%, #DFE4EE 100%) !important;
    border-left: 4px solid var(--ll-olive) !important;
}

#priceDisplay #currentPrice,
#priceDisplay span[style*="B12704"] {
    color: var(--ll-wood-dark) !important;
}

/* 商品卡片“查看详情”按钮重着色 */
a[style*="15803D"], a[style*="16A34A"] {
    /* 由模板内联样式控制，这里仅作兜底 */
}

/* =========================================================
   Product Detail Page — 布局 / 排版 / 信任要素
   ========================================================= */
.ll-pd-hero {
    position: sticky;
    top: 96px;
}

.ll-pd-mainimg {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(37, 50, 75, 0.14);
    border: 1px solid var(--line);
    background: #DFE4EE;
    aspect-ratio: 1 / 1;
}
.ll-pd-mainimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}
.ll-pd-mainimg:hover img {
    transform: scale(1.03);
}
.ll-pd-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(37, 50, 75, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}
.ll-pd-badge i { color: #E08A34; }

.ll-pd-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.ll-pd-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--line);
    background: #DFE4EE;
    padding: 0;
    transition: all 0.25s ease;
}
.ll-pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ll-pd-thumb.active,
.ll-pd-thumb:hover {
    border-color: var(--olive);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 50, 75, 0.18);
}

.ll-pd-eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wood);
    font-weight: 700;
    background: var(--bone);
    border: 1px solid var(--line);
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 14px;
}
.ll-pd-title {
    font-family: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
    font-weight: 700;
    color: var(--ink);
    font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.ll-pd-trustline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--olive);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.ll-pd-trustline i { color: var(--wood); }

/* 价格区：复用已有 #priceDisplay 重着色，这里只细化内部排版 */
#priceDisplay {
    margin-bottom: 22px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #F4F6FA 0%, #DFE4EE 100%);
    border-radius: 3px;
    border-left: 4px solid var(--olive);
}
#priceDisplay #currentPrice {
    color: var(--wood-dark);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    font-family: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
}
#priceDisplay #originalPrice {
    color: var(--stone);
    text-decoration: line-through;
    font-size: 1.25rem;
    margin-left: 4px;
}
#priceDisplay #discountBadge {
    background: var(--amber);
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 6px;
}

.ll-pd-short {
    margin: 22px 0;
    padding: 18px 20px;
    background: var(--bone);
    border-left: 3px solid var(--wood);
    border-radius: 0 3px 3px 0;
    color: var(--stone);
    line-height: 1.75;
    font-size: 1rem;
}

.ll-pd-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 22px 0;
}
.ll-pd-trust {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(37, 50, 75, 0.05);
}
.ll-pd-trust i {
    color: var(--olive);
    font-size: 1.25rem;
    margin-top: 2px;
    flex: 0 0 auto;
}
.ll-pd-trust b {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}
.ll-pd-trust span {
    color: var(--stone);
    font-size: 0.82rem;
}

.ll-pd-cta {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}
.ll-pd-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.ll-pd-cta .btn-primary-ll {
    background: linear-gradient(135deg, var(--olive) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 50, 75, 0.3);
}
.ll-pd-cta .btn-primary-ll:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(37, 50, 75, 0.4);
}
.ll-pd-cta .btn-outline-ll {
    background: #fff;
    color: var(--olive);
    border: 2px solid var(--olive);
    box-shadow: 0 4px 18px rgba(37, 50, 75, 0.1);
}
.ll-pd-cta .btn-outline-ll:hover {
    background: var(--bone);
    transform: translateY(-2px);
}

.ll-pd-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 22px;
}
.ll-pd-meta .cell {
    padding: 12px 14px;
    background: var(--bone);
    border-radius: 3px;
}
.ll-pd-meta .k {
    color: var(--stone);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.ll-pd-meta .v {
    color: var(--ink);
    font-weight: 700;
    font-size: 1rem;
}

/* 区块卡片 */
.ll-pd-section {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 4px 24px rgba(37, 50, 75, 0.06);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line);
}
.ll-pd-h2 {
    font-family: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
    font-weight: 700;
    color: var(--ink);
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.85rem);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ll-pd-h2 i { color: var(--wood); font-size: 1.3rem; }
.ll-pd-rule {
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--olive), var(--wood));
    margin: 10px 0 24px;
}
.ll-pd-content {
    color: var(--stone);
    line-height: 1.85;
    font-size: 1.0625rem;
}
.ll-pd-content h3 {
    font-family: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
    font-size: 1.2rem;
    margin: 1.4em 0 0.6em;
    color: var(--ink);
}
.ll-pd-content p { margin: 0 0 1.1em; }
.ll-pd-content ul, .ll-pd-content ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.ll-pd-content li { margin: 0.4em 0; }
.ll-pd-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.ll-pd-content th, .ll-pd-content td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
    font-size: 0.95rem;
}
.ll-pd-content th { background: var(--bone); color: var(--ink); }

/* 图集网格 */
.ll-pd-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}
.ll-pd-gitem {
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--line);
    background: #DFE4EE;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 16px rgba(37, 50, 75, 0.06);
    transition: all 0.3s ease;
}
.ll-pd-gitem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.ll-pd-gitem:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(37, 50, 75, 0.14);
}
.ll-pd-gitem:hover img {
    transform: scale(1.05);
}

/* 为什么选择我们 */
.ll-why {
    background: linear-gradient(135deg, #F4F6FA 0%, #DFE4EE 100%);
    border-radius: 3px;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
}
.ll-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 24px;
}
.ll-why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ll-why-ic {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--olive), var(--primary-dark));
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 22px rgba(37, 50, 75, 0.25);
}
.ll-why-item b {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.ll-why-item p {
    color: var(--stone);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .ll-pd-hero { position: static; }
}

/* =========================================================
   全局细节：可访问性 / 排版节奏 / 通用组件
   ========================================================= */
::selection {
    background: rgba(28, 59, 90, 0.16);
    color: #25324B;
}

/* 键盘焦点环：可点击但非原生 button 的元素也纳入 */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.menu-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #4A5B7A;
    outline-offset: 3px;
    border-radius: 2px;
}

/* 段落正文的阅读节奏（长文页使用） */
.ll-prose,
.page-content,
.about-content,
.content {
    color: #2A3140;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.ll-prose h2,
.page-content h2,
.about-content h2 {
    font-family: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
    font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.7rem);
    color: #25324B;
    margin: 2.2rem 0 0.9rem;
    line-height: 1.3;
}

.page-content h2:first-child,
.about-content h2:first-child {
    margin-top: 0;
}

.ll-prose p,
.page-content p,
.about-content p {
    margin-bottom: 1.15rem;
}

.ll-prose ul,
.ll-prose ol,
.page-content ul,
.page-content ol,
.about-content ul,
.about-content ol {
    padding-left: 1.35rem;
    margin-bottom: 1.25rem;
}

.ll-prose li,
.page-content li,
.about-content li {
    margin-bottom: 0.55rem;
}

.page-content a,
.about-content a,
.ll-prose a {
    color: #4A5B7A;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.page-content a:hover,
.about-content a:hover,
.ll-prose a:hover {
    color: #E08A34;
}

/* 通用强调小标题 */
.ll-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4A5B7A;
    font-weight: 700;
}

/* 通用大标题 */
.ll-display {
    font-family: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #25324B;
}

/* 金色 CTA 按钮（深底上使用） */
.ll-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 34px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    background: #E08A34;
    color: #25324B !important;
    border: 1px solid #E08A34;
    box-shadow: 0 1px 2px rgba(37, 50, 75, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ll-btn-gold:hover {
    background: #F0A65E;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(37, 50, 75, 0.10);
}

/* 卡片统一交互 */
.ll-card {
    background: #fff;
    border: 1px solid #DFE4EE;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(37, 50, 75, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 6px rgba(37, 50, 75, 0.07);
    border-color: #CDD6E5;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   移动端（≤576px）细节修正
   ========================================================================== */
@media (max-width: 576px) {
    /* 首页 Hero 两个 CTA 在窄屏改为等宽整行，避免一宽一窄参差 */
    .ll-hero .d-flex.flex-wrap.gap-3 {
        width: 100%;
        gap: 12px !important;
    }

    .ll-hero .d-flex.flex-wrap.gap-3 > a {
        width: 100%;
        justify-content: center;
    }

    /* Hero 三项数据在窄屏压缩间距，避免最后一项被挤到单独一行 */
    .ll-hero-stats {
        gap: 1.25rem !important;
        margin-top: 1.75rem !important;
    }

    .ll-hero-stats > div {
        min-width: 30%;
    }

    .ll-hero-stats > div > div:first-child {
        font-size: 1.5rem !important;
    }

    .ll-hero-stats > div > div:last-child {
        font-size: 0.78rem !important;
    }
}

/* Hero 数据区在窄屏改为三列等宽栅格，允许标签换行，避免第三项被挤到单独一行 */
@media (max-width: 576px) {
    .ll-hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px !important;
        width: 100%;
    }

    .ll-hero-stats > div {
        min-width: 0;
    }

    .ll-hero-stats > div > div:last-child {
        line-height: 1.35;
        word-break: break-word;
    }
}

/* Hero 数据区数值不换行（避免 T/T & L/C 被拆成两行） */
@media (max-width: 576px) {
    .ll-hero-stats > div > div:first-child {
        white-space: nowrap;
        font-size: 1.28rem !important;
        letter-spacing: -0.01em;
    }
}

/* ==========================================================================
   品牌色兜底：覆盖 Bootstrap 默认语义色
   —— 模板中大量使用 .text-primary / .bg-primary / .btn-outline-primary，
      若放任 Bootstrap 默认值会漏出 #4A5B7A 亮蓝，与深蓝+金色体系冲突。
   ========================================================================== */
.text-primary,
.link-primary {
    color: #4A5B7A !important;
}

.bg-primary {
    background-color: #4A5B7A !important;
}

.border-primary {
    border-color: #4A5B7A !important;
}

.btn-primary {
    background-color: #4A5B7A;
    border-color: #4A5B7A;
    color: #FBFCFE;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #25324B;
    border-color: #25324B;
    color: #fff;
}

.btn-outline-primary {
    color: #4A5B7A;
    border-color: #4A5B7A;
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #4A5B7A;
    border-color: #4A5B7A;
    color: #fff;
}

/* 表单错误提示统一为品牌砖红（Bootstrap 默认 #B4472F 偏艳） */
.text-danger {
    color: #B4472F !important;
}

.is-invalid,
.form-control.is-invalid {
    border-color: #B4472F !important;
}

/* 搜索结果里用来弱化的说明文字，统一到 slate 色阶 */
.text-muted {
    color: #78859C !important;
}

/* ==========================================================================
   CJK 排版：拉丁裔标题字体在中文/日文/韩文下行高过紧
   ========================================================================== */
html[lang="ja"] .ll-hero-title,
html[lang="ko"] .ll-hero-title,
html[lang="zh"] .ll-hero-title,
html[lang="ja"] .ll-display,
html[lang="ko"] .ll-display,
html[lang="zh"] .ll-display {
    line-height: 1.28;
}

/* ==========================================================================
   卡片标题高度对齐：标题 1 行与 2 行混排时，正文起点会参差
   ========================================================================== */
.ll-card h3,
.ll-card .card-title,
.ll-prod-card h3 {
    min-height: 2.7em;
}

@media (max-width: 767px) {
    .ll-card h3,
    .ll-card .card-title,
    .ll-prod-card h3 {
        min-height: 0;
    }
}

/* ==========================================================================
   CJK 断行优化
   --------------------------------------------------------------------------
   日语：默认按字符断行，会把「の」「は」「が」等助词甩到行首（例：
   「B2B 調達・コンプライアンス / の信頼できるパートナー」）。
   word-break: auto-phrase 按文节（短语）断行，Chrome 119+ 支持，其余浏览器
   忽略该值不受影响。
   韩语：keep-all 避免在词内断开（韩语以空格分词）。
   ========================================================================== */
html[lang="ja"] .ll-hero-title,
html[lang="ja"] .ll-display,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] .ll-hero-sub {
    word-break: auto-phrase;
}

html[lang="ko"] .ll-hero-title,
html[lang="ko"] .ll-display,
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] .ll-hero-sub {
    word-break: keep-all;
}

/* ==========================================================================
   机构化视觉层 · Institutional Layer
   --------------------------------------------------------------------------
   目标观感：国际律所 / 投行 —— 克制、可信、可审计。
   原则：
     1) 三色骨架：墨蓝（权威）+ 黄铜（唯一强调）+ 暖纸白（版面）
     2) 几何收紧：圆角 2~3px，投影只保留发丝级，取消悬浮位移
     3) 字阶分层：衬线标题降字重、小标签拉开字距、数字用等宽数位
     4) 秩序优先：用 1px 分隔线与留白建立层级，而非阴影与色块
   ========================================================================== */
:root {
    --ink: #25324B;
    --ink-2: #2F3F5E;
    --ink-3: #4A5B7A;
    --brass: #E08A34;
    --brass-dk: #C4741F;
    --brass-lt: #F0A65E;
    /* 浅色纸面上的黄铜文字专用色：同色相压暗一档，保证 WCAG AA 4.5:1。
       深色底仍用 --brass（亮黄铜），避免在深海军蓝上反向掉到 3.2:1 以下。 */
    --brass-aa: #B96C1C;
    --paper: #FBFCFE;
    --paper-2: #F4F6FA;
    --paper-3: #F4F6FA;
    --line: #DFE4EE;
    --line-2: #CDD6E5;
    --text: #222B3A;
    --muted: #5A6780;
    --faint: #78859C;
    --shadow-1: 0 1px 2px rgba(37, 50, 75, 0.05);
}

/* ---------- 1. 基础排版 ---------- */
body {
    background-color: var(--paper-2);
    color: var(--text);
    font-size: 16.5px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

h1 { line-height: 1.12; }
h2 { line-height: 1.18; }
h3 { line-height: 1.28; }

.ll-display {
    font-weight: 600 !important;
    letter-spacing: -0.016em !important;
    font-optical-sizing: auto;
}

.ll-hero-title {
    font-weight: 600 !important;
    letter-spacing: -0.018em !important;
    line-height: 1.08 !important;
}

strong, b { font-weight: 600; }

/* 小标签：字距拉开、统一黄铜。
   浅底用 --brass-aa（4.72~5.33:1），原 --brass 在 #F4F6FA 上仅 2.88:1，
   不满足 WCAG 2.1 AA；深底上下文单独还原亮黄铜。 */
.ll-eyebrow {
    font-size: 0.715rem !important;
    letter-spacing: 0.22em !important;
    font-weight: 600 !important;
    color: var(--brass-aa) !important;
    text-transform: uppercase;
}
.ll-hero .ll-eyebrow,
.page-header .ll-eyebrow,
.enterprise-footer .ll-eyebrow,
.footer-bottom .ll-eyebrow {
    color: var(--brass) !important;
}
/* HOW WE WORK 四步序号：与 eyebrow 同口径，浅底卡片上需 4.5:1 */
.ll-step-num {
    color: var(--brass-aa) !important;
}

/* 装饰线：一根发丝，取消渐变与粗描 */
.ll-rule {
    width: 56px !important;
    height: 1px !important;
    border-radius: 0 !important;
    background: var(--brass) !important;
    opacity: 0.9 !important;
}

/* 数字一律等宽，避免跳动 */
.ll-hero-stats div div:first-child,
.ll-pd-meta .v,
.ll-pd-trust b,
.stat-number,
.footer-copyright {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ---------- 2. 按钮：直角、无投影、无位移 ---------- */
.btn,
.ll-btn-gold,
.ll-btn-ghost,
.ll-pd-cta a,
.ast-custom-button {
    border-radius: 2px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    box-shadow: none !important;
    text-transform: none;
}

.ll-btn-gold {
    background: var(--brass) !important;
    border: 1px solid var(--brass) !important;
    color: #25324B !important;
    padding: 14px 30px !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ll-btn-gold:hover,
.ll-btn-gold:focus {
    background: var(--brass-dk) !important;
    border-color: var(--brass-dk) !important;
    color: var(--paper) !important;
    transform: none !important;
    box-shadow: none !important;
}

.ll-btn-ghost:hover,
.ll-btn-ghost:focus {
    background: rgba(251, 250, 247, 0.10) !important;
    border-color: rgba(251, 250, 247, 0.75) !important;
    color: var(--paper) !important;
    transform: none !important;
}

.btn-primary {
    background-color: var(--ink-3) !important;
    border-color: var(--ink-3) !important;
    color: var(--paper) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--ink) !important;
    border-color: var(--ink) !important;
    color: var(--paper) !important;
}

.btn-outline-primary {
    color: var(--ink-3) !important;
    border-color: var(--line-2) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--ink-3) !important;
    border-color: var(--ink-3) !important;
    color: var(--paper) !important;
}

.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

/* ---------- 3. 卡片：发丝描边取代投影 ---------- */
.ll-card {
    border-radius: 3px !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
    background: #fff;
    transition: border-color 0.18s ease;
}

.ll-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--line-2) !important;
}

/* ---------- 4. 正文内容 ---------- */
.ll-prose,
.page-content,
.about-content {
    color: var(--text);
}

.ll-prose h2,
.page-content h2,
.about-content h2,
.ll-pd-content h2 {
    font-size: 1.5rem;
    margin: 2.2em 0 0.7em;
    padding-top: 1.1em;
    border-top: 1px solid var(--line);
}

.ll-prose h3,
.page-content h3,
.about-content h3 {
    font-size: 1.16rem;
    letter-spacing: 0;
    margin: 1.8em 0 0.5em;
}

.ll-prose p,
.page-content p,
.about-content p,
.ll-pd-content p {
    font-size: 1.0125rem;
    line-height: 1.8;
    color: var(--text);
}

.ll-prose a,
.page-content a,
.about-content a,
.ll-pd-content a {
    color: var(--ink-3);
    text-decoration: underline;
    text-decoration-color: rgba(224, 138, 52, 0.55);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.ll-prose a:hover,
.page-content a:hover,
.about-content a:hover,
.ll-pd-content a:hover {
    color: var(--brass-dk);
    text-decoration-color: var(--brass-dk);
}

/* 表格：上下双线，取消斑马底 */
.ll-pd-content table {
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.ll-pd-content th {
    background: transparent !important;
    color: var(--muted) !important;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line-2);
}

.ll-pd-content td {
    border-bottom: 1px solid var(--line);
}

.ll-pd-content tr:last-child td {
    border-bottom: none;
}

/* ---------- 5. 表单控件 ---------- */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    border-radius: 2px !important;
    border-color: var(--line-2) !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--ink-3) !important;
    box-shadow: 0 0 0 3px rgba(28, 59, 90, 0.10) !important;
}

.form-label,
label.form-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- 6. 页头 / 页脚收口 ---------- */
.page-header {
    background:
        linear-gradient(160deg, #25324B 0%, #162A40 58%, #4A5B7A 100%) !important;
    border-bottom: 1px solid rgba(224, 138, 52, 0.28);
}

.page-header::before {
    background: linear-gradient(180deg, rgba(37, 50, 75, 0.30) 0%, rgba(37, 50, 75, 0.55) 100%) !important;
}

.page-header-title {
    font-weight: 600 !important;
    letter-spacing: -0.015em;
}

/* 页头小标签走独立一行，与标题留出呼吸 */
.page-header .ll-eyebrow {
    display: block;
    margin-bottom: 14px;
}

.page-header-description {
    color: rgba(251, 250, 247, 0.78);
    font-size: 1.02rem;
    line-height: 1.75;
}

.enterprise-footer {
    background: var(--ink) !important;
}

.footer-bottom {
    background: #0B1626 !important;
    border-top: 1px solid rgba(224, 138, 52, 0.28) !important;
}

.social-icon {
    background: transparent !important;
    border: 1px solid rgba(251, 250, 247, 0.22) !important;
    border-radius: 2px !important;
    color: var(--paper);
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.social-icon:hover {
    background: var(--brass) !important;
    border-color: var(--brass) !important;
    color: #25324B !important;
    box-shadow: none !important;
}

.back-to-top,
.contact-icon {
    background: var(--ink-3) !important;
    background-image: none !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

.back-to-top:hover {
    background: var(--brass) !important;
}

/* ---------- 7. 面包屑 / 分页 ---------- */
.breadcrumb {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--line-2);
}

.breadcrumb-item a {
    color: var(--ink-3);
    text-decoration: none;
}

.page-link {
    border-radius: 2px !important;
    color: var(--ink-3);
    border-color: var(--line);
}

.page-item.active .page-link {
    background: var(--ink-3);
    border-color: var(--ink-3);
}

/* ---------- 8. 徽标 / 标签 ---------- */
.badge {
    border-radius: 2px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.34em 0.6em;
}

/* ---------- 9. 章节留白节奏 ---------- */
.ll-pd-section,
.section {
    padding-top: clamp(56px, 6vw, 88px);
    padding-bottom: clamp(56px, 6vw, 88px);
}

/* ---------- 10. 语言 / RTL 微调 ---------- */
[dir="rtl"] .ll-eyebrow {
    letter-spacing: 0.08em !important;
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-left: 0.5rem;
    padding-right: 0;
}

/* ---------- 11. 收口层：零立面 / 平面化 / 去圆形 ----------
   机构化视觉的底线：不使用投影制造层级，不用圆形图标，
   不做悬浮位移；层级只靠留白、发丝线与字重区分。 */

/* 11.1 全站去投影（焦点环使用 outline，不受影响）
   用 html body 前缀提高权重，压过模板内联 <style> 中的遗留声明 */
html body *:not(:focus):not(:focus-visible) {
    box-shadow: none !important;
}

/* 11.2 页头带：改为纯墨色，去掉蓝色渐变与径向光斑 */
.page-header {
    background: #25324B !important;
    border-bottom: 1px solid rgba(224, 138, 52, 0.28) !important;
}

.page-header::before {
    background: none !important;
    opacity: 0 !important;
}

/* 11.3 CTA 面板：平面墨色 + 发丝边框 */
.ll-cta {
    background: #25324B !important;
    border: 1px solid #4A5B7A !important;
    border-radius: 3px !important;
}

.ll-cta:hover {
    background: #12233A !important;
    transform: none !important;
}

/* 11.4 深色分节：去掉斜向渐变，保持纯墨色 */
.section-dark,
.section-ink {
    background-image: none !important;
    background-color: #25324B !important;
}

/* 11.5 圆形图标/按钮统一为 2px 方角 */
a.rounded-circle,
.rounded-circle,
.social-link,
.share-link,
.share-btn,
[class*="share-"] a,
[class*="social-"] a {
    border-radius: 2px !important;
}

/* 11.6 卡片类元素取消悬浮位移、图片缩放与投影 */
html body .ll-card:hover,
html body .card:hover,
html body article:hover,
html body figure:hover,
html body .service-card:hover,
html body .blog-card:hover,
html body .product-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

html body .card:hover img,
html body .ll-card:hover img,
html body article:hover img {
    transform: none !important;
}

/* 11.7 图片容器统一发丝描边，替代投影带来的边界感 */
figure,
.blog-card figure,
.service-card figure {
    border: 1px solid var(--ll-line);
}

/* ==========================================================================
   12. 首屏文案入场 · Hero Copy Reveal
   --------------------------------------------------------------------------
   设计约束（机构风：律所 / 审计 / 投行）——克制、可信、不抢内容：
   · 仅 opacity + 8px 垂直位移；无缩放、无弹跳、无逐字、无循环、无光效。
   · 五个文案单元按阅读顺序错开 80ms，单次播放，总时长约 1.0s。
   · 用 animation-fill-mode: backwards 而非 forwards/both：动画结束后元素
     回到自身自然样式，不残留 opacity / transform，打印、截图、后续交互
     都不受影响；LCP 主标题只延迟 80ms。
   · 不设 will-change：动画期间浏览器自行提升合成层，结束后不常驻内存。
   · 不加 overflow 遮罩：避免裁切多行标题、CJK 行高与 RTL 文本。
   · 只挂在首页 .ll-hero-copy 上，其余页面的 hero 不受影响。
   ========================================================================== */
@keyframes ll-hero-reveal {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* .ll-eyebrow 是行内 span：CSS transform 对非替换行内元素无效，且若为此
   改成 inline-block，其 inline style 的 margin-bottom:18px 会突然生效并
   撑开与 h1 的间距。故它只做淡入，与其余单元保持同一节奏。 */
@keyframes ll-hero-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    .ll-hero-copy > .ll-eyebrow,
    .ll-hero-copy > .ll-hero-title,
    .ll-hero-copy > .ll-hero-sub,
    .ll-hero-copy > .ll-hero-actions,
    .ll-hero-copy > .ll-hero-stats {
        animation-duration: 0.68s;
        animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
        animation-iteration-count: 1;
        animation-fill-mode: backwards;
    }

    .ll-hero-copy > .ll-eyebrow {
        animation-name: ll-hero-fade;
        animation-delay: 0s;
    }
    .ll-hero-copy > .ll-hero-title,
    .ll-hero-copy > .ll-hero-sub,
    .ll-hero-copy > .ll-hero-actions,
    .ll-hero-copy > .ll-hero-stats {
        animation-name: ll-hero-reveal;
    }
    .ll-hero-copy > .ll-hero-title   { animation-delay: 0.08s; }
    .ll-hero-copy > .ll-hero-sub     { animation-delay: 0.16s; }
    .ll-hero-copy > .ll-hero-actions { animation-delay: 0.24s; }
    .ll-hero-copy > .ll-hero-stats   { animation-delay: 0.32s; }
}

/* 明确声明减少动画偏好、以及打印/PDF 导出时，直接呈现终态。
   即使上面 no-preference 分支被异常匹配，也不会出现半透明或偏移文字。 */
@media (prefers-reduced-motion: reduce), print {
    .ll-hero-copy > .ll-eyebrow,
    .ll-hero-copy > .ll-hero-title,
    .ll-hero-copy > .ll-hero-sub,
    .ll-hero-copy > .ll-hero-actions,
    .ll-hero-copy > .ll-hero-stats {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   13. 首屏背景 · 镜头推拉（Ken Burns / dolly）
   --------------------------------------------------------------------------
   观感：极缓慢地推近 → 拉远，无限循环，让集装箱船与龙门吊产生「航行中」
   的错觉；不平移、不旋转、不闪烁，维持律所 / 审计式的克制。
   · 单程 22s（来回 44s），幅度仅 8%，约 0.36%/秒 —— 需盯数秒才察觉，
     但首屏始终「活着」。ease-in-out + alternate 让两端速度趋近于零，
     折返点无跳变，是连续呼吸般的推拉而非机械往返。
   · transform-origin 略偏右（58% 52%）：放大时视觉重心向船侧推进，
     比居中缩放更有镜头方向感。最小缩放恒为 1.0，四边永远有溢出余量，
     配合 .ll-hero 的 overflow:hidden 绝不露出底层渐变。
   · 只改合成层 transform；opacity / filter / object-fit 沿用模板原值。
     无限循环动画才值得加 will-change（第 12 节的单次文字动画刻意不加）。
   · 与文字动画一样遵守 reduced-motion / print 终态保护；老浏览器不支持
     该媒体查询时背景保持静止，仍是完整的原始构图。
   ========================================================================== */
.ll-hero-home {
    --ll-hero-dolly-duration: 22s;   /* 单程时长：只改这一个数即可调速 */
}

@keyframes ll-hero-dolly {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

@media (prefers-reduced-motion: no-preference) {
    .ll-hero-home .ll-hero-bg {
        transform-origin: 58% 52%;
        backface-visibility: hidden;
        will-change: transform;
        animation-name: ll-hero-dolly;
        animation-duration: var(--ll-hero-dolly-duration, 22s);
        animation-timing-function: ease-in-out;
        animation-direction: alternate;
        animation-iteration-count: infinite;
        animation-fill-mode: none;
    }
}

@media (prefers-reduced-motion: reduce), print {
    .ll-hero-home .ll-hero-bg {
        animation: none !important;
        transform: none !important;
        will-change: auto !important;
    }
}

/* ==========================================================================
   14. 首屏 <picture> 容器（AVIF 渐进增强）
   <img> 原本相对 section 绝对定位；加 picture 后让容器占据同样的 inset:0，
   <img> 的 100%/100% 与 transform 推拉动画几何完全不变。
   不支持 AVIF 的浏览器忽略 <source>，直接使用 <img src> 的 JPEG。
   ========================================================================== */
.ll-hero-home .ll-hero-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
