@import url("/styles.css?v=20260524-12");

:root {
  /* 清新品牌色与灰蓝文字 */
  --accent: #0284c7;            /* 明亮清澈的 Sky 600 青蓝色 */
  --ink: #334155;               /* 高级灰蓝，用于主要文本和按钮边框 */
  --ink-hover: #475569;
  
  /* 边框与线（调至极致素雅，淡灰色） */
  --line: #e2e8f0;              
  --line-soft: #f1f5f9;         
  
  /* 背景 */
  --bg-base: #f8fafc;           
  
  /* 软阴影（羽毛般轻盈的 Slate 阴影，去除沉重感） */
  --shadow-soft: 0 12px 30px -4px rgba(148, 163, 184, 0.08), 0 4px 12px -2px rgba(148, 163, 184, 0.03);
  
  /* 布局参数 */
  --page-max: 1200px;
  --page-pad: 24px;
}

html,
body {
  min-width: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: #f8fafc; /* 清凉淡雅亮背景 */
}

body {
  color: var(--text-primary);
}

[data-customer-console] {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: clip;
}

.console-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-weight: 900;
}

.customer-auth-page {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  padding: 18px 14px 24px;
  display: grid;
  align-content: center;
  gap: 14px;
  overflow-x: clip;
}

.customer-auth-left,
.customer-auth-form,
.customer-section-panel,
.customer-stat-card,
.customer-order-item,
.customer-ticket-item,
.customer-profile-card,
.customer-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.customer-auth-left,
.customer-auth-form {
  padding: 16px;
}

.auth-kicker,
.header-kicker,
.customer-stat-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-field-group label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.customer-auth-left h1 {
  max-width: 10em;
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.customer-auth-left p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.customer-auth-points {
  margin-top: 14px;
  display: grid;
  border-top: 1px solid var(--line-soft);
}

.customer-auth-points span {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-secondary);
  font-size: 13px;
}

.customer-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.customer-auth-tab,
.customer-auth-submit,
.customer-back-link,
.customer-section-title a,
.customer-sidebar-logout {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.customer-auth-tab:not(.is-active):hover,
.customer-back-link:hover,
.customer-section-title a:hover,
.customer-sidebar-logout:hover {
  background: var(--line-soft);
  border-color: var(--ink);
}

.customer-auth-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.customer-auth-submit {
  background: linear-gradient(135deg, #0284c7, #0d9488);
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.2);
}

.customer-auth-submit:hover {
  background: linear-gradient(135deg, #0369a1, #0f766e);
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(2, 132, 199, 0.4);
  transform: translateY(-1.5px);
}

.customer-auth-submit:active {
  transform: translateY(0);
}

.customer-auth-fields,
.customer-new-ticket-form {
  display: grid;
  gap: 12px;
}

.customer-field-group {
  display: grid;
  gap: 6px;
}

.customer-field-group input,
.customer-field-group select,
.customer-field-group textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-primary);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.customer-field-group input:focus,
.customer-field-group select:focus,
.customer-field-group textarea:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.customer-field-group input::placeholder,
.customer-field-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.customer-field-group textarea {
  min-height: 132px;
  resize: vertical;
}

.customer-notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--success);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.customer-notice.is-error {
  color: var(--danger);
}

.customer-console {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  padding: 0 0 calc(68px + env(safe-area-inset-bottom));
  overflow-x: clip;
  background: #f7f7f4;
}

.customer-sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100vw;
  max-width: 100vw;
  height: 52px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.customer-sidebar-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
}

.brand-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.customer-sidebar-logout {
  min-height: 32px;
  padding: 0 10px;
  border-color: var(--line);
  font-size: 12px;
}

