:root {
    --graphite: #37474f;
    --graphite-deep: #263238;
    --teal: #4db6ac;
    --teal-dark: #00897b;
    --paper: #f5f8f8;
    --blueprint: #dfe9ea;
    --blueprint-line: rgba(77, 182, 172, 0.35);
    --grid: rgba(55, 71, 79, 0.08);
    --ink: #37474f;
    --ink-soft: #5f7278;
    --line: rgba(55, 71, 79, 0.2);
    --font-mono: "Courier New", "Consolas", monospace;
    --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.75;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ========== 蓝图网格背景 ========== */
.grid-bg {
    background:
        repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 46px),
        var(--blueprint);
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 13px 32px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: transform .3s var(--ease), box-shadow .3s, background .3s;
    font-family: inherit;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 8px 22px rgba(77, 182, 172, 0.4);
}
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 12px 30px rgba(77, 182, 172, 0.5); }

.btn-outline {
    background: transparent;
    color: var(--graphite);
    border: 2px solid var(--graphite);
}
.btn-outline:hover { background: var(--graphite); color: var(--paper); }

.btn-lg { padding: 16px 44px; font-size: 17px; }

/* ========== 导航 ========== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all .4s;
    border-bottom: 2px solid transparent;
}
.site-header.scrolled {
    padding: 8px 0;
    background: rgba(245, 248, 248, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--teal);
    box-shadow: 0 6px 28px rgba(55, 71, 79, 0.12);
}

.header-inner {
    width: min(1200px, 94%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-rule {
    width: 46px; height: 34px;
    border: 2px solid var(--teal);
    position: relative;
    border-radius: 2px;
}
.logo-rule::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(55, 71, 79, 0.4);
    border-top: 2px solid var(--graphite);
}
.logo-rule::after {
    content: "";
    position: absolute;
    left: 50%; top: -4px;
    width: 2px; height: 8px;
    background: var(--teal);
    transform: translateX(-50%);
}
.logo-text { font-size: 20px; font-weight: 800; color: var(--graphite); letter-spacing: 1px; }
.logo-text span { color: var(--teal-dark); }
.logo-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--teal-dark);
    border: 1px solid var(--teal);
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.main-nav { display: flex; gap: 6px; }
.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 15px;
    transition: all .3s;
    border: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    border-color: var(--teal);
    color: var(--teal-dark);
    background: rgba(77, 182, 172, 0.08);
}

.header-cta { padding: 9px 22px; font-size: 14px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.nav-toggle span {
    width: 26px; height: 3px;
    background: var(--graphite);
    border-radius: 2px;
    transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 0;
    background:
        repeating-linear-gradient(0deg, rgba(77, 182, 172, 0.12) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(77, 182, 172, 0.12) 0 1px, transparent 1px 44px),
        linear-gradient(160deg, #f0f5f5, var(--blueprint));
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg,
        var(--teal) 0 34px, transparent 34px 44px);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding-bottom: 90px;
}
.hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--teal-dark);
    padding: 6px 14px;
    border: 1px solid var(--teal);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(46px, 6.5vw, 72px);
    font-weight: 900;
    line-height: 1.12;
    color: var(--graphite);
    margin-bottom: 22px;
}
.hero-title span { color: var(--teal-dark); position: relative; }
.hero-title span::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 8px;
    background: var(--teal);
    opacity: .35;
    z-index: -1;
}
.hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 440px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-specs {
    display: flex;
    gap: 22px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.hero-specs span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--graphite);
    padding: 6px 14px;
    border: 1px dashed var(--line);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.6);
}
.hero-specs span::before { content: "● "; color: var(--teal); }

/* 蓝图房子绘制 */
.hero-drawing { position: relative; }
.blueprint-canvas {
    position: relative;
    background:
        repeating-linear-gradient(0deg, rgba(55, 71, 79, 0.07) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(55, 71, 79, 0.07) 0 1px, transparent 1px 34px),
        rgba(255, 255, 255, 0.55);
    border: 2px solid var(--teal);
    border-radius: 4px;
    padding: 60px 50px 46px;
    box-shadow: 0 30px 70px rgba(55, 71, 79, 0.22);
    transform: rotate(-1deg);
    transition: transform .6s var(--ease);
}
.blueprint-canvas:hover { transform: rotate(0deg) scale(1.01); }
.blueprint-canvas::before {
    content: "";
    position: absolute;
    top: 14px; left: 14px;
    width: 24px; height: 24px;
    border-top: 3px solid var(--teal);
    border-left: 3px solid var(--teal);
}
.blueprint-canvas::after {
    content: "";
    position: absolute;
    bottom: 14px; right: 14px;
    width: 24px; height: 24px;
    border-bottom: 3px solid var(--teal);
    border-right: 3px solid var(--teal);
}

