/* ===== Variables ===== */
:root {
    --primary: #2C5A50;
    --primary-dark: #1F4540;
    --primary-light: #4A7D72;
    --primary-bg: #F2F7F5;
    --bg: #FFFFFF;
    --surface: #FAFBFA;
    --text: #1C1C1E;
    --text-secondary: #4A4A4C;
    --text-muted: #6E6E73;
    --border: #E5E8E7;
    --divider: rgba(28, 28, 30, 0.08);
    --shadow-sm: 0 1px 3px rgba(28, 28, 30, 0.04);
    --shadow: 0 4px 20px rgba(28, 28, 30, 0.06);
    --shadow-lg: 0 16px 40px rgba(28, 28, 30, 0.10);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    --font-heading: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', 'Georgia', serif;
    --max-width: 1200px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== Bilingual text (中 / EN toggle) ===== */
.en { display: none; }
html.lang-en .zh { display: none; }
html.lang-en .en { display: inline; }
/* 若某段文字需要整块隐藏/显示，可加 .block 让 span 表现为块级 */
html.lang-en .zh.block { display: none; }
html.lang-en .en.block { display: block; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
    /* 让出固定导航的高度，避免首屏内容被导航条遮住 */
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--divider);
    transition: var(--transition);
}
header.scrolled {
    box-shadow: 0 2px 12px rgba(28, 28, 30, 0.05);
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    /* 导航栏比正文容器略宽，避免加入电话等内容后被挤压变形。
       加入「新闻」第 9 个导航项后实测一行约需 1227px（logo181+导航734+电话156+语言108+间隙48），
       故 max-width 由 1280 提到 1320；再加导航项要同步加大此值并提前汉堡断点。 */
    max-width: 1320px;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    flex-shrink: 0;
}
.logo img {
    height: 44px;
    width: auto;
    flex-shrink: 0;
}
.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 2px;
    font-family: var(--font-serif);
    padding-left: 14px;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 2px;
}
.nav-links a {
    padding: 8px 10px;
    flex-shrink: 0;
    font-size: 0.97rem;
    font-weight: 600;
    font-family: var(--font-serif);
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    border-radius: 30px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-bg);
}
.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 14px;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--surface);
    border-radius: 30px;
    padding: 3px;
    border: 1px solid var(--border);
}
.lang-toggle button {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}
.lang-toggle button.active {
    background: var(--primary);
    color: #fff;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}
.nav-phone {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-dark);
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--primary-bg);
    white-space: nowrap;
}
.nav-phone svg { width: 16px; height: 16px; }
.logo-phone { display: none; }
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Hero (carousel) ===== */
.hero {
    position: relative;
    /* 减去固定导航高度，使 Hero 与导航合起来刚好一屏，且图片顶部不被遮挡 */
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20,33,30,0.12) 0%, rgba(20,33,30,0.35) 100%);
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.hero-arrow:hover { background: var(--primary); color: #fff; }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.hero-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}
.hero-dots .dot.active { background: #fff; width: 26px; border-radius: 5px; }

/* ===== Sections ===== */
section {
    padding: 110px 0;
    /* 锚点跳转时留出固定导航的高度，避免标题被导航遮住 */
    scroll-margin-top: 80px;
}
.section-label {
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--primary-light);
    background: var(--primary-bg);
    padding: 9px 22px;
    border-radius: 50px;
    font-family: var(--font-serif);
}
.brand-section .section-label { background: var(--bg); }
/* 放在 .container 直接子级的 label：以「整个模块」为参照居中（关于永维 / 品牌应用） */
.section-label-module { margin-bottom: 46px; }
.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}
.section-title .highlight { color: var(--primary); }
.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 56px;
    line-height: 1.8;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ===== About ===== */
