:root {
  --ink: #111310;
  --muted: #74776f;
  --paper: #f4f3ee;
  --white: #ffffff;
  --line: #dfded7;
  --green: #b9ef65;
  --green-dark: #4b7212;
  --blue: #1677ff;
  --wechat: #17b75b;
  --shadow: 0 20px 60px rgba(17, 19, 16, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 56% 44%;
  background: var(--white);
}
.auth-brand {
  position: relative;
  min-height: 100vh;
  padding: 42px 6vw;
  overflow: hidden;
  color: white;
  background: #101711;
}
.auth-factory-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.auth-image-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,15,.82) 0%, rgba(8,18,15,.5) 46%, rgba(8,18,15,.08) 100%), linear-gradient(0deg, rgba(8,18,15,.72), transparent 52%); }
.auth-brand::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  right: -160px;
  top: 80px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  font-size: 19px;
  font-weight: 800;
}
.brand-mark.dark { color: var(--ink); border-color: var(--ink); }
.auth-brand > .brand-mark { display: inline-grid; vertical-align: middle; }
.auth-brand > .brand-mark, .brand-copy { position: relative; z-index: 3; }
.brand-copy { display: inline-flex; vertical-align: middle; flex-direction: column; margin-left: 12px; }
.brand-copy span, .side-brand span { font-size: 8px; letter-spacing: 2.2px; opacity: .58; }
.brand-copy strong { font-size: 17px; letter-spacing: 2px; }
.auth-hero { position: relative; z-index: 2; margin-top: 15vh; max-width: 580px; text-shadow: 0 3px 20px rgba(0,0,0,.35); }
.eyebrow {
  margin: 0 0 10px;
  color: #68725e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.6px;
}
.eyebrow.light { color: var(--green); }
.auth-hero h1, .welcome-banner h1, .merchant-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.14;
  letter-spacing: -4px;
  font-weight: 900;
}
.auth-hero > p:last-of-type { margin-top: 24px; color: rgba(255,255,255,.82); }
.shirt-art { position: absolute; right: 4vw; bottom: 16vh; width: 300px; height: 250px; }
.shirt {
  position: absolute;
  width: 165px;
  height: 195px;
  clip-path: polygon(25% 7%, 39% 0, 61% 0, 75% 7%, 100% 23%, 86% 47%, 75% 41%, 75% 100%, 25% 100%, 25% 41%, 14% 47%, 0 23%);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  box-shadow: var(--shadow);
}
.shirt-white { z-index: 2; left: 5px; top: 10px; color: #111; background: #eeeDE7; transform: rotate(-7deg); }
.shirt-black { right: 4px; bottom: 4px; border: 1px solid #333; background: #080908; transform: rotate(7deg); }
.auth-stats {
  position: absolute;
  bottom: 42px;
  left: 6vw;
  right: 6vw;
  display: flex;
  gap: 48px;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,.3);
  padding-top: 24px;
}
.auth-stats div { display: flex; flex-direction: column; }
.auth-stats strong { font-size: 22px; }
.auth-stats span { margin-top: 3px; color: rgba(255,255,255,.72); font-size: 11px; }

.auth-panel { display: grid; place-items: center; padding: 40px 7vw; background: linear-gradient(145deg, #fff 0%, #f4f6f2 100%); }
.auth-form { display: none; width: 100%; max-width: 410px; animation: rise .35s ease; }
.auth-form.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth-form h2 { margin: 0 0 8px; font-size: 38px; letter-spacing: -2px; }
.subtext { margin: 0 0 32px; color: var(--muted); font-size: 13px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; padding: 4px; background: #efefea; }
.role-tab { padding: 11px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.role-tab.active { color: white; background: var(--ink); box-shadow: 0 4px 12px rgba(17,19,16,.16); }
label { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 700; }
input, textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid #d9d8d2;
  outline: none;
  background: white;
  transition: .2s;
}
input:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,19,16,.06); }
textarea { min-height: 90px; resize: vertical; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 58px; }
.toggle-password { position: absolute; right: 12px; top: 19px; border: 0; background: none; font-size: 11px; color: var(--muted); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 22px; }
.check-label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-weight: 500; }
.check-label input { width: auto; margin: 0; accent-color: var(--ink); }
.text-button, .back-button { padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; }
.back-button { margin-bottom: 28px; color: var(--muted); }
.primary-button, .outline-button, .light-button {
  border: 1px solid var(--ink);
  padding: 14px 18px;
  font-weight: 800;
  transition: .2s;
}
.primary-button { color: white; background: var(--ink); }
.primary-button:disabled { opacity: .58; cursor: wait; transform: none; }
.primary-button:hover { background: #34372f; transform: translateY(-1px); }
.primary-button span, .light-button span { float: right; }
.outline-button { color: var(--ink); background: transparent; }
.outline-button:hover { background: var(--paper); }
.full { width: 100%; }
.divider { display: flex; align-items: center; gap: 14px; margin: 25px 0; color: #a4a59f; font-size: 10px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-note { display: grid; gap: 3px; margin-top: 22px; padding: 12px 14px; color: #777b72; background: #f5f5f1; font-size: 10px; }
.demo-note strong { color: var(--ink); }
.auth-mobile-brand { display: none; }

.app-page { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 236px;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  color: white;
  background: #111310;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.side-brand > div:last-child { display: flex; flex-direction: column; }
.side-brand strong { font-size: 16px; letter-spacing: 1px; }
.side-nav { margin-top: 58px; display: grid; gap: 7px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  color: #8d9188;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.nav-item::after { content: ""; position: absolute; right: 0; width: 3px; height: 0; background: var(--green); transition: .2s; }
.nav-item:hover, .nav-item.active { color: white; background: #1d201b; }
.nav-item.active::after { height: 22px; }
.nav-icon { width: 18px; text-align: center; font-size: 17px; }
.side-footer { margin-top: auto; }
.support-card { margin-bottom: 16px; padding: 15px; border: 1px solid #30332d; background: #191b18; }
.support-card span, .support-card strong, .support-card small { display: block; }
.support-card span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.support-card strong { margin: 5px 0; font-size: 12px; }
.support-card small { color: #7d8178; font-size: 9px; }
.logout-button { width: 100%; padding: 11px; border: 0; color: #8d9188; background: transparent; text-align: left; }
.app-content { width: calc(100% - 236px); min-height: 100vh; margin-left: 236px; }
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(244,243,238,.93);
  backdrop-filter: blur(12px);
}
.topbar p { margin: 0 0 2px; color: #9a9d96; font-size: 8px; font-weight: 800; letter-spacing: 2px; }
.topbar h2 { margin: 0; font-size: 20px; }
.topbar-right { display: flex; align-items: center; }
.balance-pill { display: flex; flex-direction: column; min-width: 115px; margin-right: 20px; padding-right: 20px; border-right: 1px solid var(--line); }
.balance-pill span { color: var(--muted); font-size: 9px; }
.balance-pill strong { font-size: 17px; }
.avatar {
  width: 39px;
  height: 39px;
  margin-right: 9px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--green);
  font-weight: 900;
}
.user-meta { display: flex; flex-direction: column; }
.user-meta strong { font-size: 12px; }
.user-meta span { color: var(--muted); font-size: 9px; }
.mobile-menu { display: none; }
.content-page { display: none; padding: 34px 4vw 60px; animation: rise .3s ease; }
.content-page.active { display: block; }
.welcome-banner, .merchant-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 45px 5%;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #101711 0%, #1a281d 100%);
  border-radius: 4px;
  box-shadow: 0 22px 60px rgba(17,19,16,.12);
}
.welcome-banner > div:first-child, .merchant-hero > div:first-child { position: relative; z-index: 2; }
.welcome-banner h1 { font-size: clamp(36px, 4.5vw, 64px); }
.welcome-banner > div:first-child > p:last-of-type { color: #9ea198; font-size: 12px; }
.light-button { margin-top: 15px; color: var(--ink); background: white; border-color: white; min-width: 130px; }
.light-button:hover { background: var(--green); border-color: var(--green); }
.banner-graphic { position: absolute; inset: 0 0 0 53%; }
.fabric-ring { position: absolute; border: 1px solid rgba(185,239,101,.18); border-radius: 50%; }
.ring-one { width: 380px; height: 380px; right: -60px; top: -50px; }
.ring-two { width: 250px; height: 250px; right: 18px; top: 15px; }
.mini-shirt {
  position: absolute;
  width: 135px;
  height: 155px;
  clip-path: polygon(25% 7%, 39% 0, 61% 0, 75% 7%, 100% 23%, 86% 47%, 75% 41%, 75% 100%, 25% 100%, 25% 41%, 14% 47%, 0 23%);
}
.mini-shirt.white { z-index: 2; top: 65px; right: 160px; background: #eae9e2; transform: rotate(-9deg); }
.mini-shirt.black { top: 96px; right: 60px; background: #040504; border: 1px solid #40433b; transform: rotate(8deg); }
.graphic-copy { position: absolute; right: 30px; bottom: 25px; color: #3e423a; font-size: 9px; letter-spacing: 3px; }
.section-block { padding-top: 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-heading p { margin: 0 0 4px; color: #81867a; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.section-heading h3 { margin: 0; font-size: 22px; }
.section-heading > span { color: var(--muted); font-size: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; overflow: hidden; border: 1px solid rgba(17,19,16,.06); border-radius: 4px; background: white; transition: .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-visual { position: relative; height: 250px; display: grid; place-items: center; overflow: hidden; background: #e8e7e1; }
.product-visual.dark-visual { background: #1d1f1b; }
.product-visual::after { content: attr(data-weight); position: absolute; right: -8px; bottom: -27px; color: rgba(0,0,0,.04); font-size: 90px; font-weight: 900; }
.dark-visual::after { color: rgba(255,255,255,.04); }
.product-shirt {
  width: 130px; height: 150px;
  clip-path: polygon(25% 7%, 39% 0, 61% 0, 75% 7%, 100% 23%, 86% 47%, 75% 41%, 75% 100%, 25% 100%, 25% 41%, 14% 47%, 0 23%);
  background: #fafafa;
  filter: drop-shadow(0 20px 14px rgba(0,0,0,.12));
}
.product-custom-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.dark-visual .product-shirt { background: #050605; filter: drop-shadow(0 20px 14px rgba(0,0,0,.35)); }
.product-tag { position: absolute; top: 15px; left: 15px; padding: 5px 8px; color: white; background: var(--ink); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.dark-visual .product-tag { color: var(--ink); background: var(--green); }
.product-info { padding: 19px; }
.product-info-top { display: flex; justify-content: space-between; align-items: start; }
.product-info h4 { margin: 0; font-size: 18px; }
.product-info p { margin: 6px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.product-price { font-size: 21px; font-weight: 900; }
.product-price span, .product-price small { display: block; }
.product-price small { margin-top: 2px; font-size: 10px; font-weight: 600; }
.buy-button { width: 36px; height: 36px; border: 0; color: white; background: var(--ink); font-size: 18px; transition: .2s; }
.buy-button:hover { color: var(--ink); background: var(--green); }
.assurance-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 45px; border-top: 1px solid var(--line); }
.assurance-row > div { padding: 25px 20px; border-right: 1px solid var(--line); }
.assurance-row > div:last-child { border: 0; }
.assurance-row span { color: #a1a49d; font-size: 9px; }
.assurance-row strong { display: block; margin: 4px 0; font-size: 13px; }
.assurance-row p { margin: 0; color: var(--muted); font-size: 9px; }

.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.market-card { overflow: hidden; border: 1px solid rgba(17,19,16,.06); background: white; box-shadow: 0 8px 28px rgba(17,19,16,.04); transition: .24s; }
.market-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.market-card-visual { height: 210px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #f0f0eb, #e5e4dd); }
.market-product-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.market-product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(17,19,16,.18); background: radial-gradient(circle at 35% 22%, rgba(185,239,101,.55), transparent 28%), #ecebe5; font-size: 38px; font-weight: 900; letter-spacing: 2px; }
.market-card-body { padding: 18px; }
.market-category { display: inline-block; margin-bottom: 10px; padding: 5px 8px; color: var(--ink); background: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.market-card h3 { margin: 0 0 8px; font-size: 17px; }
.market-card p { min-height: 38px; margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.market-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.market-card-bottom strong { font-size: 22px; }
.market-card-bottom small { color: var(--muted); font-size: 10px; }
.market-buy-button { margin-top: 15px; text-align: center; }
.bulk-order-toolbar, .upload-permission-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(17,19,16,.06);
  background: linear-gradient(135deg, #fff, #f6f6f1);
  box-shadow: 0 8px 28px rgba(17,19,16,.04);
}
.bulk-order-toolbar label, .switch-line { display: flex; align-items: center; gap: 7px; margin: 0; }
.bulk-order-toolbar input, .switch-line input { width: auto; margin: 0; }
.bulk-order-toolbar select { padding: 10px 12px; border: 1px solid var(--line); background: white; }
.bulk-order-toolbar button { margin-left: auto; padding: 10px 15px; border: 0; color: var(--ink); background: var(--green); font-weight: 900; }
.bulk-order-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.upload-permission-panel { grid-column: 1 / -1; justify-content: space-between; }
.upload-permission-panel p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.upload-box.disabled { opacity: .62; cursor: not-allowed; }
.upload-box.disabled input { cursor: not-allowed; }
.dynamic-color-option.disabled { opacity: .42; cursor: not-allowed; }
.dynamic-color-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.stock-manager, .market-color-admin { display: grid; gap: 7px; margin: 12px 0; }
.stock-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 7px; align-items: center; }
.stock-row span { color: var(--muted); font-size: 9px; }
.stock-row input { margin: 0; padding: 8px; font-size: 10px; }
.stock-row button { padding: 8px 9px; border: 1px solid #d7b5b5; color: #a12828; background: #fff7f7; font-size: 8px; font-weight: 800; }
.add-color-row { grid-template-columns: 1fr auto; }
.guide-rank-section { margin-bottom: 28px; }
.guide-rank-list { display: grid; gap: 12px; }
.guide-rank-card {
  display: grid;
  grid-template-columns: 54px 82px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(17,19,16,.06);
  background: white;
  text-align: left;
  box-shadow: 0 8px 28px rgba(17,19,16,.04);
}
.guide-rank-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rank-number { color: var(--green-dark); font-size: 20px; }
.guide-rank-card img, .guide-image-empty { width: 82px; height: 62px; object-fit: cover; background: #eeeDE8; }
.guide-image-empty { display: grid; place-items: center; color: var(--muted); font-size: 10px; font-weight: 900; }
.guide-rank-card b, .guide-rank-card small { display: block; }
.guide-rank-card small { margin-top: 4px; color: var(--muted); }
.premium-lock { background: linear-gradient(135deg, #fff, #f0f7e6); }
.guide-admin-panel { margin-bottom: 18px; }
.guide-form { display: grid; grid-template-columns: 1fr 1fr .6fr 1fr auto; gap: 14px; align-items: end; }
.guide-form label { margin: 0; }
.guide-form select { width: 100%; margin-top: 8px; padding: 14px 15px; border: 1px solid #d9d8d2; background: white; }
.guide-form .guide-description { grid-column: span 2; }
.guide-detail-card img { width: 100%; max-height: 360px; object-fit: contain; background: #eeeDE8; }
.guide-detail-card h2 { margin-top: 16px; }
.guide-detail-meta { color: var(--green-dark) !important; font-weight: 900; }

.page-intro { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-intro h1 { margin: 0 0 8px; font-size: 38px; letter-spacing: -2px; }
.page-intro > div:first-child > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.intro-stat { min-width: 150px; padding: 18px; color: white; background: var(--ink); }
.intro-stat.green { color: var(--ink); background: var(--green); }
.intro-stat span, .intro-stat small { display: block; font-size: 9px; opacity: .65; }
.intro-stat strong { display: block; margin: 3px 0; font-size: 27px; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed #cbcac3; background: rgba(255,255,255,.35); }
.empty-state span { font-size: 34px; }
.empty-state h3 { margin: 10px 0 5px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }
.orders-list { display: grid; gap: 16px; }
.order-card { display: grid; grid-template-columns: 145px 1fr; background: white; box-shadow: 0 5px 20px rgba(17,19,16,.04); }
.order-thumb { display: grid; place-items: center; min-height: 160px; background: #e8e7e1; }
.order-thumb.black { background: #1d1f1b; }
.order-thumb .product-shirt { width: 80px; height: 95px; }
.order-main { padding: 22px 26px; }
.order-top, .order-detail-row { display: flex; justify-content: space-between; gap: 18px; }
.order-top { align-items: start; padding-bottom: 16px; border-bottom: 1px solid #eeeDE8; }
.order-number { color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.order-top h3 { margin: 4px 0; font-size: 17px; }
.order-top p { margin: 0; color: var(--muted); font-size: 10px; }
.status-badge { flex: 0 0 auto; padding: 7px 10px; font-size: 10px; font-weight: 800; }
.status-producing { color: #785600; background: #fff2bd; }
.status-complete { color: #2c6811; background: #dff4d3; }
.status-shipped { color: #245d8c; background: #dcecf9; }
.status-canceled { color: #8b3535; background: #f8dddd; }
.order-cancel-summary { min-width: 210px; padding: 14px 16px; border: 1px solid #ebcaca; border-radius: 12px; background: #fff5f5; }
.order-cancel-summary strong, .order-cancel-summary span { display: block; }
.order-cancel-summary span { margin-top: 4px; color: #8b5353; font-size: 9px; }
.order-detail-row { align-items: center; margin-top: 17px; }
.order-meta { display: flex; gap: 28px; }
.order-meta div { display: flex; flex-direction: column; }
.order-meta span { color: var(--muted); font-size: 9px; }
.order-meta strong { margin-top: 2px; font-size: 11px; }
.progress-track { width: 260px; }
.progress-line { position: relative; display: flex; justify-content: space-between; margin-bottom: 7px; }
.progress-line::before { content: ""; position: absolute; z-index: 0; top: 5px; left: 6px; right: 6px; height: 2px; background: #dddcd5; }
.progress-line i { position: relative; z-index: 1; width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: #ccc; box-shadow: 0 0 0 1px #ccc; }
.progress-line i.done { background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.progress-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }

.recharge-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.panel { padding: 25px; border: 1px solid rgba(17,19,16,.05); border-radius: 4px; background: white; box-shadow: 0 8px 30px rgba(17,19,16,.04); }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-heading > span { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--ink); font-size: 11px; font-weight: 900; }
.panel-heading strong, .panel-heading p { display: block; margin: 0; }
.panel-heading strong { font-size: 14px; }
.panel-heading p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.pay-method {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: white;
  text-align: left;
  transition: .2s;
}
.pay-method:hover { border-color: var(--ink); transform: translateX(3px); }
.pay-logo { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 17px; font-weight: 900; }
.wechat .pay-logo { background: var(--wechat); }
.alipay .pay-logo { background: var(--blue); }
.pay-method strong, .pay-method small { display: block; }
.pay-method strong { font-size: 13px; }
.pay-method small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.recharge-tips { margin-top: 23px; padding: 17px; background: #f5f5f1; }
.recharge-tips strong { font-size: 11px; }
.recharge-tips p { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.amount-choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.amount-choice button { padding: 13px 6px; border: 1px solid var(--line); background: white; font-weight: 800; }
.amount-choice button.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: inset 0 -3px var(--green); }
.custom-amount-label { margin-bottom: 24px; }
.payment-step { margin-top: 8px; }
.request-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.request-row { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; padding: 16px 0; border-bottom: 1px solid #eeeDE8; }
.request-row h4 { margin: 0 0 4px; font-size: 13px; }
.request-row p, .request-row small { display: block; margin: 0; color: var(--muted); font-size: 9px; }
.request-amount { display: block; margin-bottom: 7px; font-size: 18px; font-weight: 900; text-align: right; }
.approve-request { padding: 8px 15px; border: 0; color: var(--ink); background: var(--green); font-size: 10px; font-weight: 900; }
.request-status { display: inline-block; padding: 5px 8px; font-size: 9px; font-weight: 800; }
.request-status.pending { color: #785600; background: #fff2bd; }
.request-status.approved { color: #2c6811; background: #dff4d3; }
.payment-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.payment-code-card { text-align: center; }
.payment-code-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; text-align: left; }
.payment-code-heading h3, .payment-code-heading p { margin: 0; }
.payment-code-heading h3 { font-size: 15px; }
.payment-code-heading p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.wechat-code-logo { background: var(--wechat); }
.alipay-code-logo { background: var(--blue); }
.merchant-code-preview { height: 280px; display: grid; place-items: center; margin-bottom: 16px; border: 1px dashed #bbbcb5; background: #f3f3ef; overflow: hidden; }
.merchant-code-preview img { width: 100%; height: 100%; object-fit: contain; }
.merchant-code-preview .code-empty { color: var(--muted); font-size: 10px; }
.alipay-upload { background: var(--blue); }
.balance-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  padding: 32px;
  color: white;
  background: var(--ink);
}
.balance-card::after { content: "¥"; position: absolute; right: -15px; bottom: -85px; color: rgba(255,255,255,.04); font-size: 260px; font-weight: 900; }
.balance-card > span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.balance-card p { margin: 48px 0 4px; color: #92968e; font-size: 11px; }
.balance-card > strong { font-size: 46px; letter-spacing: -2px; }
.balance-lines { display: flex; gap: 7px; margin: 34px 0; }
.balance-lines i { display: block; height: 3px; background: var(--green); }
.balance-lines i:nth-child(1) { width: 50%; }
.balance-lines i:nth-child(2) { width: 18%; opacity: .6; }
.balance-lines i:nth-child(3) { width: 7%; opacity: .3; }
.balance-card small { color: #767a73; font-size: 9px; }
.profile-card { max-width: 820px; display: grid; grid-template-columns: 110px 1fr; gap: 35px; }
.profile-readonly input:disabled { color: var(--ink); background: #f7f7f3; opacity: 1; }
.profile-note { margin: 14px 0 24px; color: var(--muted); font-size: 11px; }
.profile-avatar { width: 90px; height: 90px; display: grid; place-items: center; color: var(--ink); background: var(--green); font-size: 30px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.profile-logout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-logout strong { font-size: 12px; }
.profile-logout p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }

.merchant-hero { min-height: 230px; justify-content: space-between; }
.merchant-hero h1 { font-size: 48px; }
.merchant-hero p:last-child { color: #9ea198; font-size: 11px; }
.date-chip { align-self: start; padding: 9px 13px; border: 1px solid #3b3e37; color: var(--green); font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.metric-card { padding: 22px; background: white; }
.metric-card.dark { color: white; background: var(--ink); }
.metric-card.green { background: var(--green); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 9px; }
.metric-card.dark span, .metric-card.dark small { color: #8e9289; }
.metric-card strong { display: block; margin: 10px 0 5px; font-size: 30px; }
.business-chart-panel { margin-bottom: 20px; }
.business-chart-panel .section-heading { align-items: center; margin-bottom: 10px; }
.chart-legend { display: flex; gap: 18px; color: var(--muted); font-size: 9px; font-weight: 700; }
.chart-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; }
.chart-legend .orders-line::before { background: var(--ink); }
.chart-legend .sales-line::before { background: var(--green-dark); }
.business-chart { width: 100%; min-height: 260px; overflow-x: auto; }
.business-chart svg { width: 100%; min-width: 620px; height: 260px; }
.chart-grid-line { stroke: #e8e8e2; stroke-width: 1; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-orders-line { stroke: var(--ink); }
.chart-sales-line { stroke: var(--green-dark); }
.chart-point { stroke: white; stroke-width: 2; }
.orders-point { fill: var(--ink); }
.sales-point { fill: var(--green-dark); }
.chart-label, .chart-axis-label { fill: #7a7d75; font-family: inherit; font-size: 10px; }
.recent-panel { margin-top: 0; }
.simple-order-row { display: grid; grid-template-columns: 1fr 1fr .6fr .7fr; align-items: center; gap: 15px; padding: 14px 5px; border-top: 1px solid #eeeDE8; font-size: 11px; }
.simple-order-row strong, .simple-order-row span { display: block; }
.simple-order-row small { color: var(--muted); font-size: 9px; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.filter { padding: 8px 15px; border: 1px solid var(--line); background: transparent; font-size: 10px; font-weight: 700; }
.filter.active { color: white; border-color: var(--ink); background: var(--ink); }
.table-panel { overflow-x: auto; background: white; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px 18px; border-bottom: 1px solid #eeeDE8; text-align: left; font-size: 10px; white-space: nowrap; }
.data-table th { color: var(--muted); background: #f7f7f3; font-size: 9px; letter-spacing: .5px; }
.data-table td strong { display: block; font-size: 11px; }
.data-table td small { color: var(--muted); font-size: 9px; }
.status-select { padding: 7px 28px 7px 9px; border: 1px solid var(--line); outline: none; background: white; font-size: 10px; font-weight: 700; }
.manual-recharge-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; }
.recharge-form-card label { margin-bottom: 17px; }
.money-input { position: relative; }
.money-input span { position: absolute; top: 21px; left: 15px; font-weight: 900; }
.money-input input { padding-left: 34px; font-size: 18px; font-weight: 800; }
.history-row { display: grid; grid-template-columns: 1fr .7fr .7fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eeeDE8; }
.history-row strong, .history-row span { display: block; font-size: 10px; }
.history-row small { color: var(--muted); font-size: 8px; }
.history-amount { color: var(--green-dark); font-weight: 900; }
.record-head, .record-row { display: grid; grid-template-columns: 1.2fr .7fr 1fr 1fr; gap: 15px; align-items: center; padding: 14px 10px; }
.record-head { color: var(--muted); background: #f5f5f1; font-size: 9px; font-weight: 800; }
.record-row { border-bottom: 1px solid #eeeDE8; font-size: 10px; }
.record-row strong { color: var(--green-dark); font-size: 13px; }
.record-row small { color: var(--muted); }
.label-hint { float: right; color: var(--muted); font-size: 9px; font-weight: 500; }
.upload-box { position: relative; min-height: 150px; display: grid; place-items: center; margin-top: 8px; overflow: hidden; border: 1px dashed #aaaDA6; background: #f5f5f1; text-align: center; cursor: pointer; }
.upload-box:hover { border-color: var(--ink); }
.upload-box input { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.upload-box strong, .upload-box span { display: block; }
.upload-box strong { font-size: 13px; }
.upload-box span { margin-top: 5px; color: var(--muted); font-size: 9px; }
#design-preview { width: 100%; height: 190px; object-fit: contain; background: #ecece7; }
.design-link { padding: 0; border: 0; border-bottom: 1px solid var(--ink); color: var(--ink); background: transparent; font-size: 10px; font-weight: 800; }
.design-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 14px 18px; background: white; box-shadow: 0 6px 24px rgba(17,19,16,.04); }
.design-select-all { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 10px; }
.design-select-all input { width: auto; margin: 0; }
.design-toolbar > span { color: var(--muted); font-size: 10px; }
.batch-delete-designs { margin-left: auto; padding: 9px 14px; border: 1px solid #a12828; color: #a12828; background: #fff7f7; font-size: 10px; font-weight: 800; }
.batch-delete-designs:disabled { opacity: .4; cursor: not-allowed; }
.design-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.design-card { position: relative; overflow: hidden; border: 2px solid transparent; background: white; box-shadow: 0 8px 30px rgba(17,19,16,.05); }
.design-card.selected { border-color: var(--green-dark); }
.design-checkbox { position: absolute; z-index: 3; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; margin: 0; padding: 7px 9px; background: rgba(255,255,255,.94); box-shadow: 0 3px 10px rgba(0,0,0,.1); font-size: 9px; cursor: pointer; }
.design-checkbox input { width: auto; margin: 0; }
.design-image-button { width: 100%; height: 230px; padding: 0; border: 0; background: #e8e7e1; }
.design-image-button img { width: 100%; height: 100%; object-fit: contain; }
.design-card > div { padding: 18px; }
.design-card span { color: var(--muted); font-size: 8px; letter-spacing: .5px; }
.design-card h3 { margin: 5px 0; font-size: 15px; }
.design-card p, .design-card small { margin: 0; color: var(--muted); font-size: 9px; }
.delete-design-button { width: 100%; margin-top: 13px; padding: 9px; border: 1px solid #d7b5b5; color: #a12828; background: #fff7f7; font-size: 9px; font-weight: 800; }
.product-image-manager { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-image-card { padding: 0; overflow: hidden; }
.manager-preview { height: 230px; display: grid; place-items: center; overflow: hidden; background: #e8e7e1; }
.manager-preview .product-shirt { width: 125px; height: 145px; }
.manager-info { padding: 20px; }
.manager-info > span { color: var(--muted); font-size: 9px; }
.manager-info h3 { margin: 4px 0; }
.manager-info p { margin: 0 0 16px; color: var(--muted); font-size: 10px; }
.product-price-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; padding: 12px; background: #f4f4ef; }
.product-price-form label { margin: 0; font-size: 8px; }
.product-price-form input { margin-top: 4px; padding: 8px; background: white; }
.product-price-form button { grid-column: 1 / -1; padding: 9px; border: 0; color: var(--ink); background: var(--green); font-size: 9px; font-weight: 900; }
.upload-action { display: block; margin: 0; padding: 11px; color: white; background: var(--ink); text-align: center; cursor: pointer; }
.upload-action input { display: none; }
.remove-image-button { width: 100%; margin-top: 8px; padding: 9px; border: 1px solid var(--line); background: transparent; font-size: 10px; }
.delete-fabric-button { width: 100%; margin-top: 8px; padding: 9px; border: 1px solid #d7b5b5; color: #a12828; background: #fff7f7; font-size: 10px; font-weight: 700; }
.color-material-manager { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.color-material-manager > strong { font-size: 11px; }
.color-material-manager > p { margin: 3px 0 10px; font-size: 8px; }
.color-material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.color-material-item { min-width: 0; text-align: center; }
.color-material-thumb { height: 70px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #f3f3ef; }
.color-material-thumb img { width: 100%; height: 100%; object-fit: cover; }
.color-material-thumb span { color: var(--muted); font-size: 8px; }
.color-material-item label, .color-material-item button { display: block; width: 100%; margin: 4px 0 0; padding: 6px 2px; border: 0; background: var(--ink); color: white; font-size: 7px; cursor: pointer; }
.color-material-item label input { display: none; }
.color-material-item button { background: #fff0f0; color: #a12828; }
.fabric-create-panel { margin-bottom: 20px; }
.market-create-panel { margin-bottom: 20px; }
.market-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 14px; align-items: end; }
.market-form label { margin-bottom: 14px; }
.market-form .market-description { grid-column: span 2; }
.market-form .market-upload input { padding: 11px; }
.market-form .primary-button { margin-bottom: 14px; white-space: nowrap; }
.market-admin-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.market-admin-card { padding: 0; overflow: hidden; }
.market-admin-preview { height: 220px; display: grid; place-items: center; overflow: hidden; background: #e8e7e1; }
.market-admin-info { padding: 20px; }
.market-admin-info > span { color: var(--muted); font-size: 9px; }
.market-admin-info h3 { margin: 5px 0; }
.market-admin-info p { margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.market-admin-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 12px; background: #f5f5f1; }
.market-admin-meta strong { font-size: 18px; }
.market-admin-meta small { color: var(--muted); font-size: 9px; }
.customer-create-panel { margin-bottom: 20px; }
.customer-create-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
.customer-create-form label { margin: 0; }
.customer-create-form .primary-button { min-height: 42px; white-space: nowrap; }
.customer-balance { color: var(--green); }
.delete-customer-button { padding: 8px 12px; border: 1px solid #d7b5b5; color: #a12828; background: #fff7f7; font-size: 9px; font-weight: 800; }
.delete-customer-button:hover { color: white; background: #a12828; }
.delete-customer-button:disabled { opacity: .55; cursor: wait; }
.customer-rating-select { min-width: 72px; padding: 8px; border: 1px solid var(--line); background: white; font-weight: 800; }
.order-actions { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.delete-order-button { padding: 8px 10px; border: 1px solid #d7b5b5; color: #a12828; background: #fff7f7; font-size: 9px; font-weight: 800; white-space: nowrap; }
.delete-order-button:hover { color: white; background: #a12828; }
.cancel-order-button, .refund-order-button { padding: 8px 10px; border: 1px solid #d8b36d; color: #79520c; background: #fff8e9; font-size: 9px; font-weight: 800; white-space: nowrap; }
.refund-order-button { border-color: #86b86a; color: #32651d; background: #effbe9; }
.cancel-order-button:hover { color: white; background: #a96e12; }
.refund-order-button:hover { color: white; background: #3d7b23; }
.cancel-order-button:disabled, .refund-order-button:disabled { opacity: .55; cursor: wait; }
.cleanup-panel { padding: 24px; }
.cleanup-controls { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.cleanup-controls > label:first-child { min-width: 190px; }
.cleanup-controls select { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); background: white; font-weight: 700; }
.cleanup-summary { padding: 11px 14px; color: var(--muted); background: #f7f7f3; }
.cleanup-select-all { display: flex; align-items: center; gap: 7px; padding: 11px 0; }
.cleanup-danger-button { margin-left: auto; padding: 11px 16px; border: 1px solid #a12828; color: #a12828; background: #fff7f7; font-weight: 800; }
.cleanup-danger-button:disabled { opacity: .4; cursor: not-allowed; }
.cleanup-warning { margin: 18px 0; padding: 12px 14px; color: #8b5c18; background: #fff8e8; border: 1px solid #ecd7ae; font-size: 11px; }
.cleanup-list { display: grid; gap: 9px; }
.cleanup-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); background: white; }
.cleanup-row strong, .cleanup-row small { display: block; }
.cleanup-row small { margin-top: 4px; color: var(--muted); }
.cleanup-single-delete { padding: 8px 11px; border: 1px solid #d7b5b5; color: #a12828; background: #fff7f7; font-size: 9px; font-weight: 800; }
.customer-password-reset { display: flex; gap: 6px; }
.customer-password-reset input { width: 135px; min-width: 135px; margin: 0; padding: 8px; font-size: 9px; }
.customer-password-reset button { padding: 8px 10px; border: 1px solid var(--ink); color: white; background: var(--ink); font-size: 9px; font-weight: 800; white-space: nowrap; }
.customer-password-reset button:disabled { opacity: .55; cursor: wait; }
.fabric-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; align-items: end; }
.fabric-form label { margin-bottom: 14px; }
.fabric-form .fabric-description { grid-column: span 3; }
.fabric-form .primary-button { margin-bottom: 14px; }
.image-viewer-card { width: min(92vw, 760px); text-align: center; }
.image-viewer-card img { width: 100%; max-height: 70vh; object-fit: contain; background: #eeeDE8; }
.image-viewer-card p { margin: 12px 0 0; color: var(--muted); font-size: 10px; }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7,8,7,.72); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(100%, 460px); max-height: 92vh; overflow-y: auto; padding: 32px; background: white; box-shadow: 0 25px 80px rgba(0,0,0,.3); animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 15px; right: 16px; width: 32px; height: 32px; border: 0; background: #f1f1ed; font-size: 19px; }
.modal-card h2 { margin: 0 0 20px; font-size: 28px; }
.order-product-summary { display: flex; justify-content: space-between; margin-bottom: 20px; padding: 15px; color: white; background: var(--ink); }
.order-product-summary span { color: #aaaDA6; font-size: 10px; }
.order-product-summary strong { font-size: 18px; }
.color-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.color-option { display: flex; align-items: center; gap: 9px; margin: 0; padding: 13px; border: 1px solid var(--line); cursor: pointer; }
.color-option input { display: none; }
.color-option span { width: 21px; height: 21px; border: 1px solid #aaa; border-radius: 50%; background: white; }
.black-option span { background: #111; }
.red-option span { background: #c83030; border-color: #c83030; }
.green-option span { background: #397a45; border-color: #397a45; }
.gray-option span { background: #8a8d88; border-color: #8a8d88; }
.brown-option span { background: #76503b; border-color: #76503b; }
.color-option:has(input:checked) { border: 2px solid var(--ink); padding: 12px; }
.material-preview-box { margin-bottom: 18px; }
.material-preview-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11px; }
.material-preview-heading span { color: var(--green-dark); font-size: 10px; font-weight: 800; }
.order-material-preview { height: 190px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #f0f0eb; }
.order-material-preview img { width: 100%; height: 100%; object-fit: contain; }
.material-preview-empty { text-align: center; }
.material-preview-empty strong, .material-preview-empty span { display: block; }
.material-preview-empty strong { font-size: 12px; }
.material-preview-empty span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.print-side-section { margin-bottom: 18px; }
.print-side-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.print-side-choice label { margin: 0; cursor: pointer; }
.print-side-choice input { display: none; }
.print-side-choice span { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--line); background: white; }
.print-side-choice b { font-size: 12px; }
.print-side-choice small { color: var(--muted); font-size: 9px; }
.print-side-choice input:checked + span { color: white; border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--green); }
.print-side-choice input:checked + span small { color: var(--green); }
.quantity-picker { display: grid; grid-template-columns: 36px 1fr 36px; margin-top: 8px; }
.quantity-picker button { border: 1px solid var(--line); background: #f4f3ee; }
.quantity-picker input { margin: 0; border-left: 0; border-right: 0; text-align: center; }
.form-grid.compact label { margin-bottom: 14px; }
.site-section { margin-bottom: 18px; }
.site-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.site-title strong { font-size: 12px; }
.site-title span { color: var(--muted); font-size: 9px; }
.site-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site-choice label { margin: 0; cursor: pointer; }
.site-choice input { display: none; }
.site-choice span { display: block; padding: 11px 7px; border: 1px solid var(--line); background: white; text-align: center; font-size: 10px; transition: .2s; }
.site-choice input:checked + span { color: white; border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--green); }
.order-total { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-total span { color: var(--muted); font-size: 11px; }
.order-total strong { font-size: 25px; }
.qr-modal-card { text-align: center; }
.qr-pay-logo { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: white; background: var(--wechat); font-size: 20px; font-weight: 900; }
.qr-modal-card h2 { margin-bottom: 4px; }
.qr-modal-card > p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.qr-placeholder { position: relative; width: 220px; height: 220px; display: grid; place-items: center; margin: 0 auto 15px; border: 12px solid white; outline: 1px solid var(--line); background: #f0f0ec; overflow: hidden; }
.qr-grid { position: absolute; inset: 8px; opacity: .15; background-image: linear-gradient(90deg,#111 50%,transparent 50%),linear-gradient(#111 50%,transparent 50%); background-size: 12px 12px; }
.qr-placeholder strong { position: relative; z-index: 2; padding: 13px; background: white; font-size: 13px; }
.qr-placeholder > img { position: relative; z-index: 3; width: 100%; height: 100%; object-fit: contain; background: white; }
#payment-code-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.qr-note { margin-bottom: 20px; color: #8e8f89; font-size: 9px; }
.confirm-card { max-width: 360px; text-align: center; }
.success-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--ink); background: var(--green); font-size: 27px; font-weight: 900; }
.confirm-card h2 { margin-bottom: 7px; }
.confirm-card p { margin: 0 0 22px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 200; top: 20px; left: 50%; padding: 11px 18px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; font-weight: 700; opacity: 0; transform: translate(-50%, -15px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a92c2c; }

/* 20260620 visual polish and image loading comfort */
:root {
  --radius-lg: 22px;
  --radius-md: 16px;
  --soft-shadow: 0 18px 50px rgba(20, 24, 18, .075);
  --hover-shadow: 0 28px 80px rgba(20, 24, 18, .13);
}
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(185,239,101,.16), transparent 30%),
    linear-gradient(135deg, #f8f7f1 0%, #efeee7 100%);
}
.auth-panel {
  background:
    radial-gradient(circle at 78% 18%, rgba(185,239,101,.22), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,246,242,.96));
}
.auth-form {
  padding: 30px;
  border: 1px solid rgba(17,19,16,.07);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}
.role-switch, input, textarea, .primary-button, .outline-button, .light-button,
.nav-item, .support-card, .toast, .modal-card, .status-badge, .filter,
.amount-choice button, .site-choice span, .print-side-choice span {
  border-radius: 999px;
}
textarea, .modal-card, .support-card, .toast { border-radius: var(--radius-md); }
.app-content {
  background:
    radial-gradient(circle at 78% 10%, rgba(185,239,101,.13), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(244,243,238,0));
}
.sidebar {
  background: linear-gradient(180deg, #101310 0%, #171b15 56%, #0c0f0c 100%);
  box-shadow: 12px 0 38px rgba(17,19,16,.12);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,249,244,.82);
  box-shadow: 0 10px 32px rgba(17,19,16,.045);
}
.welcome-banner, .merchant-hero {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 12%, rgba(185,239,101,.24), transparent 30%),
    linear-gradient(135deg, #0e130f 0%, #1d2b1e 64%, #101711 100%);
  box-shadow: 0 30px 90px rgba(17,19,16,.18);
}
.product-card, .market-card, .panel, .metric-card, .table-panel, .order-card,
.guide-rank-card, .design-card, .bulk-order-toolbar, .upload-permission-panel,
.empty-state, .cleanup-row {
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}
.product-card, .market-card, .panel, .metric-card, .table-panel, .order-card,
.guide-rank-card, .design-card, .cleanup-row {
  border-color: rgba(17,19,16,.065);
}
.product-card:hover, .market-card:hover, .guide-rank-card:hover, .panel:hover,
.design-card:hover {
  box-shadow: var(--hover-shadow);
}
.product-visual, .market-card-visual, .market-admin-preview, .manager-preview,
.design-image-button, .order-material-preview, .merchant-code-preview,
.qr-placeholder, .order-thumb {
  border-radius: var(--radius-md);
  background:
    linear-gradient(110deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%),
    linear-gradient(135deg, #ecebe5, #deddd5);
}
.product-custom-image, .market-product-image, .color-material-thumb img,
.design-image-button img, .merchant-code-preview img, #client-payment-code,
.guide-rank-card img, .guide-detail-card img {
  content-visibility: auto;
  transform: translateZ(0);
}
.product-custom-image, .market-product-image {
  transition: opacity .25s ease, transform .3s ease;
}
.product-card:hover .product-custom-image, .market-card:hover .market-product-image {
  transform: scale(1.025);
}
.primary-button, .buy-button, .market-buy-button, .approve-request,
.bulk-order-toolbar button, .product-price-form button {
  box-shadow: 0 10px 22px rgba(17,19,16,.12);
}
.primary-button:hover, .buy-button:hover, .market-buy-button:hover,
.approve-request:hover {
  box-shadow: 0 16px 34px rgba(17,19,16,.18);
}

@media (max-width: 1050px) {
  .auth-page { grid-template-columns: 50% 50%; }
  .shirt-art { transform: scale(.8); transform-origin: right bottom; }
  .product-grid, .market-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .design-gallery, .product-image-manager, .market-admin-list { grid-template-columns: repeat(2, 1fr); }
  .fabric-form { grid-template-columns: repeat(2, 1fr); }
  .fabric-form .fabric-description { grid-column: auto; }
  .market-form { grid-template-columns: repeat(2, 1fr); }
  .market-form .market-description { grid-column: auto; }
  .guide-form { grid-template-columns: repeat(2, 1fr); }
  .guide-form .guide-description { grid-column: auto; }
  .order-detail-row { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) {
  .auth-page { display: block; background: var(--white); }
  .auth-brand { display: none; }
  .auth-panel { position: relative; min-height: 100vh; padding: 205px 25px 45px; align-content: start; background: #fff; }
  .auth-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 165px; background: linear-gradient(90deg, rgba(8,18,15,.72), rgba(8,18,15,.08)), url("login-factory.jpg") center/cover no-repeat; }
  .auth-mobile-brand { z-index: 2; display: flex; align-items: center; gap: 10px; position: absolute; top: 25px; left: 25px; color: white; }
  .auth-mobile-brand .brand-mark.dark { color: white; border-color: rgba(255,255,255,.8); }
  .sidebar { transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .app-content { width: 100%; margin: 0; }
  .topbar { height: 76px; padding: 0 20px; }
  .mobile-menu { display: block; margin-right: 12px; border: 0; background: transparent; font-size: 20px; }
  .topbar > div:nth-child(2) { margin-right: auto; }
  .topbar h2 { font-size: 16px; }
  .balance-pill { min-width: auto; margin-right: 9px; padding-right: 9px; }
  .balance-pill span, .user-meta { display: none; }
  .balance-pill strong { font-size: 13px; }
  .content-page { padding: 22px 16px 45px; }
  .welcome-banner { min-height: 380px; padding: 32px 25px; align-items: start; }
  .welcome-banner h1 { font-size: 39px; letter-spacing: -2px; }
  .banner-graphic { inset: 42% 0 0 5%; }
  .mini-shirt.white { top: 42px; right: 42%; }
  .mini-shirt.black { top: 55px; right: 16%; }
  .ring-one { width: 280px; height: 280px; }
  .product-grid, .market-grid { grid-template-columns: 1fr; }
  .product-visual { height: 220px; }
  .assurance-row { grid-template-columns: 1fr; }
  .assurance-row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .page-intro { align-items: start; gap: 18px; }
  .page-intro h1 { font-size: 31px; }
  .intro-stat { min-width: 120px; }
  .order-card { grid-template-columns: 90px 1fr; }
  .order-main { padding: 17px; }
  .order-top { flex-direction: column; }
  .order-meta { flex-wrap: wrap; gap: 14px; }
  .progress-track { width: 100%; }
  .recharge-layout, .manual-recharge-grid, .request-layout { grid-template-columns: 1fr; }
  .payment-code-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-logout { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .customer-create-form { grid-template-columns: 1fr 1fr; }
  .customer-create-form .primary-button { grid-column: 1 / -1; }
  .cleanup-danger-button { margin-left: 0; }
  .merchant-hero { min-height: 230px; }
  .merchant-hero h1 { font-size: 38px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .business-chart-panel { padding: 18px 14px; }
  .simple-order-row { grid-template-columns: 1fr 1fr; }
  .filter-bar { overflow-x: auto; }
  .design-gallery, .product-image-manager, .market-admin-list { grid-template-columns: 1fr; }
  .fabric-form { grid-template-columns: 1fr; }
  .market-form { grid-template-columns: 1fr; }
  .bulk-order-toolbar, .upload-permission-panel { align-items: stretch; flex-direction: column; }
  .bulk-order-toolbar button { margin-left: 0; }
  .guide-form { grid-template-columns: 1fr; }
  .guide-rank-card { grid-template-columns: 42px 68px 1fr; }
  .record-head { display: none; }
  .record-row { grid-template-columns: 1fr 1fr; }
  .amount-choice { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 450px) {
  .page-intro { display: block; }
  .intro-stat { margin-top: 18px; }
  .metric-grid { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr; }
  .order-thumb { min-height: 120px; }
  .form-grid.compact { grid-template-columns: 1fr; }
  .customer-create-form { grid-template-columns: 1fr; }
  .customer-create-form .primary-button { grid-column: auto; }
  .site-choice { grid-template-columns: repeat(2, 1fr); }
  .modal-card { padding: 27px 20px; }
}
