/* Kuakuaxia site styles */
:root {
  --color-primary: #ff9900;
  --color-primary-dark: #e68a00;
  --color-link: #169bd5;
  --color-text: #000;
  --color-text-light: #333;
  --color-text-muted: #666;
  --color-border: #e5e5e5;
  --color-bg-gray: #f2f2f2;
  --color-bg-light: #fafafa;
  --color-red: #ff0000;
  --color-search-btn: #ff9933;
  --container-width: 1286px;
  --header-height: 88px;
  --font-family: "PingFang SC", "SimHei", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* Typography scale (base 14px) */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --font-size-4xl: 32px;
  --font-size-display: 34px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-snug: 1.35;
  --line-height-base: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-sm);
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background: #fff;
  line-height: var(--line-height-base);
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-link);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ??????????????6 ??+ ??3 ????????*/
.top-bar {
  background: #f2f2f2;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  height: 42px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* ???????????????? 1286px??*/
.top-bar-inner,
.header-main,
.main-nav-inner,
.trust-bar-inner {
  max-width: var(--container-width);
}

.top-bar-left {
  justify-content: flex-start;
}

.top-bar-right {
  justify-content: flex-end;
  margin-left: auto;
}

.top-bar-left a,
.top-bar-right a {
  display: inline-block;
  white-space: nowrap;
  color: var(--color-text);
  line-height: 42px;
  font-size: var(--font-size-sm);
  padding: 0;
}

.top-bar-left a + a {
  margin-left: 48px;
}

.top-bar-right a + a {
  margin-left: 0;
}

.top-bar-right .top-bar-sep {
  color: var(--color-text-muted);
  line-height: 42px;
  user-select: none;
}

.top-bar-right {
  gap: 12px;
}

.top-bar a:hover {
  color: var(--color-link);
}

.city-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.city-select img {
  width: 14px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .top-bar-left a + a {
    margin-left: 24px;
  }

  .top-bar-right a + a {
    margin-left: 28px;
  }

  .top-bar-left a,
  .top-bar-right a {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 900px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 42px;
    padding: 8px 0;
  }

  .top-bar-left,
  .top-bar-right {
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
  }

  .top-bar-left a,
  .top-bar-right a {
    line-height: 28px;
    margin-left: 0 !important;
    margin-right: 16px;
    margin-bottom: 4px;
  }
}

/* ????*/
.site-header {
  background: #fff;
  border-bottom: none;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 14px 0 8px;
  min-width: 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.header-divider {
  width: 1px;
  height: 29px;
  background: #797979;
  flex-shrink: 0;
}

.header-city {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.header-city-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
}

.header-city-top img {
  width: 14px;
  height: 16px;
  object-fit: contain;
}

.header-city-switch {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  line-height: var(--line-height-tight);
}

.header-city:hover .header-city-switch {
  color: var(--color-link);
}

.brand-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-text {
  flex: 1;
  min-width: 0;
}

.brand-text p {
  margin: 4px 0 0;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-snug);
  color: var(--color-text-light);
  font-family: var(--font-family);
  white-space: nowrap;
}

.search-area {
  flex: 1 1 0;
  max-width: 798px;
  min-width: 0;
  margin: 0;
}

.search-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 6px;
  min-height: 28px;
  font-size: var(--font-size-md);
  line-height: 28px;
  padding-left: 0;
}

.search-box {
  display: flex;
  width: 100%;
  height: 47px;
  border: 1px solid #797979;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-left: 12px;
  gap: 8px;
}

.search-input-icon {
  width: 17px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.55;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0 12px 0 0;
  height: 100%;
  font-size: var(--font-size-sm);
  outline: none;
  background: transparent;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 4.5em;
  width: 4.5em;
  height: 28px;
  line-height: 28px;
  color: var(--color-text);
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.search-tab.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  height: 28px;
  line-height: 28px;
}

.search-btn {
  flex: 0 0 122px;
  width: 122px;
  border: none;
  background: var(--color-search-btn);
  color: #fff;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--color-primary-dark);
}

.brand-text h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-logo-fallback {
  width: 52px;
  height: 48px;
  background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  flex-shrink: 0;
}

