/* 官网首页的登录弹窗和意见反馈面板样式。
   从旧版 landing.css、landing-polish.css 原样搬来（#1200），只把全局元素选择器收进弹窗和 .customer-service 里，
   免得影响新首页；外观和旧版一致。意见反馈的入口挪到了顶栏（手机上在菜单里），面板贴在顶栏下面靠右。 */
:is(dialog, .customer-service) {
  color-scheme: dark;

  --bg: #12151c;
  --panel: #191f2b;
  --panel-strong: #202735;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f4f4;
  --muted: #a5a5a5;
  --soft: #747474;
  --ink: #050505;
  --shadow: rgba(0, 0, 0, 0.44);
}
html[data-theme="light"] :is(dialog, .customer-service) {
  color-scheme: light;
  --bg: #f1f2f7;
  --panel: #f6f7f9;
  --panel-strong: #ffffff;
  --line: rgba(9, 12, 18, 0.12);
  --line-strong: rgba(9, 12, 18, 0.24);
  --text: #050505;
  --muted: #5f6672;
  --soft: #7c8491;
  --ink: #ffffff;
  --shadow: rgba(15, 23, 42, 0.12);
}
/* 新首页给正文和标签定了自己的字体、行高、间距，还有一个同名变量 --surface；
   弹窗（登录、绑定、协议同意）和反馈面板里退回旧页的写法，外观才和原来一样 */
dialog, .customer-service-panel {
  --surface: initial;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-variant-numeric: normal;
  line-height: normal;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
:where(dialog, .customer-service) :is(h1, h2, h3, p, ul, ol, figure) {
  margin: revert;
  padding: revert;
}
:where(dialog, .customer-service) :is(ul, ol) {
  list-style: revert;
}
:where(dialog, .customer-service) button, :where(dialog, .customer-service) input, :where(dialog, .customer-service) select {
  font: inherit;
}
:where(dialog, .customer-service) button, :where(dialog, .customer-service) a {
  -webkit-tap-highlight-color: transparent;
}
:where(dialog, .customer-service) a {
  color: inherit;
  text-decoration: none;
}
.section-index {
  margin: 0;
  color: var(--muted);
  font-family: "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 20px;
}
.section-index::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: #d8d8d8;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
  vertical-align: 1px;
}
:where(dialog, .customer-service) h2, :where(dialog, .customer-service) p {
  text-wrap: pretty;
}
.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 178px;
  min-height: 52px;
  margin-top: 32px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #ffffff 0%, #dddddd 48%, #a8a8a8 100%);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(255, 255, 255, 0.08), 0 18px 48px var(--shadow);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
html[data-theme="light"] .primary-button {
  border-color: rgba(5, 5, 5, 0.86);
  background: linear-gradient(180deg, #151515 0%, #050505 100%);
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}
html[data-theme="light"] .primary-button::after {
  border-color: rgba(255, 255, 255, 0.16);
}
.primary-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}
.primary-button:hover, .primary-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.12), 0 24px 64px var(--shadow);
}
.waitlist-dialog h2, .auth-dialog h2 {
  margin: 16px 0 0;
  font-size: 2.24rem;
}
.waitlist-copy, .waitlist-dialog p, .auth-dialog p {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 28px;
}
.waitlist-form, .dialog-shell, .auth-form, .feedback-panel {
  display: grid;
  gap: 16px;
}
:where(dialog, .customer-service) label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}
:where(dialog, .customer-service) input, :where(dialog, .customer-service) select, :where(dialog, .customer-service) textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
:where(dialog, .customer-service) textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  line-height: 1.7;
}
:where(dialog, .customer-service) select option {
  color: #111111;
}
:where(dialog, .customer-service) input:focus, :where(dialog, .customer-service) select:focus, :where(dialog, .customer-service) textarea:focus {
  border-color: rgba(255, 255, 255, 0.56);
}
.form-button {
  width: 100%;
  margin-top: 4px;
}
.form-status, .dialog-status {
  min-height: 24px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 24px;
}
.waitlist-dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.68);
}
.waitlist-dialog::backdrop {
  background: rgba(18, 21, 28, 0.74);
  backdrop-filter: blur(8px);
}
.dialog-shell {
  position: relative;
  padding: 20px;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  line-height: 24px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.auth-tab, .code-button, .wechat-button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.auth-tab.is-active, .auth-tab:hover, .auth-tab:focus-visible, .code-button:hover, .code-button:focus-visible, .wechat-button:hover, .wechat-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}