.house-outline { position: relative; }
.house-body {
    width: 260px;
    height: 160px;
    border: 3px solid var(--graphite);
    margin: 0 auto;
    background: rgba(77, 182, 172, 0.06);
    position: relative;
}
.house-roof {
    position: absolute;
    left: -3px; top: -88px;
    width: 0; height: 0;
    border-left: 133px solid transparent;
    border-right: 133px solid transparent;
    border-bottom: 88px solid var(--graphite);
}
.house-roof::after {
    content: "";
    position: absolute;
    left: -123px; top: 76px;
    width: 0; height: 0;
    border-left: 123px solid transparent;
    border-right: 123px solid transparent;
    border-bottom: 78px solid var(--teal);
    opacity: .4;
}
.win {
    position: absolute;
    border: 2px solid var(--graphite);
    width: 46px; height: 40px;
    top: 30px;
    background: rgba(77, 182, 172, 0.18);
}
.win::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    border-left: 2px dashed var(--graphite);
    opacity: .6;
}
.win-a { left: 26px; }
.win-b { right: 26px; }
.door {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 58px; height: 92px;
    border: 2px solid var(--graphite);
    border-bottom: none;
    background: rgba(77, 182, 172, 0.25);
}
.door::after {
    content: "";
    position: absolute;
    right: 8px; top: 34px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--graphite);
}
.cross { position: absolute; color: var(--teal-dark); font-family: var(--font-mono); }
.cross::before, .cross::after {
    content: "";
    position: absolute;
    background: var(--teal);
}
.cross-a {
    top: -14px; left: 50%;
    width: 20px; height: 20px;
}
.cross-a::before { left: 9px; top: -18px; height: 56px; width: 2px; }
.cross-a::after { top: 9px; left: -18px; width: 56px; height: 2px; }
.cross-b {
    bottom: 18px; right: -16px;
    width: 20px; height: 20px;
}
.cross-b::before { left: 9px; top: -18px; height: 56px; width: 2px; }
.cross-b::after { top: 9px; left: -18px; width: 56px; height: 2px; }

.ground-line {
    position: absolute;
    left: -70px; right: -70px;
    bottom: -26px;
    border-top: 2px dashed var(--graphite);
}
.ground-line::before {
    content: "▸▸▸▸";
    position: absolute;
    left: -64px; top: -10px;
    color: var(--teal-dark);
    font-size: 12px;
    letter-spacing: 8px;
}

.dim {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal-dark);
    background: rgba(255, 255, 255, 0.85);
    padding: 1px 7px;
    border: 1px solid var(--teal);
    border-radius: 2px;
    z-index: 5;
}
.dim-h-a { top: 30px; left: 20px; }
.dim-h-a::after { content: " ⌃"; }
.dim-h-b { bottom: 22px; right: 18px; }
.dim-h-b::before { content: "⌄ "; }
.dim-v-a { left: 14px; top: 40%; }
.dim-v-b { right: -6px; top: 28%; }

.canvas-note {
    position: absolute;
    bottom: 12px; left: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: 1px;
}

.hero-marquee {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--graphite);
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 3px;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}
.hero-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 22s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ========== 区块标题（几何角标） ========== */
.section-head { text-align: center; margin-bottom: 56px; position: relative; }
.section-head::before {
    content: "";
    position: absolute;
    top: -26px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 8px;
    background: repeating-linear-gradient(90deg, var(--teal) 0 4px, transparent 4px 8px);
}
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--teal-dark);
    border: 1px solid var(--teal);
    border-radius: 2px;
    padding: 4px 16px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--graphite);
    position: relative;
    display: inline-block;
}
.section-title::before, .section-title::after {
    content: "";
    position: absolute;
    top: 0; width: 10px; height: 10px;
    border: 3px solid var(--teal);
}
.section-title::before { left: -22px; border-right: none; border-bottom: none; }
.section-title::after { right: -22px; border-left: none; border-bottom: none; }