.header-trust {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 24px;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 24px;
  /* 相对搜索框垂直居中：下移避开上方 Tab 行高度 */
  padding-top: 34px;
  padding-bottom: 0;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  font-size: var(--font-size-xs);
  color: var(--color-text);
  text-align: center;
  line-height: var(--line-height-tight);
}

.trust-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  flex-shrink: 0;
}

.trust-badge-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ???????? 246px + 1fr ??????*/
.main-nav {
  background: #fff;
  padding: 10px 0 14px;
}

.main-nav-inner {
  display: grid;
  grid-template-columns: 246px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 52px;
  padding: 0;
  margin: 0 auto;
  width: calc(100% - 32px);
}

.main-nav-doc-btn,
a.main-nav-doc-btn,
a.main-nav-doc-btn:link,
a.main-nav-doc-btn:visited,
a.main-nav-doc-btn:hover,
a.main-nav-doc-btn:focus,
a.main-nav-doc-btn:active {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 12px;
  background: var(--color-primary);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  border-radius: 4px;
  flex-shrink: 0;
  text-decoration: none;
}

.main-nav-doc-btn:hover,
a.main-nav-doc-btn:hover {
  color: #fff;
  -webkit-text-fill-color: #fff;
  opacity: 0.92;
}

.main-nav-items {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  min-width: 0;
  min-height: 52px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 22px;
  padding-bottom: 0;
}

.main-nav-items::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.main-nav-item {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}

.main-nav-item:active,
.main-nav-item:focus {
  outline: none;
}

.main-nav-text {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 42px;
  min-height: 42px;
  line-height: var(--line-height-tight);
  overflow: visible;
}

.main-nav-text:not(.main-nav-text-no-tag) {
  margin-right: 6px;
}

.main-nav-text-no-tag {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 42px;
  min-height: 42px;
}

.main-nav-item-shop .main-nav-text {
  justify-content: flex-end;
  align-items: center;
}

.main-nav-tag {
  position: absolute;
  top: -2px;
  /* 相对主文案右移约一字间距（原为 100% - 1字） */
  left: 100%;
  display: inline-flex;
  align-items: flex-end;
  padding: 0 2px;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  transform: translateY(-100%);
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.main-nav-tag-char {
  display: inline-block;
  animation: main-nav-tag-bounce 1.4s ease-in-out infinite,
    main-nav-tag-rainbow 4s linear infinite;
}

.main-nav-tag-char:nth-child(7n + 1) {
  color: #ff2d55;
}

.main-nav-tag-char:nth-child(7n + 2) {
  color: #ff9500;
}

.main-nav-tag-char:nth-child(7n + 3) {
  color: #ffcc00;
}

.main-nav-tag-char:nth-child(7n + 4) {
  color: #34c759;
}

.main-nav-tag-char:nth-child(7n + 5) {
  color: #007aff;
}

.main-nav-tag-char:nth-child(7n + 6) {
  color: #5856d6;
}

.main-nav-tag-char:nth-child(7n + 7) {
  color: #af52de;
}

@keyframes main-nav-tag-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes main-nav-tag-rainbow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.main-nav-label {
  position: relative;
  display: inline-block;
  --nav-char: 1em;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: #000;
  text-align: center;
  overflow: visible;
}

.main-nav-item-prominent .main-nav-label,
.main-nav-item.active.main-nav-item-prominent .main-nav-label {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  line-height: var(--line-height-tight);
}

.main-nav-item-shop .main-nav-label {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
}

.main-nav-item.active:not(.main-nav-item-prominent) .main-nav-label {
  font-weight: var(--font-weight-bold);
}

.main-nav-item:hover .main-nav-label {
  color: var(--color-primary);
}

/* ????????????????*/
.main-nav a:not(.main-nav-item):not(.main-nav-doc-btn) {
  font-size: var(--font-size-md);
  white-space: nowrap;
  color: var(--color-text);
}

.main-nav a:not(.main-nav-item):not(.main-nav-doc-btn).active {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
}

.main-nav a:not(.main-nav-item):not(.main-nav-doc-btn):hover {
  color: var(--color-primary);
}

/* ???????????????????????????? */
.main-nav .main-nav-doc-btn,
.main-nav a.main-nav-doc-btn,
.main-nav a.main-nav-doc-btn:link,
.main-nav a.main-nav-doc-btn:visited,
.main-nav a.main-nav-doc-btn:hover,
.main-nav a.main-nav-doc-btn:focus,
.main-nav a.main-nav-doc-btn:active {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  background: var(--color-primary);
}

/* ???? */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 8px 0 10px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.trust-item a {
  color: inherit;
}

.trust-item a:hover {
  color: var(--color-link);
}

/* ???? */
.main-content {
  padding: 16px 0 40px;
}

.content-layout {
  display: grid;
  grid-template-columns: 246px 1fr;
  gap: 20px;
  align-items: start;
}

/* ??????????????????? */
.home-page .main-content,
.main-content.home-page {
  padding-top: 20px;
}

.home-top-layout {
  display: grid;
  grid-template-columns: 246px 1fr;
  column-gap: 20px;
  row-gap: 8px;
  align-items: start;
}

.home-left-stack {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.home-doc-head {
  width: 100%;
  height: 48px;
  border-radius: 4px 4px 0 0;
  align-self: stretch;
}

.category-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  min-height: 40px;
  padding: 0 12px;
}

a.category-sidebar-head,
a.category-sidebar-head:link,
a.category-sidebar-head:visited,
a.category-sidebar-head:hover,
a.category-sidebar-head:focus,
a.category-sidebar-head:active {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
}

.home-left-stack .category-sidebar,
.home-top-layout > .category-sidebar {
  border-radius: 0 0 4px 4px;
  border-top: none;
}

.home-right-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}

