:root {
  --blue: #409eff;
  --blue-strong: #2f7cff;
  --blue-soft: #ecf5ff;
  --orange: #ff7a1a;
  --text: #303133;
  --muted: #606266;
  --line: #ebeef5;
  --panel: #ffffff;
  --page: #f5f7fa;
  --danger: #f56c6c;
  --success: #67c23a;
  --warning: #e6a23c;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.hidden-file {
  display: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 32px;
  padding: 48px 9vw;
  background:
    radial-gradient(circle at 54% 6%, rgba(255, 255, 255, 0.18) 0 7%, transparent 8%),
    radial-gradient(circle at 92% 52%, rgba(255, 255, 255, 0.12) 0 13%, transparent 14%),
    linear-gradient(135deg, #095dff 0%, #08b8ed 100%);
  overflow: hidden;
}

.login-visual {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
}

.login-visual::before {
  display: none;
}

.login-hero-image {
  display: block;
  width: min(42vw, 620px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 58px rgba(0, 36, 118, 0.24);
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  padding: 28px 30px;
  box-shadow: 0 22px 58px rgba(0, 36, 118, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fff;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  color: #0873bd;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand-subtitle {
  color: #5398cb;
  font-size: 12px;
  margin-top: 7px;
  text-align: center;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--muted);
}

.auth-tab {
  background: transparent;
  color: var(--muted);
  padding: 4px 0;
  font-weight: 700;
}

.auth-tab.active {
  color: var(--blue-strong);
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #455266;
  font-size: 13px;
}

.input,
.select,
.textarea {
  width: 100%;
  height: 40px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.textarea {
  min-height: 88px;
  padding: 10px 15px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.12);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-button {
  background: transparent;
  color: var(--blue-strong);
  padding: 0;
}

.primary-btn,
.outline-btn,
.ghost-btn,
.danger-btn,
.success-btn {
  min-height: 40px;
  border-radius: 4px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.primary-btn:hover,
.outline-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(64, 158, 255, 0.16);
}

.outline-btn {
  color: var(--blue-strong);
  background: #fff;
  border: 1px solid var(--blue-strong);
}

.ghost-btn {
  color: #606266;
  background: #fff;
  border: 1px solid var(--line);
}

.danger-btn {
  color: #fff;
  background: var(--danger);
}

.success-btn {
  color: #fff;
  background: var(--success);
}

.full-btn {
  width: 100%;
}

.helper-row {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  background: #fff;
}

.sidebar {
  min-height: 100vh;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03);
  overflow-x: hidden;
}

.side-brand {
  height: 112px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.side-brand .brand {
  margin: 0;
  gap: 10px;
}

.side-brand .brand-title {
  font-size: 30px;
  letter-spacing: 0;
}

.side-nav {
  padding: 0;
}

.nav-item {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 32px;
  color: #4d5968;
  background: #fff;
  border-left: 4px solid transparent;
  width: 100%;
  text-align: left;
  font-size: 20px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-item:hover {
  color: var(--blue);
  background: #f4f9ff;
}

.nav-item.active {
  color: var(--blue);
  background: #eaf3ff;
  border-left-color: var(--blue);
}

.side-user {
  border-top: 1px solid var(--line);
  padding: 20px 22px 16px;
  display: grid;
  gap: 10px;
}

.avatar-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #178dff, #54b7ff);
  font-weight: 800;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.dot-pink {
  background: #ee3db7;
}

.dot-blue {
  background: #4377ff;
}

.dot-green {
  background: #5dcc52;
}

.side-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.main {
  min-width: 0;
  background: var(--page);
}

.topbar {
  min-height: 54px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}

.notice {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  border: 1px solid #f5dab1;
  border-radius: 4px;
  background: #fdf6ec;
  color: #8a5a22;
  overflow: hidden;
  padding: 0 12px;
}

.notice-badge {
  color: #fff;
  background: #ff7519;
  border-radius: 4px;
  padding: 5px 13px;
  font-weight: 700;
  white-space: nowrap;
}

.notice span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-edit {
  flex: 0 0 auto;
  height: 36px;
}

.tabs {
  min-height: 56px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-left: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.tab {
  flex: 0 0 164px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #606266;
  border-bottom: 3px solid transparent;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}

.tab.active {
  background: #ecf5ff;
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.content {
  padding: 26px 28px 42px;
}

.section {
  display: grid;
  gap: 16px;
}

.section h2,
.section h3,
.toolbar h2,
.toolbar h3 {
  margin: 0;
  color: #303133;
  font-weight: 500;
}

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

.income-card {
  min-height: 156px;
  border-radius: 4px;
  padding: 22px 24px;
  color: #fff;
  display: grid;
  align-content: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f8bff, #5cc7ff);
  box-shadow: var(--shadow);
}

.income-card::before {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.income-card::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 28px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  transform: rotate(18deg);
}

.income-card.settled {
  background: linear-gradient(135deg, #ff7a1a, #ffc35b);
}

.income-card.available {
  background: linear-gradient(135deg, #7357ff, #18c2f4);
}

.income-card.history {
  background: linear-gradient(135deg, #18ad7f, #6ad26b);
}

.income-card span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.income-card strong {
  position: relative;
  z-index: 1;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

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

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 16px;
}

.shortcut-card {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: #303133;
}

.shortcut-card span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #ecf5ff;
}

.shortcut-card b {
  font-size: 18px;
  font-weight: 500;
}

.shortcut-card em {
  color: var(--blue);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
}

.toolbar,
.subtabs,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.toolbar {
  justify-content: space-between;
}

.subtabs {
  min-height: 56px;
  padding: 0 28px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid #ebeef5;
}

.subtab {
  height: 56px;
  background: transparent;
  color: #606266;
  border-bottom: 4px solid transparent;
  padding: 0 20px;
  font-size: 20px;
}

.subtab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.upload-box {
  min-height: 150px;
  border: 1px dashed #c0c4cc;
  border-radius: 4px;
  background: #fafafa;
  display: grid;
  place-items: center;
  text-align: center;
  color: #909399;
  padding: 18px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.upload-box:hover {
  border-color: var(--blue);
  background: #f8fbff;
}

.upload-box img,
.audit-img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #fff;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 40px;
}

.metric {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.metric strong {
  font-size: 28px;
  font-weight: 500;
  color: #000;
}

.metric small {
  color: var(--muted);
}

.money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.money-card {
  min-height: 152px;
  border-radius: 7px;
  padding: 28px 18px;
  color: #050b18;
  display: grid;
  gap: 14px;
  align-content: center;
  overflow: hidden;
  position: relative;
}

.money-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  height: 76px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50% 50% 0 0;
}

.money-card.red {
  background: linear-gradient(110deg, #ff405e, #ffd15c);
}

.money-card.blue {
  background: linear-gradient(110deg, #16c0e7, #6158f1);
}

.money-card.purple {
  background: linear-gradient(110deg, #6400f8, #b72ae8);
}

.money-card strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #ebeef5;
  text-align: left;
  vertical-align: top;
  color: #606266;
}

th {
  background: #4b82f0;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

th.sortable {
  cursor: pointer;
}

tr:nth-child(even) td {
  background: #fafcff;
}

tbody tr:hover td {
  background: #f5f9ff;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 24px;
  border-radius: 12px;
  padding: 0 9px;
  font-size: 13px;
}

.status.pending {
  color: #9a6400;
  background: #fff4d6;
}

.status.approved {
  color: #087f5b;
  background: #dff7ec;
}

.status.rejected {
  color: #b4232a;
  background: #ffe3e5;
}

.status.paid {
  color: #0663b7;
  background: #e1f0ff;
}

.stars {
  color: #ffb020;
  font-weight: 800;
}

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

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.poster {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.poster img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.payment-list {
  display: grid;
  gap: 10px;
}

.payment-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal {
  width: min(920px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.24);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 54px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.modal-body {
  padding: 22px 26px;
  display: grid;
  gap: 16px;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 14px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tree {
  display: grid;
  gap: 10px;
}

.tree-node {
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}

.tree-card {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
}

.empty {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  min-width: 220px;
  max-width: 360px;
  background: #122033;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.login-heading {
  margin: -6px 0 18px;
  text-align: center;
}

.login-heading h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #27364a;
}

.login-heading p {
  margin: 8px 0 0;
  color: #7b8794;
}

.login-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}

.login-art {
  width: min(42vw, 560px);
  height: 480px;
  position: relative;
  margin: 5vh auto 0;
}

.art-board {
  position: absolute;
  left: 17%;
  top: 4%;
  width: 230px;
  height: 132px;
  border-radius: 10px;
  transform: skewY(-17deg) rotate(-5deg);
  background: linear-gradient(135deg, rgba(135, 220, 255, 0.28), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 48px rgba(0, 51, 153, 0.18);
}

.art-board span {
  display: block;
  width: 120px;
  height: 9px;
  margin: 22px 0 0 28px;
  border-radius: 999px;
  background: rgba(204, 244, 255, 0.58);
}

.art-board span:nth-child(2) {
  width: 86px;
}

.art-board span:nth-child(3) {
  width: 142px;
}

.art-books {
  position: absolute;
  left: 18%;
  top: 32%;
  width: 330px;
  height: 220px;
  transform: rotate(-4deg);
}

.art-books i {
  position: absolute;
  left: 0;
  right: 0;
  height: 64px;
  border-radius: 10px 22px 18px 10px;
  background: linear-gradient(135deg, #a9f5ff, #42a4ff);
  box-shadow: 0 26px 50px rgba(0, 58, 142, 0.22);
}

.art-books i:nth-child(1) {
  top: 0;
  transform: skewY(-11deg);
}

.art-books i:nth-child(2) {
  top: 58px;
  left: 34px;
  transform: skewY(-11deg);
  background: linear-gradient(135deg, #8cecff, #336fff);
}

.art-books i:nth-child(3) {
  top: 116px;
  left: 10px;
  transform: skewY(-11deg);
  background: linear-gradient(135deg, #c8fbff, #23b7ff);
}

.art-badge {
  position: absolute;
  left: 30%;
  top: 31%;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  background: radial-gradient(circle at 35% 30%, #ffeaa4, #ff9c2f 58%, #ff6b00);
  box-shadow: 0 24px 52px rgba(255, 127, 22, 0.32);
}

.art-caption {
  position: absolute;
  left: 14%;
  bottom: 5%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  font-weight: 800;
}

.invite-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 650px);
  align-items: center;
  gap: 42px;
  padding: 44px 10vw;
  background:
    radial-gradient(circle at 94% 46%, rgba(255, 255, 255, 0.12) 0 13%, transparent 14%),
    linear-gradient(135deg, #075cff 0%, #0ab9ee 100%);
  overflow: auto;
}

.invite-visual {
  min-height: 560px;
}

.invite-card {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.invite-card h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.title-line {
  width: 76px;
  height: 6px;
  background: #fff;
}

.invite-inner {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px 16px 0 0;
  padding: 32px 24px 26px;
  display: grid;
  gap: 14px;
}

.invite-inner .brand {
  margin-bottom: 12px;
}

.invite-input {
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: #dceeff;
  color: #35506f;
  font-size: 16px;
  padding: 0 26px;
}

.code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.code-field .link-button {
  padding: 0 18px;
  white-space: nowrap;
}

.form-tip {
  color: #f56c6c;
  padding-left: 20px;
  margin-top: -8px;
}

.invite-submit {
  height: 50px;
  border-radius: 999px;
  margin-top: 4px;
}

.login-link {
  justify-self: center;
  font-size: 16px;
  margin-top: 6px;
}

.app-shell.collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.app-shell.collapsed .side-brand {
  height: 88px;
}

.app-shell.collapsed .side-brand .brand {
  gap: 0;
}

.app-shell.collapsed .brand-title,
.app-shell.collapsed .brand-subtitle,
.app-shell.collapsed .nav-item span,
.app-shell.collapsed .side-user .avatar-line div:not(.avatar),
.app-shell.collapsed .side-user-grid,
.app-shell.collapsed .side-user .primary-btn {
  display: none;
}

.app-shell.collapsed .brand-mark {
  width: 48px;
  height: 48px;
}

.app-shell.collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.app-shell.collapsed .side-user {
  justify-items: center;
  padding: 16px 8px;
}

.menu-btn {
  width: 48px;
  height: 40px;
  padding: 0;
}

.tab {
  position: relative;
  cursor: pointer;
}

.tab > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  background: transparent;
  line-height: 1;
  padding: 0;
}

.tab-close:hover {
  background: rgba(64, 158, 255, 0.14);
}

.dashboard-kpi .income-card {
  min-height: 144px;
  color: #3d4655;
  box-shadow: none;
  border: 1px solid #edf1f7;
}

.dashboard-kpi .income-card span {
  color: #3f4b5d;
  text-shadow: none;
  font-size: 18px;
  font-weight: 500;
}

.dashboard-kpi .income-card strong {
  color: #4c596b;
  font-size: 38px;
}

.income-card.soft-orange {
  background: linear-gradient(110deg, #fff1e7, #fffaf5);
}

.income-card.soft-blue {
  background: linear-gradient(110deg, #edf2ff, #f8fbff);
}

.income-card.soft-green {
  background: linear-gradient(110deg, #eafff8, #f7fffc);
}

.income-card.soft-purple {
  background: linear-gradient(110deg, #f4efff, #fbf8ff);
}

.chart-panel {
  min-height: 430px;
  padding: 22px 28px;
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #606266;
}

.chart-legend i {
  width: 28px;
  height: 2px;
  background: #00c9b7;
  position: relative;
}

.chart-legend i::after {
  content: "";
  position: absolute;
  left: 9px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #00c9b7;
  background: #fff;
}

.line-chart {
  width: 100%;
  min-height: 320px;
}

.line-chart svg {
  width: 100%;
  height: 320px;
  display: block;
}

.chart-grid line {
  stroke: #d6dbe3;
  stroke-width: 1;
}

.chart-grid text,
.chart-labels text {
  fill: #606266;
  font-size: 13px;
}

.chart-area {
  fill: rgba(0, 201, 183, 0.08);
}

.chart-line {
  fill: none;
  stroke: #00c9b7;
  stroke-width: 3;
}

.chart-points circle {
  fill: #fff;
  stroke: #00c9b7;
  stroke-width: 2;
}

.invite-code,
.invite-note {
  color: #606266;
}

.amount-plus {
  color: #f56c6c;
  font-weight: 700;
}

.commission-filter {
  align-items: stretch;
}

.commission-filter .input,
.commission-filter .select {
  min-width: 240px;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .side-brand .brand-title,
  .side-brand .brand-subtitle,
  .nav-item span,
  .side-user .avatar-line div:not(.avatar),
  .side-user-grid {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .summary-grid,
  .money-grid,
  .dashboard-hero,
  .quick-stats {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

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

  .invite-page {
    grid-template-columns: 1fr;
    padding: 32px 22px;
  }

  .invite-visual {
    display: none;
  }
}

@media (max-width: 760px) {
  .login-page {
    grid-template-columns: 1fr;
    padding: 28px 18px;
  }

  .login-visual {
    display: none;
  }

  .invite-page {
    padding: 24px 14px;
  }

  .invite-card h1 {
    font-size: 24px;
  }

  .invite-inner {
    padding: 24px 16px;
  }

  .code-field {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    grid-template-rows: auto auto;
  }

  .side-brand {
    height: 80px;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    padding: 0;
  }

  .nav-item {
    min-width: 92px;
    height: 58px;
  }

  .side-user {
    display: none;
  }

  .tabs {
    overflow-x: auto;
    padding-left: 0;
  }

  .tab {
    flex-basis: 128px;
  }

  .content {
    padding: 16px;
  }

  .form-grid,
  .summary-grid,
  .money-grid,
  .poster-grid,
  .dashboard-hero,
  .quick-stats,
  .shortcut-grid {
    grid-template-columns: 1fr;
  }
}

/* Second development: product, lead, payment and mobile promotion flows. */
.muted {
  color: var(--muted);
  margin: 4px 0 0;
}

.product-admin-grid,
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.product-admin-grid,
.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.product-page-heading {
  padding: 2px 0 8px;
}

.product-page-heading h2 {
  margin: 0;
}

.product-list-card {
  overflow: hidden;
  border: 1px solid #e2e7ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(35, 48, 70, 0.1);
}

.product-list-meta {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 18px;
  color: #4f6680;
  background: #eaf3ff;
  border-bottom: 1px solid #d9e8fa;
}

.product-list-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-list-meta > span:first-child {
  color: #1474d4;
  font-weight: 700;
}

.product-list-meta svg,
.product-rule-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.product-list-main {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 22px;
}

.product-list-cover {
  width: 160px;
  aspect-ratio: 4 / 3;
  display: block;
  align-self: start;
  object-fit: cover;
  border: 1px solid #dce3ec;
  border-radius: 4px;
  background: #eef3f9;
}

.product-list-info {
  min-width: 0;
}

.product-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.product-title-row h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  line-height: 1.35;
}

.product-title-row p {
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.6;
}

.commission-stamp {
  min-width: 180px;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto auto 26px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 3px solid #f04438;
  border-radius: 8px;
  color: #e5231f;
  background: #fffaf8;
  box-shadow: inset 0 0 0 2px #ffe2dc, 0 3px 9px rgba(229, 35, 31, 0.12);
}

.commission-stamp span {
  font-size: 17px;
  font-weight: 800;
}

.commission-stamp strong {
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
}

.commission-stamp svg {
  width: 26px;
  height: 26px;
  fill: #ff5a36;
  stroke: #f04438;
}

.product-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.product-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.tag-blue {
  color: #1268bd;
  background: #dceeff;
}

.tag-green {
  color: #177c4d;
  background: #dcf5e8;
}

.tag-violet {
  color: #6e50c7;
  background: #ece6ff;
}

.tag-amber {
  color: #9a6500;
  background: #fff0c7;
}

.product-rule-list {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #dfe4eb;
  color: #536174;
}

.product-rule-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.45;
}

.product-rule-list span:nth-child(1) svg {
  color: #24a4e6;
}

.product-rule-list span:nth-child(2) svg {
  color: #e6a23c;
}

.product-rule-list span:nth-child(3) svg {
  color: #2ac48a;
}

.product-list-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.product-list-actions.admin-actions {
  margin-top: 16px;
}

.promote-now-btn,
.detail-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}

.promote-now-btn {
  border: 2px solid #17a96b;
  color: #246df3;
  background: #fff;
  box-shadow: inset 5px 0 0 #d9f7e8;
}

.detail-btn {
  border: 1px solid #2e82f5;
  color: #fff;
  background: #2e82f5;
}

.promote-now-btn svg,
.detail-btn svg {
  width: 18px;
  height: 18px;
}

.detail-btn {
  cursor: pointer;
}

.modal-wide {
  width: min(1100px, 96vw);
}

.course-detail-modal {
  display: grid;
  gap: 0;
}

.course-detail-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line);
}

.course-detail-hero > img {
  width: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #dce7f4;
}

.course-detail-kicker {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 4px;
  color: #1268bd;
  background: #dceeff;
  font-size: 13px;
  font-weight: 700;
}

.course-detail-hero h4,
.promotion-poster-heading h4,
.course-detail-copy h4 {
  margin: 10px 0 0;
  color: #172033;
  font-size: 23px;
}

.course-detail-hero p {
  margin: 10px 0 0;
  color: #667085;
  line-height: 1.65;
}

.course-detail-prices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.course-detail-prices strong {
  color: #e5231f;
  font-size: 31px;
}

.course-detail-prices del {
  color: #98a2b3;
}

.course-detail-prices span {
  color: #a23a12;
  background: #fff0e9;
  border-radius: 4px;
  padding: 6px 10px;
  font-weight: 700;
}

.course-detail-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 26px;
  color: #536174;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.course-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.course-detail-meta svg {
  width: 17px;
  height: 17px;
  color: #1677d2;
}

.course-detail-content {
  display: grid;
  gap: 16px;
  padding: 22px 26px;
}

.course-detail-copy {
  border: 1px solid #e6ebf1;
  border-radius: 6px;
  padding: 18px;
}

.course-detail-copy h4 {
  margin-top: 0;
  font-size: 17px;
}

.course-detail-copy p {
  margin: 10px 0 0;
  color: #536174;
  line-height: 1.8;
}

.course-detail-copy video,
.course-detail-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 5px;
  background: #f5f7fa;
}

.course-feature-list {
  display: grid;
  gap: 9px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  color: #536174;
}

.course-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-feature-list svg {
  width: 17px;
  height: 17px;
  color: #16a669;
}

.course-faq-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.course-faq-list details {
  border: 1px solid #e6ebf1;
  border-radius: 4px;
  padding: 10px 12px;
}

.course-faq-list summary {
  cursor: pointer;
  color: #253247;
  font-weight: 700;
}

.course-detail-footer {
  padding-right: 26px;
}

.promotion-modal-body {
  gap: 20px;
}

.promotion-link-card {
  border: 1px solid #d5e7ff;
  border-radius: 6px;
  padding: 18px;
  background: #f6faff;
}

.promotion-link-card > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.promotion-link-card > div:first-child span {
  color: #536174;
}

.promotion-link-card > div:first-child strong {
  color: #172033;
}

.promotion-link-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 14px;
}

.promotion-link-input .input {
  min-width: 0;
  background: #fff;
}

.promotion-link-card p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  color: #5e6d80;
  font-size: 13px;
}

.promotion-link-card p svg {
  width: 17px;
  height: 17px;
  color: #16a669;
}

.promotion-poster-section {
  display: grid;
  gap: 14px;
}

.promotion-poster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.promotion-poster-heading h4 {
  margin: 0;
  font-size: 18px;
}

.promotion-poster-heading p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.poster-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px dashed #a9c9ef;
  border-radius: 6px;
  color: #536174;
  background: #fbfdff;
}

.poster-empty img {
  width: 126px;
  height: 142px;
  object-fit: cover;
  border-radius: 4px;
}

.poster-empty div {
  display: grid;
  gap: 8px;
}

.poster-empty b {
  color: #172033;
}

.promotion-poster-preview {
  position: relative;
  width: min(100%, 420px);
  min-height: 580px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #1268bd;
  box-shadow: 0 12px 28px rgba(18, 104, 189, 0.22);
}

.promotion-poster-preview > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.promotion-poster-preview.main-image-only {
  min-height: 0;
  background: #f5f7fa;
}

.promotion-share-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wechat-share-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  color: #fff;
  background: #07c160;
  border: 1px solid #07c160;
  border-radius: 5px;
  cursor: pointer;
}

.wechat-share-btn svg {
  width: 17px;
  height: 17px;
}

.promotion-poster-shade {
  position: relative;
  z-index: 1;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 39, 82, 0.06) 10%, rgba(2, 31, 70, 0.9) 73%);
}

.promotion-poster-shade > span {
  font-size: 14px;
  font-weight: 700;
}

.promotion-poster-shade h4 {
  margin: 0;
  font-size: 29px;
}

.promotion-poster-shade p {
  margin: 0;
  line-height: 1.6;
}

.promotion-poster-shade > div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  padding: 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
}

.promotion-poster-shade b {
  font-size: 18px;
}

.promotion-poster-shade small {
  font-size: 12px;
}

.promotion-poster-shade em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-style: normal;
  opacity: 0.9;
}

.invite-gap-form {
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.record-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.intent-type {
  color: #9a6500;
  background: #fff0c7;
}

.order-type {
  color: #1474d4;
  background: #e2f0ff;
}

.product-admin-card,
.promotion-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-admin-card > img,
.promotion-card > img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  background: #eef2f7;
}

.product-admin-card-body,
.promotion-card > div {
  padding: 16px;
}

.product-admin-card h3,
.promotion-card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.product-numbers,
.product-card-actions,
.editor-adds,
.test-payment-panel > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-numbers {
  justify-content: space-between;
  margin: 16px 0;
}

.product-numbers strong,
.promotion-card strong {
  color: #e33b38;
  font-size: 22px;
}

.product-editor {
  margin-top: 18px;
  padding: 20px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.editor-controls,
.block-editor-list {
  display: grid;
  gap: 16px;
}

.editor-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.editor-section h3,
.modal-section h4 {
  margin: 0 0 14px;
}

.form-grid.compact {
  gap: 12px;
}

.theme-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.theme-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-controls input {
  width: 38px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
}

.block-editor {
  padding: 14px;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #fbfcfe;
}

.block-editor-title,
.editor-savebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.block-editor-title > div {
  display: flex;
  gap: 4px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #526071;
}

.icon-btn svg {
  width: 18px;
}

.icon-btn.danger {
  color: var(--danger);
}

.media-upload-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px dashed var(--blue);
  border-radius: 4px;
  color: var(--blue-strong);
  cursor: pointer;
}

.media-upload-button input {
  display: none;
}

.phone-preview {
  position: sticky;
  top: 92px;
  overflow: hidden;
  width: 360px;
  min-height: 640px;
  border: 10px solid #252b34;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(30, 42, 60, 0.18);
}

.phone-preview-bar {
  height: 30px;
  display: grid;
  place-items: center;
  background: #252b34;
  color: #fff;
  font-size: 12px;
}

.phone-preview-content {
  max-height: 590px;
  overflow-y: auto;
  background: #fff;
}

.preview-hero {
  padding: 22px 18px;
  color: #fff;
  background: var(--course-primary);
}

.preview-hero h3 {
  font-size: 24px;
  margin: 8px 0;
}

.preview-hero strong {
  color: #ffe66c;
  font-size: 24px;
}

.phone-preview-content img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-preview-content section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.phone-preview-content button {
  position: sticky;
  bottom: 0;
  width: 100%;
  min-height: 48px;
  color: #fff;
  background: var(--course-accent);
}

.inline-gap-form,
.inline-gap-form label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-gap-form .input {
  width: 110px;
}

.admin-qr,
.service-qr {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin: 12px auto;
  border: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.modal-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.test-payment-panel {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #e6a23c;
  border-radius: 6px;
  background: #fff8eb;
}

.status.draft,
.status.frozen,
.status.manual_review,
.status.paid_pending,
.status.intent,
.status.waiting_payment {
  color: #9a5a00;
  background: #fff3d8;
}

.status.published,
.status.available,
.status.completed,
.status.converted {
  color: #1d7a3d;
  background: #e9f8ee;
}

.status.archived,
.status.closed,
.status.refunded,
.status.reversed,
.status.payment_rejected {
  color: #697386;
  background: #eef1f5;
}

.course-page {
  --course-primary: #126de5;
  --course-accent: #e33b38;
  --course-bg: #fff;
  width: 100%;
  min-height: 100vh;
  color: #1f2937;
  background: var(--course-bg);
}

.course-brandbar,
.course-intro,
.course-blocks,
.course-conversion {
  width: min(100%, 720px);
  margin: 0 auto;
}

.course-brandbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.dashboard-period-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dashboard-period-bar h2 {
  margin: 0 0 4px;
}

.dashboard-period-selects {
  display: flex;
  gap: 8px;
}

.dashboard-period-selects .select {
  min-width: 104px;
}

.archived-product-panel {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}

.archived-product-panel > summary {
  padding: 14px 18px;
  color: #5f6b7a;
  cursor: pointer;
  font-weight: 700;
}

.archived-product-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.archived-product-row div {
  display: grid;
  gap: 4px;
}

.archived-product-row span {
  color: #7b8491;
  font-size: 13px;
}

.status.archived {
  color: #667085;
  background: #eef1f5;
}

.course-contact-float {
  position: fixed;
  z-index: 22;
  top: 46%;
  right: 0;
  display: flex;
  align-items: flex-start;
  transform: translateY(-50%);
}

.course-contact-toggle {
  width: 42px;
  min-height: 108px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 9px 7px;
  color: #fff;
  background: #126de5;
  border: 0;
  border-radius: 6px 0 0 6px;
  box-shadow: 0 7px 22px rgba(18, 109, 229, 0.24);
  cursor: pointer;
}

.course-contact-toggle svg {
  width: 19px;
  height: 19px;
}

.course-contact-toggle span {
  line-height: 1.25;
  writing-mode: vertical-rl;
}

.course-contact-panel {
  width: 0;
  max-height: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 0;
  color: #4b5563;
  background: #fff;
  border: 0 solid #dfe5ec;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.16);
  transition: width 160ms ease, padding 160ms ease;
}

.course-contact-float.expanded .course-contact-panel {
  width: 188px;
  max-height: 300px;
  padding: 14px;
  border-width: 1px 0 1px 1px;
}

.course-contact-panel img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.course-contact-panel > span {
  font-size: 12px;
}

.course-brandbar .brand {
  justify-content: flex-start;
  margin: 0;
}

.course-brandbar .brand-mark {
  width: 42px;
  height: 42px;
}

.course-brandbar .brand-title {
  font-size: 22px;
}

.course-intro {
  padding: 38px 24px 32px;
  color: #fff;
  background: var(--course-primary);
}

.course-intro h1 {
  margin: 8px 0 18px;
  font-size: 34px;
  line-height: 1.24;
}

.course-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.course-price strong {
  color: #ffe66c;
  font-size: 36px;
}

.course-image-block {
  margin: 0;
}

.course-image-block img {
  display: block;
  width: 100%;
  height: auto;
}

.course-content-block {
  padding: 28px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.course-content-block h2 {
  margin: 0 0 16px;
  font-size: 23px;
}

.course-content-block video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.course-feature-list {
  display: grid;
  gap: 12px;
}

.course-feature-list > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.course-feature-list svg {
  flex: 0 0 20px;
  color: #16a36a;
}

.course-faq details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.course-conversion {
  padding: 28px 22px;
  background: #f6f8fb;
}

.course-form,
.course-result {
  display: grid;
  gap: 16px;
}

.course-form label > span,
.course-form-heading span {
  display: block;
  margin-bottom: 6px;
  color: #4b5563;
}

.payment-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.payment-choice legend {
  margin-bottom: 8px;
}

.payment-choice label > span {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d7dde7;
  border-radius: 4px;
  background: #fff;
}

.payment-choice input {
  position: absolute;
  opacity: 0;
}

.payment-choice input:checked + span {
  border-color: var(--course-primary);
  color: var(--course-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--course-primary) 18%, transparent);
}

.privacy-check {
  display: flex !important;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
}

.privacy-check input {
  margin-top: 3px;
}

.course-submit,
.course-sticky-cta {
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 12px 18px;
  color: #fff;
  background: var(--course-accent);
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.course-result {
  text-align: center;
  justify-items: center;
}

.course-result > svg {
  width: 58px;
  height: 58px;
  color: #16a36a;
}

.course-result > strong {
  color: var(--course-accent);
  font-size: 34px;
}

.qr-placeholder {
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed #aab2c0;
  background: #fff;
}

.qr-placeholder svg {
  width: 64px;
  height: 64px;
}

.course-sticky-cta {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 696px);
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(35, 40, 55, 0.26);
}

.course-bottom-space {
  height: 82px;
}

.course-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: #f4f7fb;
}

@media (max-width: 1100px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    position: static;
    width: min(100%, 360px);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .product-admin-grid,
  .promotion-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .product-list-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
  }

  .product-list-main {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .product-list-cover {
    width: 92px;
    aspect-ratio: 3 / 4;
  }

  .product-title-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .product-title-row h3 {
    font-size: 18px;
  }

  .commission-stamp {
    min-width: 168px;
    min-height: 66px;
    align-self: flex-end;
  }

  .commission-stamp strong {
    font-size: 25px;
  }

  .product-rule-list {
    grid-column: 1 / -1;
  }

  .product-list-actions {
    grid-column: 1 / -1;
  }

  .product-list-actions > * {
    flex: 1;
  }

  .modal-wide {
    width: min(100%, 96vw);
  }

  .course-detail-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .course-detail-hero > img {
    width: 100%;
    max-height: 230px;
  }

  .course-detail-hero h4 {
    font-size: 20px;
  }

  .course-detail-meta,
  .course-detail-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .course-detail-meta {
    display: grid;
    gap: 9px;
  }

  .course-detail-footer {
    padding-right: 18px;
  }

  .promotion-link-card,
  .promotion-modal-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .promotion-link-card > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

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

  .promotion-link-input .input {
    grid-column: 1 / -1;
  }

  .promotion-poster-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .poster-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .poster-empty img {
    width: 100%;
    height: 150px;
  }

  .promotion-poster-preview,
  .promotion-poster-shade {
    min-height: 500px;
  }

  .product-editor {
    padding: 14px;
  }

  .editor-adds {
    width: 100%;
  }

  .editor-adds .ghost-btn {
    flex: 1 1 92px;
  }

  .inline-gap-form {
    width: 100%;
    align-items: flex-end;
  }

  .inline-gap-form label {
    flex: 1;
    display: grid;
  }

  .inline-gap-form .input {
    width: 100%;
  }

  .course-brandbar {
    min-height: 58px;
    padding: 8px 12px;
  }

  .course-brandbar .brand-subtitle,
  .course-brandbar > span {
    display: none;
  }

  .course-brandbar .brand-title {
    font-size: 20px;
  }

  .course-intro {
    padding: 28px 18px 24px;
  }

  .course-intro h1 {
    font-size: 29px;
  }

  .course-content-block,
  .course-conversion {
    padding: 24px 18px;
  }
}

/* Mobile-first course promotion template. */
.course-page {
  --course-primary: #0b5cad;
  --course-accent: #c99a3d;
  --course-bg: #f6f8fb;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--course-bg);
}

.course-brandbar {
  width: min(100%, 720px);
  min-height: 52px;
  padding: 0 14px;
  color: #172033;
  border-bottom: 1px solid #e8edf4;
}

.course-brandbar > strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.course-home {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #4b5563;
  border-radius: 4px;
}

.course-home svg { width: 20px; height: 20px; }

.course-brand-sign {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--course-primary);
  font-size: 13px;
  font-weight: 700;
}
.course-brandbar > .course-brand-sign { display: flex; }

.course-brand-sign img { width: 24px; height: 24px; object-fit: contain; }

.course-intro {
  width: min(100%, 720px);
  padding: 20px 18px 18px;
  color: #172033;
  background: #fff;
}

.course-intro h1 { margin: 0 0 8px; font-size: 23px; line-height: 1.35; }
.course-intro > p { margin: 0 0 12px; color: #5d6878; font-size: 14px; }

.course-tags,
.course-teacher-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.course-tags span,
.course-teacher-tags span {
  padding: 4px 8px;
  color: var(--course-primary);
  background: color-mix(in srgb, var(--course-primary) 9%, #fff);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.course-facts {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #657185;
  font-size: 13px;
}

.course-facts span { display: inline-flex; align-items: center; gap: 6px; }
.course-facts svg { width: 16px; height: 16px; color: var(--course-primary); }

.course-subheadline {
  margin-top: 14px;
  padding-top: 12px;
  color: #334155;
  border-top: 1px solid #edf0f4;
  font-size: 14px;
}

.course-tabbar {
  position: sticky;
  z-index: 12;
  top: 0;
  width: min(100%, 720px);
  height: 48px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #e3e8ef;
  backdrop-filter: blur(10px);
}

.course-tabbar a {
  display: grid;
  place-items: center;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.course-tabbar a:focus-visible { color: var(--course-primary); outline: 2px solid var(--course-primary); outline-offset: -2px; }

.course-tab-panel,
.course-attribution-note {
  width: min(100%, 720px);
  margin: 0 auto;
  scroll-margin-top: 52px;
  background: #fff;
}

.course-tab-panel + .course-tab-panel { margin-top: 8px; }
.course-content-block { padding: 26px 18px; }
.course-content-block h2 { font-size: 20px; line-height: 1.4; }

.course-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.course-feature-list > div {
  min-height: 64px;
  padding: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  font-size: 14px;
}
.course-feature-list svg { color: var(--course-accent); }

.course-structured-section { padding: 28px 18px 32px; }
.course-section-title { margin-bottom: 22px; text-align: center; }
.course-section-title > span { color: var(--course-accent); font-size: 11px; font-weight: 800; letter-spacing: 0; }
.course-section-title h2 { margin: 4px 0 5px; color: #172033; font-size: 22px; }
.course-section-title p { margin: 0; color: #7a8494; font-size: 13px; }

.course-syllabus h3 { margin: 0 0 14px; font-size: 16px; }
.course-syllabus article {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 20px;
}
.course-syllabus article::before { content: ""; position: absolute; top: 32px; bottom: 0; left: 20px; width: 1px; background: #d9e2ec; }
.course-syllabus article:last-child::before { display: none; }
.course-syllabus article > span {
  width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--course-primary);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}
.course-syllabus article b { display: block; margin-bottom: 4px; color: #172033; font-size: 15px; }
.course-syllabus article p { margin: 0 0 5px; color: #4b5563; font-size: 14px; line-height: 1.65; }
.course-syllabus article small { color: var(--course-accent); font-size: 12px; font-weight: 700; }

.course-teacher-list { display: grid; gap: 12px; }
.course-teacher-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #e6ebf1;
  border-radius: 6px;
  background: #fff;
}
.course-teacher-card > img,
.course-teacher-avatar { width: 84px; height: 104px; object-fit: cover; border-radius: 4px; background: color-mix(in srgb, var(--course-primary) 10%, #fff); }
.course-teacher-avatar { display: grid; place-items: center; color: var(--course-primary); }
.course-teacher-avatar svg { width: 34px; height: 34px; }
.course-teacher-card h3 { margin: 0 0 3px; font-size: 18px; }
.course-teacher-card strong { color: var(--course-primary); font-size: 13px; }
.course-teacher-card p { margin: 8px 0 10px; color: #5b6575; font-size: 13px; line-height: 1.65; }

.course-empty-section { padding: 28px 12px; color: #8a94a3; text-align: center; border: 1px dashed #ccd5df; border-radius: 6px; }
.course-attribution-note { margin-top: 8px; padding: 18px; display: flex; align-items: center; gap: 12px; }
.course-attribution-note svg { flex: 0 0 34px; width: 34px; height: 34px; color: var(--course-accent); }
.course-attribution-note div { display: grid; gap: 3px; }
.course-attribution-note span { color: #687386; font-size: 13px; }

.course-sticky-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(100%, 720px);
  min-height: 68px;
  padding: 9px 12px max(9px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 44%);
  gap: 12px;
  align-items: center;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #dfe5ec;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(12px);
}
.course-sticky-price { min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.course-sticky-price span { width: 100%; color: #7b8492; font-size: 11px; }
.course-sticky-price strong { color: var(--course-accent); font-size: 22px; line-height: 1; }
.course-sticky-price del { color: #9aa3af; font-size: 12px; }
.course-sticky-bar .course-sticky-cta {
  position: static;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  transform: none;
  color: #fff;
  background: linear-gradient(100deg, var(--course-primary), color-mix(in srgb, var(--course-primary) 74%, var(--course-accent)));
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  font-size: 16px;
  cursor: pointer;
}
.course-bottom-space { height: calc(84px + env(safe-area-inset-bottom)); }

.course-appointment-modal { padding: 28px 22px 20px; display: grid; justify-items: center; text-align: center; }
.appointment-badge { width: 54px; height: 54px; display: grid; place-items: center; color: #fff; background: var(--course-primary, #0b5cad); border-radius: 50%; }
.course-appointment-modal h2 { margin: 14px 0 6px; font-size: 21px; }
.course-appointment-modal > p { margin: 0 0 16px; color: #6b7280; font-size: 13px; line-height: 1.6; }
.appointment-code { width: 100%; margin-top: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; background: #f4f7fb; border-radius: 6px; }
.appointment-code span,
.appointment-wechat { color: #667085; font-size: 13px; }
.appointment-code b { color: var(--course-primary, #0b5cad); font-size: 18px; }
.appointment-wechat { margin: 12px 0; }

.journey-summary { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.journey-summary > div { padding: 12px; display: grid; gap: 4px; background: #f6f8fb; border-radius: 4px; }
.journey-summary span { color: #7a8494; font-size: 12px; }
.form-note { display: flex; gap: 7px; align-items: flex-start; color: #6b7280; font-size: 12px; line-height: 1.55; }
.form-note svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; }
.compact-textarea { min-height: 78px; }
.syllabus-input { min-height: 150px; }
.preview-hero small { display: inline-block; margin: 5px 4px 0 0; padding: 2px 5px; color: var(--course-primary); background: #fff; border-radius: 3px; }
.status.clicked,
.status.contacted { color: #0b5cad; background: #eaf3ff; }
.status.interested { color: #8a6200; background: #fff4cc; }

/* Reusable mobile long-image course template. */
.course-page-reference {
  width: min(100%, 390px);
  margin: 0 auto;
  color: #1b2126;
  background: #fff;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.reference-header {
  height: 47px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #f1f2f4;
}

.reference-header > strong { justify-self: center; color: #3c4349; font-size: 17px; font-weight: 400; }

.reference-summary { padding: 21px 18px 0; background: #fff; }
.reference-summary h1 {
  margin: 0;
  color: #1b2126;
  font-size: 20.97px;
  font-weight: 700;
  line-height: 28px;
}
.reference-tags { min-height: 27px; padding-top: 5px; display: flex; gap: 7px; align-items: flex-start; }
.reference-tags span {
  padding: 2px 6px;
  color: #6191f2;
  background: #f2f7ff;
  border-radius: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 17px;
}
.reference-meta {
  min-height: 52px;
  margin-top: 16px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8a9095;
  border-top: 1px solid #f1f2f4;
  font-size: 12px;
}

.reference-tabbar {
  position: sticky;
  z-index: 12;
  top: 0;
  width: 100%;
  height: 59px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  background: #fff;
  border-top: 8px solid #f6f8fa;
  border-bottom: 1px solid #f1f2f4;
}
.reference-tabbar button {
  position: relative;
  padding: 0;
  color: #8a9095;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
}
.reference-tabbar button.active { color: #32383d; }
.reference-tabbar button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 24px;
  height: 3px;
  transform: translateX(-50%);
  background: #4f83ff;
  border-radius: 2px;
}

.reference-content { min-height: calc(100vh - 238px); background: #fff; }
.reference-long-images { width: 100%; font-size: 0; }
.reference-long-images img { width: 100%; height: auto; display: block; }

.reference-syllabus { padding: 0 18px 32px; }
.reference-syllabus article {
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.reference-syllabus-copy { min-width: 0; }
.reference-syllabus b { color: #3d444a; font-size: 14px; font-weight: 700; }
.reference-syllabus p {
  margin: 4px 0 0;
  color: #5f6670;
  font-size: 13px;
  line-height: 1.45;
}
.reference-syllabus small {
  display: block;
  margin-top: 4px;
  color: #8b93a0;
  font-size: 11px;
}
.reference-syllabus span {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #9aa0a5;
  font-size: 12px;
}

.reference-teachers { background: #fff; }
.reference-teachers article {
  padding: 16px 16px 18px;
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr);
  column-gap: 15px;
  row-gap: 15.5px;
  border-bottom: 1px solid #f1f2f4;
}
.reference-teachers article > img {
  width: 73px;
  height: 73px;
  object-fit: cover;
  border-radius: 50%;
}
.reference-teachers h2 { margin: 4px 0 3px; color: #3c4349; font-size: 17px; line-height: 1.25; }
.reference-teacher-role { margin: 0; color: #8a9095; font-size: 14px; line-height: 1.5; }
.reference-rating { margin: 3px 0 0; display: flex; align-items: center; gap: 9px; }
.reference-rating span { color: #ffd000; font-size: 15px; letter-spacing: 0; }
.reference-rating small { color: #9aa0a5; font-size: 13px; }
.reference-teacher-bio {
  grid-column: 1 / -1;
  margin: 0;
  color: #8a9095;
  font-size: 14.575px;
  line-height: 20.822px;
}
.reference-empty { padding: 48px 18px; color: #9aa0a5; text-align: center; font-size: 14px; }

.reference-bottom-space { height: calc(56px + env(safe-area-inset-bottom)); }
.reference-buybar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(100%, 390px);
  min-height: 56px;
  padding: 7px 16px max(7px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 14px;
  align-items: center;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #f1f2f4;
}
.reference-price { display: flex; align-items: baseline; color: #ff6c32; }
.reference-price small { margin-right: 3px; font-size: 13px; font-weight: 700; }
.reference-price strong { font-size: 21px; line-height: 1; }
.reference-buy-button {
  width: 116px;
  height: 42px;
  color: #fff;
  background: #4f83ff;
  border: 0;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 700;
}
.reference-buy-button.soldout { background: #d9dde1; cursor: not-allowed; }
.reference-attribution {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .course-brand-sign { font-size: 12px; }
  .course-intro h1 { font-size: 21px; }
  .course-feature-list { grid-template-columns: 1fr; }
  .course-sticky-bar { grid-template-columns: minmax(0, 1fr) 148px; }
  .journey-summary { grid-template-columns: 1fr; }
  .course-page .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .course-page .course-appointment-dialog {
    width: 100%;
    max-height: min(88vh, 720px);
    border-radius: 6px 6px 0 0;
  }
  .course-page .course-appointment-dialog .modal-header {
    min-height: 48px;
    padding: 0 14px;
  }
  .course-page .course-appointment-dialog .modal-header h3 { font-size: 16px; }
  .course-page .course-appointment-modal { padding: 18px 18px 14px; }
  .course-page .course-appointment-modal h2 { margin-top: 10px; font-size: 19px; }
  .course-page .course-appointment-dialog .qr-placeholder,
  .course-page .course-appointment-dialog .service-qr {
    width: 154px;
    height: 154px;
  }
  .course-page .course-appointment-dialog .modal-footer { padding: 10px 14px max(10px, env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .dashboard-period-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-period-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .promotion-share-actions > button {
    flex: 1 1 100%;
  }
}
