@charset "utf-8";
/* ==========================================================================
   品传集团 全站统一样式  pc-style.css
   基准风格：template/eyou/pc/index.htm
   兼容：电脑端 / 平板 / 手机端    版本：2026-11
   ========================================================================== */

/* ---------- 1. 变量与重置 ---------- */
:root {
    --brand: #d52b1e;
    --brand-dark: #b82419;
    --brand-soft: #fdecea;
    --ink: #222;
    --text: #333;
    --muted: #6b7280;
    --line: #e8e8e8;
    --bg: #f9f9f9;
    --bg-soft: #f5f5f5;
    --dark: #17181a;
    --dark-2: #222;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .05);
    --shadow: 0 6px 18px rgba(0, 0, 0, .06);
    --shadow-lg: 0 14px 34px rgba(0, 0, 0, .12);
    --header-h: 72px;
    --gutter: 15px;
    --max: 1200px;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s, background-color .25s, opacity .25s, transform .25s;
}

a:hover {
    color: var(--brand);
    text-decoration: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--brand);
    color: #fff;
}

/* ---------- 2. 布局 ---------- */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow {
    max-width: 900px;
}

.container-wide {
    max-width: 1400px;
}

.section {
    padding: 76px 0;
}

.section-sm {
    padding: 48px 0;
}

.section-white {
    background: #fff;
}

.section-gray {
    background: var(--bg-soft);
}

.section-dark {
    background: var(--dark-2);
    color: #cfcfcf;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hide { display: none !important; }

/* ---------- 3. 顶部导航 ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transition: box-shadow .3s, background-color .3s;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links > li {
    position: relative;
    margin-left: 30px;
}

.nav-links > li > a {
    display: inline-block;
    padding: 6px 0;
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    position: relative;
    white-space: nowrap;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width .3s;
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
    color: var(--brand);
}

.nav-links > li > a:hover::after,
.nav-links > li.active > a::after {
    width: 100%;
}

/* 汉堡按钮 */
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px 8px;
    margin-left: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.menu-toggle span + span {
    margin-top: 6px;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- 4. 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(213, 43, 30, .28);
}

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

.btn-ghost:hover {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

.btn-outline {
    border-color: var(--brand);
    color: var(--brand);
    background: transparent;
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

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

/* ---------- 5. 首屏 / 内页横幅 ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: calc(var(--header-h) + 40px) 0 60px;
    color: #fff;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .62)), url('https://images.unsplash.com/photo-1467232004584-a241de8bcf5d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    background-attachment: scroll;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(1.7rem, 4.2vw, 2.9rem);
    color: #fff;
    margin-bottom: 18px;
}

.hero p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 32px;
}

/* 内页横幅 */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 56px) 0 52px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #1c1d20 0%, #2b2320 55%, #3a1f1b 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    right: -140px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 43, 30, .45), transparent 68%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    color: #fff;
    margin-bottom: 14px;
}

.page-hero .hero-sub {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
}

.crumbs a {
    color: rgba(255, 255, 255, .82);
}

.crumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.crumbs i {
    font-style: normal;
    opacity: .6;
}

/* ---------- 6. 区块标题 ---------- */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    font-size: clamp(1.35rem, 2.6vw, 2.1rem);
    padding-bottom: 16px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--brand);
    border-radius: 3px;
}

.section-title p {
    margin: 16px auto 0;
    max-width: 720px;
    color: var(--muted);
}

.section-title--left {
    text-align: left;
}

.section-title--left h2::after {
    left: 0;
    transform: none;
}

.section-title--left p {
    margin-left: 0;
}

/* ---------- 7. 卡片网格 ---------- */
.grid {
    display: grid;
    gap: 30px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 通用卡片 */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}

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

/* 优势/特色卡 */
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 30px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 0;
}

.feature-card .tag-line {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 12px;
    border-radius: 20px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
}

/* 案例卡 */
.case-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-soft);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.case-card:hover .case-image img {
    transform: scale(1.07);
}

.case-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.45;
}