/* ========== 工坊理念 ========== */
.philosophy { padding: 110px 0 90px; position: relative; }
.philosophy::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    border-top: 2px dashed var(--line);
}
.ethos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.ethos-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 4px;
    padding: 44px 34px 38px;
    transition: transform .45s var(--ease), box-shadow .4s, border-color .4s;
}
.ethos-card:hover { transform: translateY(-10px); border-color: var(--teal); box-shadow: 0 18px 44px rgba(55, 71, 79, 0.14); }
.ethos-no {
    position: absolute;
    top: -16px; left: 26px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal-dark);
    background: var(--paper);
    border: 1px solid var(--teal);
    padding: 2px 12px;
    border-radius: 2px;
}
.ethos-card h3 { font-size: 23px; color: var(--graphite); margin-bottom: 14px; }
.ethos-card h3::before { content: "▣ "; color: var(--teal); }
.ethos-card p { color: var(--ink-soft); font-size: 15px; }

.philosophy-quote {
    margin-top: 60px;
    text-align: center;
    position: relative;
    padding: 50px 40px 40px;
}
.quote-rule {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 300px;
    border-top: 3px solid var(--teal);
}
.quote-rule::before, .quote-rule::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 14px; height: 3px;
    background: var(--teal);
}
.quote-rule::before { left: 0; transform: rotate(-45deg); transform-origin: left top; }
.quote-rule::after { right: 0; transform: rotate(45deg); transform-origin: right top; }
.philosophy-quote p { font-size: 21px; font-weight: 600; color: var(--graphite); }
.philosophy-quote span { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); letter-spacing: 2px; }

/* ========== 服务 ========== */
.services {
    padding: 100px 0 110px;
    position: relative;
    background:
        repeating-linear-gradient(0deg, rgba(77, 182, 172, 0.1) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(77, 182, 172, 0.1) 0 1px, transparent 1px 44px),
        linear-gradient(160deg, #f0f5f5, var(--blueprint));
}
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.svc-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 4px;
    padding: 38px 34px;
    transition: transform .45s var(--ease), border-color .4s, box-shadow .4s;
    overflow: hidden;
}
.svc-card:hover { transform: translateY(-8px); border-color: var(--teal); box-shadow: 0 18px 44px rgba(55, 71, 79, 0.14); }
.svc-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--teal) 0 22px, transparent 22px 32px);
}
.svc-cross {
    position: absolute;
    top: 18px; right: 24px;
    color: var(--teal);
    font-size: 30px;
    font-family: var(--font-mono);
    opacity: .6;
}
.dim-card { top: 12px; left: 14px; }
.svc-ico { font-size: 38px; margin-bottom: 16px; display: inline-block; }
.svc-card h3 { font-size: 22px; color: var(--graphite); margin-bottom: 12px; }
.svc-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.svc-card a { color: var(--teal-dark); font-weight: 700; text-decoration: none; font-family: var(--font-mono); font-size: 14px; }
.svc-card a:hover { text-decoration: underline; }

/* ========== 作品 ========== */
.works { padding: 110px 0 100px; }
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 290px 290px;
    gap: 26px;
}
.work-piece {
    margin: 0;
    position: relative;
    border: 3px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: border-color .4s;
}
.work-piece::after {
    content: "";
    position: absolute;
    top: 8px; left: 8px;
    width: 18px; height: 18px;
    border-top: 3px solid var(--teal);
    border-left: 3px solid var(--teal);
    z-index: 3;
    transition: transform .3s;
}
.work-piece:hover::after { transform: scale(1.15); }
.work-piece img { height: 100%; width: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-piece:hover img { transform: scale(1.07); }
.work-piece figcaption {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(38, 50, 56, 0.88));
    color: #fff;
    padding: 40px 24px 20px;
}
.wk-no { font-family: var(--font-mono); font-size: 12px; color: var(--teal); letter-spacing: 2px; }
.work-piece h3 { font-size: 20px; margin: 4px 0; }
.work-piece p { font-size: 13px; opacity: .88; }
.work-a { grid-column: span 2; }
.work-b { border-color: var(--teal); }
.work-d { grid-column: span 2; }

