:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #ffffff;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --red: #ff3b30;
  --green: #34c759;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.08);
  --small-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.98), rgba(245, 245, 247, 0) 34%), var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

button:active,
.file-button:active {
  transform: scale(0.98);
}

.shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 42px 0 52px;
}

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

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 8px 4px 16px;
}

.topbar-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--small-shadow);
}

.site-logo-frame {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(0, 113, 227, 0.16), rgba(52, 199, 89, 0.14));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), 0 10px 24px rgba(0, 113, 227, 0.13);
}

.site-logo-frame img {
  display: block;
  width: 112%;
  height: 112%;
  object-fit: contain;
}

.site-brand div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-brand strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 750;
}

.site-brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.platform-heading {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 700;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-app-icon,
.tab-app-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  user-select: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.brand-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.05;
}

.tab-app-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 8px;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
}

.xhs-app-icon {
  background: linear-gradient(145deg, #ff2442, #e60023);
}

.douyin-app-icon {
  color: transparent;
  background: #050505 url("/assets/douyin-icon.svg") center / cover no-repeat;
}

.subtitle {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

h2 {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 650;
}

.stat,
.panel,
.paywall,
.function-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow);
}

.function-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.platform-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  width: min(100%, 320px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
  box-shadow: var(--small-shadow);
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
}

.platform-tab.selected {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.function-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  border-radius: 28px;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--small-shadow);
}

.function-card span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
}

.function-card strong {
  font-size: 22px;
  font-weight: 650;
}

.function-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.function-card.selected {
  border-color: rgba(0, 113, 227, 0.32);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 64px rgba(0, 113, 227, 0.14);
}

.function-card.selected span {
  color: var(--blue);
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.account-shell {
  position: relative;
  flex: 0 0 auto;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--small-shadow);
}

.avatar-chip {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0071e3, #34c759);
  font-size: 15px;
  font-weight: 750;
}

.large-avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.account-summary {
  display: grid;
  gap: 3px;
  min-width: 86px;
  text-align: left;
}

.account-summary span,
.account-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.account-summary strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  width: 292px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow);
}

.account-state {
  display: grid;
  gap: 12px;
  align-content: center;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-profile div {
  display: grid;
  gap: 4px;
}

.account-profile strong {
  font-size: 22px;
  line-height: 1;
}

.account-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.1);
}

.account-detail-row strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.logout-button {
  min-height: 36px;
  border-radius: 999px;
  color: #c21f17;
  background: rgba(255, 59, 48, 0.1);
  font-size: 13px;
  font-weight: 650;
}

.account-state > span,
.account-profile span,
.account-detail-row span,
.stat span,
.panel p,
.paywall p {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  border-radius: 28px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-head div {
  display: grid;
  gap: 6px;
}

.import-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(118, 118, 128, 0.12);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.spec-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.spec-card p {
  max-width: 620px;
  margin-top: 6px;
  line-height: 1.55;
}

.spec-label {
  display: inline-flex;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.spec-example {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
}

.spec-example span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 190px;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.search-form label {
  display: grid;
  gap: 8px;
}

.search-form label span,
.search-note span,
.toggle-option span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.search-form input,
.search-form select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

.search-form input:focus,
.search-form select:focus {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.search-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 24px 20px;
}

.search-note p,
.cost-note p {
  line-height: 1.5;
}

.cost-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 24px 20px;
}

.cost-note .toggle-option {
  margin-left: auto;
  white-space: nowrap;
}

.cost-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

textarea {
  display: block;
  width: 100%;
  min-height: 204px;
  padding: 22px 24px;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  font-size: 15px;
}

textarea::placeholder {
  color: #a1a1a6;
}

textarea:focus {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 2px rgba(0, 113, 227, 0.16);
}

.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 20px;
}

.input-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.toggle-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
}

.counter span:first-child {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
}

.button-row {
  display: flex;
  gap: 10px;
}

.primary,
.ghost,
.dark {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.small-button {
  min-height: 32px;
  padding: 0 13px;
  font-size: 13px;
}

.icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(0, 113, 227, 0.22);
}