/* 与左侧「全部品类」同一行（48px），主文案与按钮文字垂直居中；彩色 tag 绝对定位溢出上方 */
.home-nav-row {
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0;
  overflow: visible;
}

.home-nav-row .main-nav-items {
  display: flex;
  align-items: center;
  align-self: stretch;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.home-nav-row .main-nav-item {
  display: inline-flex;
  align-items: center;
  height: 48px;
}

.home-nav-row .main-nav-text,
.home-nav-row .main-nav-text-no-tag {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 48px;
  min-height: 48px;
  line-height: 1;
  box-sizing: border-box;
}

.home-nav-row .main-nav-label {
  line-height: 1;
}

.home-body-layout {
  display: grid;
  grid-template-columns: 246px 1fr;
  gap: 20px;
  align-items: start;
}

.home-page .category-sidebar {
  border-radius: 4px;
  overflow: hidden;
}

/* ??????*/
.category-sidebar {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: visible;
}

.category-sidebar-list {
  background: #fff;
}

.category-item {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover,
.category-item.active {
  background: #fff8ee;
}

.category-item h3 {
  margin: 0 0 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--line-height-snug);
}

.category-item p {
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  line-height: var(--line-height-base);
}

.category-item p a {
  color: inherit;
  text-decoration: none;
}

.category-item p a:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.category-sidebar-foot {
  padding: 14px 16px 16px;
  text-align: center;
  border-top: 1px solid #eee;
  background: #fff;
}

.category-sidebar-foot a {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.category-sidebar-foot a:hover {
  color: var(--color-link);
}

/* ???? */
.content-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ???? */
.banner {
  border-radius: 8px;
  overflow: hidden;
}

.banner-promo {
  position: relative;
  background: var(--color-primary);
  min-height: 305px;
}

.banner-promo-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.banner-promo-link:hover {
  opacity: 0.98;
}

.banner-promo-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 68%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

.banner-promo-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 305px;
  padding: 40px 24px 48px;
  text-align: center;
}

.banner-promo-title {
  margin: 0 0 36px;
  color: #fff;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  letter-spacing: 0.5px;
}

.banner-promo-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.banner-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 54px;
  background: #fff;
  border-radius: 6px;
  color: var(--color-primary);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  font-family: var(--font-family);
}

.banner-digit-comma {
  width: auto;
  min-width: 12px;
  background: transparent;
  color: #fff;
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
}

.banner-link {
  display: block;
  line-height: 0;
}

.banner-link:hover {
  opacity: 0.98;
}