/* ========== 联系带 ========== */
.contact-band {
    padding: 40px 0 110px;
    position: relative;
    background:
        repeating-linear-gradient(0deg, rgba(77, 182, 172, 0.1) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(77, 182, 172, 0.1) 0 1px, transparent 1px 44px),
        linear-gradient(160deg, #f0f5f5, var(--blueprint));
}
.contact-band::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    border-top: 2px dashed var(--line);
}
.band-inner {
    background: #fff;
    border: 3px solid var(--graphite);
    border-radius: 6px;
    padding: 70px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    box-shadow: 0 24px 60px rgba(55, 71, 79, 0.16);
}
.band-inner::before, .band-inner::after {
    content: "◆";
    position: absolute;
    color: var(--teal);
    font-size: 14px;
}
.band-inner::before { top: 12px; left: 14px; }
.band-inner::after { bottom: 12px; right: 14px; }
.band-head .section-tag { margin-bottom: 12px; }
.band-head .section-title { font-size: clamp(26px, 3.6vw, 38px); }
.band-sub { color: var(--ink-soft); margin-top: 12px; font-size: 16px; }

/* ========== 页脚 ========== */
.site-footer { background: var(--graphite-deep); color: rgba(245, 248, 248, 0.82); padding: 70px 0 30px; }
.footer-topline {
    height: 6px;
    margin-bottom: 40px;
    background: repeating-linear-gradient(90deg, var(--teal) 0 30px, transparent 30px 42px);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 2px dashed rgba(245, 248, 248, 0.18);
}
.footer-grid h3 { font-size: 18px; margin-bottom: 18px; color: #fff; }
.footer-grid h3::before { content: "▣ "; color: var(--teal); }
.footer-about p { font-size: 15px; line-height: 2; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(245, 248, 248, 0.78); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--teal); }
.footer-contact p { font-size: 15px; line-height: 2; }
.copyright { text-align: center; padding-top: 30px; font-size: 14px; opacity: 0.65; font-family: var(--font-mono); }

/* ========== 子页面 ========== */
.page-hero {
    padding: 170px 0 90px;
    text-align: center;
    position: relative;
    background:
        repeating-linear-gradient(0deg, rgba(77, 182, 172, 0.12) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(77, 182, 172, 0.12) 0 1px, transparent 1px 44px),
        linear-gradient(160deg, #f0f5f5, var(--blueprint));
}
.page-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--teal) 0 34px, transparent 34px 44px);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 900; color: var(--graphite); }
.page-hero h1::after {
    content: "";
    display: block;
    width: 90px; height: 8px;
    margin: 14px auto 0;
    background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px);
}
.page-hero p { font-size: 17px; margin-top: 14px; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: 2px; }
.breadcrumb { margin-top: 18px; font-size: 14px; font-family: var(--font-mono); }
.breadcrumb a { color: var(--teal-dark); text-decoration: none; }
.breadcrumb span { margin: 0 8px; opacity: .55; }

