/* ==========================================================================
   原屿创新科技（香港）有限公司 — Official Design System
   Image-Led Bioactive Habitat & Hardware Brand Design System
   ========================================================================== */

:root {
  --bg: #F5F3EF;
  --bg-elevated: #FFFFFF;
  --bg-sage: #EBEFE8;
  --bg-deep: #15221B;
  --bg-deep-soft: #1D2E25;

  --ink: #141E18;
  --ink-secondary: #485950;
  --ink-tertiary: #66776D;
  --ink-on-deep: #F4F5F1;
  --ink-on-deep-muted: #B0C0B6;

  --accent: #1F5C42;
  --accent-hover: #174632;
  --accent-sage: #7EC09C;
  --accent-soft: #E3EFE8;

  --border: rgba(20, 30, 24, 0.10);
  --border-strong: rgba(20, 30, 24, 0.20);
  --border-on-deep: rgba(244, 245, 241, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 32px rgba(20, 30, 24, 0.06);
  --shadow-pill: 0 8px 24px rgba(14, 24, 18, 0.18);

  --font-display: "Sora", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --container: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  caret-color: var(--accent);
}

::selection {
  background-color: rgba(31, 92, 66, 0.18);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(20, 30, 24, 0.22);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(20, 30, 24, 0.38); }

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Zero-FOUC Bilingual Switch */
html[data-lang="zh"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-zh { display: none !important; }
html:not([data-lang]) .lang-en { display: none; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ==========================================================================
   Sticky Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 239, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-tertiary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: rgba(20, 30, 24, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.lang-btn:hover { color: var(--ink); }

.lang-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 30, 24, 0.10);
}

.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-light {
  background: #FFFFFF;
  color: var(--ink);
}
.btn-light:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
  padding: 11px 20px;
  font-size: 14px;
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--ink);
}

/* ==========================================================================
   Full-Bleed Editorial Hero Banner
   ========================================================================== */
.hero-banner {
  position: relative;
  min-height: clamp(500px, 72vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 23, 17, 0.82) 0%, rgba(13, 23, 17, 0.48) 52%, rgba(13, 23, 17, 0.14) 100%),
    linear-gradient(180deg, rgba(13, 23, 17, 0.16) 0%, rgba(13, 23, 17, 0.66) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 72px;
  max-width: 680px;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 3.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 32px;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.65;
  color: rgba(244, 245, 241, 0.88);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   4-Column Quiet Utility Strip (Sage Tint)
   ========================================================================== */
.trust-strip {
  background: var(--bg-sage);
  border-bottom: 1px solid var(--border);
  padding-block: 36px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.trust-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.trust-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Section Base & Centered Editorial Headers
   ========================================================================== */
.section {
  padding-block: 84px;
}

.section-compact {
  padding-block: 68px;
}

.section-head-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.section-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-secondary);
}

/* ==========================================================================
   3-Column Habitat Photography Showcase Cards
   ========================================================================== */
.habitat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.photo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.photo-card:hover .photo-frame img,
.lifestyle-card:hover .lifestyle-frame img {
  transform: scale(1.035);
}

.floating-pill {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
}

.photo-caption {
  margin: 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-secondary);
  padding-inline: 8px;
}

/* ==========================================================================
   2-Column Wide Living Space Lifestyle Cards
   ========================================================================== */
.lifestyle-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.lifestyle-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-card);
}

.lifestyle-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

/* ==========================================================================
   Dark Forest-Green Brand Manifesto Band (Inspired by rthabitat)
   ========================================================================== */
.brand-band {
  position: relative;
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  padding-block: 96px;
  overflow: hidden;
}

.brand-band-arcs {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  pointer-events: none;
  opacity: 0.14;
}

.brand-band-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.brand-statement {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.brand-statement .highlight {
  color: var(--accent-sage);
  display: block;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-on-deep-muted);
  border-top: 1px solid var(--border-on-deep);
  padding-top: 18px;
}

.brand-prose p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-on-deep-muted);
}

.brand-prose p:first-child {
  color: var(--ink-on-deep);
}

.brand-prose p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Editorial Story Full-Width Framed Photo
   ========================================================================== */
.story-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 16 / 9;
  max-height: 580px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.story-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Minimal Email-Only Contact & Entity Band
   ========================================================================== */
.contact-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.contact-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.contact-panel p {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
  max-width: 48ch;
}

.email-box {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
}

.email-link {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.email-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.copy-btn {
  appearance: none;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out);
}
.copy-btn:hover { background: var(--accent); }

.entity-ledger {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.entity-row {
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}
.entity-row:first-child { padding-top: 0; }
.entity-row:last-child { border-bottom: 0; padding-bottom: 0; }

.entity-row dt {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: 3px;
}

.entity-row dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Subpages (Privacy, Support, Terms, 404)
   ========================================================================== */
.page-hero {
  padding-top: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.page-meta {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.doc-layout {
  padding-block: 52px 84px;
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.doc-content h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.doc-content h2:first-child { margin-top: 0; }

.doc-content p,
.doc-content li {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-secondary);
}

.doc-content ul { padding-left: 20px; margin: 10px 0 18px; }
.doc-content li { margin-bottom: 8px; }

.doc-aside {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 94px;
}

.doc-aside h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
}

.doc-aside p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.doc-aside p:last-child { margin-bottom: 0; }

.faq-list { border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }

.faq-body {
  padding: 0 0 22px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  padding-top: 60px;
  padding-bottom: 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.7fr));
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-on-deep);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-on-deep);
  margin-bottom: 10px;
}

.footer-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-on-deep-muted);
  max-width: 48ch;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-sage);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-on-deep-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}
.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-on-deep-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .habitat-grid-3 { grid-template-columns: 1fr; }
  .lifestyle-grid-2 { grid-template-columns: 1fr; }
  .brand-band-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-panel { grid-template-columns: 1fr; padding: 32px 28px; gap: 32px; }
  .entity-ledger { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .header-inner { height: 64px; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-card);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    font-size: 15.5px;
  }
  .site-nav a:first-child { border-top: 0; }

  .hero-banner { min-height: 520px; }
  .hero-inner { padding-top: 72px; padding-bottom: 52px; }
  .section { padding-block: 60px; }
  .brand-band { padding-block: 68px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .header-inner { gap: 10px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 14.5px; }
  .brand-sub { font-size: 10.5px; }
  .header-actions { gap: 8px; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .email-box { width: 100%; justify-content: space-between; padding: 8px 8px 8px 14px; }
  .email-link { font-size: 13.5px; }
}