.wechat-button {
  width: 100%;
  font-weight: 600;
}
.auth-panel[hidden], .local-phone-login[hidden], .wechat-account-choices[hidden], .wechat-bind-form[hidden] {
  display: none;
}
.local-phone-login {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.wechat-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-color: rgba(7, 193, 96, 0.54);
  background: rgba(7, 193, 96, 0.12);
  font-size: 16px;
  line-height: 24px;
}
.wechat-primary:hover, .wechat-primary:focus-visible {
  border-color: #07c160;
  background: rgba(7, 193, 96, 0.2);
}
.wechat-mark, .wechat-success-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border-radius: 50%;
  background: #07c160;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}
.wechat-onboarding-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(7, 193, 96, 0.34);
  background: rgba(7, 193, 96, 0.08);
}
.wechat-onboarding-heading div {
  display: grid;
  gap: 4px;
}
.wechat-onboarding-heading small {
  color: var(--muted);
}
.wechat-account-choices {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.wechat-account-choices button, .auth-secondary-button {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
}
.wechat-account-choices button {
  display: grid;
  gap: 8px;
  padding: 16px;
  text-align: left;
}
.wechat-account-choices button:hover, .wechat-account-choices button:focus-visible, .auth-secondary-button:hover, .auth-secondary-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.09);
}
.wechat-account-choices span {
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}
.wechat-bind-form {
  margin-top: 16px;
}
.auth-secondary-button {
  min-height: 40px;
}
.wechat-button:disabled, .wechat-account-choices button:disabled, .auth-form button:disabled {
  cursor: progress;
  opacity: 0.58;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--soft);
  font-size: 14px;
  line-height: 24px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 8px;
  align-items: end;
}
.code-button {
  padding: 0 12px;
}
.auth-note {
  margin: -4px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 24px;
}
.feedback-panel {
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: start;
}
.qr-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.qr-code {
  display: block;
  width: 132px;
  height: 132px;
}
.qr-card p, .qr-card span {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 24px;
}
.qr-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}
html[data-theme="light"] :where(dialog, .customer-service) input, html[data-theme="light"] :where(dialog, .customer-service) select, html[data-theme="light"] :where(dialog, .customer-service) textarea, html[data-theme="light"] .auth-tab, html[data-theme="light"] .code-button, html[data-theme="light"] .wechat-button, html[data-theme="light"] .wechat-account-choices button, html[data-theme="light"] .auth-secondary-button, html[data-theme="light"] .qr-card {
  background: rgba(5, 5, 5, 0.035);
}
html[data-theme="light"] .section-index::before {
  background: #101010;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
}
html[data-theme="light"] :where(dialog, .customer-service) input:focus, html[data-theme="light"] :where(dialog, .customer-service) select:focus, html[data-theme="light"] :where(dialog, .customer-service) textarea:focus {
  border-color: rgba(5, 5, 5, 0.46);
}
html[data-theme="light"] .form-status, html[data-theme="light"] .dialog-status {
  color: #111827;
}
html[data-theme="light"] .waitlist-dialog {
  background: #ffffff;
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.24);
}
html[data-theme="light"] .waitlist-dialog::backdrop {
  background: rgba(248, 250, 252, 0.72);
}
html[data-theme="light"] .auth-tabs {
  background: rgba(5, 5, 5, 0.035);
}
html[data-theme="light"] .auth-tab.is-active, html[data-theme="light"] .auth-tab:hover, html[data-theme="light"] .auth-tab:focus-visible, html[data-theme="light"] .code-button:hover, html[data-theme="light"] .code-button:focus-visible, html[data-theme="light"] .wechat-button:hover, html[data-theme="light"] .wechat-button:focus-visible {
  border-color: rgba(5, 5, 5, 0.42);
  background: rgba(5, 5, 5, 0.08);
}
html[data-theme="light"] .wechat-primary {
  border-color: rgba(7, 193, 96, 0.46);
  background: rgba(7, 193, 96, 0.1);
}
html[data-theme="light"] .wechat-account-choices button:hover, html[data-theme="light"] .wechat-account-choices button:focus-visible, html[data-theme="light"] .auth-secondary-button:hover, html[data-theme="light"] .auth-secondary-button:focus-visible {
  border-color: rgba(5, 5, 5, 0.42);
  background: rgba(5, 5, 5, 0.08);
}
@media (max-width: 980px) {
.feedback-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
.primary-button {
    width: min(100%, 260px);
    min-height: 50px;
  }
.waitlist-dialog h2 {
    font-size: 28px;
    line-height: 36px;
  }
.code-row {
    grid-template-columns: 1fr;
  }
.qr-card {
    justify-items: start;
  }
}
.customer-service {
  position: fixed;
  top: 72px;
  right: max(48px, calc((100vw - 1200px) / 2));
  z-index: 70;
}
.customer-service-panel {
  position: relative;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 24px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(20px);
  animation: customerPanelIn 220ms ease both;
}
.customer-service-panel[hidden] { display: none; }
.customer-service-panel h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 32px;
}
.customer-service-panel > p:not(.section-index) {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}
.customer-service-panel > strong, .customer-service-panel > span {
  display: block;
  text-align: center;
}
.customer-service-panel > strong {
  margin-top: 12px;
  color: var(--text);
}
.customer-service-panel > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.customer-service-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 32px;
}
.customer-service-qr {
  display: block;
  width: 164px;
  height: 164px;
  margin: 0 auto;
  border: 10px solid #fff;
  background: #fff;
}
@keyframes customerPanelIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
html[data-theme="light"] .customer-service-panel {
  background: rgba(255, 255, 255, 0.97);
  color: #111;
}
html[data-theme="light"] .customer-service-panel h2, html[data-theme="light"] .customer-service-panel > strong { color: #111; }
html [data-sms-login-form] :is(.code-button[data-sms-send], .primary-button[type="submit"]) {
  min-height: 44px;
  background: #2563EB;
  border-color: #fff;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}
html [data-sms-login-form] :is(.code-button[data-sms-send], .primary-button[type="submit"]):hover:not(:disabled) {
  background: #1D4ED8;
  border-color: #1D4ED8;
}
html [data-sms-login-form] :is(.code-button[data-sms-send], .primary-button[type="submit"]):focus-visible {
  outline: 2px solid #20AEEF;
  outline-offset: 3px;
}
html[data-theme="dark"] [data-sms-login-form] :is(.code-button[data-sms-send], .primary-button[type="submit"]) {
  background: #2563EB;
  border-color: #fff;
  color: #fff;
}
html[data-theme="dark"] [data-sms-login-form] :is(.code-button[data-sms-send], .primary-button[type="submit"]):hover:not(:disabled) {
  background: #3B82F6;
  border-color: #3B82F6;
}
html [data-sms-login-form] :is(.code-button[data-sms-send], .primary-button[type="submit"]):disabled {
  opacity: .58;
  cursor: not-allowed;
}
html [data-sms-login-form] > .primary-button {
  box-shadow: none;
  transform: none;
  filter: none;
  transition: border-color 180ms ease, background 180ms ease;
}
html [data-sms-login-form] > .primary-button::after { content: none; }
html #auth-dialog [data-login-method][aria-pressed="true"] {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
}
html #auth-dialog .remember-login input { accent-color: #2563EB; }
.wechat-qr-embed {display:flex;justify-content:center;align-items:center;min-height:120px;overflow:hidden}
.wechat-qr-embed[hidden] {display:none}
.wechat-qr-embed:not([hidden]) {position:relative;min-height:276px}
.wechat-qr-frame {position:relative;z-index:1;display:block;width:260px;height:276px;border:0;margin:0 auto;background:transparent;color-scheme:normal}
.wechat-qr-loading {position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:0}
.wechat-qr-skeleton {position:relative;display:grid;place-items:center;width:240px;height:240px;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,rgba(37,99,235,.05),rgba(124,58,237,.07))}
.wechat-qr-skeleton::before {content:"";position:absolute;inset:14px;background:
  linear-gradient(#2563eb,#2563eb) left top/30px 3px no-repeat,linear-gradient(#2563eb,#2563eb) left top/3px 30px no-repeat,
  linear-gradient(#4f46e5,#4f46e5) right top/30px 3px no-repeat,linear-gradient(#4f46e5,#4f46e5) right top/3px 30px no-repeat,
  linear-gradient(#4f46e5,#4f46e5) left bottom/30px 3px no-repeat,linear-gradient(#4f46e5,#4f46e5) left bottom/3px 30px no-repeat,
  linear-gradient(#7c3aed,#7c3aed) right bottom/30px 3px no-repeat,linear-gradient(#7c3aed,#7c3aed) right bottom/3px 30px no-repeat;border-radius:4px}
.wechat-qr-skeleton i {position:absolute;left:26px;right:26px;top:26px;height:2px;border-radius:4px;background:linear-gradient(90deg,transparent,#2563eb 20%,#7c3aed 80%,transparent);box-shadow:0 0 12px 2px rgba(99,102,241,.45);animation:wechatQrScan 1.8s ease-in-out infinite alternate}
@keyframes wechatQrScan {to{top:212px}}
@media (prefers-reduced-motion:reduce) {
.wechat-qr-skeleton i {animation:none;top:119px;opacity:.6}
}
.wechat-qr-hint {margin:0;color:#5d6680;font-size:13px;line-height:20px}
html #auth-dialog p.wechat-qr-lna, .wechat-qr-lna {margin:-8px 0 0;color:var(--auth-muted,#7a839a);font-size:12px;line-height:20px;text-align:center}
html #auth-dialog p.wechat-qr-lna[hidden], .wechat-qr-lna[hidden] {display:none}
.wechat-button[hidden] {display:none}
.wechat-qr-skeleton .wechat-qr-hint {position:relative;z-index:1;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 2px 10px rgba(79,70,229,.12);color:#4f46e5;font-size:13px;font-weight:600;line-height:20px}

/* 原 landing-polish.css 里属于反馈浮窗的部分 */
.customer-service-panel {width:min(390px,calc(100vw - 32px));max-height:calc(100svh - 96px);overflow:auto;border-radius:16px;padding:28px;box-shadow:0 20px 80px #141c3826}
@media (max-width: 899px) {
  .customer-service {left:16px;right:16px}
  .customer-service-panel {width:auto}
}
#landing-feedback {margin-top:20px}
#landing-feedback label {display:block;font-size:13px;font-weight:600;margin:16px 0 8px;line-height:20px}
#landing-feedback label span {font-size:11px;font-weight:400;color:#8b93a1;margin-left:8px;line-height:16px}
#landing-feedback textarea, #landing-feedback input {box-sizing:border-box;width:100%;padding:12px;border:1px solid #c8cdd655;background:var(--bg);color:inherit;font:14px/1.6 inherit;border-radius:8px;resize:vertical}
#landing-feedback textarea:focus, #landing-feedback input:focus {outline:2px solid #5a6bf0;outline-offset:1px}
.feedback-help, .feedback-status {font-size:11px!important;color:#828b98!important;line-height:16px}
.feedback-submit {width:100%;margin-top:12px;border:0;border-radius:8px;background:#151b27;color:white;padding:12px;font-weight:600;cursor:pointer}
.primary-button:focus-visible {outline:2px solid currentColor;outline-offset:2px}