.customer-sidebar-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: 100vw;
  max-width: 100vw;
  height: calc(58px + env(safe-area-inset-bottom));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -10px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.customer-sidebar-nav a {
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.customer-sidebar-nav a.is-active {
  background: var(--ink);
  color: #fff;
}

.customer-main {
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: clip;
}

.customer-main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.header-meta {
  min-width: 0;
}

.header-kicker {
  margin: 0 0 4px;
}

.customer-main-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.customer-back-link,
.customer-section-title a {
  min-height: 30px;
  padding: 0 10px;
  flex: 0 0 auto;
  border-color: var(--line);
  background: #fff;
  font-size: 12px;
}

.customer-content {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.customer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.customer-stat-card {
  min-width: 0;
  padding: 12px 10px;
}

.customer-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.customer-overview-grid,
.customer-order-list,
.customer-ticket-list {
  display: grid;
  gap: 10px;
}

.customer-section-panel {
  min-width: 0;
  padding: 12px;
}

.customer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.customer-section-title h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.customer-order-item,
.customer-ticket-item {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.customer-order-body,
.customer-ticket-body,
.customer-profile-row {
  min-width: 0;
}

.customer-order-header,
.customer-ticket-header {
  min-width: 0;
  margin-bottom: 4px;
}

.customer-order-no,
.customer-ticket-no {
  display: block;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.customer-order-item p,
.customer-ticket-item p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.customer-order-meta {
  margin-top: 4px !important;
  color: var(--text-muted) !important;
}

.customer-order-status,
.customer-ticket-status {
  max-width: 86px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-secondary);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.status-paid,
.status-processing,
.status-open {
  color: var(--accent);
  border-color: #bcd2ff;
}

.status-completed,
.status-resolved {
  color: var(--success);
  border-color: #bdebd4;
}

.status-cancelled,
.status-closed {
  color: var(--text-muted);
}

.customer-empty {
  padding: 18px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.customer-profile-card {
  padding: 0 12px;
}

.customer-profile-row {
  padding: 13px 0;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.customer-profile-row:last-child {
  border-bottom: 0;
}

.customer-profile-row span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}

.customer-profile-row strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

@media (min-width: 760px) {
  html,
  body,
  [data-customer-console],
  .customer-console {
    width: 100%;
    max-width: none;
  }

  body {
    background: var(--bg-base);
  }

  .customer-auth-page {
    width: min(100%, 980px);
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
  }

  .customer-console {
    width: min(100%, var(--page-max));
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 24px var(--page-pad);
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    background: var(--bg-base);
  }

  .customer-sidebar {
    position: sticky;
    top: 24px;
    width: auto;
    max-width: none;
    height: auto;
    align-self: start;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    backdrop-filter: none;
  }

  .customer-sidebar-brand {
    margin-bottom: 12px;
  }

  .customer-sidebar-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .customer-sidebar-nav a {
    justify-content: flex-start;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
  }

  .customer-sidebar-logout {
    width: 100%;
    margin-top: 12px;
  }

  .customer-main {
    width: auto;
    max-width: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
  }

  .customer-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v12 rollback to simple mobile console */
.customer-auth-page,
.customer-console {
  background: #f7f7f4;
}

.customer-auth-left,
.customer-auth-form,
.customer-section-panel,
.customer-stat-card,
.customer-order-item,
.customer-ticket-item,
.customer-profile-card,
.customer-empty {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.customer-auth-left {
  color: var(--text-primary);
}

.customer-auth-left p,
.customer-auth-left .auth-kicker,
.customer-auth-points span {
  color: var(--text-secondary);
}

.customer-auth-form::before,
.customer-section-panel::before {
  display: none;
}

.customer-sidebar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.brand-icon {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.customer-sidebar-logout {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.customer-sidebar-nav {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -10px 30px rgba(17, 24, 39, 0.08);
}

.customer-sidebar-nav a {
  color: var(--text-secondary);
}

.customer-sidebar-nav a.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.customer-main-header {
  min-height: auto;
  margin: 0 0 12px;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
}

.customer-main-header h1 {
  font-size: 22px;
}

.customer-main-header .header-kicker {
  color: var(--text-muted);
}

.customer-back-link {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.customer-stat-card {
  min-height: auto;
  display: block;
  color: var(--text-primary) !important;
  background: #fff !important;
}

.customer-stat-card .customer-stat-label {
  color: var(--text-muted);
}

.customer-stat-value {
  font-size: 24px;
}

@media (min-width: 760px) {
  .customer-sidebar {
    background: #fff;
    color: var(--text-primary);
  }

  .customer-main {
    border-color: var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
  }

  .customer-main-header {
    margin: 0 0 12px;
    border-radius: 0;
  }
}

/* v11 mobile app redesign */
.customer-auth-page,
.customer-console {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, #f8fbff 0%, #eef6f8 44%, #fff7ed 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

.customer-auth-left,
.customer-auth-form,
.customer-section-panel,
.customer-stat-card,
.customer-order-item,
.customer-ticket-item,
.customer-profile-card,
.customer-empty {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.11);
  backdrop-filter: blur(18px);
}

.customer-auth-left {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(29, 78, 216, 0.86)),
    #111827;
}

.customer-auth-left p,
.customer-auth-left .auth-kicker,
.customer-auth-points span {
  color: rgba(255, 255, 255, 0.76);
}

.customer-auth-form,
.customer-section-panel {
  position: relative;
  overflow: hidden;
}

.customer-auth-form::before,
.customer-section-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0f766e, #f59e0b);
}

.customer-sidebar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
}

.brand-icon {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #60a5fa, #14b8a6);
  color: #fff;
}

.customer-sidebar-logout {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.customer-sidebar-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 -18px 56px rgba(15, 23, 42, 0.24);
}

.customer-sidebar-nav a {
  color: rgba(255, 255, 255, 0.66);
}

.customer-sidebar-nav a.is-active {
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

.customer-main-header {
  min-height: 110px;
  margin: -14px -14px 14px;
  padding: 22px 14px 18px;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.82)),
    #111827;
}

.customer-main-header h1 {
  font-size: 26px;
}

.customer-main-header .header-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.customer-back-link {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.customer-stat-card {
  min-height: 98px;
  display: grid;
  align-content: space-between;
}

.customer-stat-card:nth-child(1) {
  color: #fff;
  background: linear-gradient(145deg, #111827, #2563eb);
}

.customer-stat-card:nth-child(2) {
  color: #fff;
  background: linear-gradient(145deg, #0f172a, #0f766e);
}

.customer-stat-card:nth-child(3) {
  color: #fff;
  background: linear-gradient(145deg, #111827, #b15f00);
}

.customer-stat-card .customer-stat-label {
  color: rgba(255, 255, 255, 0.72);
}

.customer-stat-value {
  font-size: 30px;
}

.customer-order-item,
.customer-ticket-item {
  border-color: rgba(223, 227, 232, 0.72);
  transform: translateZ(0);
}

.customer-order-status,
.customer-ticket-status {
  background: rgba(248, 251, 255, 0.9);
}

@media (min-width: 760px) {
  .customer-console {
    border-radius: 0;
  }

  .customer-sidebar {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
  }

  .customer-main {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
    backdrop-filter: blur(18px);
  }

  .customer-main-header {
    margin: -18px -18px 18px;
    border-radius: var(--radius-lg) var(--radius-lg) 20px 20px;
  }
}

/* v12 final rollback overrides */
.customer-auth-page,
.customer-console {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, #f3f7fa 0%, #eef5f8 50%, #fbf7f0 100%);
  background-size: 24px 24px, 24px 24px, auto;
}

.customer-auth-form,
.customer-section-panel,
.customer-stat-card,
.customer-order-item,
.customer-ticket-item,
.customer-profile-card,
.customer-empty {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.customer-auth-left {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.customer-auth-left p,
.customer-auth-left .auth-kicker,
.customer-auth-left .customer-auth-points span,
.customer-auth-left span {
  color: var(--text-secondary);
}

.customer-auth-form::before,
.customer-section-panel::before {
  display: none;
}

.customer-sidebar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.brand-icon {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.customer-sidebar-logout {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.customer-sidebar-nav {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -10px 30px rgba(17, 24, 39, 0.08);
}

.customer-sidebar-nav a {
  color: var(--text-secondary);
}

.customer-sidebar-nav a.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.customer-main-header {
  min-height: auto;
  margin: 0 0 12px;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
}

.customer-main-header h1 {
  font-size: 22px;
}

.customer-main-header .header-kicker {
  color: var(--text-muted);
}

.customer-back-link {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.customer-stat-card {
  min-height: auto;
  display: block;
  color: var(--text-primary) !important;
  background: #fff !important;
}

.customer-stat-card .customer-stat-label {
  color: var(--text-muted);
}

.customer-stat-value {
  font-size: 24px;
}

@media (min-width: 760px) {
  .customer-sidebar {
    background: #fff;
    color: var(--text-primary);
  }

  .customer-main {
    border-color: var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
  }

  .customer-main-header {
    margin: 0 0 12px;
    border-radius: 0;
  }



/* ============================================================
   NEW FRESH & CLEAN AUTH THEME
   ============================================================= */

/* DNSHE-inspired account entry layout.  Scoped so the customer console keeps
   its existing styling after authentication. */
.reference-auth-page {
  --auth-navy: #071a35;
  --auth-blue: #2868ed;
  --auth-text: #071c40;
  min-height: 100vh;
  color: var(--auth-text);
  background:
    linear-gradient(rgba(79, 137, 238, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 137, 238, .08) 1px, transparent 1px),
    radial-gradient(circle at 78% 24%, rgba(124, 184, 255, .30), transparent 23%),
    radial-gradient(circle at 24% 55%, rgba(157, 205, 255, .38), transparent 25%),
    #eff7ff;
  background-size: 52px 52px, 52px 52px, auto, auto, auto;
  overflow: hidden;
}
.reference-auth-header {
  height: 61px; padding: 0 clamp(24px, 4vw, 72px); display: flex; align-items: center; gap: 32px;
  color: #fff; background: var(--auth-navy); font-size: 15px; font-weight: 700;
}
.reference-auth-brand { margin-right: auto; color: #fff; display: inline-flex; align-items: center; gap: 8px; font: 800 25px/1 Outfit, Inter, sans-serif; letter-spacing: .02em; }
.reference-auth-brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; font: 800 18px/1 Arial; box-shadow: inset 0 0 0 4px var(--auth-navy); }
.reference-auth-register-link { display: flex; gap: 8px; align-items: center; }
.reference-auth-register-link button, .reference-auth-bottom button { border: 0; background: none; color: #2868ed; font: inherit; font-weight: 800; cursor: pointer; }
.reference-auth-register-link button { color: #fff; }
.reference-auth-home { color: #fff; white-space: nowrap; }.reference-auth-language { white-space: nowrap; }
.reference-auth-layout { position: relative; width: min(100% - 48px, 1760px); min-height: calc(100vh - 61px); margin: 0 auto; padding: 20px 0 28px; display: grid; grid-template-columns: minmax(500px, 850px) minmax(350px, 450px); justify-content: center; align-items: center; gap: clamp(36px, 5vw, 100px); }
.reference-auth-panel { position: relative; z-index: 1; min-height: 660px; padding: 48px 58px 34px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.9); border-radius: 21px; background: rgba(255,255,255,.88); box-shadow: 0 20px 55px rgba(41, 100, 177, .15), inset 0 1px #fff; }
.reference-auth-lock { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--auth-blue); background: #e6f0ff; border: 1px solid #cee0ff; font-size: 27px; }
.reference-auth-panel h1 { margin: 0; text-align: center; font-size: 31px; line-height: 1.2; letter-spacing: -.04em; color: var(--auth-text); }.reference-auth-subtitle { margin: 8px 0 20px; text-align: center; color: #6480a7; font-size: 17px; }
.reference-auth-form .customer-auth-fields { display: grid; gap: 13px; }.reference-auth-form .customer-field-group { gap: 6px; margin: 0; }.reference-auth-form .customer-field-group label { color: var(--auth-text); font-weight: 700; font-size: 15px; }.reference-auth-form .reference-auth-input { box-sizing: border-box; min-height: 57px; padding: 14px 17px; border: 1px solid #d4e0f2; border-radius: 13px; background: #fff; font-size: 16px; color: var(--auth-text); box-shadow: none; }.reference-auth-form .reference-auth-input:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 3px rgba(40,104,237,.12); }.reference-auth-form .reference-auth-input::placeholder { color: #9aadca; }
.reference-auth-options { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 28px; color: #17355e; font-size: 15px; font-weight: 650; }.reference-auth-options label { display: inline-flex; align-items: center; gap: 4px; }.reference-auth-options input { width: 20px; height: 20px; accent-color: var(--auth-blue); }.reference-auth-options button { padding: 0; border: 0; background: none; color: #ff3d31; font: inherit; font-weight: 750; cursor: pointer; }
.reference-auth-form .reference-auth-submit { width: 100%; min-height: 60px; border: 0; border-radius: 13px; background: linear-gradient(100deg, #3178f7, #2565e8); box-shadow: 0 14px 22px rgba(43,102,226,.24); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }.reference-auth-form .reference-auth-submit:hover { transform: translateY(-1px); filter: brightness(1.04); }
.reference-auth-divider { display: flex; align-items: center; gap: 13px; margin: 30px 0 16px; color: #97a9c4; font-size: 15px; }.reference-auth-divider::before, .reference-auth-divider::after { content: ''; flex: 1; height: 1px; background: #dce6f4; }.reference-auth-divider span { padding: 0 8px; background: rgba(255,255,255,.88); white-space: nowrap; }
.reference-auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.reference-auth-social button { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid #d8e3f1; border-radius: 13px; background: #fff; color: var(--auth-text); font-size: 15px; font-weight: 750; cursor: pointer; }.reference-auth-social button:hover { border-color: #8baff5; background: #f8fbff; }.reference-auth-social b { font-size: 22px; }.reference-auth-social .google-letter { color: #ea4335; font-family: Arial, sans-serif; }.reference-auth-bottom { margin: 23px 0 0; text-align: center; color: #29486f; font-size: 17px; font-weight: 700; }
.reference-auth-side { position: relative; z-index: 1; display: grid; gap: 18px; }.reference-auth-info, .reference-auth-security { padding: 28px 26px 24px; border: 1px solid rgba(255,255,255,.88); border-radius: 21px; background: rgba(255,255,255,.80); box-shadow: 0 18px 45px rgba(41,100,177,.11); }.reference-auth-tag { display: inline-block; padding: 7px 13px; border-radius: 999px; background: #edf4ff; color: var(--auth-blue); font-size: 13px; font-weight: 800; }.reference-auth-info h2, .reference-auth-security h2 { margin: 15px 0 8px; font-size: 23px; line-height: 1.35; color: var(--auth-text); }.reference-auth-info > p { margin: 0 0 19px; color: #48698f; font-size: 15px; line-height: 1.45; }.reference-auth-feature { min-height: 88px; margin-top: 12px; padding: 13px 14px; display: flex; align-items: center; gap: 14px; border: 1px solid #dde8f6; border-radius: 17px; background: rgba(255,255,255,.8); }.reference-auth-feature > b { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid #d5e4ff; border-radius: 14px; background: #eff6ff; color: #2669f1; font-size: 24px; }.reference-auth-feature strong, .reference-auth-feature span { display: block; }.reference-auth-feature strong { margin-bottom: 5px; font-size: 16px; }.reference-auth-feature span { color: #587397; font-size: 14px; line-height: 1.35; }.reference-auth-security { padding: 24px 26px; }.reference-auth-security h2 { margin: 0 0 13px; font-size: 19px; }.reference-auth-security h2::first-letter { color: #00a870; }.reference-auth-security p { margin: 11px 0; color: #47678d; font-size: 14px; font-weight: 600; }.reference-auth-security p::first-letter { color: #00a870; }
.reference-auth-orbit { position: absolute; left: -2%; top: 42%; width: 440px; height: 270px; border: 1px solid rgba(96,159,250,.25); border-radius: 50%; transform: rotate(-12deg); }.reference-auth-orbit::before, .reference-auth-orbit::after { content: ''; position: absolute; inset: 35% -10%; border: 1px solid rgba(96,159,250,.2); border-radius: 50%; transform: rotate(32deg); }.reference-auth-orbit::after { transform: rotate(-58deg); }.reference-auth-orbit i, .reference-auth-orbit b, .reference-auth-orbit em { position: absolute; display: block; width: 11px; height: 11px; border-radius: 50%; background: #72a3ff; }.reference-auth-orbit i { top: 10%; right: 7%; }.reference-auth-orbit b { bottom: 4%; right: 28%; }.reference-auth-orbit em { top: 48%; left: -3%; background: #9dc0ff; }
@media (max-width: 1060px) { .reference-auth-layout { grid-template-columns: minmax(0, 720px); }.reference-auth-side { display: none; }.reference-auth-panel { min-height: auto; max-width: 720px; width: 100%; margin: 0 auto; }.reference-auth-orbit { left: -140px; } }
@media (max-width: 650px) { .reference-auth-header { height: 56px; padding: 0 16px; gap: 14px; }.reference-auth-brand { font-size: 21px; }.reference-auth-register-link, .reference-auth-language { display: none; }.reference-auth-home { font-size: 13px; }.reference-auth-layout { width: min(100% - 24px, 720px); min-height: calc(100vh - 56px); padding: 16px 0; }.reference-auth-panel { padding: 30px 18px 24px; border-radius: 17px; }.reference-auth-panel h1 { font-size: 27px; }.reference-auth-subtitle { font-size: 15px; }.reference-auth-social { grid-template-columns: 1fr; gap: 10px; }.reference-auth-divider { margin-top: 23px; }.reference-auth-orbit { display: none; } }

.customer-auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  padding: 24px 16px;
  background: radial-gradient(circle at 10% 20%, rgba(224, 242, 254, 0.65) 0%, rgba(238, 242, 255, 0.4) 90%), #ffffff;
  overflow: hidden;
}

.customer-auth-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 4px 24px -1px rgba(148, 163, 184, 0.08), 
    0 20px 48px -8px rgba(148, 163, 184, 0.12),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .customer-auth-card {
    flex-direction: row;
    max-width: 880px;
    height: 540px;
  }
}

.customer-auth-left {
  position: relative;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.75) 0%, rgba(238, 242, 255, 0.7) 50%, rgba(240, 253, 244, 0.5) 100%);
  border: none;
  box-shadow: none;
  overflow: hidden;
}

@media (min-width: 768px) {
  .customer-auth-left {
    width: 50%;
    height: 100%;
    padding: 48px 40px;
    border-radius: 24px 0 0 24px;
  }
}

.customer-auth-left #auth-3d-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.customer-auth-left .auth-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  opacity: 0.85;
}

.customer-auth-left h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #1e293b;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.customer-auth-left p {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 28px 0;
}

.customer-auth-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  padding: 0;
  margin: 0;
}

.customer-auth-points span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border: none;
  padding: 0;
}

.customer-auth-points span::before {
  content: "✦";
  color: #0ea5e9;
  font-size: 12px;
}

.customer-auth-card .customer-auth-form {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border: none;
  box-shadow: none;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .customer-auth-card .customer-auth-form {
    width: 50%;
    height: 100%;
    padding: 48px 48px;
    border-radius: 0 24px 24px 0;
  }
}

/* 胶囊选项卡容器 */
.auth-tabs-container {
  position: relative;
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-tab-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(148, 163, 184, 0.15);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.auth-tabs-container[data-active-mode="register"] .auth-tab-slider {
  transform: translateX(100%);
}

.auth-tab-btn {
  position: relative;
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  line-height: 1.2;
}

.auth-tab-btn.is-active {
  color: #0284c7;
}

.auth-tab-btn:focus-visible {
  outline: 2px solid #0ea5e9;
  border-radius: 8px;
}

.auth-form-wrap {
  position: relative;
  width: 100%;
}

.auth-form-inner {
  animation: authFormFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-form-wrap.switching .auth-form-inner {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes authFormFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-field-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customer-field-group label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.customer-field-group input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.customer-field-group input:hover {
  border-color: #cbd5e1;
}

.customer-field-group input:focus {
  background: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.customer-field-group input::placeholder {
  color: #94a3b8;
}

/* 获取验证码按钮 */
.btn-send-code {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0284c7;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-send-code:hover:not(:disabled) {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #025a87;
}

.btn-send-code:disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

/* 提交按钮 */
.customer-auth-submit {
  width: 100%;
  min-height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 8px;
}

.customer-auth-submit:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0f766e 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.customer-auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

/* 报错与通知提示框 */
.customer-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: #f0fdf4;
  color: #15803d;
}

.customer-notice.is-error {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: #fef2f2;
  color: #b91c1c;
}

/* ==========================================
   VPN 订阅平台高保真 UI 原型
   ========================================== */
.vpn-sub-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0;
  width: 100%;
}

.vpn-sub-card {
  width: 100%;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(148, 163, 184, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vpn-sub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(148, 163, 184, 0.18);
}

.vpn-sub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.vpn-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vpn-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.vpn-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vpn-email {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 700;
}

.vpn-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  width: fit-content;
}

.vpn-badge.status-active {
  background: #dcfce7;
  color: #15803d;
}

.vpn-plan-title {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.vpn-sub-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.vpn-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--line-soft);
  padding: 14px 18px;
  border-radius: 12px;
}

.vpn-detail-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.vpn-detail-val {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 700;
}

.vpn-usage-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vpn-usage-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.vpn-usage-header strong {
  color: var(--text-primary);
  font-weight: 700;
}

.vpn-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.vpn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.2);
}

.vpn-usage-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.vpn-remaining-text {
  font-size: 13px;
}

.text-green {
  color: #22c55e;
  font-weight: 700;
}

.vpn-sub-footer {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.vpn-sub-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.vpn-copy-box {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.vpn-link-input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
  outline: none;
  transition: border-color 0.2s;
}

.vpn-link-input:focus {
  border-color: var(--accent);
}

.vpn-copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.vpn-copy-btn:hover {
  background: #0274ae;
}

.vpn-copy-btn:active {
  transform: scale(0.97);
}

.vpn-client-tips {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
