/* ===== Variables ===== */
:root {
    --primary: #2C5A50;
    --primary-dark: #1F4540;
    --primary-light: #4A7D72;
    --primary-bg: #F2F7F5;
    --bg: #FFFFFF;
    --surface: #FAFBFA;
    --module-bg: #E9F0EB;
    --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; }
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: transparent;
    border: 1.5px solid var(--primary-light);
    padding: 9px 22px;
    border-radius: 50px;
    font-family: var(--font-serif);
}
.brand-section .section-label { background: transparent; }
/* 放在 .container 直接子级的 label：以「整个模块」为参照居中（关于永维 / 品牌应用） */
/* 模块级标签：仅用于加大与下方标题的间距（有边框+镂空已由基类统一提供） */
.section-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; }

/* ===== Sub-page adjustments（子页面：顶部留白、隐藏小标签、收紧副标题、首屏标题左右布局） =====
   仅作用于子页面（body.subpage），首页 index.html 不受影响。
   ① section padding-top 留 20px：body 已有 padding-top:80px 给固定导航让位，
      子页面首个区块只留一点点呼吸位，避免标题离导航太远出现大空隙。
   ② section-label 暂隐藏：子页面首屏不再显示镂空小标签。
   ③ section-sub 收紧：下间距 56→20px、最大宽度放到 730px（便于文案尽量一行显示）。
   ④ 首屏标题块（.sec-head）改「上标题 / 下说明」上下布局 + 左对齐，取代原来的左右布局。 */
body.subpage section { padding-top: 20px; }
body.subpage section .section-label { display: none; }
body.subpage section .section-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 730px;
}

/* ---- ④ 子页面首屏「上标题 / 下说明」上下布局 + 左对齐 ----
   首页 index.html 仍用 .text-center 居中，不受影响。
   标题在上、说明在下，都靠左；说明段落回到 730px 上限，
   避免在 1152px 容器里拉出一整行走满的超长行。 */
body.subpage .sec-head {
    display: flex;
    flex-direction: column;         /* 上下布局：标题在上、说明在下 */
    align-items: flex-start;        /* 左对齐 */
    gap: 6px;
    text-align: left;
    margin-bottom: 20px;
}
body.subpage .sec-head > .section-title {
    margin-bottom: 8px;
}
body.subpage .sec-head-text {
    display: flex;
    flex-direction: column;         /* 多段说明各自成行，纵向堆叠 */
    gap: 6px;
}
body.subpage .sec-head-text .section-sub {
    max-width: 730px;               /* 回到可读行宽（不再满容器铺开） */
    margin-bottom: 0;
    text-align: left;
}
/* ≤1024px 无需再改：.sec-head / .mat-head / .svc-head 的上下布局与左对齐已由基础规则统一提供 */

