:root {
    --bg: #F3EEE4;
    --surface: #FBF7F0;
    --ink: #241C16;
    --muted: #5C5146;
    --line: #D5CBBC;
    --navy: #241C16;
    --blue: #8C3A2F;
    --blue-deep: #6F2E25;
    --soft: #E7DFD1;
    --header: 64px;
    --radius: 0;
    --shadow: none;
    --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
}
h1, h2, h3, .brand span { font-family: var(--serif); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, a, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 20;
    background: var(--ink); color: var(--surface); padding: 8px 12px;
}
.skip-link:focus { top: 8px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.section { scroll-margin-top: calc(var(--header) + 16px); padding: 64px 0; }
.section-muted { background: var(--soft); }
.section-head { max-width: 34rem; margin-bottom: 28px; }
.section-head h2, .page-head h1, .error-page h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.3; letter-spacing: 0; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.eyebrow i { display: none; }
.lead, .section-head p, .page-head p { color: var(--muted); }
.center { margin-top: 28px; }
.narrow { width: min(680px, calc(100% - 40px)); }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--bg); border-bottom: 1px solid var(--ink);
}
.site-header .wrap { position: relative; }
.nav { min-height: var(--header); display: flex; align-items: center; gap: 20px; }
.brand {
    display: flex; align-items: center; flex-shrink: 0;
    color: var(--ink); text-decoration: none; white-space: nowrap;
    font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1;
}
.brand span { margin: 0; line-height: 1; }
.brand i { display: none; }
.nav-panel { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle {
    display: none; margin-left: auto; width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1px solid var(--ink); background: transparent; color: var(--ink);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 16px; border: 1px solid var(--ink);
    font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
    background: transparent; color: var(--ink);
}
.btn i { display: none; }
.btn-cta { background: var(--ink); color: var(--surface); }
.btn-cta:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--surface); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--surface); }
.contact-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.widget-cta .contact-actions { width: 100%; }

