:root {
  --navy-950: #07111f;
  --navy-900: #0b192b;
  --navy-800: #132943;
  --ink: #17202c;
  --muted: #647080;
  --warm: #f5f2eb;
  --paper: #fffdf9;
  --gold: #b99a62;
  --gold-light: #ddc798;
  --line: rgba(20, 40, 65, 0.14);
  --shadow: 0 24px 70px rgba(8, 20, 36, 0.12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: -80px;
  left: 1rem;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--navy-950);
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  background: rgba(7,17,31,.95);
  backdrop-filter: blur(16px);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 2rem));
  min-height: 84px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  text-decoration: none;
  white-space: nowrap;
}
.richspace-wordmark {
  display: inline-flex;
  align-items: baseline;
  padding: .42rem .65rem .46rem;
  border-radius: 8px;
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}
.richspace-wordmark span:nth-child(1) { color: #ed1c24; }
.richspace-wordmark span:nth-child(2),
.richspace-wordmark span:nth-child(9) { color: #42b7e9; }
.richspace-wordmark span:nth-child(3) { color: #ff9452; }
.richspace-wordmark span:nth-child(4),
.richspace-wordmark span:nth-child(5),
.richspace-wordmark span:nth-child(6),
.richspace-wordmark span:nth-child(7),
.richspace-wordmark span:nth-child(8) { color: #06265c; }
.brand-sub {
  display: block;
  color: #d4dae1;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  color: #eef2f6;
  font-size: .93rem;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-light); }
.nav-cta {
  padding: .55rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.3rem;
}
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,17,31,.95) 0%, rgba(7,17,31,.78) 48%, rgba(7,17,31,.30) 100%),
    url("../images/meeting-room-view.jpg") center 58% / cover no-repeat;
}
.hero::after {
  position: absolute;
  right: -10vw;
  bottom: -45%;
  width: 55vw;
  height: 55vw;
  border: 1px solid rgba(221,199,152,.18);
  border-radius: 50%;
  content: "";
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.25; }
h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: .02em;
}
.hero-copy { max-width: 650px; margin: 0; color: #cbd3dd; font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.button-primary { color: var(--navy-950); background: var(--gold-light); }
.button-secondary { border-color: rgba(255,255,255,.4); color: #fff; }
.button-dark { color: #fff; background: var(--navy-900); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-white { background: var(--paper); }
.shell { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading h2, .page-card h2 {
  color: var(--navy-900);
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
}
.section-heading p { color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
.services { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.76);
}
.card-number { color: var(--gold); font: 700 .8rem/1 Georgia, serif; letter-spacing: .15em; }
.card h3 { margin: 1.25rem 0 .7rem; color: var(--navy-900); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.audiences { grid-template-columns: repeat(2, 1fr); }
.audience {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.audience h3 { margin-bottom: .35rem; color: var(--navy-800); }
.audience p { margin: 0; color: var(--muted); }
.location-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}
.location-copy { padding: clamp(2rem, 5vw, 4rem); }
.location-copy h2 { font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
.location-list { padding: 0; list-style: none; }
.location-list li { margin: .75rem 0; color: #dbe1e8; }
.location-list a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .25em; }
.location-accent {
  min-height: 330px;
  background: url("../images/entrance-address.jpg") center / cover no-repeat;
}
.gallery {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 270px 270px;
  gap: 1rem;
}
.gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--navy-900); }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(7,17,31,.76);
  font-size: .8rem;
  backdrop-filter: blur(8px);
}
.faq-list { display: grid; gap: .75rem; }
details {
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
summary { cursor: pointer; color: var(--navy-900); font-weight: 700; }
details p { margin: .75rem 0 0; color: var(--muted); }
.page-hero { padding: 5rem 0 4rem; color: #fff; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero p { max-width: 680px; color: #cbd3dd; }
.page-card { padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.prose p, .prose li { color: #4f5b69; }
.prose ul { padding-left: 1.25rem; }
.article-list { display: grid; gap: 1rem; }
.article-item { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.article-item h2 { margin-bottom: .45rem; font-size: 1.3rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-item { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; }
.contact-item small { display: block; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.contact-item a, .contact-item span { color: var(--navy-900); font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: .25em; }
.site-footer { padding: 4rem 0 2rem; color: #c7d0da; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2 { font-family: Georgia, "Noto Serif TC", serif; font-weight: 500; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #c7d0da; text-decoration-color: var(--gold); text-underline-offset: .25em; }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #8f9aa8; font-size: .85rem; }
.xiaorui-widget {
  position: fixed;
  z-index: 80;
  right: clamp(1rem, 3vw, 2.25rem);
  bottom: clamp(1rem, 3vw, 2rem);
}
.xiaorui-launcher {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 172px;
  min-height: 62px;
  padding: .55rem 1.1rem .55rem 4.5rem;
  border: 1px solid rgba(221,199,152,.75);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  box-shadow: 0 16px 44px rgba(7,17,31,.28);
  cursor: pointer;
}
.xiaorui-launcher > img {
  position: absolute;
  bottom: 0;
  left: -.55rem;
  width: 78px;
  height: 98px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 10px rgba(4,13,25,.26));
  pointer-events: none;
}
.xiaorui-launch-copy { display: grid; text-align: left; line-height: 1.2; }
.xiaorui-launch-copy strong { color: var(--gold-light); font-size: .78rem; letter-spacing: .12em; }
.xiaorui-launch-copy span { margin-top: .2rem; font-size: 1rem; font-weight: 700; }
.xiaorui-panel {
  position: absolute;
  right: 0;
  bottom: 5.25rem;
  display: flex;
  width: min(400px, calc(100vw - 2rem));
  max-height: min(650px, calc(100vh - 7.5rem));
  overflow: hidden;
  border: 1px solid rgba(20,40,65,.16);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(7,17,31,.26);
  flex-direction: column;
}
.xiaorui-panel[hidden] { display: none; }
.xiaorui-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  color: #fff;
  background: var(--navy-900);
}
.xiaorui-panel-header span { display: grid; }
.xiaorui-panel-header strong { color: var(--gold-light); }
.xiaorui-panel-header small { color: #cbd3dd; }
.xiaorui-panel-header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 1.4rem;
  cursor: pointer;
}
.xiaorui-conversation {
  display: flex;
  min-height: 0;
  padding: 1rem;
  flex: 1;
  flex-direction: column;
}
.xiaorui-status {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: .45rem;
  min-height: 30px;
  padding: .25rem .7rem;
  border-radius: 999px;
  color: #516071;
  background: #edf1f5;
  font-size: .78rem;
  font-weight: 700;
}
.xiaorui-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8290a0;
}
.xiaorui-status[data-state="connecting"] .xiaorui-status-dot,
.xiaorui-status[data-state="processing"] .xiaorui-status-dot { background: var(--gold); animation: xiaorui-pulse 1.25s ease-in-out infinite; }
.xiaorui-status[data-state="ready"] .xiaorui-status-dot { background: #2d9567; }
.xiaorui-status[data-state="recording"] .xiaorui-status-dot { background: #c64242; animation: xiaorui-pulse .8s ease-in-out infinite; }
.xiaorui-status[data-state="playing"] .xiaorui-status-dot { background: #397db6; animation: xiaorui-pulse 1s ease-in-out infinite; }
.xiaorui-status[data-state="error"] .xiaorui-status-dot { background: #c64242; }
.xiaorui-transcript {
  display: flex;
  min-height: 150px;
  margin: .85rem -.15rem .25rem;
  padding: 0 .15rem .25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  flex-direction: column;
  gap: .7rem;
  scrollbar-width: thin;
}
.xiaorui-bubble {
  max-width: 88%;
  padding: .72rem .85rem;
  border-radius: 15px;
}
.xiaorui-bubble > span { display: block; margin-bottom: .2rem; color: #6f7b89; font-size: .7rem; font-weight: 700; }
.xiaorui-bubble p { margin: 0; color: var(--navy-900); font-size: .9rem; line-height: 1.55; white-space: pre-wrap; }
.xiaorui-bubble-assistant { align-self: flex-start; border-radius: 15px 15px 15px 4px; background: #eef3f8; }
.xiaorui-bubble-user { align-self: flex-end; border-radius: 15px 15px 4px 15px; background: #eadfca; }
.xiaorui-hint { min-height: 2.8em; margin: .5rem 0 .85rem; color: var(--muted); font-size: .78rem; line-height: 1.4; text-align: center; }
.xiaorui-controls { display: grid; gap: .55rem; }
.xiaorui-voice-button,
.xiaorui-retry {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.xiaorui-voice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: #fff;
  background: var(--navy-900);
}
.xiaorui-voice-button[data-recording="true"] { background: #9f3434; }
.xiaorui-voice-button:disabled { cursor: not-allowed; opacity: .5; }
.xiaorui-retry { border: 1px solid var(--line); color: var(--navy-900); background: transparent; }
.xiaorui-mic-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 8px;
}
.xiaorui-mic-icon::before {
  position: absolute;
  top: 9px;
  left: -5px;
  width: 19px;
  height: 9px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  content: "";
}
.xiaorui-privacy { margin: 0; padding: .65rem 1rem; border-top: 1px solid var(--line); color: #7b8693; background: #f7f5f0; font-size: .7rem; text-align: center; }
@keyframes xiaorui-pulse { 50% { opacity: .35; transform: scale(.8); } }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-shell { min-height: 78px; }
  .brand { gap: .7rem; }
  .richspace-wordmark { font-size: 1.5rem; }
  .brand-sub { font-size: 1.72rem; }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    align-items: stretch;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    background: var(--navy-950);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { min-height: 48px; padding: .65rem .5rem; }
  .nav-cta { text-align: center; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .location-panel, .footer-grid { grid-template-columns: 1fr; }
  .location-accent { min-height: 120px; }
}
@media (max-width: 600px) {
  .nav-shell {
    width: min(var(--max), calc(100% - 1.25rem));
    min-height: 68px;
  }
  .brand {
    gap: .45rem;
    max-width: calc(100% - 48px);
  }
  .richspace-wordmark {
    padding: .34rem .45rem .38rem;
    font-size: 1.1rem;
  }
  .brand-sub {
    display: block;
    font-size: 1.25rem;
    letter-spacing: .01em;
  }
  .menu-toggle { flex: 0 0 40px; width: 40px; height: 40px; margin-left: .5rem; }
  .site-nav { inset-block-start: 68px; }
  .hero-inner { padding: 4.5rem 0; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .services, .audiences, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 240px); }
  .gallery figure:first-child { grid-row: auto; }
  .section { padding: 3.5rem 0; }
  .card { padding: 1.5rem; }
  .xiaorui-widget { right: .75rem; bottom: .75rem; }
  .xiaorui-launcher { min-width: 152px; min-height: 56px; padding-left: 3.9rem; }
  .xiaorui-launcher > img { width: 68px; height: 86px; }
  .xiaorui-panel { bottom: 4.75rem; max-height: calc(100vh - 6.5rem); }
  .xiaorui-conversation { padding: .85rem; }
  .xiaorui-transcript { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