/* ===== 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;
    /* 首段文案较长（约 56 字），字号由 1rem 收到 0.92rem，
       以让桌面端「永维的品牌标识以简约…品质承诺。」尽量显示为一行 */
    font-size: 0.92rem;
}
.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;
    /* 固定 3 列：6 个产品恰好排成 2 行，装饰板系列落在第二行首位。
       原 auto-fit minmax(240px,1fr) 在 1200px 容器下会排成 4 列。 */
    grid-template-columns: repeat(3, minmax(0, 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(2, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 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);
}
/* 公安备案：紧跟 ICP 备案号下方，居中显示（图标 + 文字） */
footer .copyright .beian-gongan {
    margin-top: 8px;
}
footer .copyright .beian-gongan a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}
footer .copyright .beian-gongan a:hover { color: #fff; }
footer .copyright .beian-gongan img {
    display: block;
    width: auto;
    height: 20px;
}

/* ===== 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; }
    /* 产品网格：桌面 3 列 → 平板 2 列（同基础规则之后，避免被反盖） */
    .product-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 导航在 1340px 以下收进汉堡菜单：一行最多只放得下 1320px 宽的 .nav-wrapper（含左右 24px padding
   → 内容区 1272px），而 9 个导航项 + logo + 电话 + 语言切换实测约需 1227px，
   预留 ~45px 余量。导航项再增加时同步抬高这个断点。
   菜单形态：点击汉堡 → 右上角弹出「气泡框」，不再铺满整页宽度。 */
@media (max-width: 1340px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        /* 相对定位祖先取 header（桌面）或 .nav-wrapper（手机端为 relative），
           两者都顶在页面最上方，故 100% 即头部下沿 */
        top: calc(100% + 12px);
        right: 24px;
        left: auto;
        width: 252px;
        max-width: calc(100vw - 36px);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 10px;
        gap: 2px;
        box-shadow: 0 18px 44px rgba(28, 28, 30, 0.16);
        transform-origin: top right;
        animation: navBubbleIn 0.18s ease-out;
        z-index: 1200;
    }
    /* 气泡尖端，指向右上角的菜单按钮 */
    .nav-links::before {
        content: "";
        position: absolute;
        top: -7px;
        right: 11px;
        width: 12px;
        height: 12px;
        background: #fff;
        border-left: 1px solid var(--border);
        border-top: 1px solid var(--border);
        transform: rotate(45deg);
        border-top-left-radius: 2px;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 11px 14px;
        width: 100%;
        text-align: left;
        font-size: 0.98rem;
        border-radius: 10px;
    }
    .menu-toggle { display: block; }
}
@keyframes navBubbleIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
    /* ---- 手机端头部改为「两行 + 右上角操作区」 ----
       原因：.logo 内的电话（.logo-phone 的 flex-basis:100%）会把 .logo 撑到约 298px，
       把 .nav-actions（语言切换 + 汉堡按钮）挤出屏幕右侧 → 「EN」和菜单按钮显示不全。
       改法：.logo 占满整行做 logo/电话 两行排版；.nav-actions 绝对定位贴右上角，不再参与挤压。 */
    .nav-wrapper {
        position: relative;
        height: auto;
        min-height: 0;
    }
    /* 用 .container.nav-wrapper 提高优先级：≤480px 的 `.container{padding:0 18px}` 简写
       会重置本类 padding，导致头部上下留白失效（实测 logo 顶到 y=0）。 */
    .container.nav-wrapper {
        padding-top: 12px;
        padding-bottom: 10px;
    }
    .logo {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
        row-gap: 2px;
    }
    .logo img { height: 38px; }
    .logo-text { font-size: 1.2rem; padding-left: 12px; }
    .logo-phone {
        display: block;
        flex-basis: 100%;
        padding-left: 0;
        border-left: 0;
        font-family: var(--font-serif);
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--primary);
        letter-spacing: 0.5px;
        margin-top: 0;
    }
    .nav-actions {
        position: absolute;
        top: 14px;
        right: 24px;
        gap: 10px;
    }
    .lang-toggle button { padding: 5px 10px; font-size: 0.72rem; }
    .menu-toggle { font-size: 1.25rem; padding: 2px; }
    /* 头部实测约 85px（logo 38 + 电话 22 + 行距 2 + 上下留白 22 + 边框 1），
       让出 88px 后区块只差几个像素贴住头部，再叠加子页面 10px 顶部留白 */
    body { padding-top: 88px; }

    .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; }
    .product-showcase { grid-template-columns: 1fr; gap: 20px; }
    .nav-phone { display: none; }
}
@media (max-width: 480px) {
    .section-title { font-size: 1.55rem; }
    .brand-image img { height: 360px; }
    .container { padding: 0 18px; }
    /* 容器左右内边距收到 18px，右上角操作区与导航气泡同步对齐 */
    .nav-actions { right: 18px; }
    .nav-links { right: 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;
}

/* ===== 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%;
    max-height: 90vh; 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; }
.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; max-height: 90vh; }
.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) {
    .modal-body { grid-template-columns: 1fr; }
    .modal-gallery { min-height: 260px; }
    .gallery-img { max-height: 50vh; }
    .custom-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
    .capability-row { grid-template-columns: 1fr; }
    .custom-steps { grid-template-columns: 1fr; }
    .modal-dialog { max-height: 92vh; }
    .modal-info { padding: 28px 22px; }
}

/* ===================================================================
   Services & Process（服务与工艺）
   材料展示（亚克力主材 + PVC/PP/ABS/PE 工程塑料）+ 功能改性
   + 工艺流程（8 道标准工序，每道工序内嵌套该环节用到的 11 道精工工艺）
   =================================================================== */

/* 模块内分块小标题（左标题 + 右说明） */
.svc-head {
    display: flex;
    flex-direction: column;         /* 上下布局：小标题在上、说明在下 */
    align-items: flex-start;        /* 左对齐 */
    gap: 6px;
    margin-bottom: 28px;
}
.svc-head-gap { margin-top: 72px; }
/* 字号 / 颜色 / 字重与 .sec-head 的 .section-title 完全一致
   （2.4rem、var(--text)、衬线 700，响应式断点 1024/768/480 同步跟随） */
.svc-head h3 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
}
.svc-head h3 .highlight { color: var(--primary); }
.svc-head-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* 780px：第二条 49 字（含 2 个全角逗号）在 15.2px 下约需 745px，
       给到 780 才能各自单行；620px 会折成 2 行。 */
    max-width: 780px;
}
.svc-head-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    text-align: left;
}
.svc-kicker {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 10px;
}

