:root {
  --ywg-orange: #ff6600;
  --ywg-orange-hover: #e55c00;
  --ywg-bg: #f5f5f5;
  --ywg-card: #ffffff;
  --ywg-text: #333333;
  --ywg-muted: #999999;
  --ywg-border: #e8e8e8;
  --ywg-input-bg: #f7f7f7;
  --ywg-danger: #e64545;
  --ywg-ok: #2f9b4f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--ywg-bg);
  color: var(--ywg-text);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

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

a:hover {
  color: var(--ywg-orange);
}

.auth-header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--ywg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--ywg-orange);
  letter-spacing: 1px;
  line-height: 0;
  text-decoration: none;
}

.auth-logo img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.auth-hotline {
  color: var(--ywg-orange);
  font-size: 13px;
}

.auth-main {
  min-height: calc(100vh - 72px - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 860px;
  max-width: 100%;
  background: var(--ywg-card);
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  min-height: 420px;
  overflow: hidden;
}

.auth-card.single {
  width: 480px;
  display: block;
  padding: 36px 40px 40px;
  min-height: auto;
}

.auth-split-left,
.auth-split-right {
  flex: 1;
  padding: 40px 36px;
}

.auth-split-left {
  border-right: 1px solid var(--ywg-border);
  text-align: center;
}

.auth-split-left h2,
.auth-card.single h2 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.qr-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 18px;
  border: 1px solid var(--ywg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
}

.qr-box svg {
  width: 180px;
  height: 180px;
}

.qr-tip {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.qr-tip .app {
  color: var(--ywg-orange);
}

.auth-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid transparent;
}

.auth-tabs button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0 0 12px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  position: relative;
}

.auth-tabs button.active {
  color: var(--ywg-orange);
  font-weight: 700;
}

.auth-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ywg-orange);
}

.field {
  margin-bottom: 16px;
}

.field input {
  width: 100%;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ywg-input-bg);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.field input:focus {
  background: #fff;
  border-color: #ffb380;
}

.field-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
}

.field-row a {
  font-size: 12px;
  color: var(--ywg-muted);
}

