/* 纽约华艺装修 HUA YI Construction — nyhyzx.com
   黑金配色取自公司名片。页面由 _build/build.py 生成。 */
:root {
    --ink: #16130f;
    --ink-2: #24201a;
    --gold: #c9a24a;
    --gold-d: #a8832f;
    --gold-l: #e8d4a0;
    --cream: #faf6ee;
    --paper: #ffffff;
    --line: #e7dfcf;
    --text: #2b2722;
    --muted: #6d655a;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(22, 19, 15, .08);
    --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.85; color: var(--text); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-d); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(860px, 100% - 32px); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 300; }
.skip-link:focus { left: 8px; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--ink); color: #d9cfbd; font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: var(--gold-l); }
.topbar span + span::before { content: "·"; margin: 0 .6em; color: #6d655a; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo a { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo svg { width: 46px; height: 46px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; }
.logo-sub { font-size: .72rem; letter-spacing: .14em; color: var(--gold-d); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button { font: inherit; font-size: .97rem; color: var(--ink); padding: 10px 12px; background: none; border: 0; cursor: pointer; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav .dd > button:hover, .nav > a.active, .nav .dd.active > button { color: var(--gold-d); }
.nav .dd { position: relative; }
.nav .dd > button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.dd-panel { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: none; z-index: 120; }
.dd-panel.wide { min-width: 460px; display: none; grid-template-columns: 1fr 1fr; }
.dd-panel a { display: block; padding: 7px 12px; color: var(--text); border-radius: 6px; font-size: .94rem; line-height: 1.5; }
.dd-panel a:hover { background: var(--cream); color: var(--gold-d); }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { display: block; }
.dd:hover .dd-panel.wide, .dd:focus-within .dd-panel.wide, .dd.open .dd-panel.wide { display: grid; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); transition: .25s; }
.menu-toggle span { top: 22px; }
.menu-toggle span::before { left: 0; top: -6px; }
.menu-toggle span::after { left: 0; top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; border: 2px solid var(--gold); transition: .2s; line-height: 1.3; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--gold-l); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--gold-l); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--gold-l); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero .container { position: relative; padding: 96px 0 88px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.12rem; max-width: 720px; color: #eee5d4; }
.eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .18em; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 28px; padding: 0; list-style: none; color: #f3ead8; font-size: .97rem; }
.hero-badges li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 6px; }
.page-hero { background: var(--ink); color: #eee5d4; position: relative; overflow: hidden; }
.page-hero .hero-bg img { opacity: .3; }
.page-hero .container { position: relative; padding: 58px 0 52px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { max-width: 760px; font-size: 1.06rem; margin: 0 0 20px; }
.crumbs { font-size: .86rem; margin-bottom: 14px; color: #b9ae9a; }
.crumbs a { color: var(--gold-l); }
.crumbs span { margin: 0 6px; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--ink); color: #e5dccb; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }
.section.dark .section-head p { color: #c6bba7; }
.kicker { color: var(--gold-d); font-weight: 700; letter-spacing: .14em; font-size: .82rem; display: block; margin-bottom: 8px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body h3 a { color: var(--ink); }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.more { font-weight: 700; color: var(--gold-d); font-size: .94rem; }
.more::after { content: " →"; }

.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.section.dark .feature { background: var(--ink-2); border-color: #3a342b; }
.section.dark .feature p { color: #c6bba7; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #3a342b; border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--ink-2); padding: 26px 18px; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1.2; }
.stats span { color: #c6bba7; font-size: .92rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 5px var(--gold-l); }

.scope { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scope div { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px 18px; }
.scope h3 { font-size: 1.05rem; margin-bottom: .3em; }
.scope p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 1.7rem; color: var(--gold); font-weight: 700; display: block; line-height: 1.2; margin-bottom: 6px; }
.steps h3 { font-size: 1.08rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; background: var(--paper); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figcaption { font-size: .85rem; padding: 8px 10px; color: var(--muted); line-height: 1.5; }
.gallery.g3c { grid-template-columns: repeat(3, 1fr); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li, .tags a { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .92rem; color: var(--text); }
.tags a:hover { border-color: var(--gold); color: var(--gold-d); }

.facts { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts th, .facts td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 30%; background: #f4eee2; font-weight: 700; color: var(--ink); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

.note { background: #fff8e6; border: 1px solid var(--gold-l); border-radius: 8px; padding: 16px 18px; font-size: .95rem; }

/* ---------- prose ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: -.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; background: var(--paper); font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: #f4eee2; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; }
.toc strong { display: block; margin-bottom: 6px; font-family: var(--serif); }
.toc ol { margin: 0; }
.article-meta { color: #b9ae9a; font-size: .9rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.aside-box.dark { background: var(--ink); color: #e5dccb; border-color: var(--ink); }
.aside-box.dark h3 { color: #fff; }
.aside-box.dark a:not(.btn) { color: var(--gold-l); }
.aside-box h3 { font-size: 1.05rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { border-bottom: 1px dashed var(--line); }
.aside-box li:last-child { border: 0; }
.aside-box li a { display: block; padding: 7px 0; color: var(--text); font-size: .95rem; }
.aside-box li a:hover, .aside-box li a.active { color: var(--gold-d); }

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--ink); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--gold-d); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 16px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #e5dccb; border-radius: 14px; padding: 42px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 2px solid rgba(201,162,74,.25); border-radius: 50%; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; }
.cta .phone-big { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); font-weight: 700; }
.cta-wrap { padding: 0 0 76px; }
.section.alt + .cta-wrap, .cta-wrap.alt { background: var(--paper); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #d6cbb6; border-radius: 8px; background: #fffdf8; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-l); border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--muted); margin: 12px 0 0; }
.info-card { background: var(--ink); color: #e5dccb; border-radius: 14px; padding: 28px; }
.info-card h2 { color: #fff; font-size: 1.4rem; }
.info-card dl { margin: 0; }
.info-card dt { color: var(--gold); font-size: .82rem; letter-spacing: .14em; font-weight: 700; margin-top: 16px; }
.info-card dd { margin: 4px 0 0; font-size: 1.08rem; }
.info-card a { color: #fff; }
.qr { display: flex; gap: 16px; align-items: center; margin-top: 22px; background: #fff; border-radius: 10px; padding: 12px; color: var(--text); }
.qr img { width: 120px; height: 120px; flex: none; }
.qr p { margin: 0; font-size: .92rem; }

/* ---------- footer ---------- */
footer { background: #0f0d0a; color: #b9ae9a; font-size: .94rem; }
footer .footer-content { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 60px 0 40px; }
footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
footer a { color: #d9cfbd; }
footer a:hover { color: var(--gold); }
footer p { margin: 0 0 8px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 14px; }
.footer-logo svg { width: 42px; height: 42px; }
.footer-bottom { border-top: 1px solid #2c2720; padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-partner { text-align: right; }
.mobile-bar { display: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .nav > a, .nav .dd > button { padding: 10px 8px; font-size: .93rem; }
}
@media (max-width: 1000px) {
    .menu-toggle { display: block; }
    .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); height: 100vh; height: 100dvh; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 84px 22px 30px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 110; }
    .nav-open .nav { transform: none; visibility: visible; transition: transform .3s ease; }
    body.nav-open { overflow: hidden; }
    .menu-toggle { z-index: 130; }
    .nav > a, .nav .dd > button { width: 100%; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
    .dd-panel, .dd-panel.wide { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 10px; min-width: 0; display: none; grid-template-columns: 1fr; }
    .dd:hover .dd-panel, .dd:hover .dd-panel.wide, .dd:focus-within .dd-panel, .dd:focus-within .dd-panel.wide { display: none; }
    .dd.open .dd-panel, .dd.open .dd-panel.wide { display: grid; }
    .nav .btn { margin: 18px 0 0; }
    .g4, .gallery { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .layout { grid-template-columns: 1fr; }
    .aside { position: static; }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    body { font-size: 15.5px; padding-bottom: 62px; }
    .topbar .tb-extra { display: none; }
    .section { padding: 54px 0; }
    .cta-wrap { padding-bottom: 54px; }
    .hero .container { padding: 64px 0 60px; }
    .g2, .g3, .g4, .split, .contact-grid, .scope, .steps { grid-template-columns: 1fr; }
    .split.rev > :first-child { order: 0; }
    .gallery, .gallery.g3c { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .cta { grid-template-columns: 1fr; padding: 30px 22px; }
    footer .footer-content { grid-template-columns: 1fr; gap: 26px; }
    .footer-partner { text-align: left; }
    .facts th { width: 36%; }
    .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; }
    .mobile-bar a { padding: 15px 8px; text-align: center; font-weight: 700; background: var(--gold); color: var(--ink); }
    .mobile-bar a + a { background: var(--ink); color: var(--gold-l); }
    .logo-name { font-size: 1.12rem; }
    .logo svg { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
