:root {
  color-scheme: light;
  --yellow: #ffe45b;
  --yellow-deep: #d7ad00;
  --ink: #20252b;
  --muted: #747d87;
  --line: #e1e5e9;
  --panel: #f7f8f9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #f4f6f8;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

a {
  color: inherit;
}

.policy-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1500px) / 2));
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e4e7eb;
  box-shadow: 0 5px 16px rgba(24, 30, 38, .04);
  backdrop-filter: blur(10px);
}

.policy-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.policy-brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, #fff29c, #ffac57);
  border: 2px solid #23282e;
  border-radius: 50%;
  place-items: center;
  font-size: 17px;
  font-weight: 950;
}

.policy-brand strong,
.policy-brand small {
  display: block;
}

.policy-brand strong {
  font-size: 17px;
}

.policy-brand small {
  margin-top: 2px;
  color: #7f8791;
  font-size: 10px;
}

.policy-site-header > nav,
.policy-footer nav {
  display: flex;
  gap: 24px;
}

.policy-site-header > nav a,
.policy-footer nav a {
  color: #4c545e;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.policy-site-header > nav a:hover,
.policy-footer nav a:hover {
  color: #a87900;
}

.policy-page {
  width: min(1500px, calc(100% - 44px));
  min-height: calc(100dvh - 150px);
  margin: 0 auto;
  padding: 34px 0 60px;
}

.policy-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.policy-page-head small,
.policy-article-title small {
  display: block;
  margin-bottom: 5px;
  color: #b27c00;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.policy-page-head h1 {
  margin: 0;
  color: #17191d;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.policy-page-head p {
  margin: 8px 0 0;
  color: #7b848e;
  font-size: 13px;
}

.policy-page-head > a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  color: #454d57;
  background: #fff;
  border: 1px solid #dbe0e5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.policy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.policy-sidebar {
  position: sticky;
  top: 86px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde2e7;
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(28, 34, 42, .05);
}

.policy-sidebar > strong {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 0 20px;
  background: #fff8d8;
  border-bottom: 1px solid #ece2ad;
  font-size: 15px;
}

.policy-sidebar nav {
  display: grid;
}

.policy-sidebar nav a {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 21px;
  color: #57616c;
  border-bottom: 1px solid #eaedf0;
  font-size: 13px;
  text-decoration: none;
}

.policy-sidebar nav a:hover {
  color: #1c2025;
  background: #f7f8f9;
}

.policy-sidebar nav a b {
  color: #a1a8b0;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.policy-sidebar nav a.active {
  color: #17191d;
  background: var(--yellow);
  font-weight: 900;
}

.policy-sidebar nav a.active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #252a30;
}

.policy-contact {
  display: grid;
  gap: 5px;
  padding: 20px;
  background: #f8f9fa;
}

.policy-contact small,
.policy-contact span {
  color: #858e98;
  font-size: 10px;
}

.policy-contact a {
  color: #272c32;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
}

.policy-content {
  min-width: 0;
}

.policy-article {
  display: none;
  min-height: 760px;
  padding: 38px 42px 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(28, 34, 42, .055);
}

.policy-article.active {
  display: block;
  animation: policy-in .2s ease both;
}

.policy-article[hidden] {
  display: none !important;
}

.policy-article-title {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e8eb;
}

.policy-article-title > span {
  display: grid;
  width: 58px;
  height: 58px;
  color: #fff;
  background: #292d33;
  border-radius: 11px;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 950;
}

.policy-article-title h2 {
  margin: 0;
  color: #15181d;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -.035em;
}

.policy-article-title p {
  margin: 5px 0 0;
  color: #89919b;
  font-size: 12px;
}

.policy-summary {
  margin-bottom: 16px;
  padding: 20px 22px;
  background: #fff9dd;
  border: 1px solid #ebdc99;
  border-radius: 8px;
}

.policy-summary strong {
  color: #373117;
  font-size: 13px;
}

.policy-summary p {
  margin: 8px 0;
  color: #6f6951;
  font-size: 11px;
  line-height: 1.8;
}

.policy-summary small {
  color: #9a9375;
  font-size: 9px;
}

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

.policy-section-grid section {
  padding: 21px 22px;
  background: var(--panel);
  border: 1px solid #e7e9ec;
  border-radius: 8px;
}

.policy-section-grid h3,
.order-checklist h3,
.policy-order-steps h3 {
  position: relative;
  margin: 0 0 10px;
  padding-left: 12px;
  color: #30363d;
  font-size: 14px;
}

.policy-section-grid h3::before,
.order-checklist > h3::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 3px;
  background: #e2b611;
  border-radius: 3px;
}

.policy-section-grid p,
.policy-section-grid li,
.policy-order-steps p {
  color: #6f7883;
  font-size: 11px;
  line-height: 1.85;
}

.policy-section-grid p {
  margin: 0;
}

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

.policy-notice,
.policy-warning {
  margin-top: 18px;
  padding: 14px 17px;
  color: #665d34;
  background: #fff9e4;
  border: 1px solid #e8d79a;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.75;
}

.policy-warning {
  color: #994735;
  background: #fff4ef;
  border-color: #efc0b5;
}

.order-checklist {
  margin-bottom: 16px;
  padding: 22px;
  background: #fff9dd;
  border: 1px solid #ebdc99;
  border-radius: 8px;
}

.order-checklist > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.order-checklist label {
  display: flex;
  align-items: start;
  gap: 8px;
  color: #625d47;
  font-size: 11px;
  line-height: 1.6;
}

.order-checklist input {
  margin-top: 2px;
  accent-color: #d6ab00;
}

.policy-order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.policy-order-steps section {
  position: relative;
  min-height: 190px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
}

.policy-order-steps section > span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  color: #24292f;
  background: var(--yellow);
  border-radius: 7px;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 950;
}

.policy-order-steps h3 {
  padding-left: 0;
}

.policy-order-steps p {
  margin: 0;
}

.policy-footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - 1500px) / 2));
  color: #c9ced4;
  background: #272c32;
}

.policy-footer strong,
.policy-footer span {
  display: block;
}

.policy-footer strong {
  color: #fff;
  font-size: 15px;
}

.policy-footer span {
  margin-top: 5px;
  font-size: 10px;
}

.policy-footer nav a {
  color: #d6d9dd;
}

.policy-page :is(a, input):focus-visible,
.policy-site-header :is(a, button):focus-visible {
  outline: 3px solid rgba(255, 216, 61, .48);
  outline-offset: 2px;
}

@keyframes policy-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
  }

  .policy-sidebar > strong,
  .policy-contact {
    display: none;
  }

  .policy-sidebar nav {
    display: flex;
    padding: 8px;
  }

  .policy-sidebar nav a {
    min-height: 38px;
    flex: 1 1 0;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
  }

  .policy-order-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .policy-site-header {
    padding: 0 14px;
  }

  .policy-site-header > nav a:not(:last-child) {
    display: none;
  }

  .policy-page {
    width: min(100% - 24px, 1500px);
    padding-top: 22px;
  }

  .policy-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-article {
    padding: 25px 20px 30px;
  }

  .policy-section-grid,
  .policy-order-steps,
  .order-checklist > div {
    grid-template-columns: 1fr;
  }

  .policy-sidebar nav a b {
    display: none;
  }

  .policy-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 18px;
  }
}

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

  .policy-article.active {
    animation: none;
  }
}