.case-body p {
    color: var(--muted);
    font-size: .93rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-stats {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.case-stats .stat-item {
    flex: 1;
    text-align: center;
}

.case-stats .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.3;
}

.case-stats .stat-label {
    font-size: 12px;
    color: var(--muted);
}

/* 文章卡片 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.post-card .thumb {
    position: relative;
    height: 196px;
    overflow: hidden;
    background: var(--bg-soft);
}

.post-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.post-card:hover .thumb img {
    transform: scale(1.06);
}

.post-card .body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 24px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card h3 {
    font-size: 1.1rem;
    line-height: 1.45;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: var(--ink);
}

.post-card h3 a:hover {
    color: var(--brand);
}

.post-card .excerpt {
    color: var(--muted);
    font-size: .93rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--brand);
    font-weight: 600;
    font-size: .93rem;
}

.read-more:hover {
    gap: 10px;
    color: var(--brand-dark);
}

/* 横向列表行 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.post-row {
    display: flex;
    gap: 22px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
    transition: background-color .25s;
}

.post-row:last-child {
    border-bottom: 0;
}

.post-row:hover {
    background: #fcfcfc;
}

.post-row .thumb {
    flex: 0 0 200px;
    height: 132px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-soft);
}

.post-row .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.post-row:hover .thumb img {
    transform: scale(1.05);
}

.post-row .body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-row h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.post-row h3 a:hover {
    color: var(--brand);
}

.post-row .excerpt {
    color: var(--muted);
    font-size: .93rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 纯文字列表（信息列表） */
.text-list {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.text-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--line);
    transition: background-color .25s;
}

.text-list li:last-child {
    border-bottom: 0;
}

.text-list li:hover {
    background: #fcfcfc;
}

.text-list .date {
    flex: 0 0 96px;
    color: #9ca3af;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.text-list .t {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.6;
}

.text-list .t small {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    margin-top: 6px;
    font-weight: 400;
}

.text-list .arrow {
    flex: 0 0 auto;
    color: #c9ccd1;
}

.text-list li:hover .arrow {
    color: var(--brand);
}

/* ---------- 8. 两栏：正文 + 侧栏 ---------- */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.page-main {
    padding: 56px 0 76px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    position: relative;
    font-size: 1.05rem;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: var(--brand);
}

.cat-list li {
    border-bottom: 1px dashed var(--line);
}

.cat-list li:last-child {
    border-bottom: 0;
}

.cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    color: #555;
    font-size: .95rem;
}

.cat-list a::after {
    content: '\203A';
    color: #c9ccd1;
}

.cat-list a:hover {
    color: var(--brand);
}

.cat-list a:hover::after {
    color: var(--brand);
}

.mini-posts li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.mini-posts li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mini-posts .num {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--bg-soft);
    color: #999;
    font-size: 12px;
    text-align: center;
    line-height: 22px;
    margin-top: 3px;
}

.mini-posts li:nth-child(-n+3) .num {
    background: var(--brand);
    color: #fff;
}

.mini-posts .t {
    font-size: .93rem;
    line-height: 1.6;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-posts .t:hover {
    color: var(--brand);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-soft);
    color: #666;
    font-size: 13px;
}

.tag-cloud a:hover {
    background: var(--brand);
    color: #fff;
}

/* 搜索框 */
.search-box {
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 40px;
    overflow: hidden;
    padding: 4px;
}

.search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 16px;
    color: var(--text);
}

.search-box button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 40px;
    background: var(--brand);
    color: #fff;
    padding: 0 22px;
    cursor: pointer;
    font-weight: 600;
}

.search-box button:hover {
    background: var(--brand-dark);
}

/* ---------- 9. 文章正文 ---------- */
.article-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 44px 52px;
}

.article-title {
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    line-height: 1.45;
    margin-bottom: 18px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: #999;
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: #3b3b3b;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body > *:first-child {
    margin-top: 0;
}

.article-body p {
    margin: 0 0 1.1em;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
    margin: 1.6em 0 .7em;
    color: var(--ink);
    line-height: 1.45;
}

.article-body h1 { font-size: 1.6em; }
.article-body h2 { font-size: 1.4em; }
.article-body h3 { font-size: 1.2em; }
.article-body h4 { font-size: 1.08em; }

.article-body h2 {
    padding-left: 14px;
    border-left: 4px solid var(--brand);
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.2em;
    padding-left: 1.6em;
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: .5em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.4em auto;
    border-radius: 8px;
}

.article-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body table {
    width: 100%;
    margin: 1.4em 0;
    font-size: .95em;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body table th,
.article-body table td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}

.article-body table th {
    background: #fafafa;
    font-weight: 700;
}

