/* Trustify Connects 官网样式：纯静态、无外部依赖、自动跟随系统明暗 */

:root {
  --bg: #fcfbf7;
  --bg-alt: #f6f2e7;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-2: #3d414b;
  --muted: #676b78;
  --line: #e9e3d3;
  --gold: #b79107;
  --gold-deep: #7d6300;
  --gold-light: #ffdd56;
  --gold-wash: #fff4c7;
  --chat-bg: #f3eee1;
  --bubble-in: #ffffff;
  --bubble-out: #fff1b3;
  --phone-frame: #15171c;
  --shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 12px 32px -12px rgba(21, 23, 28, 0.16);
  --radius: 14px;
  --max: 1120px;
  --gutter: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111216;
    --bg-alt: #17181e;
    --surface: #1c1e25;
    --ink: #f4f1e8;
    --ink-2: #cfcbbf;
    --muted: #9b988f;
    --line: #2d2f38;
    --gold-deep: #ffdd56;
    --gold-wash: #2b250f;
    --chat-bg: #16171c;
    --bubble-in: #24262e;
    --bubble-out: #3a3214;
    --phone-frame: #3a3d48;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  text-wrap: pretty;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 84px;
}

.brand .divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.brand .word {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.btn {
  color: #15171c;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--gold-light);
  color: #15171c;
}

.btn-primary:hover {
  background: #f6cf35;
  text-decoration: none;
}

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

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

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* 首屏 */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--gold-light) 28%, transparent), transparent 70%),
    var(--bg);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--gold) 0%, #e2b81c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.fineprint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* 首屏插图：手机与团队收件箱同步 */
.sync {
  display: grid;
  grid-template-columns: 180px 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.device {
  margin: 0;
}

.device figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.phone .screen {
  border: 7px solid var(--phone-frame);
  border-radius: 30px;
  background: var(--chat-bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.phone .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.2;
}

.avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gold-wash);
  color: var(--gold-deep);
}

.bar small,
.convo small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 10px 14px;
}

.msg {
  margin: 0;
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.38;
  box-shadow: 0 1px 1px rgba(21, 23, 28, 0.06);
}

.msg.in {
  align-self: flex-start;
  background: var(--bubble-in);
  border-bottom-left-radius: 4px;
}

.msg.out {
  align-self: flex-end;
  background: var(--bubble-out);
  border-bottom-right-radius: 4px;
}

.msg .via {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gold-deep);
}

.sync-arrows {
  width: 44px;
  height: 44px;
  justify-self: center;
}

.inbox .window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.window .titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.titlebar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.titlebar span {
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.window .body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 270px;
}

.convos {
  border-right: 1px solid var(--line);
  padding: 6px;
}

.convo {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.2;
}

.convo > div {
  min-width: 0;
}

.convo > div,
.convo small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo.active {
  background: var(--gold-wash);
}

.window .thread {
  background: var(--chat-bg);
}

/* 通用分区 */
.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.08rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.card li + li {
  margin-top: 4px;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-wash);
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* WhatsApp 段 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.features li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
}

.features .tick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-light);
  color: #15171c;
  display: grid;
  place-items: center;
}

.features .tick svg {
  width: 15px;
  height: 15px;
}

.features strong {
  display: block;
  margin-bottom: 2px;
}

.features span {
  color: var(--ink-2);
  font-size: 0.97rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 74px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  background: var(--ink);
  color: var(--bg);
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-wash);
  border-radius: 0 10px 10px 0;
  font-size: 0.94rem;
  color: var(--ink-2);
}

/* 公司信息 */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts div {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.facts div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.facts dt {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

/* 联系 */
#contact {
  padding-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 22px;
  background: #15171c;
  color: #f4f1e8;
}

.contact-card h2 {
  color: #ffffff;
}

.contact-card p {
  color: #cfcbbf;
}

.contact-card .email {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  word-break: break-all;
}

.contact-card address {
  font-style: normal;
  color: #cfcbbf;
  line-height: 1.7;
}

.contact-card address strong {
  color: #ffffff;
}

/* 页脚 */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer .brand img {
  width: 72px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 6px;
}

/* 法律页面 */
.doc {
  padding: 56px 0 88px;
}

.doc .wrap {
  max-width: 820px;
}

.doc header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.doc header p {
  color: var(--muted);
  margin: 0;
}

.doc h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}

.doc h3 {
  font-size: 1.08rem;
  margin-top: 1.6em;
}

.doc p,
.doc li {
  color: var(--ink-2);
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.doc .toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.doc .toc a {
  text-decoration: none;
}

.doc .toc a:hover {
  text-decoration: underline;
}

.doc .callout {
  background: var(--gold-wash);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.doc .callout p:last-child {
  margin-bottom: 0;
}

.doc kbd {
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

.notfound {
  padding: 120px 0;
  text-align: center;
}

.notfound p {
  color: var(--ink-2);
}

/* 响应式 */
@media (max-width: 980px) {
  .hero .wrap,
  .split,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding: 48px 0 64px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .nav a:not(.btn) {
    display: none;
  }

  .brand img {
    width: 70px;
  }

  .site-header .wrap {
    height: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .sync {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .phone {
    width: 220px;
  }

  .sync-arrows {
    transform: rotate(90deg);
  }

  .inbox {
    width: 100%;
  }

  .window .body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .convos {
    display: none;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts div:nth-child(odd) {
    border-right: 0;
  }

  .facts div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-card {
    padding: 32px 24px;
  }

  .doc .toc ol {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