/* ---------- ① 亚克力吸塑 · 功能改性料（主推区块） ---------- */
.svc-feature {
    background: linear-gradient(135deg, #2F6156 0%, #1F4540 100%);
    border-radius: var(--radius-lg);
    padding: 20px 44px 40px;        /* 顶部内边距 46 -> 20px */
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.svc-feature .svc-kicker { color: rgba(255, 255, 255, 0.6); }
.svc-feature-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 34px;
}
.svc-feature-head h3 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}
.svc-hl { color: #F2D492; }
.svc-feature-head p {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    max-width: 730px;
}
.svc-seal {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(242, 212, 146, 0.55);
    background: rgba(242, 212, 146, 0.12);
    color: #F2D492;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* 三大功能改性卡片 */
.func-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.func-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    box-shadow: 0 2px 10px rgba(20, 45, 38, 0.07);
    transition: var(--transition);
}
.func-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 212, 146, 0.65);
    box-shadow: 0 18px 42px rgba(16, 40, 34, 0.24);
}

/* 卡片顶部实拍图 */
.func-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #E7EDEA;
}
.func-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.func-card:hover .func-media img { transform: scale(1.07); }
/* 图片底部渐变，保证「查看详情」胶囊可读 */
.func-media::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 62%;
    background: linear-gradient(transparent, rgba(12, 28, 24, 0.66));
    pointer-events: none;
}
.func-no {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    min-width: 32px;
    height: 26px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.func-more {
    position: absolute;
    right: 14px; bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.func-card:hover .func-more { background: var(--primary); border-color: var(--primary); }

/* 卡片文字区 */
.func-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}
.func-card h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.func-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: start;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.func-row + .func-row { margin-top: 12px; }
.func-k {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    padding-top: 2px;
}
.func-v {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
/* 关键指标里的数值整段不折行，避免 "Ω/□"、单位被拆开 */
.func-v b { color: var(--primary); font-weight: 700; white-space: nowrap; }

/* 配套工艺 / 典型产品 标签条 */
.svc-strip {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.svc-strip-row { display: flex; align-items: baseline; gap: 18px; }
.svc-strip-k {
    flex-shrink: 0;
    width: 84px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.58);
}
.svc-strip-v { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-strip-v em {
    font-style: normal;
    font-size: 0.86rem;
    padding: 5px 13px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.94);
}

/* ---------- ② 其他材料展示（PVC / PP / ABS / PE） ---------- */
.mat-block { margin-top: 26px; }
.mat-head {
    display: flex;
    flex-direction: column;         /* 上下布局：小标题在上、说明在下 */
    align-items: flex-start;        /* 左对齐 */
    gap: 6px;
    margin-bottom: 24px;
}
.mat-head-title { flex: 0 0 auto; }
/* 字号 / 颜色与 .sec-head 的 .section-title 完全一致（同 .svc-head h3） */
.mat-head h3 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
}
.mat-head h3 .highlight { color: var(--primary); }
/* 说明文字：两段各自成行，纵向排列、左对齐 */
.mat-head-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 620px;
}
.mat-head-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    text-align: left;
}
.mat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.mat-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 22px 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.mat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}
.mat-top {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.mat-code {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.1;
    color: var(--primary);
}
.mat-top h4 {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
    margin: 8px 0 12px;
}
.mat-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mat-chips em {
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 50px;
    background: var(--primary-bg);
    color: var(--primary);
    white-space: nowrap;
}
.mat-row {
    display: grid;
    /* 标签列按内容自适应：中文「关键特性」窄、英文 "Applications" 宽，各自都不会被挤压 */
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}
.mat-row + .mat-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.mat-k {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-light);
    padding-top: 2px;
}
.mat-v {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---------- ③ 工艺流程：8 道标准工序，每道工序内嵌套该环节用到的精工工艺 ---------- */
.flow-nest { display: flex; flex-direction: column; }

/* 单个工序块 = 工序头（点击 → 工序弹窗）+ 下方嵌套的工艺卡片 */
.flow-group {
    position: relative;
    padding-bottom: 34px;
}
.flow-group:last-child { padding-bottom: 0; }

/* 左侧时间轴：由「工序块尾段 + 工序头上半 + 工序头下半」三段拼成一条连续线，
   编号垂直居中在工序头上 —— 用 calc(50% ± 半高) 定位，不依赖工序块总高。 */
.flow-head::before,
.flow-head::after,
.flow-group::after {
    content: '';
    position: absolute;
    left: 29px;
    width: 2px;
    background: rgba(47, 97, 86, 0.24);
}
.flow-head::before { top: 0; height: calc(50% - 25px); }
.flow-head::after { top: calc(50% + 25px); bottom: 0; }
/* 第一个工序上方、最后一个工序下方都不出线 */
.flow-group:first-child .flow-head::before { display: none; }
.flow-group::after { bottom: 0; height: 34px; }
.flow-group:last-child::after { display: none; }
/* 工序头下方（说明块 / 工艺卡片区）的那一段 */
.flow-body::before {
    content: '';
    position: absolute;
    left: -33px;   /* 与 flow-head 的轴落在同一像素列 */
    top: -4px;
    bottom: 0;
    width: 2px;
    background: rgba(47, 97, 86, 0.24);
}

/* 工序头：整块可点击，左侧留出时间轴、编号浮在轴上 */
.flow-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 24px 0 24px 62px;
    background: transparent;
    border: 0;
    border-radius: var(--radius-lg);
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

.flow-idx {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 2px solid var(--bg);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0 2px rgba(47, 97, 86, 0.14);
    transition: var(--transition);
}
.flow-head:hover .flow-idx { background: var(--primary); color: #fff; }

.flow-head-text { min-width: 0; }
.flow-head-text h4 {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
    transition: var(--transition);
}
.flow-head:hover .flow-head-text h4 { color: var(--primary); }
.flow-desc {
    display: block;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.flow-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.flow-tags em {
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 50px;
    background: rgba(242, 212, 146, 0.24);
    border: 1px solid rgba(190, 152, 70, 0.45);
    color: #8A6A21;
    white-space: nowrap;
}

/* 工序右侧实拍缩略图 */
.flow-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: #E7EDEA;
}
.flow-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.flow-head:hover .flow-media img { transform: scale(1.07); }
.flow-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(12, 28, 24, 0.62));
    pointer-events: none;
}
.flow-more {
    position: absolute;
    right: 12px; bottom: 11px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.flow-head:hover .flow-more { background: var(--primary); border-color: var(--primary); }

/* 工序下方：该环节实际用到的精工工艺 */
.flow-body { position: relative; margin: 4px 0 0 62px; }
.flow-body-label {
    display: inline-block;
    margin-bottom: 11px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--text-muted);
}
/* 前置 / 定型 / 出货等不含独立加工工艺的环节：一句职责说明 */
.flow-note {
    position: relative;
    padding: 13px 18px 13px 34px;
    border-radius: var(--radius);
    background: rgba(47, 97, 86, 0.045);
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.flow-note::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 20px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.75;
}

