/* Partner Network — enterprise H5
   Ink navy · champagne metal · mist paper */

:root {
  --ink: #071018;
  --ink-2: #0f1c28;
  --ink-3: #182838;
  --mist: #e8eef3;
  --paper: #edf1f5;
  --paper-2: #f4f7fa;
  --line: rgba(7, 16, 24, 0.08);
  --line-light: rgba(255, 255, 255, 0.14);
  --metal: #b08d57;
  --metal-2: #d4b483;
  --sea: #2a7a8c;
  --text: #121a22;
  --muted: #5a6570;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", Georgia, serif;
  --font-ui: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --read: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body.ux-body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(42, 100, 130, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(176, 141, 87, 0.05), transparent 50%),
    linear-gradient(180deg, #e6ecf2 0%, #edf1f5 40%, #e9eef3 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== Top ========== */
.ux-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid var(--line);
  background: rgba(237, 241, 245, 0.92);
  backdrop-filter: blur(14px);
}

.ux-top--over-hero:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.ux-top--over-hero:not(.is-scrolled) .ux-brand,
.ux-top--over-hero:not(.is-scrolled) .ux-brand__sub {
  color: #fff;
}

.ux-top--over-hero:not(.is-scrolled) .ux-nav a {
  color: rgba(255, 255, 255, 0.88);
}

.ux-top--over-hero:not(.is-scrolled) .ux-nav a:hover,
.ux-top--over-hero:not(.is-scrolled) .ux-nav a[aria-current="page"] {
  color: #fff;
}

.ux-top--over-hero:not(.is-scrolled) .ux-lang {
  border-color: var(--line-light);
  color: rgba(255, 255, 255, 0.85);
}

.ux-top--over-hero:not(.is-scrolled) .ux-btn--ghost {
  border-color: var(--line-light);
  color: #fff;
}

.ux-top--over-hero:not(.is-scrolled) .ux-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.ux-top--over-hero:not(.is-scrolled) .ux-btn--solid {
  background: #fff;
  color: var(--ink);
}

.ux-top--over-hero:not(.is-scrolled) .ux-menu {
  border-color: var(--line-light);
}

.ux-top--over-hero:not(.is-scrolled) .ux-menu span,
.ux-top--over-hero:not(.is-scrolled) .ux-menu span::before,
.ux-top--over-hero:not(.is-scrolled) .ux-menu span::after {
  background: #fff;
}

.ux-top.is-scrolled {
  background: rgba(237, 241, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(7, 16, 24, 0.04);
}

.ux-top.is-scrolled .ux-brand {
  color: var(--ink);
}

.ux-top.is-scrolled .ux-brand__sub {
  color: var(--muted);
}

.ux-top.is-scrolled .ux-nav a {
  color: var(--muted);
}

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

.ux-top__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.ux-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  line-height: 1.1;
}

.ux-brand--logo {
  text-decoration: none;
  color: inherit;
}

.ux-brand__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
}

.ux-brand__logo--light {
  display: none;
}

.ux-brand__logo--dark {
  display: block;
}

/* 顶栏滚过英雄区后变为浅底 → 换深色字 wordmark */
.ux-top.is-scrolled .ux-brand__logo--light {
  display: block;
}

.ux-top.is-scrolled .ux-brand__logo--dark {
  display: none;
}

/* 非英雄页顶栏默认浅底 */
.ux-top:not(.ux-top--over-hero) .ux-brand__logo--light {
  display: block;
}

.ux-top:not(.ux-top--over-hero) .ux-brand__logo--dark {
  display: none;
}

.ux-brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ux-brand__sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ux-nav {
  display: none;
  gap: 28px;
  flex: 1;
}

.ux-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.ux-top__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ux-lang {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 9px 10px;
  min-width: 40px;
  cursor: pointer;
}

.ux-lang-dd {
  position: relative;
}

.ux-lang-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  cursor: pointer;
}

.ux-top--over-hero:not(.is-scrolled) .ux-lang-dd__btn {
  border-color: rgba(238, 242, 246, 0.22);
  color: var(--paper);
}

.ux-lang-dd__flag {
  display: block;
  border-radius: 2px;
}

.ux-lang-dd__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 180px;
  max-height: min(70vh, 420px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(6, 13, 20, 0.12);
}

.ux-lang-dd__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.ux-lang-dd__opt:hover,
.ux-lang-dd__opt.is-active {
  background: rgba(196, 165, 116, 0.12);
}

.ux-top--over-hero:not(.is-scrolled) .ux-lang-dd__menu {
  background: rgba(12, 22, 32, 0.98);
  border-color: rgba(238, 242, 246, 0.14);
}