.banner-img {
  width: 100%;
  height: 305px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ???? */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header-centered {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.section-header-spacer {
  display: block;
}

.section-title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  text-align: center;
}

.section-more {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  justify-self: end;
}

.section-more:hover {
  color: var(--color-link);
}

/* ???? */
.teacher-section + .teacher-section {
  margin-top: 32px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.teacher-card {
  border: 1px solid #797979;
  border-radius: 0;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.teacher-card-link {
  position: relative;
  display: block;
  padding: 18px 12px 14px;
  text-align: center;
  color: inherit;
  min-height: 229px;
}

.teacher-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.teacher-auth-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  padding: 8px 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
  border-radius: 0 0 0 5px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 1px;
}

.teacher-card-empty .teacher-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.teacher-empty-label {
  margin: 12px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.teacher-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.teacher-name {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
}

.teacher-degree {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 5px;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-base);
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.teacher-school {
  margin: 0 0 4px;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.teacher-subject {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

/* 页脚 */
.site-footer {
  background: var(--color-bg-gray);
  border-top: 1px solid var(--color-border);
  margin-top: 20px;
}

.site-footer > .container {
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px 100px;
  padding: 32px 0;
  width: 100%;
  box-sizing: border-box;
}

.footer-col {
  text-align: left;
  min-width: 96px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

.footer-col a:hover {
  color: var(--color-link);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  width: 100%;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom a {
  color: var(--color-text-light);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-link);
}

/* ????*/
@media (max-width: 1280px) {
  .main-nav-items {
    gap: 32px;
  }

  .brand-block {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
  }

  .search-area {
    max-width: 640px;
  }

  .header-trust {
    gap: 16px;
    padding-left: 16px;
  }

  .trust-badge {
    min-width: 48px;
  }

  .trust-badge-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-md);
  }
}

@media (max-width: 1024px) {
  .header-main {
    flex-wrap: wrap;
    gap: 16px;
  }

  .brand-block {
    flex: 1 1 100%;
    width: auto;
    min-width: 0;
  }

  .search-area {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }

  .header-trust {
    flex: 1 1 100%;
    margin-left: 0;
    padding-left: 0;
    justify-content: center;
    gap: 12px;
  }

  .home-top-layout,
  .home-body-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .home-top-layout {
    grid-template-rows: none;
  }

  .category-sidebar-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .category-item {
    border-right: 1px solid #eee;
  }

  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    gap: 24px 64px;
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }

  .brand-block {
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }

  .search-area {
    max-width: none;
    margin: 0;
  }

  .header-trust {
    justify-content: center;
    padding-bottom: 0;
  }

  .main-nav-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .main-nav-doc-btn {
    border-radius: 4px;
  }

  .main-nav-items {
    gap: 20px;
  }

  .category-sidebar {
    margin-top: 0;
    border-top: 1px solid #d9d9d9;
    border-radius: 4px;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .category-sidebar-list {
    grid-template-columns: 1fr;
  }

  .banner-promo-title {
    font-size: var(--font-size-xl);
    margin-bottom: 24px;
  }

  .banner-digit {
    width: 36px;
    height: 44px;
    font-size: var(--font-size-2xl);
  }

  .banner-digit-comma {
    font-size: var(--font-size-2xl);
  }

  .banner-img {
    height: 200px;
  }

  .footer-links {
    gap: 20px 40px;
    justify-content: center;
  }
}

/* ?????? */
body.city-picker-open {
  overflow: hidden;
}

.city-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 24px;
  overflow-y: auto;
}

.city-picker-overlay[hidden] {
  display: none;
}

.city-picker-panel {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 24px 28px 28px;
}

.city-picker-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: var(--font-size-2xl);
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.city-picker-close:hover {
  color: var(--color-text);
}

.city-picker-section {
  margin-bottom: 20px;
}

.city-picker-hot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.city-picker-label-hot {
  color: #c81623;
  font-size: var(--font-size-sm);
  font-weight: 600;
  flex-shrink: 0;
}

.city-picker-hot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.city-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.city-picker-select-group,
.city-picker-search-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-picker-toolbar-label {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  white-space: nowrap;
}

.city-picker-select {
  height: 32px;
  min-width: 120px;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: var(--font-size-sm);
  color: #666;
  background: #fff;
}

.city-picker-search-input {
  width: 220px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: var(--font-size-sm);
}

.city-picker-alpha-title {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  margin-bottom: 16px;
}

.city-picker-alpha-list {
  max-height: 420px;
  overflow-y: auto;
}

.city-picker-letter-group {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.city-picker-letter-group:last-child {
  border-bottom: none;
}

.city-picker-letter-group.is-hidden {
  display: none;
}

.city-picker-letter {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #666;
  font-size: var(--font-size-md);
  font-weight: 600;
}

.city-picker-letter-content {
  flex: 1;
  min-width: 0;
}

.city-picker-province-block {
  margin-bottom: 16px;
}

.city-picker-province-block:last-child {
  margin-bottom: 0;
}

.city-picker-province-block.is-hidden {
  display: none;
}

.city-picker-province-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.city-picker-city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.city-picker-city {
  border: none;
  background: transparent;
  padding: 0;
  font-size: var(--font-size-sm);
  color: #666;
  cursor: pointer;
  line-height: 1.6;
}

.city-picker-city:hover,
.city-picker-city.active {
  color: var(--color-primary);
}

.city-picker-city.is-hidden {
  display: none;
}

@media (max-width: 768px) {
  .city-picker-overlay {
    padding: 60px 8px 16px;
  }

  .city-picker-panel {
    padding: 20px 16px;
  }

  .city-picker-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .city-picker-select-group,
  .city-picker-search-group {
    flex-wrap: wrap;
  }

  .city-picker-search-input {
    width: 100%;
    flex: 1;
  }

  .city-picker-letter-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* ?????? */
body.auth-modal-open {
  overflow: hidden;
}

@keyframes auth-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes auth-panel-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes auth-promo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes auth-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -14px); }
}

@keyframes auth-logo-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 153, 0, 0.25); }
  50% { box-shadow: 0 12px 32px rgba(255, 153, 0, 0.45); }
}