.primary:hover {
  background: var(--blue-hover);
}

.primary:disabled,
.ghost:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ghost {
  color: var(--ink);
  background: rgba(118, 118, 128, 0.12);
  border: 1px solid var(--line);
}

.ghost:hover,
.dark:hover,
.file-button:hover {
  background: rgba(118, 118, 128, 0.18);
}

.dark {
  color: var(--ink);
  background: rgba(118, 118, 128, 0.12);
}

.paywall {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 24px;
  border-color: rgba(255, 59, 48, 0.22);
  background: rgba(255, 245, 245, 0.76);
}

.paywall div {
  display: grid;
  gap: 6px;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modal-panel {
  width: min(560px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.wide-modal {
  width: min(840px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head div {
  display: grid;
  gap: 7px;
}

.login-brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.compact-logo {
  width: 54px;
  height: 54px;
}

.login-grid,
.phone-login,
.invite-box {
  display: grid;
  gap: 14px;
}

.login-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  padding: 22px 24px 24px;
}

.auth-step {
  position: relative;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.auth-step.verified {
  border-color: rgba(52, 199, 89, 0.42);
  background: rgba(240, 255, 245, 0.78);
}

.auth-step-head {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.auth-step-head span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
}

.auth-step-head strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
}

.auth-step p {
  min-height: 20px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.phone-login label,
.invite-box {
  display: grid;
  gap: 8px;
}

.phone-login label span,
.invite-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.phone-login input,
.invite-box input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

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

.wechat-button {
  min-height: 46px;
  border-radius: 999px;
  color: #fff;
  background: #07c160;
  font-weight: 650;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 24px 24px;
}

.price-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.price-card.featured {
  border-color: rgba(0, 113, 227, 0.34);
  box-shadow: 0 18px 44px rgba(0, 113, 227, 0.14);
}

.price-card strong {
  font-size: 28px;
  line-height: 1;
}

.price-card span,
.price-card p {
  color: var(--muted);
  font-size: 13px;
}

.invite-box {
  padding: 22px 24px 24px;
}

.invite-box strong {
  font-size: 34px;
  letter-spacing: 0.08em;
}

.confirm-modal {
  width: min(460px, 100%);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 24px;
}

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

.stat {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 20px;
  border-radius: 24px;
  box-shadow: var(--small-shadow);
}

.stat strong {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1820px;
  border-collapse: collapse;
  background: transparent;
}

th.creator-start,
td.creator-start {
  border-left: 2px solid rgba(0, 113, 227, 0.35);
}

td.creator-start,
th.creator-start {
  background: rgba(0, 113, 227, 0.035);
}

td a {
  color: var(--blue);
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.46);
}

.status {
  display: inline-flex;
  align-items: center;
  min-width: 56px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.success {
  color: #16833a;
  background: rgba(52, 199, 89, 0.14);
}

.failed {
  color: #c21f17;
  background: rgba(255, 59, 48, 0.12);
}

.empty-row td {
  color: var(--muted);
  text-align: center;
  padding: 48px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 24px, 1120px);
    padding-top: 24px;
  }

  .topbar,
  .panel-head,
  .spec-card,
  .input-actions,
  .paywall {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-main,
  .site-brand {
    width: 100%;
  }

  .site-brand {
    justify-content: flex-start;
  }

  .spec-card {
    grid-template-columns: 1fr;
  }

  .account-shell,
  .account-button,
  .account-popover {
    width: 100%;
  }

  .account-popover {
    position: static;
    margin-top: 10px;
  }

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

  .function-switch,
  .search-form,
  .pricing-grid,
  .login-grid {
    grid-template-columns: 1fr;
  }

  .search-note {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  h1 {
    font-size: 44px;
  }

  .brand-app-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 12px;
  }

  .subtitle {
    font-size: 16px;
  }

  .button-row,
  .import-actions,
  .file-button {
    width: 100%;
  }

  .button-row button,
  .import-actions button,
  .import-actions .file-button {
    flex: 1;
  }
}