.article-body blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    background: var(--bg-soft);
    border-left: 4px solid var(--brand);
    border-radius: 0 8px 8px 0;
    color: #555;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body iframe,
.article-body video,
.article-body embed {
    max-width: 100%;
    border: 0;
}

.article-body pre {
    background: #1f2328;
    color: #e6edf3;
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: .9em;
    line-height: 1.6;
}

.article-body code {
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .92em;
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

.article-body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2em 0;
}

/* 标签 & 上下篇 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
    font-size: 14px;
}

.article-tags a {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--bg-soft);
    color: #666;
    font-size: 13px;
}

.article-tags a:hover {
    background: var(--brand);
    color: #fff;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
}

.post-nav a {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: .95rem;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-nav a:hover {
    color: var(--brand);
    box-shadow: var(--shadow);
}

.post-nav span {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.post-nav .next {
    text-align: right;
}

/* ---------- 10. 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.pagination ul,
.pagination .pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span,
.pagination .pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: #444;
    font-size: 15px;
    transition: all .25s;
}

.pagination a:hover {
    background: var(--brand);
    color: #fff;
}

.pagination .active,
.pagination .current,
.pagination li.active > a,
.pagination li.active > span {
    background: var(--brand);
    color: #fff;
}

/* ---------- 11. 表单 ---------- */
.form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="password"],
.form select,
.form textarea {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    outline: 0;
    transition: border-color .25s, box-shadow .25s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(213, 43, 30, .1);
}

.form textarea {
    min-height: 150px;
    resize: vertical;
}

.form button[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 14px 30px;
    border: 0;
    border-radius: 30px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
}

.form button[type="submit"]:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(213, 43, 30, .25);
}

.form .verify-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

.form .verify-row input {
    flex: 1;
    min-width: 120px;
    margin-bottom: 0;
}

.form .verify-row img {
    height: 42px;
    width: auto;
    border-radius: 6px;
    cursor: pointer;
}

.form-tip {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 12px;
    text-align: center;
}

