/* Relay — warm paper, clear hierarchy, and an ink-black service identity. */
:root {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #252521;
  background: #faf9f6;
  --muted: #706e65;
  --accent: #252521;
  --accent-hover: #414039;
  --line: #e4e1d9;
  --surface: #fffefa;
  --sidebar-width: 224px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 14px; line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; border: 1px solid #d7d3c9; border-radius: 8px; padding: 9px 15px; background: var(--surface); color: #36362f; }
button:hover { border-color: #b9b4a7; background: #f3f1ea; }
button:disabled { opacity: .55; cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #7d614b; outline-offset: 4px; }
[hidden] { display: none !important; }
p { margin: 8px 0; }
h1, h2, h3 { color: #252521; }
h2 { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 600; letter-spacing: -.35px; }
h3 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; }
.muted { color: var(--muted); }
.small, .label { font-size: 14px; }

/* A soft, persistent navigation rail. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 28px 16px; overflow-y: auto; background: #f0eee8; border-right: 1px solid #e7e3da; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; color: #252521; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; line-height: 1.05; }
.brand:hover { color: #252521; text-decoration: none; }
.brand small { display: block; margin-top: 7px; color: #6d695f; font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif; font-size: 12px; font-weight: 400; line-height: 1.4; }
.brand-symbol { display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #252521; color: #fffefa; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; line-height: 1; }
.nav-label { margin: 30px 12px 9px; color: #6d695f; font-size: 12px; font-weight: 400; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; min-height: 43px; margin: 3px 0; padding: 9px 11px; border: 1px solid transparent; border-radius: 8px; color: #625f56; font-size: 14px; white-space: nowrap; }
.sidebar nav a:hover { background: #e9e6de; color: #252521; text-decoration: none; }
.sidebar nav a.selected { border-color: #e3dfd5; background: #fffefa; color: #252521; box-shadow: 0 1px 2px #25252108; font-weight: 600; }
.nav-icon { flex: none; width: 20px; color: #706e65; font-size: 21px; font-weight: 400; line-height: 1; text-align: center; }
.selected .nav-icon { color: #34342d; }
.nav-tag { margin-left: auto; color: #6d695f; font-size: 12px; line-height: 20px; }
.sidebar-bottom { margin-top: auto; padding: 32px 12px 0; color: #6d695f; font-size: 13px; }
.sidebar-bottom > a { display: block; margin-top: 12px; color: #625f55; }
.beta-note { margin-bottom: 16px; padding-bottom: 18px; border-bottom: 1px solid #ddd9cf; }
.beta-note strong { color: #504e44; font-size: 13px; font-weight: 500; }
.beta-note p { margin: 5px 0 0; font-size: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #82765b; vertical-align: middle; }

main { max-width: 1512px; margin-left: var(--sidebar-width); padding: 0 48px 32px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #706e65; font-size: 13px; white-space: nowrap; }
.breadcrumb span { padding: 0 12px; color: #b9b3a5; }
.breadcrumb strong { color: #4e4b41; font-weight: 400; }
.account { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; font-size: 13px; }
.account > span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet-button { padding: 7px 10px; border-color: transparent; background: transparent; color: var(--muted); font-size: 13px; }
.login-button { padding: 8px 15px; border: 1px solid #252521; border-radius: 8px; background: #252521; color: #fffefa; font-size: 13px; white-space: nowrap; }
.login-button:hover { background: #414039; border-color: #414039; color: #fffefa; text-decoration: none; }

/* The introduction has one confident visual anchor, with ample space for copy. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: center; gap: clamp(30px, 4vw, 72px); padding: 48px 0 40px; }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: #756953; font-size: 12px; font-weight: 500; letter-spacing: .65px; }
.eyebrow-line { display: inline-block; width: 20px; height: 2px; background: #a86b45; }
h1 { margin: 0 0 19px; font-size: 42px; font-weight: 500; line-height: 1.38; letter-spacing: -1.25px; }
.hero-description { max-width: 475px; margin: 0 0 27px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 21px; border: 1px solid #252521; border-radius: 9px; background: #252521; color: #fffefa; font-size: 14px; font-weight: 500; }
.primary-link:hover { background: #414039; border-color: #414039; color: #fffefa; text-decoration: none; }
.secondary-link { padding: 9px 0; color: #5b554a; font-size: 14px; }
.hero-footnote { margin: 20px 0 0; color: #706e65; font-size: 12px; }
.hero-map { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 322px; padding: 26px 28px 24px; border: 1px solid #383830; border-radius: 18px; background: #292923; color: #f7f5ed; box-shadow: 0 9px 25px #2929230a; }
.hero-map::before { content: ""; position: absolute; z-index: -1; top: -140px; right: -140px; width: 305px; height: 305px; border: 1px solid #f7f3e110; border-radius: 50%; box-shadow: 0 0 0 36px #f7f3e106, 0 0 0 72px #f7f3e104; pointer-events: none; }
.hero-map::after { content: ""; position: absolute; z-index: -1; bottom: -150px; left: -100px; width: 270px; height: 270px; border: 1px solid #f7f3e10a; border-radius: 50%; pointer-events: none; }
.map-heading { margin-bottom: 21px; color: #bdb8a8; font-size: 12px; font-weight: 400; letter-spacing: .8px; }
.map-source { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #ffffff1c; }
.map-symbol { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 43px; border: 1px solid #f7f5ed45; border-radius: 10px; color: #f7f5ed; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 400; line-height: 1; }
.map-source strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; line-height: 1.2; }
.map-source div > span { display: block; margin-top: 5px; color: #c1bcad; font-size: 12px; }
.map-route { margin-left: auto; color: #d6c4a9; font-size: 25px; }
.map-branches { display: grid; gap: 17px; padding-top: 21px; }
.map-branches > div { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
.map-branches > div > span { grid-row: span 2; align-self: center; color: #d9c6a8; font-size: 25px; text-align: center; }
.map-branches strong { color: #f7f5ed; font-size: 14px; font-weight: 500; }
.map-branches small { margin-top: 2px; color: #c1bcad; font-size: 12px; }
.hero-map > p { margin: 22px 0 0; color: #bdb8a8; font-size: 12px; }

.notice { margin: 0 0 22px; padding: 12px 16px; border: 1px solid #e7e1d5; border-radius: 8px; background: #f4f1e9; color: #6c604d; font-size: 13px; line-height: 1.75; }
.notice.error { border-color: #e9d2c8; background: #f9eeea; color: #8a4938; }
.card { min-width: 0; background: var(--surface); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 25px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.metric-card { padding: 0 27px; background: transparent; }
.metric-card + .metric-card { border-left: 1px solid var(--line); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label { margin: 0; color: var(--muted); font-size: 13px; }
.metric-icon { color: #928775; font-size: 17px; line-height: 1; }
.metric { margin: 8px 0 12px; color: #292923; font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; color: #706e65; font-size: 12px; }
.metric-footer p { margin: 0; }
.metric-footer a { color: #625748; white-space: nowrap; }
.section { margin-top: 38px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 21px; }
.section-head p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.section-head > a { color: #6e604e; font-size: 13px; white-space: nowrap; }
.card.section { padding: 28px; border: 1px solid var(--line); border-radius: 13px; }

/* Three clear entry points; descriptions remain comfortable to read. */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.service-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid #dfdbd0; border-radius: 13px; background: #fffefa; }
.service-card:hover { border-color: #bdb5a5; box-shadow: 0 4px 15px #39332605; }
.service-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.service-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 43px; height: 43px; border: 1px solid #e8dfce; border-radius: 12px; background: #f4f0e7; color: #715f47; font-size: 30px; font-weight: 400; line-height: 1; }
.image-icon { background: #efeee7; color: #6b6a55; border-color: #dfded1; }
.video-icon { background: #f0eeea; color: #756d60; border-color: #e3dfd7; }
.service-state { color: #6d6c57; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.service-state.pending { color: #706e65; }
.service-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.35px; }
.service-card > p { flex: 1; margin: 0 0 23px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.service-action { align-self: flex-start; padding: 5px 0; border-bottom: 1px solid #d9d1c2; color: #433d32; font-size: 14px; font-weight: 500; line-height: 1.5; }
.service-action:hover { border-bottom-color: #786952; text-decoration: none; }
.service-pending { background: #f6f4ee; }
.service-pending .service-action { color: #726959; }

.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.model-card { position: relative; min-width: 0; padding: 19px 20px; border: 1px solid #e7e2d7; border-radius: 9px; background: #faf8f2; }
.model-type { display: block; margin-bottom: 8px; color: #756953; font-size: 12px; }
.model-card h3, .model-name { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.model-card p { margin: 8px 0 13px; color: var(--muted); font-size: 13px; }
.model-card a { color: #6e604e; font-size: 13px; }
.capability-note { margin: 17px 0 0; color: var(--muted); font-size: 13px; }
.pricing-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); }
.pricing-note p { margin: 0; font-size: 13px; line-height: 1.85; }
.pricing-note strong { color: #5a5347; font-weight: 500; }
.info-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; margin-top: 4px; border: 1px solid #a79c86; border-radius: 50%; color: #8a7b61; font-family: Georgia, "Times New Roman", serif; font-size: 12px; }
.subscriptions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.subscription { padding: 20px; border: 1px solid #e7e2d7; border-radius: 9px; background: #faf8f2; }
.subscription h3 { margin: 0 0 8px; font-size: 17px; }
.subscription p { margin: 7px 0; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #eeeadd; color: #6b614d; font-size: 12px; }
.table-wrap { overflow: auto; border: 1px solid #e8e4db; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; color: #5b584f; font-size: 13px; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { background: #f4f2eb; color: #706859; font-weight: 400; }
th, td { padding: 14px 16px; border-bottom: 1px solid #eae6dd; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbf9f3; }
.empty { grid-column: 1 / -1; margin: 0; padding: 31px 12px; color: #706e65; font-size: 14px; text-align: center; }
.table-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; }

.connection { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding: 31px 28px; border: 1px solid var(--line); border-radius: 13px; background: #f3f0e8; }
.connection > .card { padding: 0; background: transparent; }
.connection > .next { padding-left: 34px; border-left: 1px solid #dfd9ca; }
.connection .eyebrow { margin-bottom: 12px; color: #756953; font-size: 12px; }
.connection h2 { font-size: 22px; }
.connection .muted { margin: 13px 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
label { display: block; margin: 22px 0 8px; color: #675f50; font-size: 13px; }
.copy-row { display: flex; gap: 8px; }
input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #d7d1c4; border-radius: 7px; background: #fffefa; color: #4c463a; font-size: 13px; }
.copy-row button { padding: 8px 15px; font-size: 13px; white-space: nowrap; }
code { color: #6a5941; font-family: Consolas, "Courier New", monospace; font-size: 12px; overflow-wrap: anywhere; }
.connection .primary-link { margin-top: 8px; font-size: 13px; }
.next ol { margin: 21px 0 0; padding: 0; list-style: none; }
.next li { display: flex; gap: 15px; padding: 12px 0; }
.step-number { flex: none; width: 25px; margin-top: 1px; color: #9b8462; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-variant-numeric: tabular-nums; line-height: 24px; }
.next strong { color: #504a3f; font-size: 14px; font-weight: 500; }
.next li p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; margin-top: 34px; padding-top: 21px; border-top: 1px solid var(--line); color: #706e65; font-size: 12px; }
footer a { color: #7b705e; }
.footer-separator { padding: 0 7px; color: #b2a793; }

@media (max-width: 1200px) {
  main { padding-right: 28px; padding-left: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, 304px); gap: 28px; padding-top: 40px; }
  h1 { font-size: 38px; }
  .hero-map { padding: 25px 23px; }
  .metric-card { padding-right: 21px; padding-left: 21px; }
  .service-grid { gap: 14px; }
  .service-card { padding: 21px; }
  .service-heading { gap: 7px; margin-bottom: 21px; }
  .service-icon { width: 39px; height: 39px; font-size: 28px; }
  .connection { gap: 25px; }
  .connection > .next { padding-left: 25px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 br { display: none; }
  .hero-description { max-width: 600px; }
  .hero-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px 24px; min-height: 0; padding: 23px 26px; }
  .map-heading { grid-column: 1 / -1; margin: 0; }
  .map-source { padding: 0; border-bottom: 0; }
  .map-branches { padding: 0 0 0 22px; border-left: 1px solid #ffffff1c; gap: 12px; }
  .hero-map > p { grid-column: 1 / -1; margin: 4px 0 0; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 22px 25px; }
  .service-heading { grid-column: 1; margin: 0 0 5px; justify-content: flex-start; gap: 14px; }
  .service-card h3 { grid-column: 1; margin: 0; }
  .service-card > p { grid-column: 1; margin: 0; }
  .service-action { grid-column: 2; grid-row: 1 / 4; align-self: center; }
}
@media (max-width: 1000px) {
  .account > span { max-width: 130px; }
  .connection { grid-template-columns: 1fr; gap: 25px; }
  .connection > .next { padding: 25px 0 0; border-left: 0; border-top: 1px solid #dfd9ca; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 20px 22px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { padding: 0; gap: 11px; font-size: 27px; }
  .brand small { display: inline; margin: 0 0 0 12px; font-size: 12px; }
  .brand-symbol { width: 36px; height: 36px; font-size: 26px; }
  .sidebar nav { display: flex; align-items: center; gap: 5px; overflow-x: auto; margin-top: 17px; padding-bottom: 7px; scrollbar-width: thin; }
  .nav-label { flex: none; margin: 0 8px; font-size: 12px; }
  .sidebar nav a { flex: none; min-height: 39px; margin: 0; padding: 8px 11px; gap: 7px; font-size: 13px; }
  .nav-icon { width: 17px; font-size: 19px; }
  .sidebar-bottom { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 16px; margin: 9px 0 0; padding: 12px 0 0; border-top: 1px solid #ddd9cf; font-size: 12px; }
  .beta-note { margin: 0; padding: 0; border-bottom: 0; }
  .beta-note strong { font-size: 12px; }
  .beta-note p { display: inline; margin-left: 7px; font-size: 12px; }
  .sidebar-bottom > a { margin: 0; }
  main { margin: 0; padding: 0 22px 27px; }
  .topbar { min-height: 67px; gap: 10px; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb span { padding: 0 7px; }
  .account { gap: 4px; font-size: 12px; }
  .account > span { max-width: 110px; }
  .quiet-button { padding: 7px; font-size: 12px; }
  .login-button { padding: 7px 11px; font-size: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 29px; padding: 34px 0 30px; }
  h1 { font-size: 36px; }
  .hero h1 br { display: none; }
  .hero-description { max-width: 560px; }
  .hero-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; min-height: 0; padding: 25px; }
  .map-heading { grid-column: 1 / -1; margin: 0; }
  .map-source { padding: 0; border-bottom: 0; }
  .map-branches { padding: 0 0 0 21px; border-left: 1px solid #ffffff1c; gap: 13px; }
  .hero-map > p { grid-column: 1 / -1; margin: 3px 0 0; }
  .notice { margin-bottom: 20px; }
  .metrics { padding: 22px 0; }
  .metric-card { padding: 0 17px; }
  .metric { font-size: 32px; }
  .metric-footer { gap: 5px; line-height: 1.7; }
  .section { margin-top: 32px; }
  .section-head { gap: 13px; margin-bottom: 19px; }
  .section-head h2 { font-size: 21px; }
  .section-head > a { font-size: 12px; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 25px; }
  .service-heading { margin-bottom: 19px; }
  .service-card > p { margin-bottom: 20px; }
  .card.section { padding: 25px; }
  .connection { padding: 27px 25px; }
  footer { flex-direction: column; gap: 8px; margin-top: 28px; }
}
@media (max-width: 480px) {
  .sidebar { padding: 18px 18px 13px; }
  main { padding-right: 18px; padding-left: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px 0; }
  .account { align-self: flex-end; }
  .account > span { max-width: 165px; }
  .hero { padding-top: 31px; }
  .hero h1 { max-width: 330px; font-size: 34px; line-height: 1.4; letter-spacing: -.8px; }
  .hero h1 br { display: initial; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 20px; }
  .hero-map { grid-template-columns: 1fr; gap: 18px; padding: 24px; border-radius: 15px; }
  .map-source { padding-bottom: 18px; border-bottom: 1px solid #ffffff1c; }
  .map-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; border-left: 0; }
  .map-branches > div { grid-template-columns: 1fr; gap: 5px; }
  .map-branches > div > span { grid-row: auto; justify-self: start; font-size: 24px; }
  .map-branches small { font-size: 12px; line-height: 1.65; }
  .hero-map > p { margin: 0; }
  .metrics { grid-template-columns: 1fr; padding: 0 22px; }
  .metric-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 15px; padding: 21px 0; }
  .metric-card + .metric-card { border-left: 0; border-top: 1px solid var(--line); }
  .metric-label { justify-content: flex-start; gap: 10px; }
  .metric { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; font-size: 32px; }
  .metric-footer { grid-column: 1; }
  .section-head { align-items: flex-start; }
  .section-head > a { padding-top: 4px; }
  .section-head p { font-size: 13px; }
  .card.section, .connection { padding: 23px 21px; }
  .service-card { padding: 25px 24px; }
  .model-card, .subscription { padding: 18px; }
  .connection h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