.about-section { background: var(--bg); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text);
}
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.85;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}
.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 28px;
}
.about-features li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 1.5px solid var(--primary-light);
}
.about-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}
.about-video {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
    aspect-ratio: 16 / 9;
}
.about-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Brand Application ===== */
.brand-section {
    background: var(--primary-bg);
    padding: 100px 0;
}
.brand-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
}
.brand-text p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 18px;
}
.brand-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
}
.brand-tags li {
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-serif);
    color: var(--primary-dark);
    background: var(--primary-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 7px 16px;
}
.brand-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
    border: 1px solid var(--border);
    justify-self: end;
}
.brand-image img {
    display: block;
    height: 680px;
    width: auto;
    max-width: 100%;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--primary-bg);
}
.card-body { padding: 26px 28px 30px; }
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}
.card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Products ===== */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}
.product-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}
.product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.product-img {
    aspect-ratio: 4 / 3;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info { padding: 22px 24px 26px; }
.product-info h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text);
}
.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Process ===== */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 20px;
}
.process-card {
    border-radius: var(--radius-lg);
    padding: 42px;
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}
.process-card.featured {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.process-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 18px 0 12px;
}
.process-card p { color: var(--text-secondary); line-height: 1.75; }
.process-card.featured p { color: rgba(255,255,255,0.85); }
.process-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.process-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.process-list li svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}
.process-card.featured .process-list li { color: rgba(255,255,255,0.9); }
.process-card.featured .process-list li svg { color: #fff; }

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.step {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}
.step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
}
.step h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}
.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.contact-info {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    align-items: start;
    gap: 28px 56px;
}
.contact-info .info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
}
@media (max-width: 1024px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
.contact-info .info-item .icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    flex-shrink: 0;
}
.contact-info .info-item .icon svg { width: 22px; height: 22px; }
.contact-info .info-item h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 4px;
    color: var(--text);
}
.contact-info .info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
    margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(44, 90, 80, 0.08);
}
.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* ===== Footer ===== */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 72px 0 28px;
}
footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
footer h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
footer p,
footer a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
}
footer a:hover { color: #fff; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-logo img { height: 38px; width: auto; }
.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 0.8px;
}
footer .socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
footer .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: var(--transition);
}
footer .socials a:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .section-title { font-size: 2rem; }
    .about-grid,
    .process-grid,
    .contact-grid,
    .brand-wrapper { grid-template-columns: 1fr; }
    .about-video { max-width: 720px; margin: 0 auto; }
    .about-text { order: 1; }
    .about-video { order: 2; }
    .brand-text { order: 1; }
    .brand-image { order: 2; justify-self: center; }
    .brand-image img { height: 600px; }
    footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* 导航在 1340px 以下收进汉堡菜单：一行最多只放得下 1320px 宽的 .nav-wrapper（含左右 24px padding
   → 内容区 1272px），而 9 个导航项 + logo + 电话 + 语言切换实测约需 1227px，
   预留 ~45px 余量。导航项再增加时同步抬高这个断点。 */