.ux-top--over-hero:not(.is-scrolled) .ux-lang-dd__opt {
  color: var(--paper);
}

.ux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: 0.25s var(--ease);
}

.ux-btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.ux-btn--ghost:hover {
  border-color: var(--ink);
}

.ux-btn--solid {
  background: var(--ink);
  color: #fff;
}

.ux-btn--solid:hover {
  background: var(--ink-3);
}

.ux-btn--metal {
  background: linear-gradient(180deg, #c4a36a 0%, #a8874e 48%, #8f7340 100%);
  color: #14100a;
  border: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.ux-btn--metal:hover {
  filter: brightness(1.06);
}

.ux-btn--lg {
  min-height: 52px;
  padding: 0 32px;
  font-size: 0.875rem;
}

.ux-menu {
  display: flex;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.ux-menu span,
.ux-menu span::before,
.ux-menu span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.ux-menu span::before,
.ux-menu span::after {
  content: "";
  position: absolute;
  left: 0;
}

.ux-menu span::before {
  top: -5px;
}

.ux-menu span::after {
  top: 5px;
}

@media (min-width: 960px) {
  .ux-nav {
    display: flex;
  }
  .ux-menu {
    display: none;
  }
}

.ux-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 16, 24, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ux-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ux-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--paper-2);
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.ux-drawer.is-open .ux-drawer__panel {
  transform: none;
}

.ux-drawer__panel a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

/* ========== Hero ========== */
.ux-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #060d14;
}

.ux-hero__plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, #040a10 0%, #0a1520 38%, #122636 68%, #0b1824 100%);
}

.ux-hero__plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 190, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 220, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.85;
}

.ux-hero__plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.ux-hero__glow {
  position: absolute;
  right: -12%;
  top: -20%;
  width: min(78vw, 820px);
  height: min(78vw, 820px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 45%,
    rgba(70, 140, 175, 0.42) 0%,
    rgba(40, 90, 120, 0.18) 42%,
    transparent 68%
  );
  filter: blur(8px);
  animation: ux-glow 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ux-glow {
  from {
    opacity: 0.75;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate(-3%, 4%) scale(1.06);
  }
}

.ux-hero__orb {
  position: absolute;
  right: 4%;
  top: 22%;
  width: min(42vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 32% 32%, rgba(212, 180, 131, 0.12), transparent 48%),
    radial-gradient(circle at 65% 58%, rgba(60, 130, 160, 0.2), transparent 55%);
  animation: ux-orb 14s var(--ease) infinite alternate;
  pointer-events: none;
}

.ux-hero__orb::before,
.ux-hero__orb::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ux-hero__orb::after {
  inset: 28%;
  border-color: rgba(212, 180, 131, 0.12);
}

@keyframes ux-orb {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(14px) scale(1.04);
  }
}

.ux-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ux-hero__corp {
  margin: 0 0 20px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 180, 131, 0.9);
  animation: ux-rise 0.85s var(--ease) both;
}

.ux-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: none;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  animation: ux-rise 0.95s 0.04s var(--ease) both;
}

.ux-hero__brand--logo {
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}

.ux-hero__logo {
  display: block;
  height: clamp(56px, 12vw, 96px);
  width: auto;
  max-width: min(480px, 88vw);
  object-fit: contain;
  filter: drop-shadow(0 2px 40px rgba(0, 0, 0, 0.35));
}

.ux-hero__tagline {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  max-width: 16em;
  animation: ux-rise 0.95s 0.08s var(--ease) both;
}

.ux-hero__lead {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34em;
  margin: 0 0 36px;
  line-height: 1.7;
  animation: ux-rise 0.95s 0.12s var(--ease) both;
}

.ux-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
  justify-content: center;
  animation: ux-rise 0.95s 0.16s var(--ease) both;
}

.ux-hero .ux-btn--ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: transparent;
}

.ux-hero .ux-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.ux-hero .ux-btn--metal {
  background: linear-gradient(180deg, #c4a36a 0%, #a8874e 48%, #8f7340 100%);
  color: #14100a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 28px rgba(0, 0, 0, 0.28);
}

.ux-hero .ux-btn--metal:hover {
  filter: brightness(1.08);
}

.ux-hero__proof {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  width: 100%;
  max-width: 720px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  animation: ux-rise 0.95s 0.22s var(--ease) both;
}

@media (min-width: 720px) {
  .ux-hero__proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ux-hero__proof li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.ux-hero__proof strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.ux-hero__proof span {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
}

@keyframes ux-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== Sections ========== */
.ux-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.ux-section__label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--metal);
  margin: 0 0 14px;
  font-weight: 500;
}

.ux-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 auto 18px;
  max-width: 14em;
}