.btn-primary {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--ywg-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--ywg-orange-hover);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-extra {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.auth-extra .muted {
  color: var(--ywg-muted);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ywg-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 12px;
}

.msg {
  min-height: 20px;
  margin: 0 0 12px;
  font-size: 13px;
}

.msg.error {
  color: var(--ywg-danger);
}

.msg.ok {
  color: var(--ywg-ok);
}

.auth-footer {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
  padding: 0 16px;
  text-align: center;
}

/* ---------- user center (flat, site-like) ---------- */
.uc-page {
  background: #f5f5f5;
  min-height: 100vh;
}

.uc-topbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.uc-topbar-inner {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uc-brand {
  display: inline-flex;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #ff6600;
  text-decoration: none;
  line-height: 0;
}

.uc-brand img {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  display: block;
  vertical-align: middle;
}

.uc-brand span {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #ddd;
  font-size: 18px;
  font-weight: 400;
  color: #666;
  line-height: 36px;
  display: inline-block;
}

.uc-top-links {
  font-size: 15px;
  color: #666;
}

.uc-top-links a {
  color: #666;
}

.uc-top-links a:hover,
.uc-top-links a.is-current {
  color: #ff6600;
}

.uc-top-links .sep {
  margin: 0 12px;
  color: #ddd;
}

.uc-wrap {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 24px auto 48px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.uc-side,
.uc-main {
  background: #fff;
  border: 1px solid #e8e8e8;
}

.uc-side {
  padding: 0;
  align-self: start;
}

.uc-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  border-bottom: 1px solid #eee;
}

.uc-user > div:last-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.uc-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff6600;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.uc-user .name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-user .mail {
  margin-top: 4px;
  font-size: 13px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-nav a {
  display: block;
  padding: 16px 22px;
  font-size: 16px;
  color: #555;
  border-left: 3px solid transparent;
}

.uc-nav a:hover {
  color: #ff6600;
  background: #fffaf5;
}

.uc-nav a.active {
  color: #ff6600;
  background: #fff7f0;
  border-left-color: #ff6600;
  font-weight: 700;
}

.uc-main {
  padding: 28px 32px 36px;
  min-height: 560px;
}

.uc-panel-view {
  display: none;
}

.uc-panel-view.is-show {
  display: block;
}

.uc-enterprise-gate {
  display: none;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ywg-border);
  border-radius: 4px;
  box-sizing: border-box;
  padding: 48px 24px;
}

.uc-enterprise-gate-inner p {
  margin: 0 0 20px;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.uc-enterprise-gate-inner .btn-primary {
  display: inline-block;
  text-decoration: none;
  line-height: 40px;
  height: 40px;
  padding: 0 24px;
}

.uc-hd {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.uc-hd h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.uc-stat {
  display: block;
  text-align: center;
  padding: 24px 10px 20px;
  border: 1px solid #eee;
  background: #fafafa;
  color: #333;
}

.uc-stat:hover {
  border-color: #ffb380;
  color: #333;
}

.uc-stat em {
  display: block;
  font-style: normal;
  font-size: 34px;
  font-weight: 700;
  color: #ff6600;
  line-height: 1.2;
}

.uc-stat span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: #888;
}

.uc-box {
  border: 1px solid #eee;
}

.uc-box-hd {
  padding: 14px 18px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.uc-box-bd {
  padding: 22px 18px;
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

.uc-box-bd p {
  margin: 0 0 10px;
}

.uc-actions {
  margin-top: 14px !important;
}

.uc-actions a {
  margin-right: 20px;
  font-size: 15px;
  color: #ff6600;
}

.uc-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
}

.uc-tabs a {
  padding: 14px 22px;
  font-size: 15px;
  color: #666;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}

.uc-tabs a:hover {
  color: #ff6600;
}

.uc-tabs a.is-active {
  color: #ff6600;
  border-bottom-color: #ff6600;
  font-weight: 700;
}

.uc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.uc-table th,
.uc-table td {
  border-bottom: 1px solid #eee;
  padding: 16px 10px;
  text-align: left;
}

.uc-table th {
  color: #888;
  font-weight: 500;
  background: #fafafa;
}

.uc-empty-cell {
  text-align: center !important;
  color: #999;
  padding: 72px 10px !important;
  font-size: 15px;
}

.uc-empty-cell a {
  color: #ff6600;
}

.uc-info {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid #eee;
}

.uc-info th,
.uc-info td {
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.uc-info tr:last-child th,
.uc-info tr:last-child td {
  border-bottom: 0;
}

.uc-info th {
  width: 140px;
  background: #fafafa;
  color: #888;
  font-weight: 500;
}

.uc-info td {
  color: #333;
}

.profile-form .msg {
  margin: 0 0 14px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f3f3;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.profile-avatar-ops {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #ffb380;
  color: #ff6600;
  background: #fffaf5;
  font-size: 13px;
  cursor: pointer;
}

.profile-upload:hover {
  background: #fff3e8;
}

.profile-input {
  width: 100%;
  max-width: 420px;
  height: 38px;
  border: 1px solid #e5e5e5;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.profile-input:focus {
  border-color: #ffb380;
}

.profile-actions {
  margin-top: 18px;
}

.profile-save {
  width: auto;
  min-width: 140px;
  padding: 0 28px;
}

.content-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 14px;
}
.content-pub-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  min-height: 68px;
}
.content-pub-btn:hover {
  text-decoration: none !important;
}
.content-pub-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.content-pub-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.content-pub-text strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.content-pub-text em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.85;
}
.content-pub-btn--product {
  background: linear-gradient(135deg, #ff7a1a 0%, #f60 100%);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.22);
}
.content-pub-btn--product .content-pub-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.content-pub-btn--product .content-pub-text em {
  color: rgba(255, 255, 255, 0.92);
}
.content-pub-btn--product:hover {
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.3);
  filter: brightness(1.03);
}
.content-pub-btn--article {
  background: #fff;
  color: #333 !important;
  border-color: #ffd2ad;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.06);
}
.content-pub-btn--article .content-pub-icon {
  background: #fff7f0;
  color: #f60;
  border: 1px dashed #f60;
}
.content-pub-btn--article .content-pub-text strong {
  color: #333;
}
.content-pub-btn--article .content-pub-text em {
  color: #999;
}
.content-pub-btn--article:hover {
  border-color: #f60;
  background: #fffaf5;
}
@media (max-width: 720px) {
  .content-toolbar {
    grid-template-columns: 1fr;
  }
}

.content-list {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}
.content-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.content-item:last-child {
  border-bottom: none;
}
.content-item:hover {
  background: #fafafa;
}
.content-cover {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 1px solid #eee;
  overflow: hidden;
  background: #fafafa;
  display: block;
}
.content-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.content-cover-ph {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 12px;
}
.content-main {
  flex: 1;
  min-width: 0;
}
.content-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.content-title-row a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}
.content-title-row a:hover {
  color: #f60;
}
.content-tag {
  display: inline-block;
  font-size: 12px;
  color: #f60;
  border: 1px solid #f60;
  padding: 0 6px;
  line-height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}
.content-sub {
  color: #999;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-ops {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  font-size: 13px;
}
.content-ops a {
  color: #36c;
  text-decoration: none;
}
.content-ops a:hover {
  color: #f60;
}
.content-ops .content-del {
  color: #999;
}
.content-ops .content-del:hover {
  color: #e64545;
}

.fav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #eee;
}

.fav-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.fav-item:last-child {
  border-bottom: 0;
}

.fav-pic {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

.fav-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fav-pic-empty {
  font-size: 12px;
  color: #bbb;
}

.fav-title {
  display: block;
  font-size: 15px;
  color: #333;
  line-height: 1.45;
  max-height: 2.9em;
  overflow: hidden;
}

.fav-title:hover {
  color: #ff6600;
}

.fav-price {
  margin-top: 8px;
  color: #ff6600;
  font-weight: 700;
  font-size: 15px;
}

.fav-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

.fav-remove {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.fav-remove:hover {
  border-color: #ff6600;
  color: #ff6600;
}

.fav-remove:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .fav-item {
    grid-template-columns: 72px 1fr;
  }
  .fav-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ---------- cart ---------- */
.cart-wrap {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 24px auto 48px;
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 24px 28px 0;
}

.cart-hd {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.cart-hd h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.cart-sub {
  font-size: 14px;
  color: #999;
}

.cart-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #666;
}

.cart-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.cart-link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}

.cart-link-btn:hover {
  color: #ff6600;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cart-table th {
  background: #fafafa;
  color: #888;
  font-weight: 500;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
}

.cart-table td {
  padding: 16px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.cart-goods a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #333;
}

.cart-goods img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: #f5f5f5;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.cart-goods .t {
  font-size: 14px;
  line-height: 1.5;
  max-height: 42px;
  overflow: hidden;
}

.cart-goods .s {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

.cart-table .price,
.cart-table .sub {
  color: #ff6600;
  font-weight: 700;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
}

.qty-box button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #f7f7f7;
  cursor: pointer;
  color: #666;
}

.qty-box input {
  width: 48px;
  height: 28px;
  border: 0;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  outline: none;
}

.cart-empty {
  padding: 64px 20px;
  text-align: center;
  color: #999;
  font-size: 15px;
  border: 1px dashed #e5e5e5;
  margin-bottom: 24px;
}

.cart-empty a {
  display: inline-block;
  margin-top: 12px;
  color: #ff6600;
}

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -28px;
  padding: 14px 28px;
  border-top: 1px solid #eee;
  background: #fafafa;
  position: sticky;
  bottom: 0;
}

.cart-footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #666;
}

