* {
  box-sizing: border-box;
}

:root {
  --page-bg: #f4f5fa;
  --surface: #fbfbfd;
  --surface-strong: #ffffff;
  --ink: #111432;
  --muted: #676d84;
  --line: #d9dce8;
  --line-strong: #c9cddd;
  --violet: #625bd7;
  --violet-dark: #292565;
  --violet-soft: #e9eafa;
  --mint-soft: #e3f2ed;
}

html {
  scroll-behavior: smooth;
}

body.content-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--page-bg);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 10px 0 0;
  background: transparent;
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  padding: 7px 12px 7px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(42, 46, 92, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.topbar .brand {
  margin-right: auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

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

.nav-links a {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #555b72;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--violet-dark);
  background: var(--violet-soft);
}

.nav-action {
  display: none;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--violet-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.topbar .nav-action { display: none; }

.nav-action:hover {
  background: var(--violet);
}

.policy-main {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 110px;
}

.policy-hero {
  position: relative;
  padding: 0 0 64px 48px;
  border-bottom: 1px solid var(--line-strong);
}

.policy-hero::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--violet);
}

.policy-hero .eyebrow {
  margin: 0 0 20px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 900;
}

.policy-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  font-family: "DengXian", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.policy-hero p:last-child {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.policy-content {
  padding-top: 10px;
}

.policy-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px 54px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section > :not(h2) {
  grid-column: 2;
}

.policy-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  font-family: "DengXian", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
}

.policy-section h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 17px;
}

.policy-section p,
.policy-section li {
  margin-top: 0;
  color: #4f566f;
  font-size: 15px;
  line-height: 1.9;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 0;
  padding-left: 20px;
}

.policy-section a:not(.mail-button) {
  color: var(--violet-dark);
  font-weight: 800;
}

.contact-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 20px 22px;
  background: var(--violet-soft);
  border: 1px solid #d8d9f1;
  border-radius: 8px;
}

.contact-highlight strong {
  color: var(--ink);
}

.contact-highlight a {
  color: var(--violet-dark);
  font-weight: 900;
}

.mail-form {
  display: grid;
  gap: 20px;
  margin-top: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(98, 91, 215, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.mail-button {
  width: fit-content;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: var(--violet-dark);
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.mail-button:hover {
  background: var(--violet);
}

.policy-meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: auto auto 16px;
  padding: 7px 18px;
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(420px, 1.3fr) auto;
  gap: 20px;
  min-height: 62px;
  align-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(42, 46, 92, 0.08);
  backdrop-filter: blur(18px);
}

.footer-brand .brand-mark {
  background: transparent;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.site-footer-links a {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #555c75;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.site-footer-links a:hover {
  color: var(--violet-dark);
  background: var(--violet-soft);
}

.footer-contact {
  margin: 0;
  color: #6c7288;
  font-size: 11px;
  white-space: nowrap;
}

.footer-contact a {
  color: inherit;
}

@media (max-width: 900px) {
  .nav-links a:nth-child(3),
  .nav-links a:nth-child(4) {
    display: none;
  }

  .policy-section {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px 34px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 0 0;
  }

  .topbar-inner {
    min-height: 62px;
    padding-left: 13px;
    gap: 8px;
  }

  .brand-copy small,
  .nav-links {
    display: none;
  }

  .nav-action {
    min-height: 42px;
    padding-inline: 15px;
  }

  .policy-main {
    width: min(100% - 28px, 1080px);
    padding: 62px 0 78px;
  }

  .policy-hero {
    padding: 0 0 44px 30px;
  }

  .policy-hero::before {
    width: 18px;
  }

  .policy-hero h1 {
    font-size: 40px;
  }

  .policy-hero p:last-child {
    font-size: 14px;
  }

  .policy-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 0;
  }

  .policy-section > :not(h2) {
    grid-column: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .mail-button {
    width: 100%;
  }

  .site-footer {
    width: min(100% - 24px, 1180px);
    padding: 10px 12px;
  }

  .site-footer-links {
    gap: 2px;
  }
}

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