:root {
  --bg: #090b0c;
  --bg-soft: #111416;
  --paper: #f2f1eb;
  --muted: #a7aaa9;
  --line: rgba(255,255,255,.12);
  --gold: #c8a970;
  --pearl: #f7f5ef;
  --green: #789d91;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: #7ca69a; right: -120px; top: 140px; }
.ambient-two { width: 360px; height: 360px; background: #b89b68; left: -180px; top: 580px; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8,10,11,.72);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 16px;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; }
.brand div { display: grid; line-height: 1.1; gap: 6px; }
.brand strong { font-family: "Songti SC", STSong, serif; font-size: 19px; letter-spacing: .12em; }
.brand span { color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.desktop-nav { display: flex; gap: 30px; color: #d2d2cf; font-size: 14px; }
.desktop-nav a:hover { color: white; }
.nav-cta, .primary-button, .secondary-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta, .primary-button { background: var(--paper); color: #111; }
.nav-cta:hover, .primary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,255,255,.12); }
.secondary-button { border: 1px solid var(--line); color: white; background: transparent; }

.message-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 26px auto 0;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 50%),
    radial-gradient(circle at 78% 20%, rgba(119,154,144,.2), transparent 32%),
    #0d1012;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  position: relative;
}
.message-copy { padding: 96px 34px 70px 64px; position: relative; z-index: 2; }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .22em; font-weight: 800; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
h1, h2, h3 { margin-top: 0; }
h1, h2 { font-family: "Songti SC", STSong, "Noto Serif SC", serif; font-weight: 500; }
h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.14; margin: 24px 0 24px; letter-spacing: -.04em; }
.intro { max-width: 520px; color: #b9bcba; margin-bottom: 36px; font-size: 16px; }

.message-stage { min-height: 680px; position: relative; display: grid; place-items: center; overflow: hidden; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.orbit-a { width: 620px; height: 620px; right: -110px; top: 24px; }
.orbit-b { width: 420px; height: 420px; right: 32px; top: 122px; transform: rotate(24deg); }
.pearl { position: absolute; border-radius: 50%; background: radial-gradient(circle at 33% 28%, #fff, #d8d5cf 40%, #9aa69f 75%, #737d79); box-shadow: inset -15px -16px 28px rgba(0,0,0,.2), 0 16px 50px rgba(197,213,205,.18); }
.pearl-a { width: 78px; height: 78px; right: 48px; top: 96px; }
.pearl-b { width: 28px; height: 28px; left: 68px; bottom: 86px; }
.message-window { width: min(520px, calc(100% - 48px)); height: 510px; border: 1px solid var(--line); border-radius: 28px; background: rgba(14,18,19,.77); backdrop-filter: blur(22px); overflow: hidden; position: relative; z-index: 3; }
.message-toolbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7bc89d; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 6px rgba(123,200,157,.08); }
.message-toolbar button { color: #d5d5d2; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.message-track { height: calc(100% - 66px); overflow: hidden; padding: 10px 14px; }
.message-track.paused .message-list { animation-play-state: paused; }
.message-list { display: grid; gap: 10px; animation: ticker 28s linear infinite; }
.message-track:hover .message-list { animation-play-state: paused; }
@keyframes ticker { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.message-item { padding: 17px 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); position: relative; }
.message-item:hover { background: rgba(255,255,255,.06); }
.message-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.message-item p { margin: 0; color: #eeeeeb; font-size: 14px; }
.delete-message { position: absolute; right: 12px; bottom: 10px; border: 0; background: transparent; color: #d98c8c; font-size: 12px; display: none; }
.admin-mode .delete-message { display: inline-block; }

.section-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.brand-statement { padding: 110px 0; display: grid; grid-template-columns: 90px 1.3fr .8fr; gap: 44px; align-items: start; }
.statement-mark { font-family: Georgia, serif; font-size: 100px; color: var(--gold); line-height: .7; }
.brand-statement h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.25; margin-bottom: 0; }
.brand-statement > p { color: var(--muted); padding-top: 38px; }

.lab-section { padding: 80px 0 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(40px, 4vw, 58px); margin-bottom: 0; }
.section-heading > p { color: var(--muted); max-width: 430px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact-card { min-height: 340px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: .3s ease; outline: none; }
.fact-card:hover, .fact-card:focus { background: var(--paper); color: #111; transform: translateY(-8px); }
.fact-index { font-size: 12px; color: var(--gold); }
.fact-card h3 { font-family: "Songti SC", STSong, serif; font-size: 25px; margin: 92px 0 16px; }
.fact-card p { color: var(--muted); font-size: 14px; }
.fact-card:hover p, .fact-card:focus p { color: #555; }
.fact-card span { margin-top: auto; font-size: 12px; opacity: .65; }

.services-section { background: var(--paper); color: #111; }
.services-inner { padding: 110px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.services-intro h2 { font-size: clamp(38px, 4vw, 58px); line-height: 1.2; margin: 24px 0; }
.services-intro > p:last-child { color: #5c5f5d; max-width: 390px; }
.service-list article { display: grid; grid-template-columns: 45px 1fr 36px; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,.14); }
.service-list article:first-child { border-top: 1px solid rgba(0,0,0,.14); }
.service-list span { color: #8e7c5b; font-size: 12px; }
.service-list h3 { font-family: "Songti SC", STSong, serif; font-size: 25px; margin: 0 0 5px; }
.service-list p { margin: 0; color: #666; font-size: 14px; }
.service-list b { font-size: 22px; transition: .2s; }
.service-list article:hover b { transform: translate(4px,-4px); }

.visit-section { padding: 110px 0; }
.visit-card { min-height: 560px; border: 1px solid var(--line); border-radius: 38px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.map-visual { position: relative; min-height: 520px; background: #101516; overflow: hidden; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; transform: perspective(500px) rotateX(55deg) scale(1.5); transform-origin: center bottom; }
.map-route { position: absolute; width: 74%; height: 48%; left: 8%; top: 27%; border: 3px solid transparent; border-top-color: var(--gold); border-right-color: var(--gold); border-radius: 0 120px 0 0; transform: rotate(-8deg); }
.map-pin { position: absolute; left: 62%; top: 37%; width: 84px; height: 84px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 18px rgba(255,255,255,.03); }
.map-pin span { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9c7c0 55%, #808986); box-shadow: 0 0 24px rgba(255,255,255,.35); }
.map-label { position: absolute; left: calc(62% + 70px); top: calc(37% + 20px); color: var(--gold); letter-spacing: .15em; font-size: 12px; }
.visit-copy { padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.visit-copy h2 { font-size: clamp(38px, 4vw, 56px); line-height: 1.2; margin: 20px 0 36px; }
.address-box { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 7px; }
.address-box span { color: var(--muted); font-size: 13px; }
.address-box strong { font-size: 20px; }
.visit-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.visit-tip { color: var(--muted); font-size: 12px; margin-top: 18px; }

footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 46px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 46px; }
.footer-brand div { display: grid; }
.footer-brand strong { color: white; font-size: 15px; }
.admin-link { border: 0; background: transparent; color: var(--muted); }

.modal { border: 0; padding: 0; background: transparent; color: white; max-width: none; }
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.modal-card { width: min(500px, calc(100vw - 28px)); background: #111416; border: 1px solid var(--line); border-radius: 28px; padding: 32px; position: relative; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.modal-card h2 { font-size: 38px; margin: 10px 0 24px; }
.modal-card label { display: grid; gap: 8px; margin-bottom: 18px; color: #d7d7d4; font-size: 13px; }
.modal-card input, .modal-card textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: white; border-radius: 14px; padding: 14px 15px; outline: none; }
.modal-card input:focus, .modal-card textarea:focus { border-color: var(--gold); }
.modal-card textarea { min-height: 130px; resize: vertical; }
.modal-close { position: absolute; right: 20px; top: 16px; border: 0; background: transparent; color: white; font-size: 28px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-row span { color: var(--muted); font-size: 12px; }
.modal-note { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--paper); color: #111; padding: 12px 18px; border-radius: 999px; z-index: 50; transition: .25s ease; font-size: 13px; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .message-hero { grid-template-columns: 1fr; }
  .message-copy { padding: 72px 34px 30px; }
  .message-stage { min-height: 600px; }
  .brand-statement { grid-template-columns: 50px 1fr; }
  .brand-statement > p { grid-column: 2; padding-top: 0; }
  .fact-grid { grid-template-columns: repeat(2,1fr); }
  .services-inner, .visit-card { grid-template-columns: 1fr; }
  .map-visual { min-height: 360px; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 24px); margin-top: 12px; height: 64px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 16px; }
  .brand span { display: none; }
  .nav-cta { min-height: 40px; padding: 0 15px; font-size: 13px; }
  .message-hero { width: calc(100% - 24px); border-radius: 28px; }
  .message-copy { padding: 56px 22px 20px; }
  h1 { font-size: 42px; }
  .message-stage { min-height: 540px; }
  .message-window { width: calc(100% - 28px); height: 460px; }
  .section-shell { width: calc(100% - 28px); }
  .brand-statement { padding: 78px 0; grid-template-columns: 34px 1fr; gap: 18px; }
  .statement-mark { font-size: 70px; }
  .section-heading { display: block; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-card { min-height: 260px; }
  .fact-card h3 { margin-top: 60px; }
  .services-inner { padding: 76px 0; gap: 44px; }
  .visit-section { padding: 72px 0; }
  .visit-copy { padding: 34px 24px 38px; }
  .visit-copy h2 { font-size: 38px; }
  footer { display: grid; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