.hero { padding: 48px 0 36px; background: transparent; }
.hero-grid, .about-grid, .layout, .closing-inner { display: grid; gap: 36px; align-items: start; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.2; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.metrics { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 8px 0 0; }
.metrics div { padding: 0; background: none; border: 0; }
.metrics dt { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.metrics dd { margin: 0; color: var(--muted); font-size: 14px; }
.certificate { background: var(--surface); border: 1px solid var(--ink); padding: 8px; }
.certificate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.certificate-empty { min-height: 220px; display: grid; place-items: center; margin: 0; color: var(--muted); }

.service-grid, .sample-grid, .process-grid, .news-grid, .related-grid { display: grid; gap: 0; }
.service-grid { counter-reset: svc; }
.service-card, .widget, .post-card {
    background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0;
}
.service-card { padding: 18px 8px 18px 0; }
.service-card h3 { display: block; margin: 0 0 6px; font-size: 1.15rem; }
.service-card h3::before {
    content: counter(svc, decimal-leading-zero);
    counter-increment: svc;
    display: block; margin-bottom: 4px;
    font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted);
}
.service-card i { display: none; }
.service-card p, .news-body p { margin: 0; color: var(--muted); }
.sample-grid { gap: 12px; }
.sample-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin: 0; }
.sample-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sample-card:hover img { transform: none; }
.about-photo { margin: 0; border: 1px solid var(--ink); overflow: hidden; background: var(--surface); }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.check-list li::before { content: "— "; color: var(--muted); }
.process-grid { list-style: none; margin: 0; padding: 0; }
.process-grid li { background: transparent; border: 0; border-top: 1px solid var(--line); padding: 16px 0; }
.process-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.process-grid h3, .news-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.process-grid p { margin: 0; color: var(--muted); }
.faq-list details { background: transparent; border: 0; border-top: 1px solid var(--line); padding: 0; margin: 0; }
.faq-list summary { min-height: 48px; display: flex; align-items: center; font-family: var(--serif); font-size: 1.05rem; }
.faq-list p { color: var(--muted); margin-top: 0; }
.news-card { overflow: visible; border-top: 1px solid var(--line); background: transparent; }
.news-body { padding: 14px 0 18px; }
.thumb { display: block; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.meta, .count { color: var(--muted); font-size: 14px; }
.meta a { margin-left: 12px; }
.closing { background: transparent; color: var(--ink); padding: 28px 0 56px; border-top: 1px solid var(--ink); }
.closing p { color: var(--muted); margin: 8px 0 0; }
.closing h2 { margin: 0; font-size: 1.6rem; }

.site-footer { background: var(--bg); color: var(--ink); padding: 36px 0 20px; border-top: 3px double var(--ink); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2, .site-footer h3 { color: var(--ink); margin: 0 0 10px; }
.site-footer h2 i, .promise-list i { display: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.footer-grid, .link-row { display: grid; gap: 24px; }
.link-row { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.link-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legal { color: var(--muted); font-size: 13px; }
.crumbs { padding-top: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.layout { align-items: start; padding: 20px 0 64px; }
.layout > article, .layout > div { min-width: 0; width: 100%; }
.page-head { margin-bottom: 20px; }
.guide {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin: 0 0 20px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line);
}
.guide p { margin: 0; color: var(--muted); }
.prose { width: 100%; max-width: 42rem; min-width: 0; }
.prose h2, .prose h3 { font-family: var(--serif); }
.prose img, .prose video, .prose iframe, .prose table, .prose pre { max-width: 100%; }
.share-bar, .post-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.post-nav a, .post-nav .is-empty {
    flex: 1 1 220px; display: grid; gap: 4px; padding: 14px 0; border: 0; border-top: 1px solid var(--line);
    background: transparent; text-decoration: none; color: var(--ink);
}
.post-nav span { color: var(--muted); font-size: 14px; }
.related { margin-top: 32px; }
.related a { display: grid; gap: 6px; padding: 14px 0; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); background: transparent; }
.sidebar { display: grid; gap: 28px; }
.widget { padding: 0 0 8px; }
.widget h2 { margin: 0 0 8px; font-size: 1.05rem; }
.widget-cta { background: transparent; color: var(--ink); border-color: var(--line); }
.widget-cta p { color: var(--muted); }
.widget-cta .btn { width: auto; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.cat-list .is-current a { color: var(--blue-deep); font-weight: 700; }
.post-card { display: block; padding: 16px 0; margin: 0; }
.post-card h2 { margin: 0 0 6px; font-size: 1.25rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.more { font-weight: 600; }
.empty, .error-page { padding: 48px 0; }
.error-code { margin: 0; font-family: var(--serif); font-size: 3.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; }
.page-item.active .page-link { background: var(--ink); color: var(--surface); border-color: var(--ink); }

#chat-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translateX(-50%) translateY(12px);
    opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
}
#chat-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.chat-toast-inner { background: var(--ink); color: var(--surface); padding: 12px 16px; }
.chat-toast-inner strong { color: #E7C7C1; }

@media (min-width: 800px) {
    .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: end; }
    .about-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
    .service-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
    .process-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
    .sample-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .sample-grid .sample-card:first-child { grid-row: span 2; }
    .sample-grid .sample-card:first-child img { height: 100%; aspect-ratio: auto; object-fit: cover; }
    .news-grid { grid-template-columns: 1fr 1fr; column-gap: 36px; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
    .layout { grid-template-columns: minmax(0, 1fr) 260px; }
    .post-card:has(.thumb) { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
    .closing-inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 1099px) {
    .nav-toggle { display: inline-flex; }
    .nav-panel {
        display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
        flex-direction: column; align-items: stretch; margin-left: 0;
        background: var(--bg); border-bottom: 1px solid var(--ink); padding: 8px 16px 16px;
    }
    .nav-panel.is-open { display: flex; }
    .nav-list { flex-direction: column; width: 100%; }
    .nav-list a { width: 100%; }
    .nav-cta { width: 100%; }
    .nav-cta.contact-actions { flex-direction: column; align-items: stretch; }
    .nav-cta.contact-actions .btn { width: 100%; }
}
@media (max-width: 799px) {
    .guide { align-items: stretch; flex-direction: column; }
    .check-list { grid-template-columns: 1fr; }
    .sample-grid .sample-card:first-child { grid-row: auto; }
    .sample-grid .sample-card:first-child img { aspect-ratio: 4 / 3; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