.cart-footer-left em {
  font-style: normal;
  color: #ff6600;
  font-weight: 700;
}

.cart-footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.cart-footer-right strong {
  color: #ff6600;
  font-size: 22px;
}

.cart-checkout {
  height: 42px;
  min-width: 120px;
  border: 0;
  background: #ff6600;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cart-checkout:hover {
  background: #e55c00;
}

.cart-checkout:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.checkout-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  gap: 0;
  border: 1px solid #eee;
  background: #fafafa;
}

.checkout-steps li {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  color: #888;
  border-right: 1px solid #eee;
}

.checkout-steps li:last-child {
  border-right: 0;
}

.checkout-steps li.is-active {
  color: #ff6600;
  font-weight: 700;
  background: #fff7f0;
}

.addr-form {
  margin: 0;
}

.addr-form-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.addr-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.addr-row label {
  padding-top: 10px;
  font-size: 14px;
  color: #666;
  text-align: right;
}

.addr-row input,
.addr-row textarea {
  width: 100%;
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.addr-row input:focus,
.addr-row textarea:focus {
  background: #fff;
  border-color: #ffb380;
}

.addr-triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.addr-preview {
  margin: 8px 0 0 96px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px dashed #e5e5e5;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.addr-footer {
  margin-top: 8px;
}

.order-done {
  text-align: center;
  padding: 48px 16px;
}

.order-done h2 {
  margin: 0 0 12px;
  color: #ff6600;
}

.order-done p {
  color: #666;
  font-size: 14px;
}

.order-done a {
  margin: 0 12px;
  color: #ff6600;
}

@media (max-width: 700px) {
  .addr-row,
  .addr-row.triple {
    grid-template-columns: 1fr;
  }
  .addr-row label {
    text-align: left;
    padding-top: 0;
  }
  .addr-preview {
    margin-left: 0;
  }
  .addr-triple {
    grid-template-columns: 1fr;
  }
  .addr-form-inner {
    max-width: 100%;
  }
}

/* order detail modal */
.od-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.od-mask[hidden] {
  display: none !important;
}

.od-modal {
  width: 560px;
  max-width: 100%;
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.od-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.od-hd h3 {
  margin: 0;
  font-size: 16px;
}

.od-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.od-close:hover {
  color: #333;
}

.od-bd {
  padding: 18px;
}

.od-status {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: #fff7f0;
  color: #ff6600;
  font-size: 13px;
  font-weight: 700;
}

.od-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #f0f0f0;
}

.od-kv span {
  color: #999;
  flex-shrink: 0;
}

.od-kv b {
  font-weight: 600;
  color: #333;
  text-align: right;
  word-break: break-all;
}

.od-money {
  color: #ff6600 !important;
  font-size: 18px !important;
}

.od-section {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.od-addr {
  padding: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.od-goods-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
  font-size: 13px;
  align-items: start;
}

.od-goods-row em {
  font-style: normal;
  color: #999;
}

.od-goods-row strong {
  color: #ff6600;
}

.od-ft {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.od-btn {
  min-width: 96px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}

.od-btn.ghost:hover {
  border-color: #ff6600;
  color: #ff6600;
}

.od-btn.solid {
  border-color: #ff6600;
  background: #ff6600;
  color: #fff;
  font-weight: 700;
}

.od-btn.solid:hover {
  background: #e55c00;
}

.order-ops a {
  margin-right: 10px;
  color: #ff6600;
}

.order-ops .order-pay {
  font-weight: 700;
}

/* Alipay cashier (local demo) */
.alipay-page {
  min-height: 100vh;
  margin: 0;
  background: #f5f5f5;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.alipay-top {
  background: #1677ff;
  color: #fff;
}

.alipay-top-inner {
  width: 720px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alipay-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.alipay-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  color: #1677ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.alipay-back {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.alipay-back:hover {
  color: #fff;
}

.alipay-main {
  padding: 28px 16px 48px;
}

.alipay-card {
  width: 720px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 28px 28px 24px;
}

.alipay-merchant {
  text-align: center;
  color: #666;
  font-size: 14px;
}

.alipay-amount {
  text-align: center;
  margin: 12px 0 8px;
  font-size: 28px;
  color: #333;
}

.alipay-amount strong {
  font-size: 40px;
  font-weight: 700;
}

.alipay-order {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-bottom: 22px;
}

.alipay-methods {
  border: 1px solid #eee;
  margin-bottom: 16px;
}

.alipay-method {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.alipay-method:last-child {
  border-bottom: 0;
}

.alipay-method.is-on {
  background: #f7fbff;
}

.alipay-method-name {
  font-size: 14px;
  color: #333;
}

.alipay-method-tip {
  font-size: 12px;
  color: #999;
}

.alipay-api-box {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px dashed #dbe7ff;
}

.alipay-api-title {
  font-size: 13px;
  font-weight: 700;
  color: #1677ff;
  margin-bottom: 8px;
}

.alipay-api-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #666;
  padding: 4px 0;
}

.alipay-api-row em {
  font-style: normal;
  color: #999;
}

.alipay-pay-btn {
  width: 100%;
  height: 44px;
  border: 0;
  background: #1677ff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.alipay-pay-btn:hover {
  background: #0f6ae6;
}

.alipay-pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.alipay-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.6;
}

.alipay-msg {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  min-height: 20px;
}

.alipay-msg.ok {
  color: #1677ff;
}

.alipay-msg.err {
  color: #e64545;
}

@media (max-width: 900px) {
  .cart-wrap {
    padding: 16px;
  }
  .cart-footer {
    margin: 0 -16px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .cart-goods img {
    width: 60px;
    height: 60px;
  }
}

.topbar-mini {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--ywg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.topbar-mini .right a {
  margin-left: 16px;
  font-size: 13px;
  color: #666;
}

@media (max-width: 900px) {
  .auth-card {
    flex-direction: column;
  }
  .auth-split-left {
    border-right: 0;
    border-bottom: 1px solid var(--ywg-border);
  }
  .uc-wrap {
    grid-template-columns: 1fr;
  }
  .uc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .uc-grid {
    grid-template-columns: 1fr 1fr;
  }
}
