:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #14213d;
  background: #f3f6fb;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(160deg, #eef5ff, #f7f9fc 45%, #eef1f7); }
.shell { width: min(680px, calc(100% - 28px)); margin: 0 auto; padding: 36px 0 56px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: #306ee8; font-weight: 800; box-shadow: 0 10px 25px #306ee833; }
h1 { margin: 0; font-size: 24px; }
.subtitle { margin: 5px 0 0; color: #64748b; font-size: 14px; }
.card { background: #fff; border: 1px solid #e3e9f2; border-radius: 20px; padding: 24px; box-shadow: 0 18px 45px #15346612; }
.status { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: #f5a524; margin-top: 6px; box-shadow: 0 0 0 6px #f5a5241f; flex: 0 0 auto; }
.status-dot.success { background: #19a974; box-shadow: 0 0 0 6px #19a9741f; }
.status-dot.error { background: #dc3c4d; box-shadow: 0 0 0 6px #dc3c4d1f; }
.status-title { font-size: 18px; font-weight: 750; }
.status-message { margin-top: 4px; color: #64748b; line-height: 1.55; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.meta-item { background: #f7f9fc; border-radius: 12px; padding: 12px 14px; }
.meta-label { color: #7b879a; font-size: 12px; }
.meta-value { margin-top: 3px; font-weight: 700; }
form { display: grid; gap: 12px; margin-top: 18px; }
label { font-size: 14px; font-weight: 650; }
input, select, button { width: 100%; border-radius: 12px; font-size: 16px; }
input, select { border: 1px solid #cfd8e6; padding: 13px 14px; background: white; outline: none; }
input:focus, select:focus { border-color: #3776ed; box-shadow: 0 0 0 3px #3776ed1a; }
button { border: 0; padding: 14px 18px; background: #306ee8; color: white; font-weight: 750; cursor: pointer; }
button:hover { background: #245fcf; }
button:disabled { opacity: .55; cursor: not-allowed; }
.secondary { background: #edf3ff; color: #285fc7; }
.secondary:hover { background: #e2ebfc; }
.notice { margin-top: 18px; padding: 13px 15px; border-radius: 12px; background: #fff8e8; color: #775b12; font-size: 13px; line-height: 1.55; }
.error-text { color: #c53042; font-size: 13px; min-height: 18px; }
.hidden { display: none !important; }
.captcha { width: 100%; max-height: 260px; object-fit: contain; border: 1px solid #e1e7f0; border-radius: 12px; background: #f8fafc; }
.link-box { display: flex; gap: 8px; margin-top: 14px; }
.link-box input { flex: 1; min-width: 0; }
.link-box button { width: auto; white-space: nowrap; }
.orders { margin-top: 22px; display: grid; gap: 10px; }
.order-row { padding: 14px; border: 1px solid #e3e9f2; border-radius: 14px; background: #fff; }
.order-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.order-sub { margin-top: 5px; color: #64748b; font-size: 13px; line-height: 1.5; }
.manual-actions { display: flex; gap: 8px; margin-top: 10px; }
.manual-actions button { width: auto; padding: 8px 12px; font-size: 13px; }

/* 充值链接管理：与客户页共用荧光绿、深色文字和圆角卡片语言。 */
.admin-page {
  color: #172033;
  background:
    radial-gradient(circle at 96% 0, #dff3bd38 0, #edf7df1f 14%, #edf7df00 29%),
    radial-gradient(circle at 3% 100%, #e7f3fa38 0, #e7f3fa00 23%),
    #fcfdfc;
}
.admin-shell { width: min(1180px, calc(100% - 34px)); padding-top: 30px; }
.admin-brand { margin-bottom: 24px; }
.admin-page .brand-mark {
  color: #172033;
  background: linear-gradient(145deg, #c4ff5b, #9be525);
  border: 1px solid #8dca25;
  box-shadow: 0 10px 24px #7cba2338;
}
.admin-page h1 { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.admin-page h2 { margin: 3px 0 0; font-size: 19px; }
.admin-page .subtitle { color: #687064; font-weight: 600; }
.admin-layout { display: block; }
.admin-page .card {
  border-color: #dfe5dc;
  border-radius: 24px;
  box-shadow: 0 22px 60px #24361c14, 0 4px 12px #24361c0a;
}
.admin-create-card { padding: 24px; }
.admin-section-heading { padding-bottom: 17px; border-bottom: 1px solid #e2e7df; }
.section-kicker { color: #5f7c29; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.admin-section-heading p { margin: 7px 0 0; color: #788176; font-size: 12px; line-height: 1.55; }
.admin-page form { gap: 10px; margin-top: 17px; }
.admin-create-form { display: grid; grid-template-columns: 1.1fr .8fr .75fr 1.15fr .62fr .55fr auto; align-items: end; }
.integration-card { margin-top: 18px; }
.integration-form { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: end; }
.integration-status { margin-top: 12px; color: #697365; font-size: 12px; }
.form-field { min-width: 0; display: grid; gap: 7px; }
.admin-page label { margin-top: 3px; color: #26331e; font-size: 13px; font-weight: 850; }
.admin-page input,
.admin-page select,
.admin-page textarea {
  min-height: 48px;
  border: 1.5px solid #cfd7cb;
  border-radius: 14px;
  color: #172033;
  font-size: 14px;
}
.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus { border-color: #87bf2b; box-shadow: 0 0 0 4px #aee44b2c; outline: none; }
.admin-page button {
  min-height: 48px;
  border: 1px solid #8bc521;
  border-radius: 14px;
  color: #172033;
  background: linear-gradient(135deg, #b9f44f, #9fdf2d);
  box-shadow: 0 9px 20px #88bd2729;
  font-size: 14px;
  font-weight: 850;
}
.admin-page button:hover { background: #a9ef35; }
.admin-page .secondary { border-color: #d7dfd3; color: #34402e; background: #f0f3ed; box-shadow: none; }
.admin-page .secondary:hover { background: #e7ece3; }
.admin-page .link-box { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px; border: 1px solid #d6e6bc; border-radius: 15px; background: #f8fced; }
.admin-page .link-box textarea { width: 100%; min-height: 72px; padding: 8px 10px; border: 0; background: transparent; font-size: 12px; line-height: 1.55; resize: vertical; }
.link-box-actions { display: flex; min-width: 104px; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 8px; color: #667060; font-size: 11px; text-align: center; }
.admin-page .link-box button { min-height: 42px; }
.admin-orders-panel { min-width: 0; margin-top: 28px; }
.admin-orders-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 3px 3px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-order-tools { display: grid; gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid #dfe5dc; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px #24361c0b; }
.order-platform-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-page .order-platform-filters button { width: auto; min-height: 38px; padding: 8px 13px; border-color: #dce3d8; background: #f7f9f5; box-shadow: none; color: #596454; font-size: 12px; }
.admin-page .order-platform-filters button span { margin-left: 3px; color: #8a9386; font-size: 10px; }
.admin-page .order-platform-filters button.active { border-color: #172033; background: #172033; color: #fff; }
.admin-page .order-platform-filters button.active span { color: #cfd7cc; }
.order-secondary-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.order-secondary-filters label { display: grid; grid-template-columns: auto minmax(120px, 180px); align-items: center; gap: 8px; margin: 0; padding: 7px 9px 7px 12px; border: 1px solid #e1e6de; border-radius: 13px; background: #f8faf7; color: #70796c; font-size: 11px; }
.admin-page .order-secondary-filters select { min-height: 36px; padding: 6px 32px 6px 9px; border: 0; background-color: #fff; font-size: 12px; }
.admin-page .order-search-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 9px; margin: 0; padding: 0; }
.admin-page .order-search-form input { min-height: 46px; }
.admin-page .order-search-form button { width: auto; min-height: 46px; padding: 10px 18px; }
.order-search-meta { color: #7c8578; font-size: 11px; line-height: 1.5; }
.order-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; color: #707a6d; font-size: 11px; }
.order-summary span,
.order-summary button { min-height: 32px; width: auto; padding: 6px 10px; border: 1px solid #dce3d8; border-radius: 999px; background: #fff; box-shadow: none; color: #606a5c; font-size: 11px; font-weight: 700; }
.order-summary button:hover { border-color: #b9c8b1; background: #f5f7f3; }
.order-summary button.active { border-color: #172033; background: #172033; color: #fff; }
.admin-page .orders { margin-top: 0; gap: 10px; }
.admin-page .orders { max-height: min(72vh, 920px); overflow-y: auto; padding-right: 4px; scrollbar-color: #cbd5c7 transparent; }
.admin-empty { padding: 30px 20px; border: 1px dashed #ccd5c8; border-radius: 20px; color: #7d867a; background: #ffffffa6; text-align: center; font-size: 13px; }
.admin-page .order-row {
  padding: 17px;
  border-color: #dfe5dc;
  border-radius: 19px;
  box-shadow: 0 10px 30px #24361c0b;
}
.admin-page .order-top { align-items: flex-start; }
.admin-order-heading { display: flex; min-width: 0; align-items: flex-start; gap: 9px; }
.platform-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 8px; color: #525e4d; background: #edf1e9; font-size: 10px; font-weight: 850; }
.platform-badge.platform-taobao { color: #a13e0b; background: #fff0e5; }
.platform-badge.platform-xianyu { color: #866100; background: #fff5c9; }
.platform-badge.platform-manual { color: #596454; background: #edf1e9; }
.admin-order-title { color: #172033; font-size: 15px; font-weight: 850; }
.admin-order-id { display: block; margin-top: 3px; color: #8a9287; font-size: 10px; font-weight: 500; }
.admin-status { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #edf1e9; color: #525e4d; font-size: 10px; font-weight: 850; }
.admin-status.status-success { color: #3d7b12; background: #e8f8dc; }
.admin-status.status-manual_required,
.admin-status.status-failed,
.admin-status.status-stopped { color: #a82e3b; background: #ffeaec; }
.admin-status.status-expired { color: #687164; background: #ecefeb; }
.admin-status.status-waiting_phone,
.admin-status.status-waiting_worker,
.admin-status.status-waiting_sms,
.admin-status.status-waiting_captcha,
.admin-status.status-verification_timeout,
.admin-status.status-mapping_required { color: #8a6100; background: #fff3d7; }
.admin-order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.admin-order-meta div { padding: 9px 10px; border: 1px solid #e5e9e2; border-radius: 12px; background: #f5f7f3; }
.admin-order-meta span { display: block; color: #858d82; font-size: 10px; }
.admin-order-meta strong { display: block; margin-top: 2px; color: #34402e; font-size: 12px; overflow-wrap: anywhere; }
.admin-meta-value-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.admin-meta-value-row strong { min-width: 0; }
.admin-page .meta-copy-button { width: auto; min-height: 27px; padding: 4px 7px; border-color: #d6ded2; border-radius: 8px; background: #fff; box-shadow: none; color: #5d6758; font-size: 10px; }
.order-timeline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 2px 0; color: #929a8f; font-size: 10px; }
.admin-page .order-sub { padding: 10px 11px; border-radius: 12px; background: #fafbf9; color: #65705f; }
.admin-page .manual-actions { flex-wrap: wrap; }
.admin-page .manual-actions button { min-height: 36px; padding: 7px 10px; border-radius: 11px; box-shadow: none; font-size: 12px; }
@media (max-width: 1100px) {
  .admin-create-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .integration-form { grid-template-columns: 1fr 1fr auto; }
}
@media (max-width: 900px) {
  .admin-page .orders { max-height: none; overflow: visible; padding-right: 0; }
  .admin-page .order-search-form { grid-template-columns: 1fr auto auto; }
}
@media (max-width: 560px) {
  .admin-shell { width: min(100% - 22px, 1180px); padding-top: 20px; }
  .admin-page h1 { font-size: 24px; }
  .admin-orders-head { align-items: flex-start; flex-direction: column; }
  .order-summary { justify-content: flex-start; }
  .order-secondary-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .order-secondary-filters label { grid-template-columns: 1fr; gap: 4px; }
  .admin-page .order-search-form { grid-template-columns: 1fr 1fr; }
  .admin-page .order-search-form input { grid-column: 1 / -1; }
  .admin-create-form { grid-template-columns: 1fr; }
  .integration-form { grid-template-columns: 1fr; }
  .admin-page .link-box { grid-template-columns: 1fr; }
  .link-box-actions { flex-direction: row; align-items: center; }
  .admin-order-meta { grid-template-columns: 1fr; }
  .admin-page .manual-actions button { flex: 1 1 auto; }
}

/* 客户充值页：取会员中心的高对比黑色与荧光绿，但保持单任务填写体验。 */
.customer-page {
  color: #172033;
  background:
    radial-gradient(circle at 88% 7%, #b6f44e38 0, #b6f44e00 28%),
    radial-gradient(circle at 4% 94%, #c8e6ff52 0, #c8e6ff00 32%),
    #f5f7f4;
}
.customer-page .shell { width: min(580px, calc(100% - 28px)); padding-top: 30px; }
.customer-brand { padding: 0 4px; }
.customer-page .brand-mark {
  color: #172033;
  background: linear-gradient(145deg, #c4ff5b, #9be525);
  border: 1px solid #8dca25;
  border-radius: 15px;
  box-shadow: 0 10px 24px #7cba2338;
}
.brand-mark.logo-mark {
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: 0 10px 24px #7cba2338;
}
.brand-mark.logo-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.admin-brand .brand-mark.logo-mark { width: 53px; height: 53px; border-radius: 17px; }
.customer-brand .brand-mark.logo-mark { width: 36px; height: 36px; border-radius: 11px; }
.customer-page h1 { font-size: clamp(25px, 6vw, 32px); font-weight: 850; letter-spacing: -.6px; }
.customer-page .subtitle { color: #687064; font-weight: 600; }
.customer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe5dc;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 24px 65px #24361c17, 0 4px 14px #24361c0d;
}
.customer-card::before {
  content: "专属会员充值服务";
  display: block;
  width: max-content;
  margin: -28px -28px 24px;
  padding: 8px 17px;
  color: #31500b;
  background: #e8ffc2;
  border-right: 1px solid #cce99c;
  border-bottom: 1px solid #cce99c;
  border-bottom-right-radius: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
}
.customer-page .status { padding-bottom: 18px; border-bottom: 1px solid #e0e4dc; }
.customer-page .status-dot { background: #93d822; box-shadow: 0 0 0 6px #a8e63a2e; }
.customer-page .status-title { font-size: 21px; font-weight: 850; }
.customer-page .status-message { color: #687064; }
.customer-page .meta { margin: 16px 0 20px; }
.customer-page .meta-item { background: #f1f3ed; border: 1px solid #dfe3da; border-radius: 15px; }
.customer-page .meta-label { color: #7b8276; }
.customer-page .meta-value { color: #171a15; font-size: 15px; }
.refund-notice { display: grid; gap: 4px; margin: -4px 0 20px; padding: 12px 14px; border: 1px solid #f0d596; border-radius: 14px; background: #fff8e7; color: #725615; }
.refund-notice strong { font-size: 14px; }
.refund-notice span { font-size: 12px; line-height: 1.6; }
.refund-notice.refund-refunded { border-color: #efc4c4; background: #fff2f2; color: #8c3333; }
.refund-notice.refund-review { border-color: #d6c9ee; background: #f7f2ff; color: #5f4783; }
.trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.trust-strip div { min-width: 0; padding: 10px 5px; border: 1px solid #e1e7dd; border-radius: 13px; background: #fbfcfa; text-align: center; }
.trust-strip strong { display: block; color: #26331e; font-size: 13px; }
.trust-strip span { display: block; margin-top: 2px; color: #80897b; font-size: 10px; white-space: nowrap; }
.redeem-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.redeem-strip div { min-width: 0; padding: 10px 5px; border: 1px solid #e1e7dd; border-radius: 13px; background: #fbfcfa; text-align: center; }
.redeem-strip strong { display: block; color: #26331e; font-size: 13px; }
.redeem-strip span { display: block; margin-top: 2px; color: #80897b; font-size: 10px; white-space: nowrap; }
.customer-page form { padding-top: 2px; }
.customer-page label { font-size: 15px; font-weight: 850; }
.field-help { margin-top: -5px; color: #747c70; font-size: 13px; line-height: 1.5; }
.customer-page input {
  min-height: 52px;
  border: 1.5px solid #b9c0b4;
  border-radius: 15px;
  color: #151713;
  font-weight: 700;
}
.customer-page input:focus { border-color: #80ba25; box-shadow: 0 0 0 4px #aee44b35; }
.customer-page input[readonly] { color: #4f574c; background: #f0f2ed; }
.customer-page input:disabled { color: #92998e; background: #f0f2ed; border-color: #d4d9d0; cursor: not-allowed; }
.customer-page button {
  min-height: 52px;
  color: #172033;
  background: linear-gradient(135deg, #b9f44f, #9fdf2d);
  border: 1px solid #8bc521;
  border-radius: 15px;
  box-shadow: 0 10px 24px #88bd2730;
  font-weight: 850;
}
.customer-page button:hover { background: #a9f000; }
.customer-page button:active { transform: translateY(1px); box-shadow: 0 5px 14px #88bd2728; }
.customer-page button:disabled { transform: none; box-shadow: none; }
.customer-page .secondary { color: #171a15; background: #f0f2ed; }
.review-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #bfdb8e;
  border-radius: 15px;
  background: #f5ffd9;
}
.review-box span { display: block; color: #687064; font-size: 12px; }
.review-box strong { display: block; margin-top: 3px; font-size: 20px; letter-spacing: .8px; }
.customer-page .text-button { width: auto; min-height: 38px; padding: 8px 10px; border: 0; background: transparent; box-shadow: none; color: #285b00; font-size: 13px; }
.customer-page .text-button:hover { background: #e7f9ba; }
.failure-retry-form {
  gap: 10px;
  padding: 14px;
  border: 1px solid #d8e2cf;
  border-radius: 16px;
  background: #f8faf6;
}
.failure-retry-note { color: #667060; font-size: 13px; line-height: 1.65; }
.compact-button { min-height: 43px !important; padding: 9px 13px; font-size: 14px; box-shadow: none !important; }
.captcha-wrap {
  position: relative;
  min-height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cfd7cb;
  border-radius: 15px;
  background: #f3f5f0;
}
.captcha-wrap .captcha { border: 0; border-radius: 0; }
.captcha-placeholder { padding: 28px 16px; color: #747c70; font-size: 14px; text-align: center; }
.status-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; color: #899084; font-size: 12px; }
.customer-page .notice { margin-top: 16px; background: #f4f8ee; border: 1px solid #d9e6cc; color: #53614a; }
.recharge-notice { padding: 13px 15px 15px; text-align: left; }
.recharge-notice .notice-title {
  margin: 0 0 7px;
  color: #26331e;
  font-size: 13px;
  font-weight: 850;
}
.recharge-notice p { margin: 0; color: #53614a; font-size: 13px; line-height: 1.7; }
.recharge-notice p strong { color: #26331e; font-weight: 850; }
.customer-page .error-text { margin-top: 4px; font-weight: 650; }
.claim-card .trust-strip { margin-top: 18px; }
.claim-card form { padding-top: 1px; }
.claim-card .status-message { max-width: 430px; }
@media (max-width: 520px) {
  .shell { padding-top: 22px; }
  .card { padding: 20px; border-radius: 17px; }
  .meta { grid-template-columns: 1fr; }
  .customer-page .shell { width: min(100% - 22px, 580px); padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(34px, env(safe-area-inset-bottom)); }
  .customer-brand { margin-bottom: 16px; }
  .customer-card { padding: 21px; border-radius: 22px; }
  .customer-card::before { margin: -21px -21px 20px; }
  .status-foot { flex-direction: column; gap: 3px; }
}