/* 深色区块内表单 */
.on-dark .form input,
.on-dark .form textarea,
.form-dark input,
.form-dark textarea {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

.on-dark .form input::placeholder,
.on-dark .form textarea::placeholder,
.form-dark input::placeholder,
.form-dark textarea::placeholder {
    color: rgba(255, 255, 255, .5);
}

/* 修复：带 type 的输入框白色背景优先级高于上方深色背景，导致白底白字看不见 */
.form-dark input[type="text"],
.form-dark input[type="email"],
.form-dark input[type="tel"],
.form-dark input[type="password"],
.on-dark .form input[type="text"],
.on-dark .form input[type="email"],
.on-dark .form input[type="tel"] {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

/* 表单字段提示标签 */
.form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form .form-label i {
    font-style: normal;
    color: var(--brand);
    margin-left: 2px;
}

.form .form-label em {
    font-style: normal;
    font-weight: 400;
    opacity: .65;
}

.on-dark .form .form-label,
.form-dark .form-label {
    color: rgba(255, 255, 255, .82);
}

.on-dark .form .form-label i,
.form-dark .form-label i {
    color: #ff9d92;
}

/* ---------- 12. 联系区块 / 信息条 ---------- */
.contact {
    background: var(--dark-2);
    color: #cfcfcf;
}

.contact .section-title h2 {
    color: #fff;
}

.contact .section-title p {
    color: rgba(255, 255, 255, .7);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.contact-info > p {
    color: rgba(255, 255, 255, .72);
}

.info-list {
    margin-top: 22px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .82);
}

.info-list .ico {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(213, 43, 30, .16);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.info-list b {
    display: block;
    color: #fff;
    font-weight: 600;
}

/* 数字统计 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.stat-box {
    padding: 30px 20px;
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stat-box .num {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--brand);
    line-height: 1.2;
}

.stat-box .num small {
    font-size: .45em;
    margin-left: 2px;
}

.stat-box .label {
    margin-top: 8px;
    color: var(--muted);
    font-size: .93rem;
}

/* 流程步骤 */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.step {
    position: relative;
    width: 210px;
    padding: 0 10px;
    margin-bottom: 34px;
    text-align: center;
}

.step-num {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(213, 43, 30, .25);
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: 0;
}

.step::after {
    content: '\2192';
    position: absolute;
    top: 18px;
    right: -14px;
    color: #c9ccd1;
    font-size: 22px;
}

.step:last-child::after {
    display: none;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
    background: #111;
    color: #a4a4a4;
    padding: 58px 0 22px;
    font-size: .92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-col p {
    color: #9a9a9a;
    line-height: 1.85;
    margin-bottom: 12px;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col li a {
    color: #a4a4a4;
    font-size: .92rem;
    display: inline-block;
}

.footer-col li a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-contact li {
    display: flex;
    gap: 10px;
    color: #a4a4a4;
    line-height: 1.7;
}

.footer-contact .ico {
    color: var(--brand);
    flex: 0 0 16px;
}

.footer-bottom {
    border-top: 1px solid #262626;
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .86rem;
    color: #777;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #8a8a8a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom .beian {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- 14. 返回顶部 ---------- */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s;
    z-index: 900;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--brand);
    color: #fff;
}

/* ---------- 15. 通用内容块 ---------- */
.prose-block {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 46px 52px;
}

.prose-block .lead {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #555;
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-band {
    background: linear-gradient(120deg, #d52b1e, #a81f14);
    color: #fff;
    padding: 48px 0;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    margin-bottom: 12px;
}

.cta-band p {
    color: rgba(255, 255, 255, .9);
    margin-bottom: 24px;
}

.cta-band .btn-ghost {
    border-color: #fff;
}

.cta-band .btn-ghost:hover {
    background: #fff;
    color: var(--brand);
}

/* 分站 / 城市链接 */
.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-list a {
    padding: 8px 18px;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: #555;
    font-size: 14px;
}

.city-list a:hover {
    background: var(--brand);
    color: #fff;
}

/* 招聘条目 */
.job-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px 30px;
    margin-bottom: 18px;
    transition: box-shadow .3s;
}

.job-item:hover {
    box-shadow: var(--shadow);
}

.job-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.job-head h3 {
    font-size: 1.12rem;
}

.job-head .tag {
    padding: 2px 12px;
    border-radius: 20px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
}

.job-item p {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 6px;
}

/* ---------- 16. 响应式：平板 ---------- */
@media (max-width: 1200px) {
    .nav-links > li {
        margin-left: 24px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 66px;
    }

    .layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .section {
        padding: 58px 0;
    }

    .article-card,
    .prose-block {
        padding: 34px 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-card .thumb {
        height: 180px;
    }
}

/* 平板竖屏 / 手机：导航折叠 */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    /* 手机端去掉毛玻璃：backdrop-filter + fixed 的组合会导致抽屉内
       动态展开的二级菜单不重绘（首次点击空白，再点别处才显示） */
    .site-header {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    }

    .site-nav.open {
        display: block;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        transition: none;
    }

    .nav-links {
        display: block;
        width: 100%;
        padding: 6px 0 14px;
    }

    .nav-links > li {
        display: block;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-links > li:last-child {
        border-bottom: 0;
    }

    .nav-links > li > a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }

    .nav-links > li > a::after {
        display: none;
    }

    .nav-links > li.active > a {
        background: var(--brand-soft);
        color: var(--brand);
    }

    .hero {
        min-height: 480px;
    }

    .page-hero {
        padding: calc(var(--header-h) + 40px) 0 40px;
    }

    .steps {
        justify-content: center;
    }
}

/* ---------- 17. 响应式：手机横屏 ---------- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .section {
        padding: 46px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero {
        min-height: 420px;
    }

    .hero p {
        font-size: 1rem;
    }

    .post-row {
        flex-direction: column;
        gap: 14px;
        padding: 18px 18px;
    }

    .post-row .thumb {
        flex: none;
        width: 100%;
        height: 168px;
    }

    .article-card,
    .prose-block {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .article-body {
        font-size: 16px;
        line-height: 1.85;
    }

    .article-body h2 {
        padding-left: 10px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav .next {
        text-align: left;
    }

    .text-list li {
        flex-direction: column;
        gap: 4px;
        padding: 15px 18px;
    }

    .text-list .date {
        flex: none;
        font-size: 12px;
    }

    .text-list .arrow {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .step {
        width: 50%;
    }

    .step::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-bottom: 26px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band {
        padding: 38px 0;
    }

    .back-top {
        right: 14px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .page-main {
        padding: 34px 0 52px;
    }

    .widget {
        padding: 20px;
    }
}

/* ---------- 18. 响应式：小屏手机 ---------- */
@media (max-width: 576px) {
    :root {
        --gutter: 14px;
        --header-h: 60px;
    }

    .logo img {
        height: 32px;
    }

    .hero {
        min-height: 380px;
        padding-top: calc(var(--header-h) + 26px);
    }

    .page-hero {
        padding: calc(var(--header-h) + 30px) 0 32px;
    }

    .crumbs {
        font-size: 12px;
    }

    .step {
        width: 100%;
        max-width: 300px;
    }

    .case-image {
        height: 175px;
    }

    .post-card .thumb {
        height: 165px;
    }

    .btn {
        padding: 11px 24px;
        font-size: 15px;
    }

    .article-meta {
        gap: 8px 14px;
        font-size: 12.5px;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }

    .info-list li {
        gap: 10px;
    }
}

/* ---------- 20. 顶部导航：二级菜单 ---------- */
.site-nav {
    margin-left: auto;
}

.nav-links > li.has-sub > a {
    padding-right: 15px;
}

.nav-links > li.has-sub > .sub-caret {
    position: absolute;
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: #9aa0a6;
    cursor: default;
    pointer-events: none;
    transition: transform .25s, color .25s;
}

.sub-caret svg {
    display: block;
}

.nav-links > li.has-sub:hover > .sub-caret,
.nav-links > li.has-sub.is-open > .sub-caret {
    transform: translateY(-50%) rotate(180deg);
    color: var(--brand);
}

.nav-links > li.has-sub > .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 30;
    min-width: 184px;
    margin-top: 12px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .13), 0 2px 6px rgba(0, 0, 0, .05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.nav-links > li.has-sub > .sub-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.nav-links > li.has-sub:hover > .sub-menu,
.nav-links > li.has-sub.is-open > .sub-menu,
.nav-links > li.has-sub:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.sub-menu ul {
    display: block;
    margin: 0;
    padding: 0;
}

.sub-menu li {
    margin: 0;
    list-style: none;
}

.sub-menu li + li {
    margin-top: 2px;
}

.sub-menu li > a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    color: #4a4a4a;
    white-space: nowrap;
    text-align: left;
    transition: background .2s, color .2s, padding-left .2s;
}

.sub-menu li > a:hover,
.sub-menu li > a:focus {
    background: var(--brand-soft);
    color: var(--brand);
    padding-left: 18px;
}

/* ---------- 21. 语言切换 ---------- */
.lang-switch {
    position: relative;
    flex: 0 0 auto;
    margin-left: 26px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #4a4a4a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s, color .2s, box-shadow .2s;
}

.lang-toggle:hover,
.lang-switch.is-open .lang-toggle {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 2px 12px rgba(213, 43, 30, .14);
}

.lang-globe {
    flex: 0 0 auto;
    color: var(--brand);
}

.lang-caret {
    flex: 0 0 auto;
    color: #9aa0a6;
    transition: transform .25s;
}

.lang-switch.is-open .lang-caret {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    min-width: 196px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.lang-switch.is-open .lang-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    font-family: inherit;
    font-size: 14px;
    color: #444;
    text-align: left;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.lang-item b {
    font-weight: 500;
}

.lang-item em {
    font-style: normal;
    font-size: 12px;
    color: #9aa0a6;
}

.lang-item:hover {
    background: #f6f7f8;
}

.lang-item.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.lang-item.is-active em {
    color: var(--brand);
    opacity: .8;
}

.lang-item.is-active b::after {
    content: '✓';
    margin-left: 6px;
    font-size: 12px;
}

/* 翻译中 */
.lang-switch.is-loading .lang-toggle {
    pointer-events: none;
    opacity: .8;
}

.lang-switch.is-loading .lang-caret {
    display: none;
}

.lang-switch.is-loading .lang-toggle::after {
    content: '';
    width: 13px;
    height: 13px;
    border: 2px solid rgba(213, 43, 30, .25);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: pc-spin .8s linear infinite;
}

@keyframes pc-spin {
    to { transform: rotate(360deg); }
}

/* 轻提示 */
.pc-i18n-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 3000;
    max-width: 88vw;
    padding: 11px 20px;
    border-radius: 24px;
    background: rgba(23, 24, 26, .92);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity .25s, transform .25s, visibility .25s;
}

.pc-i18n-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ---------- 22. 小语种排版（阿拉伯语从右到左） ---------- */
html[lang="ar"] body {
    font-family: 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Geeza Pro', Arial, sans-serif;
}

html[dir="rtl"] .site-nav {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .nav-links > li {
    margin-left: 0;
    margin-right: 30px;
}

html[dir="rtl"] .nav-links > li:first-child {
    margin-right: 0;
}

html[dir="rtl"] .nav-links > li > a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .nav-links > li.has-sub > a {
    padding-right: 0;
    padding-left: 15px;
}

html[dir="rtl"] .nav-links > li.has-sub > .sub-caret {
    right: auto;
    left: -4px;
}

html[dir="rtl"] .sub-menu li > a {
    text-align: right;
}

html[dir="rtl"] .sub-menu li > a:hover,
html[dir="rtl"] .sub-menu li > a:focus {
    padding-left: 14px;
    padding-right: 18px;
}

html[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 20px;
}

html[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-item {
    text-align: right;
}

html[dir="rtl"] .lang-item.is-active b::after {
    margin-left: 0;
    margin-right: 6px;
}

/* 平板：收窄导航间距 */
@media (max-width: 1200px) {
    .nav-links > li.has-sub > .sub-menu {
        min-width: 170px;
    }
}

/* 平板竖屏 / 手机：二级菜单改为手风琴 */
@media (max-width: 991px) {
    .nav-links > li.has-sub > a {
        padding-right: 60px;
    }

    .nav-links > li.has-sub > .sub-caret {
        top: 0;
        right: 0;
        transform: none;
        width: 56px;
        height: 52px;
        color: #777;
        pointer-events: auto;
        cursor: pointer;
    }

    .nav-links > li.has-sub.open > .sub-caret {
        transform: rotate(180deg);
        color: var(--brand);
    }

    .nav-links > li.has-sub > .sub-menu {
        display: none;
        position: static;
        left: auto;
        right: auto;
        min-width: 0;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #fafafa;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .sub-menu ul {
        width: 100%;
    }

    .sub-menu li {
        display: block;
        width: 100%;
        margin: 0;
    }

    .sub-menu li > a {
        display: block;
        box-sizing: border-box;
        width: 100%;
    }

    .nav-links > li.has-sub.open > .sub-menu {
        display: block;
    }

    .nav-links > li.has-sub > .sub-menu::before {
        display: none;
    }

    .sub-menu li + li {
        margin-top: 0;
    }

    .sub-menu li > a {
        position: relative;
        padding: 13px 20px 13px 38px;
        border-top: 1px solid #f0f0f0;
        border-radius: 0;
        font-size: 15px;
        line-height: 1.6;
        color: #565656;
        white-space: normal;
        word-break: break-all;
        text-indent: 0;
    }

    .sub-menu li > a::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 50%;
        width: 5px;
        height: 5px;
        margin-top: -2.5px;
        border-radius: 50%;
        background: #cfcfcf;
    }

    .sub-menu li > a:hover,
    .sub-menu li > a:focus {
        padding-left: 38px;
        background: #f5f5f5;
        color: var(--brand);
    }

    .sub-menu li > a:hover::before {
        background: var(--brand);
    }

    .lang-switch {
        margin-left: 12px;
    }

    .lang-toggle {
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
        gap: 5px;
    }

    .lang-menu {
        min-width: 178px;
    }

    html[dir="rtl"] .nav-links > li.has-sub > a {
        padding-right: 20px;
        padding-left: 60px;
    }

    html[dir="rtl"] .nav-links > li.has-sub > .sub-caret {
        right: auto;
        left: 0;
    }

    html[dir="rtl"] .sub-menu li > a {
        padding: 13px 38px 13px 20px;
    }
}

@media (max-width: 420px) {
    .lang-toggle .lang-label {
        display: none;
    }

    .lang-switch {
        margin-left: 8px;
    }
}

/* ---------- 19. 打印 ---------- */
@media print {
    .site-header,
    .site-footer,
    .back-top,
    .post-nav,
    .sidebar {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .article-card {
        box-shadow: none;
        padding: 0;
    }
}


/* ---------- 23. 扫码直达矩阵 ---------- */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.qr-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}

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

.qr-card .qr-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
}

.qr-card .qr-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.qr-card p {
    font-size: .85rem;
    color: var(--muted);
    margin: 0;
}

.qr-note {
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .qr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .qr-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .qr-card .qr-img { width: 118px; height: 118px; }
    .qr-card h3 { font-size: .92rem; }
}