.page-section { padding: 90px 0; }
.page-section.alt {
    background:
        repeating-linear-gradient(0deg, rgba(77, 182, 172, 0.1) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(77, 182, 172, 0.1) 0 1px, transparent 1px 44px),
        linear-gradient(160deg, #f0f5f5, var(--blueprint));
}

/* 关于页 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-grid img {
    border: 4px solid #fff;
    outline: 3px solid var(--line);
    box-shadow: 0 22px 54px rgba(55, 71, 79, 0.2);
    height: 420px; width: 100%; object-fit: cover;
}
.about-grid h3 { font-size: 26px; color: var(--graphite); margin-bottom: 18px; }
.about-grid h3::before { content: "▣ "; color: var(--teal); }
.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }
.about-stats { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.about-stats li {
    list-style: none;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 3px;
    padding: 18px 26px;
    text-align: center;
    font-size: 14px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
}
.about-stats span { display: block; font-size: 28px; font-weight: 800; color: var(--teal-dark); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s;
}
.team-card:hover { transform: translateY(-10px); border-color: var(--teal); }
.team-card img { height: 290px; width: 100%; object-fit: cover; }
.team-body { padding: 24px; text-align: center; }
.team-body h4 { color: var(--graphite); margin-bottom: 6px; }
.team-body p { color: var(--teal-dark); font-size: 14px; font-family: var(--font-mono); }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.value-card {
    background: #fff;
    border: 2px solid var(--line);
    border-left: 6px solid var(--teal);
    border-radius: 4px;
    padding: 34px;
    transition: transform .4s var(--ease);
}
.value-card:hover { transform: translateX(10px); }
.value-card h3 { font-size: 21px; margin-bottom: 12px; color: var(--graphite); }
.value-card p { color: var(--ink-soft); font-size: 15px; }

/* 产品页 */
.product-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
    position: relative;
    border: 2px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: transform .45s var(--ease), border-color .4s;
}
.product-card::before {
    content: "＋";
    position: absolute;
    top: 10px; right: 14px;
    color: var(--teal);
    font-size: 22px;
    font-family: var(--font-mono);
    z-index: 3;
}
.product-card:hover { transform: translateY(-10px); border-color: var(--teal); }
.product-card img { height: 230px; width: 100%; object-fit: cover; }
.product-body { padding: 26px; }
.product-body .p-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal-dark);
    border: 1px solid var(--teal);
    padding: 3px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.product-body h3 { font-size: 20px; color: var(--graphite); margin-bottom: 10px; }
.product-body p { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.product-price { color: var(--teal-dark); font-weight: 800; font-size: 21px; font-family: var(--font-mono); }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
    position: relative;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 4px;
    padding: 34px 24px;
    text-align: center;
}
.process-step::before {
    content: attr(data-n);
    display: block;
    font-family: var(--font-mono);
    font-size: 34px;
    font-weight: 800;
    color: var(--teal);
    opacity: .45;
    margin-bottom: 12px;
}
.process-step::after {
    content: "→";
    position: absolute;
    top: 50%; right: -20px;
    color: var(--teal);
    font-size: 18px;
    z-index: 2;
}
.process-step:last-child::after { display: none; }
.process-step h3 { color: var(--graphite); margin-bottom: 10px; }
.process-step p { color: var(--ink-soft); font-size: 14px; }