@keyframes auth-form-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15, 26, 46, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-modal-overlay.is-open {
  opacity: 1;
  animation: auth-overlay-in 0.35s ease;
}

.auth-modal-overlay[hidden] {
  display: none;
}

.auth-modal-wrap {
  display: flex;
  width: 100%;
  max-width: 860px;
  height: auto;
  min-height: 0;
  max-height: 92vh;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  opacity: 1;
  transform: none;
}

.auth-modal-overlay.is-open .auth-modal-wrap {
  animation: auth-panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-modal-promo {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  min-width: 0;
  background: linear-gradient(145deg, #152238 0%, #1f3d6b 50%, #243f72 100%);
  color: #fff;
  overflow: hidden;
}

.auth-promo-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-promo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 30% 40%, black 15%, transparent 70%);
}

.auth-promo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  animation: auth-orb-drift 8s ease-in-out infinite;
}

.auth-promo-orb-1 {
  width: 200px;
  height: 200px;
  top: -40px;
  right: -20px;
  background: rgba(255, 153, 0, 0.5);
}

.auth-promo-orb-2 {
  width: 160px;
  height: 160px;
  bottom: -30px;
  left: -20px;
  background: rgba(64, 140, 255, 0.4);
  animation-delay: -3s;
}

.auth-promo-orb-3 {
  width: 120px;
  height: 120px;
  top: 45%;
  left: 40%;
  background: rgba(255, 200, 100, 0.3);
  animation-delay: -5s;
}

.auth-promo-float {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: var(--font-size-sm);
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.auth-promo-float span {
  display: block;
  font-weight: 700;
  color: #fff;
}

.auth-promo-float small {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.88);
}