@media (max-width: 1340px) {
    /* 汉堡菜单改用「气泡」下拉：贴右边缘的小卡片 + 指向按钮的小尖角，
       不再整条铺满屏幕。top 用 calc(100% + 间隙) 而不是硬编码 80px，
       这样以后调整导航高度不用同步改这里。 */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 12px);
        right: 20px;
        left: auto;
        width: min(264px, calc(100vw - 40px));
        background: #fff;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 16px;
        gap: 2px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links::before {
        content: '';
        position: absolute;
        top: -7px;
        right: 20px;
        width: 12px;
        height: 12px;
        background: #fff;
        border-top: 1px solid var(--border);
        border-left: 1px solid var(--border);
        border-radius: 2px 0 0 0;
        transform: rotate(45deg);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 11px 14px;
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
        border-radius: 10px;
        letter-spacing: 0.2px;
    }
    .menu-toggle { display: block; }
}
@media (max-width: 768px) {
    /* 手机端导航：logo 收窄 + 去掉电话行。
       原来 .logo 允许换行、并把电话作为 flex-basis:100% 的第二行塞进导航，
       窄屏下会把固定高度的导航条撑高，看起来像「导航变形」。 */
    .logo { flex-wrap: nowrap; gap: 10px; }
    .logo img { height: 36px; }
    .logo-text { font-size: 1.05rem; letter-spacing: 1px; padding-left: 10px; }
    .nav-phone, .logo-phone { display: none; }
    .nav-actions { gap: 8px; }
    .lang-toggle { padding: 2px; }
    .lang-toggle button { padding: 6px 10px; font-size: 0.72rem; }
    .section-title { font-size: 1.8rem; }
    .about-text h2 { font-size: 1.7rem; }
    .brand-image img { height: 460px; }
    section { padding: 80px 0; }
    footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .section-title { font-size: 1.55rem; }
    .brand-image img { height: 360px; }
    .container { padding: 0 18px; }
    .btn-primary, .btn-outline { width: 100%; }
    .process-card { padding: 28px; }
}
/* ===== Formal serif headings ===== */
.section-title,
.about-text h2,
.capability-card h3,
.custom-steps h4,
.footer-logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* ===== Process Wall (interactive, clickable) ===== */
.process-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 16px;
}
.process-card-btn {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 240px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--bg);
    text-align: left;
    font: inherit;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    appearance: none;
}
.process-card-btn img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.process-card-btn:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.process-card-btn:hover img { transform: scale(1.06); }
.process-card-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28,45,40,0.04) 0%, rgba(28,45,40,0.30) 45%, rgba(20,33,30,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}
.process-no {
    position: absolute;
    top: 18px; left: 20px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
}
.process-card-mask h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.process-card-mask p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
}
.process-view {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.process-card-btn:hover .process-view { background: var(--primary); border-color: var(--primary); }

/* ===== Capability row ===== */
.capability-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 36px;
    align-items: stretch;
}
.capability-card {
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.capability-card:hover { box-shadow: var(--shadow); }
.capability-card.featured { background: var(--primary); color: #fff; border-color: var(--primary); }
.capability-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem; font-weight: 700; margin: 14px 0 10px;
}
.capability-card p { color: var(--text-secondary); line-height: 1.75; }
.capability-card.featured p { color: rgba(255,255,255,0.85); }
.capability-card .process-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.capability-card .process-list li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.95rem; }
.capability-card .process-list li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.capability-card.featured .process-list li { color: rgba(255,255,255,0.9); }
.capability-card.featured .process-list li svg { color: #fff; }

/* ===== Product cards as buttons ===== */
button.product-item {
    width: 100%;
    text-align: left;
    padding: 0;
    background: var(--bg);
    color: inherit;
    cursor: pointer;
    border: 1px solid var(--border);
    font: inherit;
    appearance: none;
}
.product-view {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 10px;
    transition: var(--transition);
}
button.product-item:hover .product-img img { transform: scale(1.05); }
.product-img img { transition: transform 0.5s ease; }

/* ===== Custom decorative panel ===== */
.custom-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.custom-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.custom-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
}
.custom-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Modal / Lightbox ===== */
.modal {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(20, 30, 28, 0.72);
    backdrop-filter: blur(6px);
}
.modal-dialog {
    position: relative; z-index: 1;
    background: var(--bg);
    border-radius: var(--radius-lg);
    max-width: 920px; width: 100%;
    /* 用 flex 列布局把高度吃满 max-height，内部再自行滚动；
       原来靠 .modal-info 的 max-height:90vh 撑，手机上文字长时会被 dialog
       裁掉且滚不到底（因为 info 的高度算的是视口高度，不是 dialog 剩余高度）。 */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity:0; transform: translateY(20px) scale(0.98);} to { opacity:1; transform:none; } }
.modal-close {
    position: absolute; top: 14px; right: 16px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none; cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }
.modal-body {
    display: grid; grid-template-columns: 1.1fr 1fr;
    flex: 1 1 auto;
    /* min-height:0 是关键：否则 grid 会被内容顶高，超出 dialog 的部分被裁掉且滚不到 */
    min-height: 0;
    overflow: hidden;
}
.modal-gallery {
    position: relative;
    background: #111; min-height: 320px;
    display: flex; align-items: center; justify-content: center;
}
.gallery-img { width: 100%; height: 100%; max-height: 70vh; object-fit: cover; display: block; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.85); border: none; cursor: pointer;
    font-size: 1.8rem; line-height: 1; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.gallery-nav:hover { background: var(--primary); color: #fff; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 30px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff; font-size: 0.9rem; text-align: center;
}
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.gallery-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.gallery-dots .dot.active { background: #fff; width: 22px; border-radius: 4px; }
.modal-info {
    padding: 40px 36px;
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}
.modal-info .section-label { margin-bottom: 12px; }
.modal-info h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.modal-info p { color: var(--text-secondary); line-height: 1.85; font-size: 0.98rem; }
.modal-specs { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.modal-specs li { position: relative; padding-left: 26px; color: var(--text-secondary); font-size: 0.92rem; }
.modal-specs li::before {
    content: ''; position: absolute; left: 4px; top: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); border: 2px solid var(--primary-light);
}

/* ===== Responsive for new components ===== */
@media (max-width: 1024px) {
    .process-wall { grid-template-columns: repeat(2, 1fr); }
    /* 单列时：图片区给固定高度，信息区吃掉剩余高度并自己滚动。
       minmax(0,1fr) 保证信息区能被压缩到容器高度以内，从而出现真正的滚动条。 */
    .modal-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    .modal-gallery { min-height: 0; height: 34vh; }
    .gallery-img { height: 100%; max-height: none; }
    .custom-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
    .process-wall { grid-template-columns: 1fr; }
    .capability-row { grid-template-columns: 1fr; }
    .custom-steps { grid-template-columns: 1fr; }
    .modal { padding: 14px; }
    .modal-dialog { max-height: 92vh; }
    .modal-gallery { height: 28vh; }
    .modal-info { padding: 24px 20px 30px; }
}

/* ==========================================================================
   拾遗手记 · 品牌定制与新增区块
   —— 以下内容为「宣纸 + 朱砂」配色与新增模块样式，只做追加覆盖，
      不修改上方的模板原始规则。换肤只需改本节 :root 的 --primary* 四值。
   ========================================================================== */

:root {
    --primary: #A8452F;
    --primary-dark: #3A2B22;
    --primary-light: #B9795E;
    --primary-bg: #FBF2EA;
    --bg: #FFFFFF;
    --surface: #FBF8F4;
    --text: #241C16;
    --text-secondary: #4E4237;
    --text-muted: #7A6B5D;
    --border: #EBE2D8;
    --divider: rgba(36, 28, 22, 0.08);
    --shadow-sm: 0 1px 3px rgba(36, 28, 22, 0.05);
    --shadow: 0 6px 22px rgba(36, 28, 22, 0.07);
    --shadow-lg: 0 18px 44px rgba(36, 28, 22, 0.12);
    --radius: 12px;
    --radius-lg: 18px;
}

/* 品牌色调整后同步两处派生样式 */
/* 注意：.contact-info 的 .icon 底色是朱砂(var(--primary))，图标必须用米色(var(--bg))，
   否则红底红图标互相隐形。模板残留的合并选择器曾把它一并覆盖成 var(--primary)，已拆开。 */
.contact-info .info-item .icon svg { color: var(--bg); }
.card .icon svg { color: var(--primary); }
footer { background: var(--primary-dark); }
footer .socials a:hover { background: var(--primary); }
.brand-section .section-label { background: #fff; }

/* ---------- 通用矢量插画容器（替代模板里的实拍图，全部为 SVG 纹样） ---------- */
.card-art {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.process-card-btn .card-art {
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}
.process-card-btn:hover .card-art { transform: scale(1.06); }

/* ---------- Hero：首页大标题区（模板原本只有图，这里补上可被索引的文字） ---------- */
.hero { padding: 72px 0; }
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: var(--max-width);
}
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 2.4px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 26px;
    backdrop-filter: blur(6px);
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 1px;
    margin-bottom: 22px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}
.hero-title span {
    display: block;
    margin-top: 14px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
}
.hero-desc {
    max-width: 660px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 34px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.hero-btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary);
    border-color: #fff;
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    max-width: 720px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.hero-stats span {
    font-size: 0.84rem;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- 关于我们：右侧插画 + 状态角标 ---------- */
.about-note {
    margin-top: 22px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.about-note strong { color: var(--primary); }
.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}
.about-visual img { width: 100%; height: auto; display: block; }
.about-visual-cap {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-serif);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #fff;
    background: rgba(20, 16, 12, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50px;
    padding: 8px 18px;
    backdrop-filter: blur(8px);
}
.dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F0C070;
    box-shadow: 0 0 0 4px rgba(240, 192, 112, 0.24);
}

/* ---------- 非遗专题入口卡（首页 → 专题页的内部链接枢纽） ---------- */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 260px);
    gap: 18px;
}
.topic-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}
.topic-art {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.topic-body { padding: 16px 18px 18px; }
.topic-body h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.topic-body p {
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.topic-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

/* ---------- 进入小程序 ---------- */
.mini-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 56px;
    align-items: center;
    max-width: 920px;
    margin: 0 auto;
}
.mini-phone img {
    width: 280px;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(36, 28, 22, 0.16));
}
.mini-side { display: flex; flex-direction: column; gap: 26px; }
.qr-card {
    display: flex;
    gap: 22px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
}
.qr-slot {
    width: 168px;
    height: 168px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.qr-slot img { width: 100%; height: 100%; display: block; object-fit: contain; }
.qr-slot span {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}
.qr-slot small {
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.qr-cap strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 8px;
}
.qr-cap span { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }
.mini-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mini-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.mini-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.65;
}
.mini-list strong { color: var(--text); }