/* 精工工艺小卡（点击 → 工艺弹窗）。
   列宽下限 --pchip-min 是「副标题一行放下」所需的最小卡宽，实测得出：
   卡宽 293px 时正文列只有 169px，而最长副标题「模具型面精雕 · 浮雕/字雕/3D 镂铣」需 190px，
   另有 6 条需 171px → 全部被迫折成两行。
   卡宽 = padding 24 + 边框 2 + 缩略图 84 + gap 14 + 正文列 = 124 + 正文列，
   正文列取 200px → 下限 324px（对 190px 的最长项留 10px 余量）。
   有空间时用 1fr 铺满（而不是写死列宽 + 左对齐），避免右侧留一大片空白：
   1090px 宽 → 每行 3 张 × 354px；905px 宽 → 每行 2 张 × 445px。
   手机端（≤768px）仍是 1fr 单列铺满，不受影响；想调卡片大小只改 --pchip-min。 */
.pchip-grid {
    --pchip-min: 324px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--pchip-min), 1fr));
    gap: 14px;
}
.pchip {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pchip:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}
.pchip-media {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #E7EDEA;
}
.pchip-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pchip:hover .pchip-media img { transform: scale(1.08); }
/* 右上角 01~11 序号已隐藏（见上方 .pchip-no），正文不再需要留出让位 */
.pchip-text { min-width: 0; }
.pchip-text h5 {
    font-family: var(--font-heading);
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.pchip-sub {
    display: block;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
}
/* 精工工艺小卡右上角的 01~11 序号：按需求隐藏。
   原始定位样式已注释保留在下方，要恢复序号：取消注释并删掉 display:none。
   注意：只注释原样式不隐藏的话，<span class="pchip-no"> 会变成 .pchip 网格的第一个格子，
   把配图挤到第二列、正文掉到下一行，必须配套 display:none。
.pchip-no {
    position: absolute;
    top: 8px;
    right: 11px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--primary-light);
}
*/
.pchip-no { display: none; }

/* ④ 板材裁切 · 功能选配：关键工序高亮，呼应上方三大功能改性 */
.flow-group.is-key .flow-idx {
    background: rgba(242, 212, 146, 0.38);
    color: #8A6A21;
    box-shadow: 0 0 0 2px rgba(190, 152, 70, 0.25);
}
.flow-group.is-key .flow-head:hover .flow-idx { background: #B08430; color: #fff; }
.flow-group.is-key .flow-head-text h4 { color: #7A5A18; }
.flow-group.is-key .flow-head:hover .flow-head-text h4 { color: #B08430; }

/* ---------- Services & Process · 响应式 ---------- */
@media (max-width: 1024px) {
    .func-grid { grid-template-columns: 1fr; gap: 16px; }
    /* 单列时图片改扁平比例，避免占掉整屏 */
    .func-media { aspect-ratio: 21 / 9; }
    .flow-head { grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; padding-left: 56px; }
    .flow-idx { left: 6px; width: 42px; height: 42px; font-size: 0.9rem; }
    .flow-head::before,
    .flow-head::after,
    .flow-group::after { left: 26px; }
    .flow-head::before { height: calc(50% - 23px); }
    .flow-head::after { top: calc(50% + 23px); }
    .flow-body { margin-left: 56px; }
    .flow-body::before { left: -30px; }
    /* .pchip-grid 不随断点改列宽：≥769px 一律用 --pchip-min 作下限 + 1fr 铺满（见 .pchip-grid 定义） */
    .mat-grid { grid-template-columns: repeat(2, 1fr); }
    /* 已上移到基础规则：.mat-head / .mat-head-text p 的上下布局与左对齐 */
    /* .mat-head { flex-direction: column; align-items: flex-start; gap: 10px; } */
    /* .mat-head-text p { text-align: left; } */
    .svc-feature { padding: 20px 30px 34px; }
    .svc-feature-head { flex-direction: column; gap: 20px; }
    /* 已上移到基础规则：.svc-head / .svc-head-text p 的上下布局与左对齐 */
    /* .svc-head { flex-direction: column; align-items: flex-start; gap: 10px; } */
    /* .svc-head-text p { text-align: left; } */
    /* 小标题字号跟随 .section-title 的响应式阶梯。
       必须写在这里：.svc-head h3 / .mat-head h3 的基础规则在本文件后半段，
       同优先级的覆盖只有出现在它之后才生效。 */
    .svc-head h3,
    .mat-head h3 { font-size: 2rem; }
}
@media (max-width: 768px) {
    .svc-feature { padding: 20px 22px 28px; border-radius: var(--radius); }
    .svc-feature-head h3 { font-size: 1.5rem; }
    .svc-head h3,
    .mat-head h3 { font-size: 1.8rem; }
    .svc-head-gap { margin-top: 52px; }
    .func-media { aspect-ratio: 16 / 10; }
    .func-body { padding: 20px 18px 22px; }
    .svc-strip-row { flex-direction: column; gap: 10px; }
    .svc-strip-k { width: auto; }
    .mat-grid { grid-template-columns: 1fr; gap: 16px; }
    /* .mat-head h3 的字号同上（与 .svc-head h3 合并在一条规则里） */
    .mat-card { padding: 22px 20px 20px; }
    /* 工序头改为两行：编号+文字在上，实拍图整行在下 */
    .flow-group { padding-bottom: 28px; }
    .flow-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 20px 0 20px 52px;
    }
    .flow-idx { left: 5px; width: 38px; height: 38px; font-size: 0.82rem; }
    .flow-head::before,
    .flow-head::after,
    .flow-group::after { left: 23px; }
    .flow-head::before { height: calc(50% - 21px); }
    .flow-head::after { top: calc(50% + 21px); }
    .flow-group::after { height: 28px; }
    .flow-media { aspect-ratio: 16 / 10; }
    .flow-body { margin: 0 0 0 52px; }
    .flow-body::before { left: -29px; top: 0; }
    .pchip-grid { grid-template-columns: 1fr; gap: 10px; }
    .pchip { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px; }
}

/* 窄屏：材料卡字号略降；工序时间轴整体收窄 */
@media (max-width: 480px) {
    .svc-head h3,
    .mat-head h3 { font-size: 1.55rem; }
    .mat-row { gap: 8px; }
    .mat-v { font-size: 0.85rem; }
    .mat-code { font-size: 1.45rem; }
    .flow-head { padding: 18px 0 18px 46px; gap: 14px; }
    .flow-idx { left: 4px; width: 34px; height: 34px; font-size: 0.76rem; }
    .flow-head::before,
    .flow-head::after,
    .flow-group::after { left: 20px; }
    .flow-head::before { height: calc(50% - 19px); }
    .flow-head::after { top: calc(50% + 19px); }
    .flow-head-text h4 { font-size: 1.05rem; }
    .flow-body { margin-left: 46px; }
    .flow-body::before { left: -26px; }
    .flow-note { padding: 12px 14px 12px 30px; }
    .pchip { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
}
