/* ==========================================
   Home Designer US — 曹晓清室内设计 · 装修知识与咨询平台
   ========================================== */

:root {
    /* Quiet Luxury：象牙白 #F4F0E8 / 香槟米 #C8B8A0 / 古铜金 #8A745B / 石墨灰 #393A35 */
    --ink: #2a2a26;
    --ink-soft: #4f4d46;
    --muted: #7d776c;
    --line: #ddd4c5;
    --paper: #f4f0e8;
    --cream: #ebe5da;
    --sand: #e0d6c6;
    --accent: #8a745b;
    --accent-dark: #6e5b46;
    --accent-light: #c8b8a0;
    --green: #393a35;
    --dark-color: #393a35;
    --white: #ffffff;
    --accent-color: #c8b8a0;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(31, 28, 24, 0.08);
    --transition: all 0.3s ease;
    --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
    --serif-zh: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
    --sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); }
.lang-zh h1, .lang-zh h2, .lang-zh h3, .lang-zh h4 { font-family: var(--serif-zh); font-weight: 600; letter-spacing: 0.01em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--dark-color); color: #eae4da; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.eyebrow {
    display: inline-block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent-dark); font-weight: 600; margin-bottom: 12px;
}
.lang-zh .eyebrow { letter-spacing: 0.12em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
    border: 1px solid transparent; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(244, 240, 232, 0.96);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo a, .logo-link { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; transition: opacity 0.3s; }
.logo a:hover { opacity: 0.8; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; }
.logo-text small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; font-size: 0.93rem; color: var(--ink-soft); border-radius: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-dark); }
.nav-links a.active { font-weight: 600; }
.nav-mobile-only { display: none; }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 0.85rem; color: var(--muted); display: flex; gap: 4px; }
.lang-switch .current { color: var(--ink); font-weight: 600; }
.lang-switch a:hover { color: var(--accent-dark); }
.nav-cta { padding: 10px 20px; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumbs & heroes ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.page-hero { padding: 56px 0 44px; background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 14px; max-width: 900px; }
.page-hero .lead { max-width: 760px; }

.home-hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.home-hero-bg { position: absolute; inset: 0; }
.home-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,13,0.86) 0%, rgba(20,17,13,0.66) 55%, rgba(20,17,13,0.3) 100%); }
.home-hero .container { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 70px; }
.home-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 760px; margin-bottom: 18px; }
.home-hero .lead { color: rgba(255,255,255,0.88); max-width: 620px; margin-bottom: 28px; }
.home-hero .eyebrow { color: var(--accent-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-search { margin-top: 30px; max-width: 620px; }
.hero-search p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); font-size: 0.85rem; color: #fff; }
.chip:hover { background: rgba(255,255,255,0.15); }
.chip-dark { border-color: var(--line); color: var(--ink-soft); background: #fff; }
.chip-dark:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff; }

/* ---------- Stats / features ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 26px 22px; }
.stat strong { display: block; font-family: var(--serif-zh); font-variant-numeric: lining-nums; font-size: 2.2rem; color: var(--accent-dark); line-height: 1.1; }
.stat span { font-size: 0.9rem; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: var(--transition); }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .num { font-family: var(--serif); font-size: 1rem; color: var(--accent); font-weight: 600; letter-spacing: 0.1em; }
.feature h3 { font-size: 1.3rem; margin: 8px 0 10px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }
.feature .link { display: inline-block; margin-top: 14px; color: var(--accent-dark); font-weight: 600; font-size: 0.92rem; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.tool-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: var(--transition); }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tool-card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tool-card .icon svg { width: 22px; height: 22px; }
.tool-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tool-card p { font-size: 0.9rem; color: var(--muted); }
.section-dark .tool-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.section-dark .tool-card h3 { color: #fff; }
.section-dark .tool-card p { color: rgba(255,255,255,0.65); }
.section-dark .tool-card .icon { background: rgba(200,184,160,0.15); color: var(--accent-light); }

/* ---------- Split / designer ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.split p { color: var(--ink-soft); margin-bottom: 14px; }
.check-list { list-style: none; margin: 18px 0 24px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-soft); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 0.76rem; color: var(--accent-dark); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.card-more { margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--accent-dark); }

.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.92rem; }
.cat-nav a span { font-size: 0.78rem; color: var(--muted); background: var(--cream); border-radius: 999px; padding: 0 8px; }
.cat-nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.cat-block { margin-bottom: 60px; scroll-margin-top: 100px; }
.cat-block .section-head { margin-bottom: 24px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure { border-radius: 8px; overflow: hidden; background: var(--sand); }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption { font-size: 0.82rem; color: var(--muted); padding: 8px 10px; background: #fff; }
.project-block { margin-bottom: 64px; scroll-margin-top: 100px; }
.project-block .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }
.project-block .section-head a { font-weight: 600; color: var(--accent-dark); font-size: 0.92rem; white-space: nowrap; }

/* ---------- Article ---------- */
.article-hero { padding: 48px 0 36px; background: var(--cream); border-bottom: 1px solid var(--line); }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.article-meta { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.article-aside { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - 120px); overflow-y: auto; }
.aside-title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.toc { list-style: none; counter-reset: toc; border-left: 2px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 5px 0 5px 14px; font-size: 0.88rem; color: var(--ink-soft); margin-left: -2px; border-left: 2px solid transparent; line-height: 1.5; }
.toc a:hover, .toc a.active { color: var(--accent-dark); border-left-color: var(--accent); }
.aside-cta { background: var(--dark-color); color: #e9e3d8; border-radius: var(--radius); padding: 20px; }
.aside-cta .aside-title { color: var(--accent-light); }
.aside-cta p { font-size: 0.88rem; margin-bottom: 14px; }
.aside-phone { display: block; text-align: center; margin-top: 10px; font-size: 0.9rem; color: var(--accent-light); }
.aside-tools ul { list-style: none; }
.aside-tools a { display: block; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px dashed var(--line); }
.aside-tools a:hover { color: var(--accent-dark); }

.prose { font-size: 1.04rem; color: var(--ink-soft); max-width: 780px; }
.lang-zh .prose { font-size: 1.05rem; line-height: 1.95; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; padding-top: 0.4em; color: var(--ink); scroll-margin-top: 100px; }
.prose h3 { font-size: 1.25rem; margin-top: 1.7em; color: var(--ink); }
.prose a { color: var(--accent-dark); border-bottom: 1px solid var(--accent-light); }
.prose a:hover { border-bottom-color: var(--accent-dark); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-style: italic; }
.lang-zh .prose blockquote { font-family: var(--serif-zh); font-style: normal; font-size: 1.12rem; }
.prose code { background: var(--cream); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
.article-cover { margin: 0 0 2em !important; }
.article-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.prose th, .prose td, .data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .data-table th { background: var(--cream); color: var(--ink); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 18px 20px; }
.callout > * + * { margin-top: 0.6em; }
.callout-title { font-weight: 700; color: var(--ink); }
.callout-warn { border-left-color: #b5523b; background: #fdf7f4; }
.callout-pro { border-left-color: var(--green); background: #f4f7f5; }
.disclaimer { margin-top: 3em !important; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--accent); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary h3 { font-size: 1.08rem; font-family: var(--sans); font-weight: 600; margin: 0 !important; color: var(--ink); }
.faq-a { padding: 0 0 18px; color: var(--ink-soft); }
.faq-a > * + * { margin-top: 0.7em; }
.faq-a ul { padding-left: 1.3em; }
.faq-section { margin-bottom: 48px; scroll-margin-top: 100px; }
.faq-section > h2 { font-size: 1.5rem; margin-bottom: 8px; }
.faq-wrap { max-width: 900px; }
.filter-bar { margin-bottom: 26px; }
.filter-input { width: 100%; max-width: 560px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 1rem; }
.filter-input:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); }
.filter-empty { display: none; color: var(--muted); padding: 20px 0; }
.is-hidden { display: none !important; }

/* ---------- Glossary ---------- */
.gloss-group { margin-bottom: 44px; scroll-margin-top: 100px; }
.gloss-group h2 { font-size: 1.5rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.term dt { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.term dt span { font-weight: 500; color: var(--accent-dark); font-size: 0.88rem; margin-left: 6px; }
.term dd { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); background: #fff; }
.req { color: #b5523b; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 0.93rem; cursor: pointer; transition: var(--transition); text-align: center; }
.option input:checked + span { border-color: var(--accent); background: #f7f1e6; color: var(--accent-dark); font-weight: 600; }
.option input:focus-visible + span { outline: 2px solid var(--accent); }

.steps-head { display: flex; gap: 6px; margin-bottom: 26px; }
.steps-head span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps-head span.on { background: var(--accent); }
.step h2 { font-size: 1.4rem; margin-bottom: 6px; }
.step > p { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.step + .step { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.js .multi-step .step { display: none; margin-top: 0; padding-top: 0; border-top: 0; }
.js .multi-step .step.active { display: block; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .no-js-only { display: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.6rem; margin-bottom: 14px; }
.info-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-item strong { display: block; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.info-item a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Tools ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.tool-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.tool-panel h2 { font-size: 1.35rem; margin-bottom: 18px; }
.tool-result { background: var(--dark-color); color: #ebe5da; border-radius: 14px; padding: 30px; position: sticky; top: 100px; }
.tool-result h2 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.tool-result .big { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent-light); line-height: 1.15; margin: 10px 0 4px; font-weight: 600; }
.tool-result .sub { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.tool-result table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9rem; }
.tool-result td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tool-result td:last-child { text-align: right; color: #fff; white-space: nowrap; }
.tool-result .btn { margin-top: 22px; }
.bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent-light); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row output { min-width: 80px; text-align: right; font-weight: 600; color: var(--accent-dark); }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tool-tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 0.92rem; }
.tool-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.quiz-q { margin-bottom: 26px; }
.quiz-q h3 { font-size: 1.1rem; font-family: var(--sans); margin-bottom: 12px; }
.quiz-progress { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.style-result-card { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.style-result-card .txt { padding: 28px; }
.style-result-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.score-list { list-style: none; margin-top: 14px; }
.score-list li { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 0.88rem; margin-bottom: 6px; }
.score-list .bar { background: var(--sand); margin: 0; }
.score-list .bar i { background: var(--accent); }
.gantt { margin-top: 18px; }
.gantt-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; font-size: 0.85rem; margin-bottom: 8px; }
.gantt-track { position: relative; height: 22px; background: rgba(255,255,255,0.06); border-radius: 4px; }
.gantt-track i { position: absolute; top: 0; bottom: 0; background: var(--accent-light); border-radius: 4px; }
.gantt-row small { display: block; color: rgba(255,255,255,0.55); font-size: 0.76rem; }
.checklist-group { margin-bottom: 26px; }
.checklist-group h3 { font-size: 1.15rem; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; }
.checklist-group h3 small { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.check-item { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 8px; cursor: pointer; align-items: flex-start; }
.check-item input { margin-top: 5px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.check-item span { font-size: 0.94rem; color: var(--ink-soft); }
.check-item span b { color: var(--ink); }
.check-item.done span { color: var(--muted); text-decoration: line-through; }
.progress-big { height: 10px; background: rgba(255,255,255,0.12); border-radius: 5px; overflow: hidden; margin-top: 14px; }
.progress-big i { display: block; height: 100%; background: var(--accent-light); width: 0; transition: width 0.3s; }
.noscript-box { background: #fdf7f4; border: 1px solid #ecd2c6; border-radius: 8px; padding: 14px 16px; font-size: 0.92rem; margin-bottom: 20px; }

/* ---------- Style / space index blocks ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.palette { display: flex; gap: 6px; margin: 10px 0; }
.palette i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); }

.timeline-steps { counter-reset: step; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline-steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.timeline-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: 6px; }
.timeline-steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline-steps p { font-size: 0.9rem; color: var(--muted); }

.cred-list { list-style: none; }
.cred-list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cred-list .yr { font-family: var(--serif); color: var(--accent-dark); font-weight: 600; }
.cred-list strong { display: block; color: var(--ink); }
.cred-list span { color: var(--muted); font-size: 0.93rem; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.works-grid div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.works-grid strong { display: block; color: var(--ink); }
.works-grid span { font-size: 0.88rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #e6ece8; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band p { max-width: 640px; color: rgba(255,255,255,0.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- Footer ---------- */
footer { background: var(--dark-color); color: var(--white); padding: 3.5rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.15rem; }
.footer-section p, .footer-section a { color: rgba(255, 255, 255, 0.75); line-height: 1.8; font-size: 0.93rem; }
.footer-section a:hover { color: var(--accent-color); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small { color: rgba(255,255,255,0.6); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-bottom p { margin-bottom: 0.5rem; }
.footer-partner { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-partner a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
.footer-partner a:hover { color: var(--white); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 100px 0; }
.notfound h1 { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-links a { padding: 8px 8px; font-size: 0.88rem; }
    .lang-switch { display: none; }
}
@media (max-width: 960px) {
    .nav-links {
        position: fixed; top: 76px; left: 0; right: 0; height: calc(100dvh - 76px); background: var(--paper);
        flex-direction: column; padding: 16px 20px; gap: 0; overflow-y: auto;
        transform: translateX(100%); transition: transform 0.3s ease; visibility: hidden;
    }
    .nav-links.open { transform: none; visibility: visible; }
    .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-mobile-only { display: block; }
    .menu-toggle { display: block; }
    .nav-cta { display: none; }
    .lang-switch { display: flex; }
    .card-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-grid, .tool-layout { grid-template-columns: 1fr; gap: 32px; }
    .tool-result { position: static; }
    .article-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
    .article-aside { position: static; max-height: none; order: 2; margin-top: 48px; }
    .article-aside .toc-box { display: none; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .timeline-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .gallery-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
    .style-result-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .container { padding: 0 16px; }
    .nav { height: 66px; }
    .nav-links { top: 66px; height: calc(100dvh - 66px); }
    .logo-text strong { font-size: 1.1rem; }
    .logo-text small { font-size: 0.66rem; }
    .logo-mark { width: 34px; height: 34px; }
    .card-grid, .feature-grid, .glossary, .form-grid, .timeline-steps, .footer-content { grid-template-columns: 1fr; }
    .gallery-grid, .works-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .home-hero { min-height: 560px; }
    .form-card, .tool-panel, .tool-result { padding: 22px 18px; }
    .gantt-row { grid-template-columns: 100px 1fr; }
    .score-list li { grid-template-columns: 90px 1fr 36px; }
    .project-block .section-head { flex-direction: column; align-items: flex-start; }
    .cred-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media print {
    .site-header, footer, .cta-band, .article-aside, .tool-tabs, .no-print { display: none !important; }
    body { background: #fff; }
}

fieldset { border: 0; min-width: 0; }
.quiz-q { border: 0; }
[hidden] { display: none !important; }
.js .steps-head.js-only { display: flex; }
.option-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.option { display: flex; }
.option span { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; }

/* ---------- 第一期：精选作品 / 设计实验室 / 作品集 ---------- */
.feature-works { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 14px; }
.fw { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--sand); }
.fw-lg { grid-row: 1 / span 2; }
.fw img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.fw:hover img { transform: scale(1.04); }
.fw span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; color: #fff; font-family: var(--serif-zh); font-size: 1.15rem;
    background: linear-gradient(transparent, rgba(30,30,27,.72)); }
.fw span small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; opacity: .8; margin-bottom: 2px; }
.tool-card.is-soon { opacity: .75; border-style: dashed; }
.is-rendering { position: relative; }
.is-rendering::after { content: attr(data-badge); position: absolute; left: 10px; top: 10px; font-size: .68rem; letter-spacing: .08em;
    color: #fff; background: rgba(57,58,53,.6); padding: 2px 8px; border-radius: 2px; pointer-events: none; }
.gallery-grid img { cursor: zoom-in; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-chips button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .9rem; }
.filter-chips button.on { background: var(--dark-color); border-color: var(--dark-color); color: #fff; }
.project-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 22px; }
.project-meta div { border-top: 1px solid var(--line); padding-top: 10px; font-size: .92rem; color: var(--ink-soft); }
.project-meta strong { display: block; font-size: .72rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(28,28,25,.94); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox .lb-prev { left: 14px; right: auto; }
@media (max-width: 960px) {
    .feature-works { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
    .fw-lg { grid-column: 1 / span 2; grid-row: auto; }
    .project-meta { grid-template-columns: 1fr; gap: 8px; }
}
.section-dark .eyebrow { color: var(--accent-light); }
