﻿/* =========================================================
   AUTH LAYOUT SPECIFIC STYLES
   (login, register, reset, pay pages)
   ========================================================= */

:root {
  --brand-start: #0025CA;
  --brand-end: #0093CD;
  --brand-gradient: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  --hover-gradient: linear-gradient(90deg, #0025CA, #00F0F0);
}

body,
.auth-page {
  background: var(--surface-raised);
}
.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

/* ===== Header & Nav ===== */
.site-head {
  min-height: 80px;
  color: #fff;
  background: var(--primary);
}
.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 30;
  width: 100%;
  max-width: none;
  background: rgba(15, 23, 42, .95);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background 0.3s ease;
}
.nav-wrap.scrolled {
  height: 72px;
  background: rgba(15, 23, 42, .98);
}
.logo-box {
  width: 260px;
  height: 36px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 20px;
}
.logo-box img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a {
  height: 72px;
  display: grid;
  place-items: center;
  position: relative;
  color: rgba(255,255,255,.75);
  transition: color 0.2s ease;
  padding: 0 4px;
}
.nav-wrap.scrolled .site-nav a { height: 72px; }
.site-nav a:hover { color: #fff; }
.site-nav a.active {
  color: #fff;
  font-weight: 600;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 14px;
  width: auto;
  height: 4px;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--brand-gradient);
  transition: transform .22s ease;
}
.first-login-note{
    margin-top: 5px;
    font-size: 14px;
    color: #666666;
}
.site-nav a.active::after,
.site-nav a:hover::after { transform: scaleX(1); }
.site-search-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transition: background 0.2s ease;
}
.site-search-link:hover {
  color: #fff;
  border: none;
  background: var(--hover-gradient);
  box-shadow: none;
}
.site-search-link span {
  width: 14px;
  height: 14px;
  display: block;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.site-search-link span::after {
  content: "";
  width: 7px;
  height: 2px;
  position: absolute;
  right: -6px;
  bottom: -3px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.site-auth-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.auth-action {
  min-width: 78px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
  font-size: 18px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.2s ease, background 0.2s ease;
}
.auth-action:hover {
  color: #fff;
  border: none;
  background: var(--hover-gradient);
  box-shadow: none;
}
.auth-action-register {
  color: #fff;
  border: none;
  background: transparent;
}
.auth-action-register:hover,
.auth-action-center:hover,
.auth-action-logout:hover {
  color: #fff;
  border: none;
  background: var(--hover-gradient);
  box-shadow: none;
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  position: relative;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 8px;
}
.menu-toggle:hover {
  background: rgba(255,255,255,.12);
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: #fff;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle::before { transform: translate(-50%, calc(-50% - 6px)); }
.menu-toggle::after { transform: translate(-50%, calc(-50% + 6px)); }
body.menu-open .menu-toggle span { opacity: 0; }
body.menu-open .menu-toggle::before { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .menu-toggle::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ===== Auth Shell ===== */
.auth-shell {
  width: min(1040px, calc(100% - 48px));
  margin: 56px auto 0;
  flex: 1 0 auto;
  min-height: 360px;
  min-width: 0;
}
.auth-page .auth-shell {
  margin-top: 60px;
  padding-bottom: 56px;
}
body > [popover="manual"][style*="forced-color-adjust"],
body > [popover="manual"][style*="color-scheme: initial"] {
  display: none !important;
}
.page-title {
  margin: 0;
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
  color: var(--primary);
  animation: fadeInUp 0.5s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.steps li {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 14px;
}
.steps li.active {
  color: #fff;
  background: linear-gradient(90deg, #0025CA, #0093CD);
}
.steps.steps-compact { grid-template-columns: repeat(3, 1fr); }

/* ===== Panel ===== */
.panel {
  margin-top: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06), 0 0 0 1px rgba(255,255,255,.8) inset;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s 0.1s ease both;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
  opacity: .6;
}
.login-panel { display: grid; justify-items: center; }
.panel-title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  position: relative;
  z-index: 1;
}
.pay-page-panel { margin-top: 0; }
.pay-page-panel .page-title { margin-bottom: 18px; }
.pay-payment-state { margin-bottom: 18px; position: relative; z-index: 1; }
.payment-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  color: #1e40af;
  background: #eff6ff;
  line-height: 1.6;
  font-size: 14px;
}
.payment-tip::before {
  content: "i";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #3b82f6;
  font-weight: 700;
  line-height: 1;
}
.payment-tip strong { display: block; margin-bottom: 2px; color: inherit; }
.payment-tip span { color: inherit; }
.payment-tip-warn {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}
.payment-tip-warn::before { content: "!"; background: #f59e0b; }
.pay-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
  position: relative;
  z-index: 1;
}
.pay-inline-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.pay-inline-action:hover {
  color: var(--accent);
  border-color: rgba(0, 147, 205, .45);
  background: #f8fbff;
}
.hint {
  margin-bottom: 18px;
  padding: 12px 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.7;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* ===== Mode Tabs ===== */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.compact-tabs { width: min(480px, 100%); }
.login-form { width: min(480px, 100%); position: relative; z-index: 1; }
.mode-button {
  height: 48px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .3px;
}
.mode-button:hover {
  background: var(--surface);
  color: var(--text);
}
.mode-button.active {
  color: #fff;
  background: linear-gradient(90deg, #0025CA, #0093CD);
}
.mode-button.active:hover {
  box-shadow: 0 10px 22px rgba(0, 37, 202, .18);
}
.mode-form { display: none; }
.mode-form.active { display: block; }

/* ===== Form Helpers ===== */
.auth-switch {
  margin: 20px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}
.auth-switch a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.form-helper-row {
  width: min(480px, 100%);
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 -6px;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.form-helper-row a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}
.form-helper-row a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ===== Member Card ===== */
.member-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 6px 0 18px;
  position: relative;
  z-index: 1;
}
.member-card div {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s ease;
}
.member-card div:hover { border-color: #c8d6e8; }
.member-card span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.member-card strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
}

/* ===== Register Certify Step ===== */
.register-steps {
  position: relative;
  z-index: 1;
}
.certify-step-panel {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.certify-profile-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 22px;
  position: relative;
  z-index: 1;
}
.certify-profile-card div {
  padding: 18px 20px;
  border: 1px solid #d7e1ef;
  border-radius: var(--radius);
  background: #f8fbff;
}
.certify-profile-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.certify-profile-card strong {
  display: block;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}
.certify-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.certify-choice {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.certify-choice-primary {
  color: #fff;
  border: 1px solid #2d78c9;
  background: linear-gradient(135deg, #2f88d6 0%, #236fc7 100%);
  box-shadow: 0 6px 12px rgba(37, 112, 199, .18);
}
.certify-choice-outline {
  color: #2f88d6;
  border: 1px solid #65a8e8;
  background: #fff;
}
.certify-choice-plain {
  color: #8b96a8;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}
.certify-choice:hover {
  transform: translateY(-1px);
}
.certify-choice-outline:hover {
  background: #f5faff;
}
.certify-choice-plain:hover {
  color: #5b6678;
  background: #f7f9fc;
}
.auth-page .dialog-primary {
  height: 44px;
  border-radius: 8px;
  color: #fff;
  border-color: #2d78c9;
  background: linear-gradient(135deg, #2f88d6 0%, #236fc7 100%);
  font-size: 15px;
  font-weight: 700;
}
.auth-page .dialog-primary:hover {
  background: linear-gradient(90deg, #0025CA, #0093CD);
}
.auth-page .dialog-primary.dialog-primary-outline {
  color: #2f88d6;
  border-color: #65a8e8;
  background: #fff;
}
.auth-page .dialog-primary.dialog-primary-plain {
  color: #7f8a9c;
  background: transparent;
}
.auth-page .dialog-extra-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.auth-page .dialog-secondary-action {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-page .dialog-secondary-action-outline {
  color: #2f88d6;
  border: 1px solid #65a8e8;
  background: #fff;
}
.auth-page .dialog-secondary-action-outline:hover {
  background: #f5faff;
}
.auth-page .dialog-secondary-action-plain {
  color: #7f8a9c;
  border: 1px solid transparent;
  background: transparent;
}
.auth-page .dialog-secondary-action-plain:hover {
  color: #5b6678;
  background: #f7f9fc;
}
.auth-page .dialog-error .dialog-icon {
  background: #e53935;
}
.auth-page .dialog-error .dialog-primary {
  background: linear-gradient(90deg, #0025CA, #0093CD);
}

/* ===== Footer ===== */
.site-footer {
  padding: 72px 0 28px;
  color: #fff;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.4), transparent);
}
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.35fr 180px;
  gap: 60px;
  align-items: stretch;
}
.footer-brand,
.footer-contact,
.footer-wechat {
  min-height: 168px;
  display: flex;
  flex-direction: column;
}
.site-footer h2, .site-footer h3, .site-footer p { margin: 0; }
.footer-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
}
.footer-brand h2 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
  color: #fff;
}
.footer-brand > p {
  margin-top: 18px;
  margin-left: 75px;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-shadow: none;
}
.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}
.footer-copy div + div { margin-top: 0; }
.footer-copy a {
  position: static;
  display: inline;
  height: auto;
  padding: 0;
  color: inherit;
  transition: color 0.2s ease;
}
.footer-copy a::before,
.footer-copy a::after {
  display: none !important;
  content: none !important;
}
.footer-copy a:hover { color: rgba(255,255,255,.5); }
.footer-icp a { color: inherit; transition: color 0.2s ease; }
.footer-icp a:hover { color: rgba(255,255,255,.5); }
.footer-contact h3 {
  margin-bottom: 30px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  position: relative;
  padding-bottom: 10px;
}
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 44px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}
.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  max-width: 480px;
}
.footer-contact p {
  color: rgba(255,255,255,.65);
  font-size: 16px;
  line-height: 1.7;
  transition: color 0.2s ease;
}
.footer-contact p:hover { color: rgba(255,255,255,.9); }
.footer-wechat {
  justify-self: end;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
}
.footer-qrcode {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0;
  border-radius: 8px;
  background: #fff;
}
.footer-wechat p {
  margin-top: 10px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Responsive ===== */
@media (max-width: 1450px) {
  .nav-wrap { gap: 20px; padding: 0 24px; }
  .logo-box { width: 260px; margin-right: 0; }
  .site-nav { gap: 14px; font-size: 16px; }
  .auth-action { min-width: 68px; height: 38px; padding: 0 14px; font-size: 16px; }
  .site-search-link { width: 38px; height: 38px; }
  .footer-main { gap: 36px; }
}

@media (max-width: 1180px) {
  .site-head { min-height: 64px; }
  .nav-wrap {
    height: 60px;
    min-height: 60px;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(15, 23, 42, .98);
  }
  .footer-contact-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
  .logo-box { width: 230px; height: 32px; margin: 0; }
  .menu-toggle { display: flex; }
  .site-auth-actions {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 68px;
    z-index: 32;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    background: rgba(15, 23, 42, .98);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  body.menu-open .site-auth-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .auth-action {
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.04);
    font-size: 14px;
    white-space: nowrap;
  }
  .site-search-link { margin-left: auto; }
  .site-search-link + .menu-toggle { margin-left: 8px; }
  .site-nav {
    position: fixed;
    left: 16px; right: 16px;
    top: 126px;
    z-index: 31;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    max-height: calc(100vh - 146px);
    padding: 12px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    background: rgba(15, 23, 42, .98);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  body.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a {
    height: 44px;
    justify-content: start;
    padding: 0 16px;
    border-radius: var(--radius);
    color: rgba(255,255,255,.85);
    font-size: 15px;
    display: flex;
    align-items: center;
  }
  .site-nav a::after { display: none; }
  .site-nav a.active {
    color: #fff;
    background: rgba(30, 64, 175, .12);
  }
  .site-nav a.active::after { display: none; }
  .site-nav a:hover { background: rgba(255,255,255,.06); }
}

@media (max-width: 760px) {
  .page { padding-top: 64px; }
  .auth-page { display: block; padding-top: 0; }
  .site-head {
    min-height: 64px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 40;
    background: rgba(15, 23, 42, .98);
  }
  .nav-wrap {
    z-index: 41;
  }
  .site-search-link,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .auth-shell,
  .auth-page .auth-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .auth-shell,
  .auth-page .auth-shell {
    margin-top: 85px;
    min-height: 0;
  }
  .auth-page .auth-shell { padding-bottom: 40px; }
  .page-title { font-size: 26px; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps li { min-height: 36px; font-size: 13px; }
  .panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 12px;
    overflow: hidden;
    border-radius: var(--radius);
  }
  .form,
  .form-grid,
  .login-form,
  .mode-form,
  .single-form-grid,
  .compact-tabs,
  .field,
  .input,
  .code-row,
  .submit {
    max-width: 100%;
    min-width: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .code-row {
    display: flex;
    min-width: 0;
  }
  .code-row .input {
    flex: 1 1 0;
    width: 1%;
    min-width: 0;
  }
  .code-button {
    flex: 0 0 106px;
    min-width: 0;
    width: 106px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .panel-title { font-size: 18px; margin-bottom: 14px; }
  .hint { padding: 10px 12px; font-size: 13px; }
  .mode-tabs { gap: 8px; margin-bottom: 18px; }
  .mode-button { height: 42px; padding: 0 6px; font-size: 14px; }
  .member-card,
  .certify-profile-card,
  .ticket-grid { grid-template-columns: 1fr; }
  .certify-choice {
    min-height: 50px;
    font-size: 15px;
  }
  .site-footer {
    padding: 48px 0 28px;
    text-align: center;
  }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand,
  .footer-contact,
  .footer-wechat { min-height: 85px; }
  .footer-logo { margin: 0 auto; }
  .footer-brand h2 { font-size: 24px; }
  .footer-brand > p { margin-left: 0; font-size: 18px; color: #fff; text-align: center; }
  .footer-copy { display: grid; gap: 6px; margin-top: 25px; padding-top: 14px; font-size: 14px; }
  .footer > .wrap,
  .site-footer > .wrap { width: min(var(--wrap), calc(100% - 24px)); }
  .footer-contact-grid { max-width: none; gap: 8px; }
  .footer-contact h3 { font-size: 15px; margin-bottom: 14px; }
  .footer-contact h3::after { left: 50%; transform: translateX(-50%); }
  .footer-contact p { font-size: 16px; }
  .footer-wechat { justify-self: center; text-align: center; }
  .footer-qrcode { width: 108px; height: 108px; margin: 0; }
}

@media (max-width: 380px) {
  .logo-box { width: 200px; height: 28px; }
  .mode-button { font-size: 12px; height: 40px; }
  .page-title { font-size: 22px; }
  .panel { padding: 16px 12px; }
  .panel-title { font-size: 16px; }
  .submit { height: 44px; font-size: 15px; }
  .auth-switch { font-size: 13px; }
  .input { height: 46px; padding: 0 10px; }
  .hint { padding: 8px 10px; font-size: 12px; }
}

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