.ux-section__desc {
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 52px;
  font-weight: 300;
  font-size: 1.0625rem;
}

.ux-split {
  display: grid;
  gap: 48px;
  text-align: left;
}

@media (min-width: 860px) {
  .ux-split {
    grid-template-columns: 0.95fr 1.15fr;
    align-items: start;
    gap: 72px;
  }
}

.ux-split > .ux-reveal:first-child {
  text-align: left;
}

.ux-split .ux-section__title,
.ux-split .ux-section__desc {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.ux-pillars {
  display: grid;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
}

@media (min-width: 760px) {
  .ux-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ux-pillar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(7, 16, 24, 0.04);
  transition: background 0.3s, transform 0.3s var(--ease);
  border-radius: 2px;
}

.ux-pillar:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

.ux-pillar__n {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--metal);
  margin-bottom: 20px;
  line-height: 1;
}

.ux-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}

.ux-pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
}

.ux-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ux-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.ux-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.ux-steps__num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--sea);
  line-height: 1.2;
}

.ux-steps h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 500;
}

.ux-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 300;
}

.ux-band {
  background: linear-gradient(160deg, #071018 0%, #122030 100%);
  color: #fff;
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}

.ux-band::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.12), transparent 60%);
  pointer-events: none;
}

.ux-band__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

@media (min-width: 860px) {
  .ux-band__inner {
    grid-template-columns: 1.25fr 0.9fr;
    align-items: center;
    gap: 64px;
  }
}

.ux-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.15;
}

.ux-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  max-width: 42ch;
}

.ux-band__aside {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
}

.ux-band__aside dl {
  margin: 0;
}

.ux-band__aside dt {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--metal-2);
  margin-top: 20px;
}

.ux-band__aside dt:first-child {
  margin-top: 0;
}

.ux-band__aside dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.ux-cta-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.ux-cta-block .ux-section__title {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.ux-cta-block .ux-section__desc {
  margin-left: auto;
  margin-right: auto;
}

.ux-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ux-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.ux-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ========== Footer ========== */
.ux-foot {
  border-top: 1px solid var(--line);
  padding: 64px 24px 48px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.ux-foot__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.ux-foot__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.ux-foot__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.ux-foot__tag {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 300;
  margin: 0 auto 28px;
  max-width: 42ch;
}

.ux-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  justify-content: center;
}

.ux-foot__links a {
  font-size: 0.8125rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.ux-foot__links a:hover {
  color: var(--metal);
}

.ux-foot__copy {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ========== Inner pages ========== */
.ux-page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 70% 20%, rgba(70, 140, 175, 0.28), transparent 55%),
    linear-gradient(145deg, #050b12 0%, #0c1824 45%, #143044 100%);
  color: #fff;
  padding: 128px 24px 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ux-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 190, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 220, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.65;
  pointer-events: none;
}

.ux-page-hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.ux-page-hero__mark {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.ux-page-hero__label {
  margin: 0 0 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--metal-2);
  font-weight: 500;
}

.ux-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.15;
}

.ux-page-hero p {
  margin: 0 auto;
  max-width: 34em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  font-size: 1.05rem;
}

.ux-page {
  max-width: var(--read);
  margin: 0 auto;
  padding: 48px 24px 100px;
}

.ux-article {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px rgba(7, 16, 24, 0.05);
  padding: 48px 44px;
  border-radius: 2px;
  text-align: left;
}

@media (max-width: 640px) {
  .ux-article {
    padding: 28px 20px;
  }
}

.ux-article h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 14px;
  line-height: 1.3;
}

.ux-article h2:first-child {
  margin-top: 0;
}

.ux-article p,
.ux-article li {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  font-size: 1.02rem;
}

.ux-article p {
  margin: 0 0 14px;
}

.ux-article ul,
.ux-article ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

.ux-article li {
  margin-bottom: 8px;
}

.ux-article strong {
  color: var(--ink);
  font-weight: 500;
}

.ux-article .ux-callout {
  margin: 0 0 32px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(176, 141, 87, 0.1), rgba(42, 122, 140, 0.08));
  border-left: 3px solid var(--metal);
  color: var(--ink-3);
  font-weight: 400;
  line-height: 1.65;
}