/* ---------- FAQ（AEO：答案直接写在 HTML 里，无需 JS 即可展开） ---------- */
.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-list details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.faq-list details[open] {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}
.faq-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '＋';
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--primary);
    transition: var(--transition);
}
.faq-list details[open] summary::after { content: '－'; }
.faq-list details p {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--text-secondary);
    padding-bottom: 16px;
}
.faq-list details p:last-child { padding-bottom: 26px; }
.faq-list details strong { color: var(--primary); }

/* ---------- 占位标记 / 版权补充 ---------- */
.todo-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #8A5416;
    background: #FDF0D8;
    border: 1px solid #F0D9A8;
    border-radius: 4px;
    padding: 1px 6px;
    margin-right: 4px;
    vertical-align: 1px;
}
.copyright-note {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.38);
}

/* ---------- 专题页（topics/*.html）通用排版 ---------- */
.topic-hero {
    position: relative;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    scroll-margin-top: 80px;
}
.topic-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(24, 18, 14, 0.60) 0%, rgba(24, 18, 14, 0.28) 52%, rgba(24, 18, 14, 0.08) 100%),
        linear-gradient(180deg, rgba(24, 18, 14, 0.14) 0%, rgba(24, 18, 14, 0.80) 100%);
}
.topic-hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    /* 只保留底部留白；左右内边距交给 .container 的 24px 栅格（≤480px 自动 18px），
       不再用简写把左右清零，否则手机端文字会直接贴到屏幕边缘。 */
    padding-bottom: 56px;
}
.topic-hero-inner h1 {
    font-family: var(--font-serif);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    text-shadow: 0 2px 18px rgba(18, 14, 10, 0.55);
}
/* 标题上方一抹品牌色短装饰条（编辑风），与站点主色保持一致 */
.topic-hero-inner h1::before {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-bottom: 18px;
    background: var(--primary-light);
    border-radius: 2px;
}
.topic-hero-inner p {
    max-width: 720px;
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 10px rgba(18, 14, 10, 0.55);
}
/* 专题页面包屑：从 hero 内部移出来，做成一条吸附在固定导航下方的粘性条。
   好处：① 不再和 hero 大标题挤在一起（原来顶部没有留白）；
        ② 滚动时始终停在导航下方，随时能回上一层；
        ③ 浅底深字，比压在深色图上更易读。 */
.topic-crumb {
    position: sticky;
    top: 80px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--divider);
}
.topic-crumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 11px;
    padding-bottom: 11px;
}
.topic-crumb p {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.topic-crumb a { color: var(--primary); }
.topic-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 面包屑条占住导航下方约 42px，锚点跳转时要多让出这段高度 */
.topic-crumb ~ section { scroll-margin-top: 126px; }
.article { max-width: 860px; margin: 0 auto; }
.article h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 54px 0 18px;
    padding-left: 18px;
    border-left: 5px solid var(--primary);
    line-height: 1.4;
}
.article h3 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text);
    margin: 30px 0 10px;
}
.article p {
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.article ul, .article ol { margin: 0 0 20px 0; padding-left: 0; }
.article ul li, .article ol li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 0.99rem;
    line-height: 1.85;
    color: var(--text-secondary);
}
.article ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}
/* list-style:none 必须写：否则 <ol> 的原生序号会和下面 ::before 画的圆牌序号
   同时出现，渲染成「1. ① 县级……」，PC 与手机都一样重复 */
.article ol { counter-reset: art; list-style: none; }
.article ol li { padding-left: 34px; }
.article ol li::before {
    counter-increment: art;
    content: counter(art);
    position: absolute;
    left: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article strong { color: var(--text); }
.article a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote {
    margin: 26px 0;
    padding: 22px 26px;
    background: var(--primary-bg);
    border-left: 5px solid var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.99rem;
    line-height: 1.9;
    color: var(--text-secondary);
}
/* 正文中的小字注释（材料来源 / 口径说明） */
.article-note {
    font-size: 0.86rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin: -8px 0 26px;
    padding-left: 14px;
    border-left: 3px solid rgba(185, 121, 94, 0.35);
}
.fact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 26px;
    font-size: 0.94rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.fact-table caption {
    caption-side: top;
    text-align: left;
    font-size: 0.84rem;
    color: var(--text-muted);
    padding-bottom: 10px;
}
.fact-table th, .fact-table td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
    vertical-align: top;
}
.fact-table th {
    background: var(--primary-bg);
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.fact-table tr:last-child td { border-bottom: none; }
.topic-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}
.topic-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    transition: var(--transition);
}
.topic-nav a:hover { border-color: var(--primary); background: var(--primary-bg); }