.auth-promo-bubbles {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.auth-promo-float-1 {
  background: linear-gradient(135deg, #ff9900 0%, #ff7a00 100%);
  animation: auth-promo-float 4.5s ease-in-out infinite;
  animation-delay: 0s;
}

.auth-promo-float-2 {
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
  animation: auth-promo-float 5s ease-in-out infinite;
  animation-delay: -1.5s;
}

.auth-promo-float-3 {
  background: linear-gradient(135deg, #7c5cbf 0%, #5e45a0 100%);
  animation: auth-promo-float 5.5s ease-in-out infinite;
  animation-delay: -3s;
}

.auth-promo-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.auth-modal-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  animation: auth-logo-pulse 3s ease-in-out infinite;
}

.auth-modal-welcome {
  margin: 0 0 10px;
  font-size: var(--font-size-2xl);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.auth-modal-brand {
  color: #ffbf66;
  font-weight: 700;
}

.auth-modal-slogan {
  margin: 0 0 20px;
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.auth-promo-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-promo-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-promo-tag-1 {
  background: rgba(255, 153, 0, 0.35);
}

.auth-promo-tag-2 {
  background: rgba(74, 144, 217, 0.4);
}

.auth-promo-tag-3 {
  background: rgba(82, 196, 26, 0.35);
}

.auth-promo-tag-4 {
  background: rgba(124, 92, 191, 0.4);
}

.auth-modal-panel {
  position: relative;
  width: 400px;
  flex-shrink: 0;
  align-self: stretch;
  background: #fff;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: var(--font-size-xl);
  line-height: 1;
  color: #888;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.auth-modal-close:hover {
  background: #eee;
  color: var(--color-text);
  transform: rotate(90deg);
}

.auth-modal-head {
  margin-bottom: 14px;
  min-height: 0;
}

.auth-modal-main-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: var(--font-size-md);
}

.auth-main-tab {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  line-height: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.auth-main-tab.active {
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.auth-main-divider {
  color: #ddd;
  user-select: none;
}

.auth-modal-sub-tabs,
.auth-register-lead {
  height: 36px;
  margin: 0;
}

.auth-modal-sub-tabs {
  display: flex;
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: #f5f6f8;
}

.auth-modal-sub-tabs[hidden],
.auth-register-lead[hidden] {
  display: none;
}

.auth-register-lead {
  display: flex;
  align-items: center;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
}

.auth-sub-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 12px;
  height: 30px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.auth-sub-tab.active {
  color: var(--color-text);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-modal-body {
  flex: 0 0 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.auth-form-mode[hidden] {
  display: none;
}

.auth-form-mode:not([hidden]) {
  flex: 0 0 auto;
  min-height: 0;
}

.auth-form-active {
  animation: auth-form-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form-fields > .auth-field:not(:last-child),
.auth-form-fields > .auth-field-slot:not(:last-child) {
  margin-bottom: 18px;
}

.auth-form-actions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0;
}

.auth-register-title {
  display: none;
}

.auth-field {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field-slot {
  height: 46px;
  display: flex;
  align-items: center;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #bbb;
  pointer-events: none;
  transition: color 0.2s;
}

.auth-field-icon svg {
  width: 100%;
  height: 100%;
}

.auth-field:focus-within .auth-field-icon {
  color: var(--color-primary);
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  line-height: 46px;
  background: #f7f8fa;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.12);
}

.auth-input::placeholder {
  color: #aaa;
}

.auth-code-row {
  gap: 10px;
}

.auth-code-row .auth-input {
  flex: 1;
  min-width: 0;
}

.auth-code-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  border: none;
  background: rgba(255, 153, 0, 0.12);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.auth-code-row .auth-input {
  padding-right: 110px;
}

.auth-code-btn:hover:not(:disabled) {
  background: rgba(255, 153, 0, 0.22);
}

.auth-code-btn:disabled,
.auth-code-btn.is-counting {
  background: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff9900 0%, #ff7a00 100%);
  color: #fff;
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-form-error {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  line-height: 18px;
  color: #c0392b;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 153, 0, 0.45);
}

.auth-submit:hover:disabled {
  transform: none;
  box-shadow: none;
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-agreement {
  margin: 0;
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: #888;
}

.auth-agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.auth-agree-checkbox {
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.auth-legal-link {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.auth-legal-link:hover {
  text-decoration: underline;
}

.auth-legal-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 26, 46, 0.42);
}

.auth-legal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  padding: 24px 24px 20px;
}

.auth-legal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 20px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.auth-legal-close:hover {
  background: #eee;
  color: var(--color-text);
}

.auth-legal-title {
  margin: 0 28px 8px 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
}

.auth-legal-meta {
  margin: 0 0 14px;
  font-size: 12px;
  color: #999;
}

.auth-legal-body {
  overflow-y: auto;
  padding-right: 4px;
  min-height: 0;
}

.auth-legal-loading {
  margin: 24px 0;
  text-align: center;
  color: #888;
}

.auth-legal-section {
  margin-bottom: 16px;
}

.auth-legal-section h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.auth-legal-section p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.75;
  color: #555;
}

.auth-legal-steps {
  margin: 0;
  padding-left: 20px;
}

.auth-legal-steps li {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.auth-mode-hint {
  margin: 0;
  width: 100%;
  font-size: var(--font-size-xs);
  line-height: 1.4;
  color: #999;
  text-align: left;
}

.auth-form-foot {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.auth-form-foot-left {
  justify-content: flex-start;
}

.auth-form-foot-split {
  justify-content: space-between;
}

.auth-switch-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  transition: color 0.2s;
}

.auth-switch-link:hover {
  color: var(--color-link);
}

.auth-wechat-entry {
  flex-shrink: 0;
  margin-top: 4px;
}

.auth-wechat-split {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #bbb;
  font-size: 12px;
}

.auth-wechat-split::before,
.auth-wechat-split::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}

.auth-wechat-btn {
  width: 100%;
  height: 42px;
  border: 1px solid #07c160;
  border-radius: 10px;
  background: #fff;
  color: #07c160;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-wechat-btn svg {
  width: 18px;
  height: 18px;
}

.auth-wechat-btn:hover:not(:disabled) {
  background: #f3fbf6;
}

.auth-wechat-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-wechat-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.auth-wechat-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.auth-wechat-hint {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #888;
  text-align: center;
}

.auth-wechat-qr {
  width: 300px;
  min-height: 220px;
}

.auth-wechat-panel .auth-switch-link {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .auth-modal-wrap {
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: 92vh;
    overflow-y: auto;
  }

  .auth-modal-head {
    min-height: 0;
    margin-bottom: 16px;
  }

  .auth-form-actions {
    margin-top: 16px;
  }

  .auth-modal-promo {
    padding: 28px 24px 20px;
    min-height: 200px;
  }

  .auth-promo-bubbles {
    flex-direction: column;
  }

  .auth-promo-float {
    flex: none;
    width: 100%;
  }

  .auth-modal-panel {
    width: 100%;
    padding: 24px 20px 28px;
  }

  .auth-modal-welcome {
    font-size: var(--font-size-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal-overlay.is-open,
  .auth-modal-overlay.is-open .auth-modal-wrap,
  .auth-form-active,
  .auth-promo-orb,
  .auth-promo-float,
  .auth-modal-logo {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* ????????*/
body.contact-qr-open {
  overflow: hidden;
}

.contact-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
}

.contact-qr-overlay[hidden] {
  display: none !important;
}

.contact-qr-panel {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 28px 24px 24px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.contact-qr-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: var(--font-size-2xl);
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.contact-qr-close:hover {
  color: var(--color-text);
}

.contact-qr-title {
  margin: 0 0 16px;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #222;
}

.contact-qr-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.contact-qr-image {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.contact-qr-hint {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* Toast ?? */
.ui-toast-stack {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.ui-toast {
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: var(--font-size-sm);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ui-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ui-toast-success {
  background: rgba(34, 120, 60, 0.92);
}

.ui-toast-error {
  background: rgba(200, 50, 40, 0.92);
}

.top-bar-user {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.top-bar-logout-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--color-text-light);
  cursor: pointer;
}

.top-bar-logout-btn:hover {
  color: var(--color-link);
}

.search-result-hint {
  margin: 12px 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.2);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.tab-panel {
  margin: 12px 0 20px;
}

.tushu-empty-hint {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-light);
}

.tushu-detail-gallery-link.is-active,
.js-tushu-toggle-fav.is-active {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.ziliao-desc-block.is-expanded .ziliao-desc-text,
.ziliao-shop-desc.is-expanded {
  max-height: none;
}

.dashi-view-answer .dashi-status-upload {
  background: rgba(74, 144, 217, 0.15);
  color: #357abd;
}
