/* ArtCustom Studio — light luxury / artistic frontend */
:root {
  --ink: #2a2522;
  --ink-soft: #4a433e;
  --paper: #f7f3ef;
  --paper-2: #efe8e1;
  --surface: rgba(255, 252, 249, 0.92);
  --surface-solid: #fffdfb;
  --accent: #9a7d55;
  --accent-hover: #826744;
  --accent-2: #6e8b7a;
  --accent-soft: rgba(154, 125, 85, 0.14);
  --blush: #e9d5cb;
  --muted: #7a726b;
  --line: rgba(74, 67, 62, 0.12);
  --line-strong: rgba(74, 67, 62, 0.2);
  --danger: #b42318;
  --ok: #3d7a66;
  --shadow: 0 18px 48px rgba(42, 37, 34, 0.07);
  --shadow-sm: 0 6px 20px rgba(42, 37, 34, 0.05);
  --font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-body: "Manrope", "Noto Sans SC", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1140px;
  --header-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(920px 520px at 6% -10%, #f0e4da 0%, transparent 58%),
    radial-gradient(760px 460px at 96% 4%, #e7eee8 0%, transparent 52%),
    radial-gradient(640px 380px at 50% 100%, #efe6df 0%, transparent 55%),
    linear-gradient(180deg, #faf7f4 0%, var(--paper) 42%, #f3efe9 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-hover); }
.container { width: min(var(--max), calc(100% - 2.25rem)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px) saturate(1.15);
  background: rgba(250, 247, 244, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 0.75rem; padding: 0.85rem 0; min-height: var(--header-h);
  flex-wrap: nowrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; color: var(--ink);
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}
.brand:hover { color: var(--accent); }
.brand-icon { color: var(--accent); }
.nav {
  display: flex; flex-wrap: wrap; gap: 0.1rem 0.2rem; align-items: center;
  margin-left: auto; justify-content: flex-end;
}
.header-tools { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; margin-left: 0.35rem; }
.brand-icon, .nav a i, .footer-grid h4 i, .chat-head i, .btn i {
  width: 1.05em; height: 1.05em; stroke-width: 1.6;
}
.nav a {
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.7rem; border-radius: 999px;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.nav a:hover, .nav a.active {
  background: var(--accent-soft); color: var(--accent-hover);
}
.nav a i { width: 15px; height: 15px; opacity: 0.75; }
.nav-account {
  position: relative;
  width: 2.4rem; height: 2.4rem; padding: 0 !important;
  justify-content: center; border-radius: 999px !important;
  border: 1px solid var(--line); background: var(--surface-solid);
  margin-left: 0.25rem;
  box-shadow: var(--shadow-sm);
}
.nav-account i { width: 17px; height: 17px; opacity: 1; }
.nav-account:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.nav-account.is-member { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.nav-account-dot {
  position: absolute; top: 0.28rem; right: 0.28rem;
  width: 0.45rem; height: 0.45rem; border-radius: 999px;
  background: var(--accent-2); box-shadow: 0 0 0 2px #fff;
}
.menu-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface-solid);
  padding: 0.45rem 0.55rem; cursor: pointer; color: var(--ink);
  border-radius: var(--radius-sm);
}
.menu-toggle i { width: 20px; height: 20px; display: block; }

/* Language dropdown */
.lang-dd { position: relative; z-index: 40; }
.lang-dd-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2.3rem; padding: 0.35rem 0.75rem 0.35rem 0.65rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-solid); color: var(--ink);
  font: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lang-dd-btn:hover,
.lang-dd.is-open .lang-dd-btn {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lang-dd-btn i { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.lang-dd-caret { transition: transform .18s ease; color: var(--muted) !important; }
.lang-dd.is-open .lang-dd-caret { transform: rotate(180deg); }
.lang-dd-current { letter-spacing: 0.02em; line-height: 1; }
.lang-dd-menu {
  position: absolute; top: calc(100% + 0.45rem); right: 0;
  min-width: 11.5rem; padding: 0.4rem;
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.lang-dd-menu[hidden] { display: none !important; }
.lang-dd-item {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.65rem; border-radius: var(--radius-sm);
  color: var(--ink) !important; text-decoration: none !important;
  font-size: 0.88rem; line-height: 1.2;
  background: transparent !important;
}
.lang-dd-item:hover { background: var(--paper-2) !important; color: var(--accent) !important; }
.lang-dd-item.is-active {
  background: var(--accent-soft) !important;
  color: var(--accent-hover) !important; font-weight: 600;
}
.lang-dd-code {
  min-width: 2rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--muted);
}
.lang-dd-item.is-active .lang-dd-code { color: var(--accent); }
.lang-dd-name { flex: 1; }
.lang-dd-item i { width: 14px; height: 14px; margin-left: auto; color: var(--accent); }

body.lang-zh {
  font-family: "Noto Sans SC", "Manrope", sans-serif;
}
body.lang-zh .brand,
body.lang-zh .hero-brand,
body.lang-zh .hero h1,
body.lang-zh .section h2,
body.lang-zh .page-hero h1,
body.lang-zh .cat-block h3,
body.lang-zh .process-step strong,
body.lang-zh .masonry-meta h3,
body.lang-zh .blog-card h2,
body.lang-zh .prose h2,
body.lang-zh .footer-grid h4,
body.lang-zh .order-block legend,
body.lang-zh .account-orders-head h2,
body.lang-zh .uc-toolbar-text h2 {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
}

.panel-card {
  background: var(--surface-solid); border: 1px solid var(--line); padding: 1.35rem 1.45rem;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.panel-card h2 {
  margin: 0 0 0.65rem; font-size: 1.2rem; font-family: var(--font-display);
  display: flex; align-items: center; gap: 0.4rem; font-weight: 600;
}
.panel-card h2 i { width: 18px; height: 18px; color: var(--accent); }
.account-grid, .content-cards {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem;
}
.content-cards { grid-template-columns: 1fr; max-width: 720px; }
.account-hero-card {
  padding: 1.9rem 1.7rem 1.6rem;
  background:
    linear-gradient(145deg, rgba(154,125,85,.1), transparent 46%),
    linear-gradient(180deg, #fffdfb, #faf6f1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.account-hero-card h2 { margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); }
.account-hero-card .lead { margin: 0 0 1.15rem; color: var(--muted); line-height: 1.6; max-width: 34rem; }
.account-benefits {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  display: grid; gap: 0.5rem;
}
.account-benefits li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.92rem; color: var(--ink-soft); line-height: 1.45;
}
.account-benefits i { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }
.account-side-card {
  padding: 1.4rem 1.3rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.account-side-card h3 {
  margin: 0 0 0.45rem; font-size: 1.05rem; font-family: var(--font-display);
  display: flex; align-items: center; gap: 0.4rem;
}
.account-side-card .muted { margin: 0 0 0.85rem; font-size: 0.88rem; }
.process-detail .process-step span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.92rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; padding: 0.88rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.94rem;
  transition: transform .25s var(--ease), background .2s ease, box-shadow .25s var(--ease), border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(160deg, #a88960, var(--accent));
  color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: inherit; }
.btn-ghost:not(.hero .btn-ghost) {
  border-color: var(--line-strong); color: var(--ink);
  background: rgba(255,253,249,.6);
}
.btn-ghost:not(.hero .btn-ghost):hover { background: #fff; border-color: var(--accent); color: var(--accent); }
.btn-accent {
  background: linear-gradient(155deg, #7d9a89, var(--accent-2));
  color: #fff; box-shadow: var(--shadow-sm);
}
.btn-accent:hover { filter: brightness(1.04); color: #fff; }

/* Hero — left copy flush left / right painting mostly visible */
.hero {
  position: relative;
  min-height: min(56vh, 500px);
  display: block;
  overflow: hidden;
  border-bottom: 1px solid #1c1917;
  background: #0c0a09;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(
      90deg,
      #0c0a09 0%,
      #0c0a09 18%,
      rgba(12, 10, 9, 0.88) 28%,
      rgba(12, 10, 9, 0.45) 40%,
      rgba(12, 10, 9, 0.12) 52%,
      transparent 64%
    ),
    var(--hero-image, none) 78% 42% / cover no-repeat,
    #0c0a09;
  animation: heroKen 32s ease-in-out infinite alternate;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.22) 0%, transparent 22%, transparent 78%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
@keyframes heroKen {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}
.hero-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;          /* 垂直居中 */
  justify-content: flex-start;  /* 靠左 */
  min-height: min(56vh, 500px);
  padding-block: 2.4rem;
}
.hero-content {
  color: #f5f0e8;
  text-align: left;
  margin: 0;
  margin-right: auto;
  max-width: 26rem;
  width: 100%;
  padding: 0;
  animation: riseIn .95s var(--ease) both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-brand {
  font-family: var(--font-display); font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  margin: 0 0 0.4rem; color: #d4b896; letter-spacing: 0.02em; font-weight: 600;
  text-align: left;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15; margin: 0 0 0.85rem; font-weight: 600;
  max-width: 12ch; color: #faf7f2;
  text-align: left;
}
.hero-content > p {
  font-size: 1.02rem; color: #c8bfb2; margin: 0 0 1.35rem;
  max-width: 28rem; text-align: left; line-height: 1.55;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: flex-start;
}
.hero .btn-ghost {
  border-color: rgba(245, 240, 232, 0.35); color: #f5f0e8;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(245, 240, 232, 0.55);
  color: #fff;
}
.hero .btn-accent {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-soft {
  background: linear-gradient(180deg, rgba(255,253,249,.35), rgba(233,213,203,.18));
}
.section-band {
  background:
    linear-gradient(180deg, rgba(110,139,122,.06), rgba(154,125,85,.05));
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 1.75rem; }
.section h2 {
  font-family: var(--font-display); font-size: clamp(1.85rem, 3.1vw, 2.5rem);
  margin: 0 0 0.45rem; font-weight: 600; letter-spacing: 0.01em;
}
.section-lead { color: var(--muted); margin: 0; max-width: 36rem; font-size: 1.02rem; }
.faq-wrap { max-width: 720px; margin-inline: auto; }

.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.adv-item {
  padding: 1.25rem 1.15rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: riseIn .65s var(--ease) both;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.adv-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.adv-item:nth-child(2) { animation-delay: .08s; }
.adv-item:nth-child(3) { animation-delay: .16s; }
.adv-item:nth-child(4) { animation-delay: .24s; }
.adv-item .icon {
  width: 46px; height: 46px; margin-bottom: 0.9rem;
  background: linear-gradient(145deg, #f4ebe3, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid; place-items: center; color: var(--accent);
}
.adv-item .icon i { width: 20px; height: 20px; }
.adv-item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 650; }
.adv-item p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cat-block {
  padding: 1.15rem 1.1rem 1.2rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-block:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-block h3 {
  font-family: var(--font-display); margin: 0 0 0.95rem; font-size: 1.25rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.45rem;
}
.cat-block h3 i { width: 18px; height: 18px; color: var(--accent); }
.cat-thumbs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.45rem; }
.cat-thumbs a {
  aspect-ratio: 1; overflow: hidden; background: var(--paper-2);
  border-radius: 12px; border: 1px solid var(--line);
}
.cat-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.cat-thumbs a:hover img { transform: scale(1.07); }
.cat-more { margin: 0.85rem 0 0; }
.cat-more a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
}
.cat-more a i { width: 14px; height: 14px; }
.cat-more a:hover { color: var(--accent); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.process-step {
  padding: 1.4rem 1.15rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: riseIn .7s var(--ease) both;
}
.process-step::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px 0 0 3px;
}
.process-step:nth-child(2) { animation-delay: .1s; }
.process-step:nth-child(3) { animation-delay: .2s; }
.process-step:nth-child(4) { animation-delay: .3s; }
.process-step .step-icon {
  width: 42px; height: 42px; margin-bottom: 0.8rem;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: linear-gradient(145deg, #f6efe8, #fff);
  color: var(--accent); border-radius: 14px;
}
.process-step .step-icon i { width: 19px; height: 19px; }
.process-step strong { display: block; font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; }
.process-step span { color: var(--muted); font-size: 0.9rem; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review {
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
}
.review:hover { transform: translateY(-3px); }
.stars { display: flex; gap: 2px; margin-bottom: 0.55rem; color: var(--accent); }
.stars .star-fill { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; }
.review-photo {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0 0 0.75rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
}
.review p { margin: 0 0 0.75rem; font-size: 1.02rem; font-family: var(--font-display); line-height: 1.45; }
.review cite { color: var(--muted); font-style: normal; font-size: 0.88rem; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent); font-weight: 400; font-size: 1.3rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  background: var(--surface-solid); flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1.15rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 3.4rem 0 2.1rem; margin-top: 2rem;
  background:
    linear-gradient(180deg, #efe7df, #e8e0d7);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1.75rem; margin-bottom: 2rem; }
.footer-grid h4 { margin: 0 0 0.75rem; font-family: var(--font-display); display: flex; align-items: center; gap: 0.4rem; font-size: 1.15rem; }
.footer-grid p { color: var(--muted); font-size: 0.95rem; max-width: 32ch; }
.footer-grid a { display: block; color: var(--ink-soft); margin: 0.4rem 0; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--accent); }
.copy { color: var(--muted); font-size: 0.88rem; }

/* Gallery / filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; align-items: center; }
.filters select {
  width: auto; min-width: 8rem; border-radius: var(--radius-sm);
  background: var(--surface-solid);
}
.chip {
  border: 1px solid var(--line); background: var(--surface-solid); padding: 0.42rem 0.9rem;
  cursor: pointer; font: inherit; color: var(--ink); border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.chip i { width: 14px; height: 14px; }
.chip.active, .chip:hover {
  background: linear-gradient(145deg, #a88960, var(--accent));
  color: #fff; border-color: transparent;
}
.masonry { columns: 3 280px; column-gap: 1.1rem; }
.masonry-item {
  break-inside: avoid; margin-bottom: 1.1rem; position: relative;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.masonry-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.masonry-item img { width: 100%; cursor: zoom-in; }
.masonry-meta { padding: 0.85rem 1rem 1rem; }
.masonry-meta h3 { margin: 0; font-size: 1.08rem; font-family: var(--font-display); font-weight: 600; }
.masonry-meta .chip { margin-top: 0.55rem; box-shadow: none; }

/* Order wizard */
.wizard { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2rem; align-items: start; }
.wizard-panel {
  background: var(--surface-solid); border: 1px solid var(--line); padding: 1.55rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.steps-bar span {
  font-size: 0.75rem; padding: 0.32rem 0.6rem; border: 1px solid var(--line);
  color: var(--muted); border-radius: var(--radius-sm); background: var(--paper);
}
.steps-bar span.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.form-step { display: none; }
.form-step.active { display: block; animation: riseIn .35s var(--ease); }
label { display: block; font-weight: 600; margin: 0.75rem 0 0.35rem; }
input, select, textarea {
  width: 100%; padding: 0.78rem 0.9rem; border: 1px solid var(--line);
  background: #fffcf9; font: inherit; color: var(--ink);
  border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}
.estimate-box {
  position: sticky; top: 5.5rem;
  background: linear-gradient(160deg, #6e8b7a, #587566);
  color: #fff; padding: 1.55rem; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.estimate-box h3 { font-family: var(--font-display); margin: 0 0 0.5rem; font-size: 1.35rem; }
.estimate-total { font-size: 2.35rem; font-family: var(--font-display); margin: 0.5rem 0; font-weight: 600; letter-spacing: -0.02em; }
.estimate-box .muted { opacity: 0.85; font-size: 0.85rem; color: #eaf2ee; }
.estimate-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}
.estimate-split div {
  background: rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 0.65rem 0.75rem;
}
.estimate-split span { display: block; font-size: 0.75rem; opacity: .85; margin-bottom: 0.2rem; }
.estimate-split strong { font-size: 1.25rem; font-family: var(--font-display); }
.order-notice {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: #fbf4ec; border: 1px solid #edd8c0; color: #7a5230;
  padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.25rem;
}
.order-notice i { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.order-notice strong { display: block; margin-bottom: 0.25rem; }
.order-notice p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.order-notice-warn {
  background: #fef2f2; border-color: #fca5a5; color: #991b1b;
}
.order-simple-wrap { max-width: 720px; margin-inline: auto; }
.order-simple { display: grid; gap: 0; }
.order-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.4rem; margin: 0 0 1rem; background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.order-block legend {
  font-family: var(--font-display); font-size: 1.2rem; padding: 0 .35rem; font-weight: 600;
}
.size-cm-row {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
}
.size-cm-row input[type="number"] { max-width: 8rem; }
.size-x { font-weight: 600; opacity: .7; }
.size-unit { font-size: 0.95rem; color: var(--muted); }
.order-agree {
  background: rgba(154, 125, 85, 0.08); border-radius: var(--radius);
  padding: 1rem 1.15rem; margin: 0.5rem 0 1.25rem;
}
.order-agree-lead { margin: 0 0 0.85rem; font-size: 1.02rem; line-height: 1.55; font-weight: 500; }
.btn-block-order { width: 100%; justify-content: center; min-height: 3rem; font-size: 1.05rem; }
.order-card.is-rejected { border-color: #fca5a5; }
.reject-total-block span { color: #991b1b; }
.reject-xl { color: #b91c1c !important; }
.muted-price { font-size: 1.35rem !important; color: var(--muted) !important; font-weight: 500 !important; }
.reject-banner {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 1.15rem 1.25rem; margin: 0 0 1rem;
}
.reject-banner-title {
  margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 600; color: #991b1b;
}
.reject-banner-body {
  margin: 0; font-size: 1.05rem; line-height: 1.6; color: #7f1d1d;
}
.check-row-front {
  font-weight: 400 !important; display: flex !important; gap: .55rem;
  align-items: flex-start; margin-top: 1rem !important;
}
.check-row-front input { width: auto !important; margin-top: .2rem; }

/* Account order cards — unified hub */
.uc-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin: 0 0 1.25rem;
}
.uc-toolbar-text h2 {
  font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 0 0 0.35rem;
}
.uc-toolbar-text .muted { margin: 0; max-width: 36rem; }
.uc-cta {
  min-height: 3rem; padding: 0.75rem 1.35rem; font-size: 1.02rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0;
}
.uc-filters {
  display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 0 0 1.15rem;
}
.uc-filter {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font: inherit; font-size: 0.86rem; font-weight: 600; padding: 0.45rem 0.9rem;
  border-radius: 999px; cursor: pointer;
}
.uc-filter.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.uc-empty { margin-bottom: 2rem; }
.uc-filter-empty { text-align: center; margin: 0.5rem 0 1.5rem; }
.uc-profile-grid { margin-top: 2.5rem; }
.uc-quote-hint {
  margin: -0.35rem 0 1rem; font-size: 0.9rem; color: var(--muted); line-height: 1.5;
}
.uc-note { margin: 0 0 1rem; color: var(--ink-soft); }
.order-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.4rem; }
.uc-badge {
  display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 0.2rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.uc-badge-quote { background: #f4ebe3; border-color: #e0d1c2; color: #7a5c3a; }
.uc-badge-order { background: #eef4f0; border-color: #c5dfd2; color: #1f6b57; }
.uc-badge-status { background: #fff; }
.order-current-chip {
  display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap;
  margin: 0 0 1rem; padding: 0.75rem 0.95rem;
  background: linear-gradient(135deg, #f4ebe3, #eef4f0);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.order-current-label {
  font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.order-current-chip strong {
  font-size: clamp(1.15rem, 3.2vw, 1.45rem); font-family: var(--font-display);
  color: var(--accent-2); font-weight: 700;
}
.account-orders-head { margin: 2rem 0 1rem; }
.account-orders-head h2 {
  font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 0 0 0.35rem;
}
.order-card-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 0.5rem; }
.order-card {
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.5rem; box-shadow: var(--shadow-sm);
}
.order-card.is-cancelled { opacity: 0.72; }
.order-card.has-pay-focus { border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); }
.order-card-top {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 0.85rem;
}
.order-no { font-weight: 700; font-size: 1.08rem; letter-spacing: 0.02em; }
.order-total-block { text-align: right; min-width: 8.5rem; }
.order-total-block span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.15rem; font-weight: 600; }
.price-xl {
  font-family: var(--font-display); font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 650; color: var(--accent); letter-spacing: -0.02em; line-height: 1.05;
}
.price-lg {
  font-family: var(--font-display); font-size: clamp(1.55rem, 4vw, 1.85rem); font-weight: 650;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.1;
}
.order-progress { margin-bottom: 1.25rem; }
.order-progress-track {
  height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-bottom: 0.85rem;
}
.order-progress-track i {
  display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px; max-width: 100%;
}
.order-progress-steps {
  list-style: none; margin: 0; padding: 0.15rem 0 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.35rem;
}
.order-progress-steps li {
  text-align: center; font-size: 0.74rem; color: var(--muted); position: relative; padding-top: 1rem;
  line-height: 1.25;
}
.order-progress-steps li::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong);
}
.order-progress-steps li.done { color: var(--accent); font-weight: 600; }
.order-progress-steps li.done::before { background: var(--accent); }
.order-progress-steps li.current { color: var(--accent-2); font-weight: 700; }
.order-progress-steps li.current::before {
  width: 14px; height: 14px; top: -1px;
  background: var(--accent-2); box-shadow: 0 0 0 4px rgba(110,139,122,.22);
}
.order-progress-steps li.is-reject { color: #b91c1c; }
.order-progress-steps li.is-reject::before { background: #b91c1c; box-shadow: 0 0 0 4px rgba(185,28,28,.15); }
.order-money-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin-bottom: 1.15rem;
}
.money-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.05rem 1.1rem;
}
.money-tile.accent {
  background: linear-gradient(160deg, rgba(154,125,85,.1), rgba(110,139,122,.1));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.money-tile-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-bottom: 0.45rem;
}
.money-tag {
  display: inline-block; font-size: 0.92rem; font-weight: 800; color: var(--ink);
  letter-spacing: 0.02em;
}
.money-due-flag {
  font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--accent-2);
  padding: 0.18rem 0.5rem; border-radius: 999px; white-space: nowrap;
}
.money-tile.is-focus {
  border-color: var(--accent-2);
  background: linear-gradient(160deg, rgba(110,139,122,.16), rgba(154,125,85,.08));
  box-shadow: 0 0 0 3px rgba(110,139,122,.12);
}
.money-tile.is-focus .price-lg { color: var(--accent-2); font-size: clamp(1.7rem, 4.5vw, 2.05rem); }
.money-tile.is-deposit .money-tag { color: #7a5c3a; }
.money-tile.is-balance .money-tag { color: #1f6b57; }
.money-tile em { display: block; font-style: normal; font-size: 0.86rem; color: var(--muted); margin-top: 0.45rem; font-weight: 600; }
.money-tile em.ok { color: var(--ok); }
.money-tile em.due-em { color: #b45309; font-size: 0.95rem; font-weight: 800; }
.uc-ship { margin: 0 0 1.1rem; }
.uc-ship-toggle { width: 100%; justify-content: center; min-height: 2.85rem; font-weight: 700; }
.uc-ship-toggle.is-open { background: var(--ink); border-color: var(--ink); }
.uc-ship-panel {
  margin-top: 0.75rem; padding: 1rem 1.1rem;
  background: linear-gradient(160deg, #eef4f0, #f8f4f0);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.uc-ship-panel[hidden] { display: none !important; }
.uc-ship-row {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline;
  padding: 0.45rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 0.92rem;
}
.uc-ship-row:last-of-type { border-bottom: none; }
.uc-ship-row span { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.uc-ship-row strong { text-align: right; word-break: break-all; }
.uc-track-no { font-family: ui-monospace, monospace; font-size: 1.02rem; color: var(--accent-2); }
.uc-ship-ext { width: 100%; justify-content: center; margin-top: 0.85rem; min-height: 2.7rem; }

.order-card-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.order-card-actions .btn-pay { min-height: 2.75rem; font-size: 1rem; font-weight: 700; padding: 0.65rem 1.2rem; }
.empty-orders { text-align: center; padding: 2.5rem 1.5rem; }
.empty-orders .btn { margin-top: 1rem; }

@media (max-width: 900px) {
  .uc-toolbar { align-items: stretch; }
  .uc-cta { width: 100%; justify-content: center; }
  .order-money-grid { grid-template-columns: 1fr; }
  .order-total-block { text-align: left; width: 100%; }
  .order-total-block .price-xl { font-size: clamp(2.15rem, 9vw, 2.8rem); }
  .order-progress {
    margin-left: -0.25rem; margin-right: -0.25rem;
  }
  .order-progress-steps {
    display: flex; overflow-x: auto; gap: 0.15rem;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.35rem 0.55rem; scrollbar-width: none;
  }
  .order-progress-steps::-webkit-scrollbar { display: none; }
  .order-progress-steps li {
    flex: 0 0 4.6rem; scroll-snap-align: center; font-size: 0.78rem; padding-top: 1.15rem;
  }
  .order-progress-steps li.current {
    flex-basis: 5.4rem; font-size: 0.86rem;
  }
  .money-tile { padding: 1.15rem 1.2rem; }
  .money-tag { font-size: 1.05rem; }
  .money-tile.is-focus .price-lg { font-size: clamp(1.9rem, 8vw, 2.35rem); }
  .order-current-chip strong { font-size: 1.35rem; }
  .order-card-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 2.7rem; }
  .uc-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.15rem; scrollbar-width: none; }
  .uc-filters::-webkit-scrollbar { display: none; }
  .uc-filter { flex: 0 0 auto; }
}

@media (max-width: 800px) {
  .order-money-grid, .order-progress-steps { /* kept for legacy */ }
}
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
.preview-grid img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wizard-nav { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }

.timeline { display: flex; gap: 0; margin: 1.5rem 0; padding: 0; overflow-x: auto; }
.timeline li {
  flex: 1; list-style: none; text-align: center; font-size: 0.78rem; position: relative;
  color: var(--muted); min-width: 64px;
}
.timeline li::before {
  content: ''; display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--line-strong); margin: 0 auto 0.5rem;
}
.timeline li.done { color: var(--accent); }
.timeline li.done::before { background: var(--accent); }
.timeline li.current::before { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(110,139,122,.2); }
.timeline-icon { width: 16px; height: 16px; display: block; margin: 0 auto 0.35rem; }

.page-hero { padding: 2.85rem 0 1.1rem; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.95rem, 4vw, 2.85rem); margin: 0;
  display: flex; align-items: center; gap: 0.45rem; letter-spacing: 0.01em; font-weight: 600;
}
.page-hero h1 i { width: 0.88em; height: 0.88em; color: var(--accent); }
.page-hero .muted { margin-top: 0.55rem; max-width: 40rem; }

.alert {
  padding: 0.9rem 1.05rem; margin: 1rem 0; border: 1px solid var(--line);
  border-radius: var(--radius-sm); display: flex; gap: 0.5rem; align-items: flex-start;
}
.alert-error { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.alert-success { background: #eef7f2; border-color: #c5dfd2; color: var(--ok); }

/* Auth / account */
.auth-card { padding: 1.6rem 1.7rem; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0.25rem;
  background: #f4ebe3;
  border-radius: var(--radius-sm);
}
.auth-tab {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  color: var(--ink-soft);
  border-radius: calc(var(--radius-sm) - 2px);
}
.auth-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.auth-form label { display: block; margin: 0.85rem 0 0.35rem; font-weight: 600; font-size: 0.9rem; }
.auth-form input, .auth-form textarea {
  width: 100%; padding: 0.72rem 0.9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; background: #fffcf9;
}
.auth-switch { margin: 1.15rem 0 0; font-size: 0.9rem; text-align: center; }
.captcha-row {
  display: flex; gap: 0.65rem; align-items: stretch;
}
.captcha-row input { flex: 1; }
.captcha-img-btn {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  padding: 0; cursor: pointer; overflow: hidden; flex-shrink: 0;
  line-height: 0;
}
.captcha-img-btn img { display: block; width: 120px; height: 40px; }
.member-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.member-stats span { display: block; font-size: 0.8rem; margin-bottom: 0.25rem; }
.member-stats strong { font-size: 1.1rem; }
.table-responsive { overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.account-table th, .account-table td {
  padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left;
}
.account-table th { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 700px) {
  .member-stats { grid-template-columns: 1fr; }
}

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.blog-card {
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-cover { display: block; margin: -1.35rem -1.35rem 1rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.blog-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.5rem; font-weight: 600; }
.blog-card p { color: var(--muted); margin: 0 0 0.75rem; font-size: 0.95rem; }
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-family: var(--font-display); margin-top: 2rem; }
.prose p { color: var(--ink-soft); }

/* Order guidelines (接单须知) */
.how-wrap { max-width: 720px; margin-inline: auto; }
.how-hero h1 { margin-bottom: 0.75rem; }
.how-lead {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1.02rem;
  margin: 0 0 1.35rem;
}
.how-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 0; }
.how-toc {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.1rem;
  margin: 0 0 2.25rem;
}
.how-toc h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  font-weight: 600;
}
.how-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.how-toc a {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 6px;
  line-height: 1.45;
}
.how-toc a:hover { color: var(--accent); }
.how-toc a span {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 1.6rem;
  font-weight: 500;
}
.how-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.how-block:first-child { border-top: none; padding-top: 0; }
.how-num {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.how-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin: 0 0 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}
.how-body p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0 0 0.85rem;
  font-size: 1.01rem;
}
.how-body p:last-child { margin-bottom: 0; }
.how-footnote {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.65;
}
body.lang-zh .how-block h2,
body.lang-zh .how-toc h2 {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
}

/* Chat */
.chat-launcher {
  position: fixed; right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + var(--safe-bottom)); z-index: 50;
  min-width: 56px; height: 56px; padding: 0 1.05rem 0 0.9rem;
  border-radius: 999px; border: none;
  background: linear-gradient(145deg, #a88960, var(--accent));
  color: #fff; cursor: pointer;
  box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: inherit; font-weight: 600; font-size: 0.9rem;
  transition: transform .25s var(--ease), filter .2s ease;
}
.chat-launcher:hover { filter: brightness(1.05); transform: translateY(-2px); }
.chat-launcher i { width: 22px; height: 22px; flex-shrink: 0; }
.chat-launcher-label { white-space: nowrap; }
.chat-launcher.has-unread { position: relative; }
.chat-launcher.has-unread::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c45c4a;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(196, 92, 74, 0.35);
}
.chat-panel {
  position: fixed; right: max(1rem, env(safe-area-inset-right));
  bottom: calc(5.25rem + var(--safe-bottom)); z-index: 50;
  width: min(400px, calc(100vw - 1.5rem));
  height: min(560px, calc(100vh - 7.5rem - var(--safe-bottom)));
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--radius); display: none; flex-direction: column;
  box-shadow: var(--shadow); overflow: hidden;
}
.chat-panel.open { display: flex; animation: riseIn .28s var(--ease); }
.chat-head {
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #f3ebe3, #faf7f4);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.chat-head-meta { display: flex; align-items: center; gap: 0.65rem; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(145deg, #a88960, var(--accent)); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.chat-avatar i { width: 18px; height: 18px; }
.chat-head strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.chat-head small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.chat-head button {
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; padding: 0.35rem;
  border-radius: var(--radius-sm);
}
.chat-offline {
  padding: .85rem; background: #fbf4ec; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.chat-offline .btn { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; padding: .45rem .8rem; }
.chat-auth-nudge {
  display: none;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, #f4ebe3, #eef4f0);
  border-bottom: 1px solid var(--line);
  gap: 0.65rem;
  align-items: center;
}
.chat-auth-nudge.is-visible { display: flex; }
.chat-auth-nudge p {
  margin: 0; flex: 1; font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft);
}
.chat-auth-nudge .chat-login-actions { gap: 0.4rem; flex-shrink: 0; display: flex; flex-wrap: wrap; }
.chat-auth-nudge .btn { min-height: 2rem; padding: 0.35rem 0.7rem; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.chat-messages { flex: 1; overflow: auto; padding: 1rem; background: #f8f4f0; }
.chat-messages[hidden] { display: none !important; }
.chat-suggest[hidden],
.chat-quick[hidden],
.chat-input[hidden],
.chat-offline[hidden] { display: none !important; }
.bubble {
  max-width: 88%; padding: 0.72rem 0.92rem; margin-bottom: 0.65rem;
  font-size: 0.92rem; border: 1px solid var(--line); border-radius: 16px 16px 16px 6px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.bubble.user {
  margin-left: auto; background: #f0e7dc; border-color: #e0d1c2;
  border-radius: 16px 16px 6px 16px;
}
.bubble.admin {
  background: #ecfdf5; border-color: #a7f3d0;
}
.bubble.system {
  margin: 0.35rem auto 0.65rem;
  max-width: 95%;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  background: #f8fafc;
  border-style: dashed;
  border-radius: 999px;
  box-shadow: none;
}
.chat-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.45rem; padding: 0.45rem 0.75rem;
  background: var(--accent-2); color: #fff; border: none; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; border-radius: var(--radius-sm);
}
.chat-cta:hover { color: #fff; filter: brightness(1.05); }
.chat-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.5rem; }
.chat-style-card {
  border: 1px solid var(--line); background: #fff; padding: 0.35rem;
  text-decoration: none; color: var(--ink); font-size: 0.78rem; border-radius: var(--radius-sm);
}
.chat-style-card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 0.25rem; border-radius: 8px; }
.chat-type-picker {
  padding: 0.35rem 0.75rem 0.65rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-type-picker[hidden] { display: none !important; }
.chat-type-prompt {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
}
.chat-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chat-type-chip {
  border: 1px solid var(--line);
  background: #f8f4f0;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.chat-type-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f4ebe3;
}
.chat-quick {
  display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line); background: #fff;
}
.chat-quick button {
  border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 0.78rem;
  padding: 0.35rem 0.65rem; cursor: pointer; border-radius: var(--radius-sm); color: var(--ink-soft);
}
.chat-quick button:hover { border-color: var(--accent); color: var(--accent); background: #f4ebe3; }
.chat-quick button[data-human] {
  background: #fff; border-color: var(--accent); color: var(--accent); font-weight: 600;
}
.chat-suggest {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0 0.75rem; max-height: 100px; overflow: auto;
}
.chat-suggest button {
  text-align: left; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 0.8rem; padding: 0.35rem 0.55rem; cursor: pointer;
  border-radius: var(--radius-sm);
}
.chat-attach {
  display: grid; place-items: center; cursor: pointer; padding: 0 0.5rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: var(--radius-sm);
}
.chat-attach i { width: 18px; height: 18px; }
.chat-input {
  display: flex; gap: 0.35rem; padding: 0.75rem;
  border-top: 1px solid var(--line); background: #fff;
  padding-bottom: calc(0.75rem + var(--safe-bottom));
}
.chat-input input { flex: 1; background: var(--paper); }
.chat-input button {
  border: none; background: var(--accent); color: #fff; padding: 0 0.9rem; cursor: pointer;
  display: grid; place-items: center; border-radius: var(--radius-sm);
}
.chat-input button i { width: 18px; height: 18px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(42, 37, 34, .86); z-index: 60;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 90vw; border-radius: 12px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4);
  color: #fff; width: 44px; height: 44px; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
}
.lightbox .prev { left: 1rem; }
.lightbox .next { right: 1rem; }
.lightbox .close { top: 1rem; right: 1rem; }

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .advantages, .cat-grid, .process, .reviews, .footer-grid, .wizard, .account-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .brand { order: 1; }
  .header-tools { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; display: none; margin-left: 0; justify-content: stretch; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    background: rgba(250, 247, 244, 0.98); padding: 0.35rem 0 1rem;
    border-top: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .nav.open a {
    padding: 0.9rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 1rem;
    border-radius: 0;
  }
  .nav.open .nav-account {
    width: auto; height: auto; margin-left: 0;
    justify-content: flex-start; gap: 0.5rem;
    border: none; border-radius: 0 !important; padding: 0.9rem 0.4rem !important;
    background: transparent; box-shadow: none;
  }
  .nav.open .nav-account::after { content: attr(data-label); font-weight: 500; }
  .nav.open .nav-account-dot { display: none; }
  .menu-toggle { display: inline-flex; }
  .lang-dd-menu { right: 0; left: auto; }
  .menu-toggle { display: inline-flex !important; }
  .estimate-box { position: static; }
  .masonry { columns: 2 160px; }
  .hero { min-height: min(62vh, 460px); }
  .hero-shell {
    min-height: min(62vh, 460px);
    padding-block: 2rem;
    align-items: flex-end;
  }
  .hero-content { max-width: none; padding-bottom: 0.25rem; }
  .hero h1 { max-width: none; }
  .hero-media {
    background:
      linear-gradient(
        180deg,
        rgba(12, 10, 9, 0.55) 0%,
        rgba(12, 10, 9, 0.35) 40%,
        rgba(12, 10, 9, 0.82) 100%
      ),
      var(--hero-image, none) 60% 35% / cover no-repeat,
      #0c0a09;
  }
  .chat-launcher-label { display: none; }
  .chat-launcher { width: 56px; padding: 0; justify-content: center; }
  .chat-panel {
    right: 0.5rem; left: 0.5rem; width: auto;
    bottom: calc(4.75rem + var(--safe-bottom));
    height: min(70vh, calc(100vh - 6.5rem - var(--safe-bottom)));
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

@media (max-width: 560px) {
  .masonry { columns: 1; }
  .cat-thumbs { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.1rem 0; }
  .page-hero { padding: 2rem 0 0.75rem; }
  .timeline { gap: 0.25rem; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .container { width: min(var(--max), calc(100% - 1.25rem)); }
}