/* 新闻页 */
.news-list { max-width: 900px; margin: 0 auto; }
.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 26px;
    transition: transform .4s var(--ease), border-color .4s;
}
.news-item:hover { transform: translateX(12px); border-color: var(--teal); }
.news-item img { height: 200px; width: 100%; object-fit: cover; }
.news-body { padding: 26px 28px; }
.news-date { color: var(--teal-dark); font-size: 13px; font-weight: 700; letter-spacing: 2px; font-family: var(--font-mono); }
.news-body h3 { font-size: 20px; color: var(--graphite); margin: 10px 0; }
.news-body p { color: var(--ink-soft); font-size: 15px; }
.news-body a { display: inline-block; margin-top: 14px; color: var(--teal-dark); font-weight: 700; text-decoration: none; font-family: var(--font-mono); }
.news-body a:hover { text-decoration: underline; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-box {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 4px;
    padding: 26px 30px;
    border-top: 4px solid var(--teal);
}
.contact-box .c-ico { font-size: 30px; }
.contact-box h3 { color: var(--graphite); margin: 8px 0 6px; }
.contact-box h3::before { content: "▣ "; color: var(--teal); }
.contact-box p { color: var(--ink-soft); font-size: 15px; font-family: var(--font-mono); }
.contact-form {
    background: #fff;
    border: 3px solid var(--line);
    border-radius: 6px;
    padding: 44px;
    position: relative;
}
.contact-form::before {
    content: "";
    position: absolute;
    top: 10px; left: 10px;
    width: 20px; height: 20px;
    border-top: 3px solid var(--teal);
    border-left: 3px solid var(--teal);
}
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; color: var(--graphite); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--line);
    border-radius: 3px;
    font-size: 15px;
    font-family: inherit;
    background: var(--paper);
    color: var(--ink);
    transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(77, 182, 172, 0.16);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group .error-msg { color: #d33; font-size: 13px; margin-top: 6px; display: none; }
.form-group.invalid input, .form-group.invalid textarea { border-color: #d33; }
.form-group.invalid .error-msg { display: block; }
.form-success {
    display: none;
    background: rgba(77, 182, 172, 0.12);
    border: 2px solid var(--teal);
    color: var(--graphite);
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 22px;
    font-weight: 700;
}
.map-placeholder {
    height: 320px;
    border-radius: 4px;
    background:
        repeating-linear-gradient(0deg, rgba(55, 71, 79, 0.07) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(55, 71, 79, 0.07) 0 1px, transparent 1px 34px),
        var(--blueprint);
    border: 2px dashed var(--line);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: 16px;
    margin-top: 50px;
}

/* ========== 滚动动画 ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--paper);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 6px;
        transition: right .45s var(--ease);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
    }
    .main-nav.open { right: 0; }
    .main-nav a { padding: 14px 20px; }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 30px; }
    .hero { padding-top: 130px; }
    .blueprint-canvas { max-width: 520px; margin: 0 auto; }
    .ethos-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px 240px; }
    .work-a { grid-column: span 2; }
    .product-list, .team-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-step::after { display: none; }
    .news-item { grid-template-columns: 1fr; }
    .contact-grid, .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .work-grid { grid-template-columns: 1fr; }
    .work-a, .work-d { grid-column: auto; }
    .process-steps { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
    .blueprint-canvas { padding: 50px 20px 40px; }
    .house-body { width: 200px; }
    .house-roof { left: -3px; border-left-width: 103px; border-right-width: 103px; }
    .house-roof::after { left: -93px; border-left-width: 93px; border-right-width: 93px; }
    .dim-h-a { display: none; }
}

/* ================================================================
   CMS / 可视化编辑器 辅助样式（gongfang 追加）
   ================================================================ */

/* fade-in 与 reveal 同款滚动显现动画（CMS 模板里两者通用） */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ========== 筛选标签（服务项目 / 分类过滤） ========== */
.cat-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.cat-tab {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--graphite);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 3px;
    padding: 10px 24px;
    cursor: pointer;
    transition: all .3s var(--ease);
}
.cat-tab:hover { border-color: var(--teal); color: var(--teal-dark); }
.cat-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 8px 20px rgba(77, 182, 172, 0.35);
}

/* ========== 首页数据统计带 ========== */
.stats-band { padding: 70px 0; }
.stats-band .about-stats { justify-content: center; }
.stats-band .about-stats li { min-width: 150px; }

/* ========== 首页动态（复用新闻行） ========== */
.home-news .news-list { max-width: none; }
.home-news .news-item a.title-link { color: var(--graphite); text-decoration: none; }
.home-news .news-item a.title-link:hover { color: var(--teal-dark); }

/* ========== 荣誉资质（关于页） ========== */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.honor-card {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s;
}
.honor-card:hover { transform: translateY(-10px); border-color: var(--teal); }
.honor-card .honor-img img { height: 190px; width: 100%; object-fit: cover; }
.honor-body { padding: 26px 26px 24px; }
.honor-body h3 { font-size: 19px; color: var(--graphite); margin-bottom: 10px; }
.honor-body p { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.honor-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--teal-dark);
    border: 1px solid var(--teal);
    border-radius: 2px;
    padding: 3px 14px;
}

/* ========== CMS 内容详情 ========== */
.cms-section { padding: 90px 0; }
.cms-detail { max-width: 900px; margin: 0 auto; }
.cms-detail > img { border-radius: 4px; margin: 0 auto 24px; max-width: 100%; height: auto; }
.cms-detail h1 { font-size: clamp(26px, 4vw, 38px); color: var(--graphite); margin: 10px 0 16px; }
.cms-detail .lead { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 20px; }
.news-date-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--teal-dark);
    border: 1px solid var(--teal);
    border-radius: 2px;
    padding: 4px 14px;
    margin-bottom: 10px;
}
.cms-back {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--teal-dark);
    text-decoration: none;
    margin-bottom: 22px;
}
.cms-back:hover { text-decoration: underline; }