/* ---------- 新增区块响应式 ---------- */
@media (max-width: 1180px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .hero-title { font-size: 2.7rem; }
    .hero-title span { font-size: 1.25rem; }
    .topic-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .mini-grid { grid-template-columns: 1fr; gap: 36px; justify-items: center; text-align: left; }
    .mini-side { width: 100%; }
    .article h2 { font-size: 1.4rem; }
}
@media (max-width: 768px) {
    .hero { padding: 52px 0; }
    .hero-title { font-size: 2.1rem; }
    .hero-title span { font-size: 1.05rem; letter-spacing: 1.6px; }
    .hero-desc { font-size: 0.97rem; }
    .hero-stats { gap: 26px; }
    .hero-stats strong { font-size: 1.35rem; }
    .topic-grid { grid-template-columns: 1fr; }
    .qr-card { flex-direction: column; align-items: flex-start; }
    .qr-slot { width: 100%; max-width: 220px; aspect-ratio: 1 / 1; }
    .topic-hero { min-height: 360px; }
    /* 手机端照片上文字压在亮色旗子/灯笼上，加深底部蒙层保证可读性 */
    .topic-hero::after {
        background:
            linear-gradient(90deg, rgba(24, 18, 14, 0.66) 0%, rgba(24, 18, 14, 0.30) 55%, rgba(24, 18, 14, 0.10) 100%),
            linear-gradient(180deg, rgba(24, 18, 14, 0.22) 0%, rgba(24, 18, 14, 0.82) 100%);
    }
    .topic-hero-inner { padding-bottom: 40px; }
    .topic-hero-inner h1 { font-size: 1.9rem; line-height: 1.28; }
    .topic-hero-inner h1::before { width: 38px; height: 3px; margin-bottom: 14px; }
    .fact-table th, .fact-table td { padding: 11px 13px; font-size: 0.88rem; }
    .fact-table th { white-space: normal; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .mini-phone img { width: 220px; }
}


/* ==================== 龙船影像档案（topics/longzhou.html） ==================== */
.archive-section { background: var(--surface); }
.archive-head { max-width: 820px; margin: 0 auto 30px; text-align: center; }
.archive-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 20px;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.archive-meta b {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--primary);
    margin-right: 3px;
}
.archive-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 26px;
}
.archive-tab {
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.22s;
}
.archive-tab small { margin-left: 5px; font-size: 0.72rem; font-weight: 500; opacity: 0.65; }
.archive-tab:hover { border-color: var(--primary); color: var(--primary); }
.archive-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.archive-tab.is-active small { opacity: 0.8; }
.archive-grid { display: none; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.archive-grid.is-active { display: grid; }
.archive-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #E9E0D6;
    cursor: zoom-in;
}
.archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.archive-item:hover img { transform: scale(1.06); }
.archive-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.archive-foot {
    max-width: 820px;
    margin: 34px auto 0;
    font-size: 0.86rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: center;
}
.archive-foot a { color: var(--primary); }

