:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  color: #17221d;
  background: #f2f5f3;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }
.session-actions p { margin: 0 0 18px; }
.session-actions p:empty { display: none; }
.platform-choice { padding: 28px 36px 0; }
.platform-choice h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.platform-choice p { margin-bottom: 20px; }
.platform-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platform-methods .platform-method {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 94px;
  padding: 18px; border: 1px solid #b8d9c9; border-radius: 8px;
  color: #17221d; background: #f2fbf6; text-align: left;
}
.platform-methods .is-douyin { border-color: #e4c3cc; background: #fcf6f8; }
.platform-method > span:nth-child(2) { flex: 1; min-width: 0; }
.platform-method strong { display: block; font-size: 17px; }
.platform-method small { display: block; margin-top: 5px; color: #607168; font-size: 12px; }
.platform-mark { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 8px; color: #fff; background: #08ad65; font-size: 23px; font-weight: 700; }
.is-douyin .platform-mark { background: #17191c; box-shadow: 3px 2px 0 #ee5274; }
.platform-methods .platform-method:hover { border-color: #347753; }
.platform-methods .is-douyin:hover { border-color: #c65775; }
.platform-method:focus-visible { outline: 3px solid #d5a328; outline-offset: 3px; }
@media (max-width: 600px) {
  .platform-choice { padding: 24px 22px 0; }
  .platform-methods { grid-template-columns: minmax(0, 1fr); }
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(58px, auto) 1fr 48px;
  background: #f2f5f3;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px;
  color: #f7faf8;
  background: #152a22;
  border-bottom: 3px solid #d5a328;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
}

.brand span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #152a22;
  background: #f2c94c;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.service-state {
  color: #bcd1c6;
  font-size: 12px;
}

.access-shell {
  width: min(100% - 32px, 680px);
  margin: auto;
  padding: 40px 0;
}

.customer-notice {
  margin-bottom: 14px;
  padding: 16px 20px;
  border: 1px solid #b9d4c0;
  border-radius: 6px;
  color: #17382a;
  background: #eff8f1;
}

.customer-notice h2 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.customer-notice p {
  margin-top: 6px;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.access-panel {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ccd7d1;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(20, 43, 34, 0.1);
}

.panel-heading {
  padding: 34px 36px 26px;
  border-bottom: 1px solid #e1e7e3;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #a06d00;
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

p {
  margin: 9px 0 0;
  color: #607168;
  font-size: 14px;
  line-height: 1.6;
}

.access-form {
  padding: 28px 36px 34px;
}

.entry-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 36px 0;
  overflow: hidden;
  border: 1px solid #9eada5;
  border-radius: 5px;
  background: #9eada5;
}

.entry-switch span,
.entry-switch a {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: #35463e;
  background: #fbfcfb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.entry-switch span[aria-current="page"] {
  color: #ffffff;
  background: #146b45;
}

.entry-switch a:hover { background: #edf5f0; }
.entry-switch a:focus-visible {
  outline: 3px solid rgba(213, 163, 40, 0.45);
  outline-offset: -3px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #35463e;
  font-size: 13px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 46px;
  border-radius: 5px;
  font: inherit;
  letter-spacing: 0;
}

input {
  width: 100%;
  padding: 0 14px;
  color: #17221d;
  background: #fbfcfb;
  border: 1px solid #9eada5;
  font-family: Consolas, "Microsoft YaHei UI", monospace;
  font-size: 15px;
  text-transform: uppercase;
  outline: none;
}

input:focus {
  border-color: #16754b;
  box-shadow: 0 0 0 3px rgba(22, 117, 75, 0.14);
}

button {
  min-width: 132px;
  padding: 0 20px;
  color: #ffffff;
  background: #146b45;
  border: 1px solid #0e5a38;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

button:hover {
  background: #0f5e3c;
}

button:focus-visible {
  outline: 3px solid rgba(213, 163, 40, 0.45);
  outline-offset: 2px;
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status-line {
  min-height: 50px;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #345046;
  background: #edf5f0;
  border-top: 1px solid #d7e5dd;
  font-size: 13px;
}

.status-line[hidden] {
  display: none;
}

.status-line.error {
  color: #8b2d2d;
  background: #fff1f1;
  border-top-color: #efd0d0;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #188052;
}

.status-line.error .status-dot {
  background: #bd3e3e;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #77857e;
  font-size: 11px;
}

.topbar-action,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: #146b45;
  border: 1px solid #0e5a38;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.topbar-action {
  min-height: 34px;
  color: #152a22;
  background: #f2c94c;
  border-color: #f2c94c;
}

.topbar-action:hover { background: #ffd96b; }
.primary-link:hover { background: #0f5e3c; }
.topbar-action:focus-visible,
.primary-link:focus-visible {
  outline: 3px solid rgba(213, 163, 40, 0.45);
  outline-offset: 2px;
}

.preview-page {
  grid-template-rows: 58px 1fr 48px;
}

.preview-shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 38px 0 48px;
}

.preview-intro {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0 38px;
  border-bottom: 1px solid #cbd7d0;
}

.preview-intro > div { max-width: 680px; }
.preview-intro h1 { font-size: 36px; }
.preview-intro p { max-width: 620px; font-size: 16px; }
.preview-intro .primary-link { flex: 0 0 auto; min-width: 150px; }

.preview-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 32px 0 40px;
}

.feature-item {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ccd7d1;
  border-radius: 6px;
}

.feature-copy {
  min-height: 132px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid #dce4df;
}

.feature-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #765100;
  background: #fff4cf;
  border: 1px solid #e7cc70;
  border-radius: 50%;
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.feature-item h2,
.preview-guide h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.feature-item p { margin-top: 6px; }
.feature-item img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: contain;
  object-position: top center;
  background: #101411;
}

.preview-guide {
  padding: 34px 0 10px;
  border-top: 1px solid #cbd7d0;
}

.guide-heading { margin-bottom: 22px; }
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #cbd7d0;
  border: 1px solid #cbd7d0;
}

.guide-steps li {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  gap: 10px;
  padding: 18px;
  background: #ffffff;
}

.guide-steps li > span {
  color: #a06d00;
  font-family: Consolas, monospace;
  font-weight: 700;
}

.guide-steps strong,
.guide-steps small { display: block; }
.guide-steps strong { font-size: 14px; }
.guide-steps small { margin-top: 5px; color: #66756e; line-height: 1.45; }
.guide-action { margin-top: 24px; }

@media (max-width: 600px) {
  body {
    grid-template-rows: 54px 1fr 42px;
  }

  .topbar {
    padding: 0 16px;
  }

  .access-shell {
    width: min(100% - 24px, 680px);
    padding: 24px 0;
  }

  .panel-heading,
  .access-form {
    padding-left: 22px;
    padding-right: 22px;
  }

  .entry-switch { margin-left: 22px; margin-right: 22px; }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .status-line {
    padding-left: 22px;
    padding-right: 22px;
  }

  .preview-page { grid-template-rows: 54px 1fr 42px; }
  .preview-shell { width: min(100% - 24px, 620px); padding: 22px 0 36px; }
  .preview-intro {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    padding: 12px 0 28px;
  }
  .preview-intro h1 { font-size: 27px; }
  .preview-intro p { font-size: 14px; }
  .preview-intro .primary-link { width: 100%; }
  .preview-features { grid-template-columns: 1fr; padding: 24px 0 32px; }
  .feature-copy { min-height: 0; padding: 20px; }
  .feature-item img { height: 420px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-steps li { min-height: 84px; }
  .guide-action { width: 100%; }
}