.cms-content { color: var(--ink); line-height: 2; }
.cms-content h2 { font-size: 1.5rem; margin: 28px 0 14px; color: var(--graphite); }
.cms-content h3 { font-size: 1.25rem; margin: 22px 0 12px; color: var(--graphite); }
.cms-content p { margin-bottom: 16px; }
.cms-content ul, .cms-content ol { padding-left: 22px; margin-bottom: 16px; }
.cms-content ul { list-style: disc; }
.cms-content ol { list-style: decimal; }
.cms-content li { margin-bottom: 8px; }
.cms-content img { border-radius: 4px; }
.cms-content a { color: var(--teal-dark); }
.cms-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cms-content th, .cms-content td { border: 1px solid var(--line); padding: 10px 14px; }

/* 产品规格清单（产品详情） */
.spec-list { list-style: none; padding: 0; margin: 0 0 24px; }
.spec-list li {
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--ink-soft);
    padding: 10px 0;
    border-bottom: 2px dashed var(--line);
}
.spec-list li b { color: var(--teal-dark); }

/* ========== CMS 分页 ========== */
.cms-pager { padding: 30px 0 10px; text-align: center; }
.cms-pager .pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.cms-pager .page-link {
    font-family: var(--font-mono);
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    color: var(--graphite);
    font-size: 14px;
    transition: .3s;
    display: inline-block;
}
.cms-pager .page-link:hover { border-color: var(--teal); color: var(--teal-dark); }
.cms-pager .page-item.active .page-link { background: var(--teal); border-color: var(--teal); color: #fff; }
.cms-pager .page-item.disabled .page-link { opacity: .5; pointer-events: none; }

/* 表单提示 */
.form-alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.form-alert-err { background: rgba(221, 51, 51, .1); border: 2px solid #d33; color: #a52a2a; }
.form-alert-err ul { margin: 0; padding-left: 18px; }

/* ========== 返回顶部 ========== */
.back-top {
    position: fixed;
    right: 26px;
    bottom: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 3px;
    border: 2px solid var(--teal);
    cursor: pointer;
    background: #fff;
    color: var(--teal-dark);
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(55, 71, 79, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all .4s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }

/* 响应式：荣誉 / 统计 */
@media (max-width: 992px) {
    .honor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .honor-grid { grid-template-columns: 1fr; }
}

/* ===== CMS global link-color reset (fixes default blue/underline) ===== */
a:has(h1), a:has(h2), a:has(h3), a:has(h4), a:has(img),
a.logo, a.logo *, .logo, .logo *,
a.news-thumb, a.news-thumb *, a.prod-thumb, a.prod-thumb *,
a.img-wrap, a.img-wrap *, a.thumb, a.thumb *, a.cover, a.cover *,
a[style*='background-image'], a[style*='background'],
a.card, a.card *, a.work-card, a.work-card *, a.product-card, a.product-card *,
a.news-card, a.news-card *, a.news-item, a.news-item *, a.case-card, a.case-card *,
a.service-card, a.service-card *, a.svc-card, a.svc-card *, a.item-card, a.item-card * {
  color: inherit !important;
  text-decoration: none !important;
}
a:has(h1):hover, a:has(h2):hover, a:has(h3):hover, a:has(h4):hover,
a.logo:hover, .logo:hover, a.card:hover, a.card *:hover,
a.news-thumb:hover, a.prod-thumb:hover, a.work-card:hover, a.product-card:hover,
a.news-card:hover, a.news-item:hover, a.case-card:hover, a.service-card:hover { color: inherit !important; }
a.prod-img-link, a.prod-img-link *,
a.img-link, a.img-link *, a.thumb-link, a.thumb-link *,
a.cover-link, a.cover-link *, a.media-link, a.media-link *,
a[class*='-thumb'], a[class*='-img'], a[class*='-cover'],
a[class*='thumb-'], a[class*='img-'],
a.img-side, a.img-side *, a.pic, a.pic *, a.pic-link, a.pic-link * {
  color: inherit !important;
  text-decoration: none !important;
}
/* ===== CMS heading-link reset (anchor inside heading) ===== */
h1 a, h2 a, h3 a, h4 a, h5 a {
  color: inherit !important;
  text-decoration: none !important;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover { color: inherit !important; }