/* 影像灯箱 */
.lb {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 56px 20px 28px;
    /* 用不透明深色而非 rgba(22,16,12,.94)：94% 与实色肉眼无差，
       但部分渲染器（含无头截图的合成路径）会把大面积半透明层画错，
       不透明色可保证任何环境所见一致。 */
    background: #16100C;
}
.lb.is-open { display: flex; }
.lb-stage {
    margin: 0;
    max-width: min(1240px, 94vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.lb-stage img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    background: #2a211a;
}
.lb-cap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    text-align: center;
}
.lb-count { color: rgba(255, 255, 255, 0.5); }
.lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 6;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.lb-close:hover { background: var(--primary); }
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.lb-nav:hover { background: var(--primary); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
body.lb-lock { overflow: hidden; }

/* 影像灯箱：看完最后一组后的"展示完了"浮层 */
.lb-finished {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(22, 16, 12, 0.82);
    text-align: center;
}
.lb-finished[hidden] { display: none; }
.lb-finished-card {
    max-width: 320px;
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.lb-finished-title { margin: 0 0 8px; color: #fff; font-size: 1.5rem; font-weight: 700; }
.lb-finished-sub { margin: 0 0 18px; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.lb-finished .lb-btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter 0.2s;
}
.lb-finished .lb-btn:hover { filter: brightness(1.06); }

@media (max-width: 1024px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .archive-item { border-radius: 9px; }
    .lb { padding: 52px 10px 20px; }
    .lb-nav { width: 42px; height: 42px; font-size: 1.4rem; }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
    .archive-tab { padding: 8px 12px; font-size: 0.8rem; }
}

/* 影像档案 · 视频区块 */
.video-block {
    margin-top: 52px;
    padding-top: 42px;
    border-top: 1px solid var(--border);
}
.video-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 10px;
}
.video-sub {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-muted);
}
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.video-card video {
    width: 100%;
    display: block;
    background: #16100C;
    aspect-ratio: 16 / 9;
}
.video-card figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text);
}
.video-card figcaption strong { font-weight: 600; }
.video-card figcaption span { flex-shrink: 0; font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 720px) {
    .video-grid { grid-template-columns: 1fr; gap: 14px; }
    .video-block { margin-top: 40px; padding-top: 32px; }
}


/* ==================== 主题配图说明（图片来源与授权） ==================== */
.art-credit {
    max-width: 880px;
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    line-height: 1.85;
    color: var(--text-muted);
    text-align: center;
}

.art-credit a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 6px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .art-credit { text-align: left; }
}


/* ==================== 手机端：专题页数据表格改为「一条记录一张卡」 ====================
   背景：.fact-table 多为 3–4 列（有的还带「序号」列），手机上三列并排会被压到
   每列只剩几个字宽，读起来像破碎的列表。
   做法：表格结构在 HTML 里保持不变（爬虫、无 JS 环境都能读），只在窄屏用 CSS
   把它重排成卡片；字段名由 JS 写进 td[data-label]（见 js/site-tables.js），
   这里用 attr() 显示；标了 .cell-no 的「序号」列整列隐藏。 */
@media (max-width: 768px) {
    .fact-table {
        display: block;
        width: 100%;
        border: none;
        border-radius: 0;
        background: transparent;
        overflow: visible;
        margin: 12px 0 26px;
    }
    .fact-table caption {
        display: block;
        padding: 0 2px 12px;
        font-size: 0.82rem;
        line-height: 1.7;
        color: var(--text-muted);
        text-align: left;
    }
    .fact-table thead { display: none; }
    .fact-table tbody { display: block; }
    .fact-table tr {
        display: block;
        padding: 14px 16px;
        margin-bottom: 12px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-left: 4px solid var(--primary-light);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
    }
    .fact-table tr:last-child { margin-bottom: 0; }
    .fact-table td {
        border-bottom: none;
        padding: 0;
        font-size: 0.95rem;
        line-height: 1.8;
        color: var(--text-secondary);
    }
    /* 非首列：字段名独占一行（小号灰字），内容紧随其后。
       用上下堆叠而不是左右两栏，是因为部分字段名很长
       （例如「物质文化遗产（文物 / 建筑）」），左右排会被挤成竖条。 */
    .fact-table td.cell-field {
        display: block;
        margin-top: 12px;
    }
    .fact-table td.cell-field::before {
        display: block;
        content: attr(data-label);
        font-size: 0.76rem;
        font-weight: 600;
        letter-spacing: 0.4px;
        line-height: 1.7;
        color: var(--text-muted);
    }
    /* 跨列内容（如「交汇点」那一行）没有对应字段名，整行直接展示 */
    .fact-table td.cell-field[data-label=""] {
        display: block;
        margin-top: 8px;
    }
    .fact-table td.cell-field[data-label=""]::before { display: none; }
    /* 首列 = 卡片标题（上/下用虚线分隔，视觉上「一卡一条」） */
    .fact-table td.cell-head {
        display: block;
        padding-bottom: 9px;
        margin-bottom: 10px;
        margin-top: 0;
        border-bottom: 1px dashed var(--border);
        font-family: var(--font-serif);
        font-size: 1.02rem;
        font-weight: 700;
        line-height: 1.55;
        color: var(--text);
    }
    .fact-table td.cell-head::before { display: none; }
    /* 「序号」列：手机上不需要 */
    .fact-table td.cell-no { display: none; }
}