.ux-faq + .ux-faq {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.ux-faq h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.ux-page-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ========== Auth forms ========== */
.ux-page-hero--compact {
  padding: 112px 24px 48px;
}

.ux-page--auth {
  max-width: 480px;
  padding-top: 36px;
}

.ux-page--reg {
  max-width: 720px;
}

.ux-auth {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(7, 16, 24, 0.06);
  padding: 36px 32px 40px;
}

.ux-form__section {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.ux-form__section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ux-form__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .ux-form__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ux-field--full {
    grid-column: 1 / -1;
  }
}

.ux-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ux-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.ux-field input,
.ux-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.ux-field input:focus,
.ux-field select:focus {
  border-color: var(--metal);
}

.ux-captcha {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ux-captcha input {
  flex: 1;
  min-width: 0;
}

.ux-captcha img {
  flex-shrink: 0;
  height: 48px;
  width: auto;
  min-width: 100px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
}

/* Slide captcha (login / register) */
.ux-slide {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ux-slide-track {
  position: relative;
  flex: 1;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.ux-slide-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(232, 200, 144, 0.78);
  pointer-events: none;
  z-index: 1;
}
.ux-slide-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(176, 141, 87, 0.22);
  pointer-events: none;
}
.ux-slide-knob {
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #c9a86a, #8a6a32);
  color: #fff;
  font-size: 18px;
  cursor: grab;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  touch-action: none;
}
.ux-slide-knob:active { cursor: grabbing; }
.ux-slide.is-verified .ux-slide-track {
  border-color: rgba(176, 141, 87, 0.55);
}
.ux-slide.is-verified .ux-slide-hint {
  color: #e8c890;
}
.ux-slide-reset {
  flex-shrink: 0;
  width: 40px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(232, 200, 144, 0.85);
  cursor: pointer;
}

.ux-btn--block {
  width: 100%;
  margin-top: 8px;
}

.ux-form__foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.ux-form__foot a {
  color: var(--ink);
  font-weight: 500;
  margin-left: 6px;
  border-bottom: 1px solid var(--metal);
}

.ux-form__foot a:hover {
  color: var(--metal);
}

.ux-terms {
  margin-top: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 16px 18px;
  background: rgba(7, 16, 24, 0.03);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: left;
}

.ux-terms p {
  margin: 0 0 10px;
}

.ux-terms p:last-child {
  margin-bottom: 0;
}

.ux-terms strong {
  color: var(--ink-3);
  font-weight: 500;
}

@media (max-width: 640px) {
  .ux-auth {
    padding: 28px 20px 32px;
  }
  .ux-hero__trust {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ux-top__actions .ux-btn--ghost {
    display: none;
  }
}

/* ── Announcements (public) ── */
.ux-news__panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 2px;
}

.ux-news__scroll {
  max-height: min(420px, 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ux-news__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ux-news__item {
  border-bottom: 1px solid var(--line);
}

.ux-news__item:last-child {
  border-bottom: none;
}

.ux-news__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ux-news__summary::-webkit-details-marker {
  display: none;
}

.ux-news__summary::before {
  content: "▸";
  margin-right: 10px;
  color: var(--metal);
  transition: transform 0.2s ease;
}

.ux-news__item[open] > .ux-news__summary::before {
  transform: rotate(90deg);
}

.ux-news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.ux-news__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1 1 auto;
}

.ux-news__time {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.ux-news__body {
  margin: 0;
  padding: 0 20px 16px 36px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.ux-news--compact .ux-news__summary {
  padding: 12px 16px;
}

.ux-news--compact .ux-news__body {
  padding: 0 16px 12px 28px;
}

/* ── Partner contact card ── */
.ux-contact {
  margin-top: 24px;
}

.ux-contact__inner {
  padding: 22px 24px;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: linear-gradient(135deg, rgba(196, 165, 116, 0.1), rgba(58, 138, 156, 0.08));
}

.ux-contact.login .ux-contact__inner,
.ux-contact.reg .ux-contact__inner {
  margin-top: 20px;
}

.ux-contact__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--metal);
}

.ux-contact__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.ux-contact__hint {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.ux-contact__hint--im {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--metal);
  line-height: 1.55;
}

.ux-contact__dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.ux-contact__dl dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ux-contact__dl dd {
  margin: 2px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.ux-contact__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  padding: 2px 6px;
  background: rgba(6, 13, 20, 0.06);
  border-radius: 4px;
  word-break: break-all;
}

/* Native Partner App — login / reg pages */
body.ux-body--app {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.ux-body--app .ux-page-hero--compact {
  padding-top: 12px;
  padding-bottom: 8px;
}

body.ux-body--app .ux-page-hero__inner h1 {
  font-size: 1.35rem;
}

body.ux-body--app .ux-page-hero__inner p:last-child {
  display: none;
}

body.ux-body--app .ux-page--auth {
  padding-top: 0;
}

body.ux-body--app .ux-form__foot a[href="reg.php"] {
  display: none;
}

header.ux-top--app {
  background: rgba(6, 13, 20, 0.96);
}

header.ux-top--app .ux-brand__sub {
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

