:root {
  --ink: #432d36;
  --muted: #826772;
  --paper: #fff7f9;
  --line: #eed6df;
  --accent: #b93668;
  --accent-dark: #94264f;
  --tint: #fce8ef;
  --pink: #ffe6ef;
  --danger: #ae2347;
  --glass: linear-gradient(135deg, #ffffffed, #fff8fbc9);
  --primary: linear-gradient(125deg, #bf3c71, #b22e5a);
  --shadow: 0 14px 42px #ac4b7010, inset 0 1px 0 #fff;
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 8% 8%, #ffc7dd99, transparent 40%),
    radial-gradient(ellipse at 94% 30%, #ffd5cda6, transparent 40%),
    radial-gradient(ellipse at 36% 90%, #ffe0eba6, transparent 50%),
    linear-gradient(145deg, #fff7fa, #fff1f4 48%, #fff8f4);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b93668; }
button {
  border: 1px solid #b7326530;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 14px #b936681c, inset 0 1px 0 #ffffff24;
  transition: background .16s, border-color .16s, box-shadow .16s, transform .16s;
}
button:hover { background: linear-gradient(125deg, #aa2c5e, #98254e); box-shadow: 0 7px 19px #b936682a; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; box-shadow: none; }
button.outline { background: #ffffffcc; border-color: #e4bbc9; color: #993858; box-shadow: inset 0 1px 0 #fff; }
button.outline:hover { background: #ffedf3; border-color: #cb7997; box-shadow: 0 3px 12px #b9366810; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
p { line-height: 1.8; }
h2 { font-size: 25px; line-height: 1.4; margin: 10px 0; font-weight: 750; letter-spacing: .3px; }
h3 { font-size: 19px; line-height: 1.5; margin: 0 0 16px; }
small, .muted { color: var(--muted); }
.muted { font-size: 13px; }
.hidden { display: none !important; }
.top { max-width: 1120px; padding: 30px 28px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: auto; }
.brand { display: flex; align-items: baseline; gap: 3px; color: var(--ink); font-size: 27px; font-weight: 800; letter-spacing: .6px; }
.brand > span { color: var(--accent); font-size: .86em; letter-spacing: -.3px; }
.brand small { font-weight: 400; font-size: 12px; margin-left: 12px; letter-spacing: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.small { font-size: 12px; padding: 8px 12px; }
.full { width: 100%; margin-top: 6px; }
main { max-width: 1064px; padding: 0 24px; margin: auto; }
.notice, .tabs, .product, .card {
  border: 1px solid #ffffffed;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: 16px; padding: 13px 16px; font-size: 13px; margin: 12px 0 18px; box-shadow: 0 5px 24px #ac4b7009, inset 0 1px 0 #fff; }
.notice > span { white-space: nowrap; border-radius: 8px; background: #f9dce7; color: #983553; padding: 4px 9px; font-weight: 600; }
.notice p { margin: 1px 0; white-space: pre-line; color: #725260; }
.tabs { display: flex; gap: 10px; border-radius: 19px; padding: 8px; margin: 18px 0 26px; }
.tabs button { flex: 1; white-space: nowrap; background: #ffffffa6; color: #875064; border: 1px solid #edcfd9; border-radius: 12px; padding: 14px 12px; font-size: 14px; display: flex; justify-content: center; align-items: center; font-weight: 650; box-shadow: inset 0 1px 0 #fff; }
.tabs button:hover { background: #ffe8f0; border-color: #d99ab2; }
.tabs button.active { background: var(--primary); color: #fff; border-color: #b9366840; box-shadow: 0 5px 15px #b936682b, inset 0 1px 0 #ffffff38; }
.flow-nav { position: sticky; top: 10px; z-index: 5; }
.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 16px; }
.section-intro p { font-size: 13px; color: var(--muted); margin: 4px 0; }
.section-intro h2 { margin: 4px 0; }
.payment-choice { display: flex; gap: 14px; align-items: center; margin: 16px 0; font-size: 13px; }
.payment-choice label { margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-grid:has(> .service-product:only-child) { grid-template-columns: 1fr; max-width: 780px; margin-inline: auto; }
.product { border-radius: 24px; padding: 28px; }
.product-heading { display: flex; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.product-heading > div { min-width: 0; }
.product-heading h3 { font-size: 24px; margin: 0 0 6px; overflow-wrap: anywhere; }
.description-preview { font-size: 13px; margin: 0; white-space: pre-line; color: var(--muted); overflow-wrap: anywhere; }
.sku-field { margin: 24px 0; }
.sku-field > span { display: block; font-size: 13px; font-weight: 650; margin-bottom: 11px; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { font-size: 14px; color: #815766; background: #ffffffb3; border: 1px solid #e5c5d1; border-radius: 13px; padding: 12px 22px; min-width: 105px; text-align: center; box-shadow: inset 0 1px 0 #fff; }
.choice:hover { background: #fff0f5; border-color: #d798b0; box-shadow: 0 3px 12px #b9366810; }
.choice.chosen { color: #982a52; border-color: #bf5980; background: linear-gradient(130deg, #fff4f8, #fbdde8); box-shadow: 0 0 0 1px #bf5980, 0 4px 14px #b9366810, inset 0 1px 0 #fff; }
.choice small { font-size: 11px; font-weight: 400; display: block; margin-top: 4px; color: inherit; }
.purchase-summary { border-top: 1px solid var(--line); padding-top: 19px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.price { font-size: 34px; font-weight: 750; color: var(--accent); line-height: 1.4; font-variant-numeric: tabular-nums; }
.price small { font-size: 13px; font-weight: 400; }
.purchase-summary p { margin: 4px 0; }
.purchase-summary > button { min-width: 140px; }
.card { border-radius: 20px; padding: 24px; margin-bottom: 18px; }
.card p { font-size: 13px; }
.split { max-width: 500px; margin: 22px auto; }
.narrow { max-width: 440px; margin: 40px auto; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.group-head h3 { margin: 0; }
label { display: block; font-size: 13px; margin: 16px 0; }
input, select, textarea { font-size: 14px; padding: 11px 13px; border: 1px solid #e5cbd5; background: #ffffffc9; color: var(--ink); border-radius: 11px; width: 100%; display: block; margin-top: 7px; min-width: 0; box-shadow: inset 0 1px 2px #aa416208; }
input::placeholder, textarea::placeholder { color: #977c86; }
textarea { min-height: 100px; resize: vertical; }
select { width: auto; max-width: 100%; }
.form-grid select { width: 100%; }
input[type=checkbox] { width: auto; display: inline-block; vertical-align: middle; margin: 0 7px 0 0; accent-color: var(--accent); }
.row input { margin: 0; flex: 1; min-width: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span-all { grid-column: 1 / -1; }
.subscription-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.subscription { margin: 0; }
.subscription.selected { border: 1px solid #d788a6; background: linear-gradient(135deg, #fffffff5, #ffedf4d9); }
.quota { font-size: 24px; display: block; color: var(--accent); margin-top: 16px; }
.subscription .row { margin: 18px 0 0; }
.status { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--tint); color: #963653; font-size: 12px; white-space: nowrap; }
.eyebrow { font-size: 12px; color: var(--muted); display: block; }
.friend-next { margin-top: 20px; padding: 16px; border-radius: 15px; background: linear-gradient(135deg, #fff0f5, #fbe2ec); border: 1px solid #efd1de; }
.friend-next > strong { font-size: 14px; color: #963353; }
.friend-next p { margin: 8px 0 14px; }
.robot-number { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #ffffffc9; border: 1px solid #edceda; border-radius: 12px; margin: 8px 0; }
.robot-number strong { display: block; font-size: 17px; font-variant-numeric: tabular-nums; color: #683144; }
.robot-number small { display: block; font-size: 11px; margin-bottom: 4px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-grid .card { margin: 0 0 22px; }
.step-label { display: grid; place-items: center; background: linear-gradient(135deg, #fff2f7, #f9d9e6); color: #a23b60; font-size: 15px; font-weight: 750; border: 1px solid #f0cbd9; border-radius: 12px; width: 36px; height: 36px; margin-bottom: 16px; }
.guide-heading { margin: 22px 0; }
.guide-heading h3 { margin-bottom: 4px; }
.guide-heading p { margin-top: 4px; }
.command-list { display: grid; gap: 8px; margin: 14px 0; }
.command-list code, .admission-code { display: block; background: #fceaf1; padding: 12px; border-radius: 11px; overflow-wrap: anywhere; font-size: 13px; }
.admission-code { font-size: 22px; font-weight: 750; color: var(--accent); margin: 16px 0; }
.product-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-image { width: auto; max-width: 100%; display: block; border-radius: 12px; margin: 16px 0; }
.auth-modes { margin: 18px 0; }
.auth-modes button { font-size: 12px; padding: 9px 13px; }
.receipt-card { display: block; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; padding: 13px; background: #fff0f5; border: 1px dashed #daa0b6; border-radius: 11px; margin: 12px 0; }
.order .row { margin-top: 12px; }
.order { padding: 20px; }
.empty { font-size: 13px; color: var(--muted); }
.danger { color: var(--danger); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 16px 0 26px; }
.pagination .row { gap: 8px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 12px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 600; background: #fff0f58c; }
td button { font-size: 11px; padding: 7px 10px; }
td input { min-width: 130px; font-size: 12px; }
.admin-main { max-width: 1200px; }
.admin-nav { overflow-x: auto; position: sticky; top: 10px; z-index: 5; }
.admin-nav button { flex: auto; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.admin-row:first-child { border: 0; }
.admin-row h3 { margin: 0 0 4px; font-size: 16px; }
.admin-row p { margin: 4px 0; }
.admin-row .row { justify-content: flex-end; flex-shrink: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.metric { background: linear-gradient(125deg, #fff5f9, #f9e0eb); border: 1px solid #f0cddc; border-radius: 17px; padding: 20px; box-shadow: inset 0 1px 0 #fff; }
.metric span { font-size: 12px; color: var(--muted); }
.metric strong { display: block; font-size: 25px; margin-top: 7px; color: #9f365e; }
.editor-images { display: flex; gap: 10px; flex-wrap: wrap; }
.editor-images img { max-width: 120px; max-height: 100px; border-radius: 8px; }
.editor-images button { display: block; margin-top: 8px; }
.agent-overview { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.agent-overview h3 { margin: 0; }
.agent-overview p { margin-bottom: 0; }
.agent-price > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.agent-price strong { display: block; font-size: 28px; color: var(--accent); }
.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tier-grid .card { margin-bottom: 0; }
.tier-price { font-size: 27px !important; font-weight: 700; color: var(--accent); margin: 12px 0; }
.wallet-history { margin-top: 24px; }
.wallet-history summary { padding: 6px 0; }
#agentPayTotal { font-size: 22px; font-weight: 700; }
summary { cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.6; }
dialog { border: 1px solid #ffffffed; border-radius: 24px; padding: 26px; color: var(--ink); width: min(460px, 94vw); max-height: 90vh; overflow: auto; background: linear-gradient(135deg, #fffffff5, #fff5f9f2); box-shadow: 0 24px 90px #702f4c30, inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
dialog::backdrop { background: #5c2c3d52; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.wide-dialog, #productDialog { width: min(740px, 94vw); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid #e5bdcba6; padding: 25px 0 32px; margin-top: 45px; font-size: 12px; color: var(--muted); }
footer strong { color: #9c3b5c; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: 90vw; background: #74334ded; color: #fff; border: 1px solid #ffffff30; border-radius: 14px; padding: 14px 20px; font-size: 13px; box-shadow: 0 8px 30px #702f4c25; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); z-index: 30; }
@media (max-width: 760px) {
  main { padding: 0 18px; }
  .top { padding: 22px 18px 15px; gap: 10px; }
  .brand { font-size: 24px; }
  .brand small { display: none; }
  .top .row { gap: 5px; }
  .top .row button { padding: 9px 10px; font-size: 11px; }
  h2 { font-size: 23px; }
  .section-intro { margin-top: 24px; }
  .product-grid, .subscription-grid, .guide-grid, .admin-grid, .form-grid { grid-template-columns: 1fr; }
  .product { padding: 22px 20px; border-radius: 22px; }
  .product-heading h3 { font-size: 22px; }
  .description-preview { font-size: 12px; }
  .choice { min-width: 85px; padding: 12px 15px; }
  .choice-row { gap: 9px; }
  .purchase-summary .price { font-size: 29px; }
  .purchase-summary > button { min-width: 120px; padding: 12px; }
  .purchase-summary { gap: 10px; }
  .card { padding: 20px; }
  .group-head { flex-wrap: wrap; align-items: center; }
  .guide-grid .card { margin-bottom: 0; }
  .guide-grid { margin-bottom: 22px; }
  .split { margin-top: 22px; }
  .row button { font-size: 12px; }
  .subscription .row { gap: 7px; }
  .subscription .row button { padding: 10px 12px; }
  .quota { font-size: 23px; }
  .friend-next { padding: 13px; }
  .tier-grid { grid-template-columns: 1fr; }
  .agent-overview { flex-wrap: wrap; }
  .agent-price strong { font-size: 24px; }
  .admin-row { align-items: flex-start; flex-direction: column; }
  .admin-row .row { justify-content: flex-start; flex-shrink: 1; }
  .metric-grid { gap: 8px; }
  .metric { padding: 13px; }
  .metric strong { font-size: 21px; }
  .admin-nav { gap: 6px; }
  .admin-nav button { font-size: 12px; padding: 11px; }
  dialog { padding: 22px; }
  .narrow { margin: 28px auto; }
  .agent-stock { padding: 16px; }
  .agent-stock table, .agent-stock tbody, .agent-stock tr, .agent-stock td { display: block; width: 100%; }
  .agent-stock thead { display: none; }
  .agent-stock tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .agent-stock td { white-space: normal; border: 0; padding: 6px 0; }
  .agent-stock td:first-child { font-weight: 650; }
  .agent-stock code { overflow-wrap: anywhere; font-size: 11px; }
  .agent-stock td:last-child { display: flex; gap: 6px; flex-wrap: wrap; }
  .agent-stock input { min-width: 0; }
  .minimal { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .minimal .flow-nav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); top: auto; margin: 0; padding: 7px; gap: 4px; background: linear-gradient(125deg, #fffafde8, #fff0f6e6); border-color: #fffffff5; box-shadow: 0 7px 30px #a0476b20, inset 0 1px 0 #fff; border-radius: 18px; z-index: 10; }
  .flow-nav button { padding: 15px 1px; font-size: 11px; border-radius: 11px; }
  .minimal .toast { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .minimal footer { margin-top: 30px; padding-bottom: 22px; align-items: flex-start; font-size: 11px; }
  .payment-choice { flex-wrap: wrap; }
  .robot-number { gap: 8px; }
  .robot-number strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (prefers-reduced-transparency: reduce) {
  .notice, .tabs, .product, .card, .minimal .flow-nav, dialog { background: #fff9fb; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.editor-heading{font-size:16px;margin:26px 0 10px;padding-top:18px;border-top:1px solid var(--line)}.option-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.option-list label{margin:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff7fa}.option-list small{display:block;margin:5px 0 0 22px}.node-status{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.node-status span{padding:7px 10px;border:1px solid var(--line);border-radius:9px;font-size:12px;background:#fff8fb}.node-status .online{color:#216c4d;background:#eaf8f1;border-color:#c8e4d7}@media(max-width:760px){.option-list{grid-template-columns:1fr}}
