/*
 * 安心好物 — 站点样式
 * 设计取向：暖白底、克制配色、移动优先。不依赖任何 CSS 框架，改起来直观。
 */

:root {
  --bg: #faf8f5;
  --bg-soft: #f2eee8;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --ink-2: #5c564e;
  --ink-3: #8f877c;
  --line: #e8e2d9;
  --accent: #c4553b;
  --accent-dark: #a8452f;
  --accent-soft: #fbeae5;
  --green: #3f6b58;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(31, 29, 26, 0.04), 0 8px 24px rgba(31, 29, 26, 0.06);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}

.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-note {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------------- 首屏 ---------------- */
.hero {
  padding: 46px 0 34px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--ink-2);
  font-size: 15px;
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-3);
}

.hero-meta b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- 区块标题 ---------------- */
.section {
  padding: 30px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.section-head .sub {
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------------- 商品网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #ded6ca;
}

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  overflow: hidden;
}

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

.coupon-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.card-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.card-title {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.price-now {
  color: var(--accent);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.3px;
}

.price-now small {
  font-size: 12px;
  font-weight: 600;
  margin-right: 1px;
}

.price-old {
  color: var(--ink-3);
  font-size: 12px;
  text-decoration: line-through;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-3);
  border-top: 1px dashed var(--line);
  padding-top: 7px;
}

.card-foot .rebate {
  color: var(--green);
  font-weight: 600;
}

/* ---------------- 分类宫格 ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(102px, 1fr));
  gap: 10px;
}

/* 每个分类一套克制的双色：--cat 画图标，--cat-soft 做底的淡色。
   色相刻意压低饱和度，避免一眼花花绿绿。 */
.cat-item[data-cat="home"] {
  --cat: #9a7b57;
  --cat-soft: #f2e8d9;
}
.cat-item[data-cat="kitchen"] {
  --cat: #a9713f;
  --cat-soft: #f7eade;
}
.cat-item[data-cat="digital"] {
  --cat: #5a7089;
  --cat-soft: #e7edf4;
}
.cat-item[data-cat="beauty"] {
  --cat: #b0687a;
  --cat-soft: #f8e8ec;
}
.cat-item[data-cat="baby"] {
  --cat: #5f8579;
  --cat-soft: #e6f0ec;
}
.cat-item[data-cat="fashion"] {
  --cat: #87719a;
  --cat-soft: #eee9f4;
}
.cat-item[data-cat="food"] {
  --cat: #a2833d;
  --cat-soft: #f6efdb;
}
.cat-item[data-cat="pet"] {
  --cat: #75875e;
  --cat-soft: #ecf1e3;
}

.cat-item {
  --cat: #8f877c;
  --cat-soft: #f4f1ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 15px 6px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.24s,
    box-shadow 0.24s;
}

.cat-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cat-soft);
  color: var(--cat);
  transition: background 0.24s, color 0.24s, transform 0.24s;
}

.cat-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.cat-name {
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.cat-item:hover {
  transform: translateY(-3px);
  border-color: var(--cat);
  box-shadow: 0 12px 26px -18px var(--cat);
}

.cat-item:hover .cat-ico {
  background: var(--cat);
  color: #fff;
  transform: scale(1.06);
}

.cat-item:hover .cat-name {
  color: var(--ink);
}

.cat-item:focus-visible {
  outline: 2px solid var(--cat);
  outline-offset: 2px;
}

/* ---------------- 详情页 ---------------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  padding: 28px 0 40px;
  align-items: start;
}

.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 6px 0 10px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.recommend-note {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 11px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.price-block {
  background: linear-gradient(180deg, #fff8f5 0%, #ffffff 100%);
  border: 1px solid #f2ded6;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-main .now {
  color: var(--accent);
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.1;
}

.price-main .now small {
  font-size: 16px;
  font-weight: 650;
}

.price-main .old {
  color: var(--ink-3);
  text-decoration: line-through;
  font-size: 14px;
}

.price-save {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tag.green {
  background: #eaf2ee;
  color: var(--green);
}

.meta-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-2);
  display: grid;
  gap: 7px;
}

.meta-list li {
  display: flex;
  gap: 10px;
}

.meta-list li span:first-child {
  color: var(--ink-3);
  width: 62px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.2px;
  transition: all 0.16s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(196, 85, 59, 0.24);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.btn-sm {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
}

.ad-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  vertical-align: 1px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .24);
  color: #fff;
  letter-spacing: .5px;
}

.buy-hint {
  margin-top: 11px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
}

.detail-desc {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding: 30px 0;
}

.detail-desc h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

.detail-desc p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 12px;
  max-width: 760px;
}

/* ---------------- 提示条 ---------------- */
.alert {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.alert-warn {
  background: #fdf3e7;
  border: 1px solid #f3ddbd;
  color: #8a5a1a;
}

/* ---------------- 分页 ---------------- */
.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 34px 0 10px;
  font-size: 13.5px;
  flex-wrap: wrap;
}

.pager a,
.pager span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

.pager .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.pager .disabled {
  opacity: 0.42;
}

/* ---------------- 空状态 ---------------- */
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------------- 静态页 ---------------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.prose h1 {
  font-size: 26px;
  margin: 0 0 22px;
  letter-spacing: -0.3px;
}

.prose h2 {
  font-size: 17px;
  margin: 30px 0 10px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
}

.prose ul {
  padding-left: 20px;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 32px 0 44px;
  background: var(--bg-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.9;
}

.footer-meta a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclosure {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
  max-width: 720px;
}

/* ---------------- 后台 ---------------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-side {
  width: 208px;
  flex: none;
  background: #232019;
  color: #cfc7ba;
  padding: 20px 0;
}

.admin-brand {
  padding: 0 20px 18px;
  font-weight: 650;
  color: #fff;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 12px;
}

.admin-side a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  color: #cfc7ba;
}

.admin-side a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-side a.active {
  background: rgba(196, 85, 59, 0.9);
  color: #fff;
}

/* 侧边栏的分组标题，比如「阿里妈妈」 */
.side-group {
  padding: 16px 20px 6px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #8d8477;
  user-select: none;
}

.admin-main {
  flex: 1;
  min-width: 0;
  background: #f5f2ed;
  padding: 24px 28px 60px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-head h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 650;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 15px;
  margin: 0 0 16px;
  font-weight: 650;
}

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

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.stat .k {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.stat .v {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-3);
  font-size: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data td {
  padding: 10px;
  border-bottom: 1px solid #f3efe9;
  vertical-align: middle;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data td.num {
  font-variant-numeric: tabular-nums;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}

.field .hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 5px;
  line-height: 1.6;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd5c9;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 85, 59, 0.1);
}

.textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #232019;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px;
}

.login-card h1 {
  font-size: 19px;
  margin: 0 0 4px;
  font-weight: 650;
}

.login-card .sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.notice {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.notice-ok {
  background: #eaf2ee;
  color: #2f5a49;
}

.notice-err {
  background: #fbeae5;
  color: #a8452f;
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--ink-2);
}

.badge-on {
  background: #eaf2ee;
  color: var(--green);
}

.badge-off {
  background: #f2f2f2;
  color: var(--ink-3);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-side {
    display: none;
  }
  .admin-main {
    padding: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14.5px;
  }
  .wrap {
    padding: 0 14px;
  }
  .header-note {
    display: none;
  }
  .header-inner {
    height: 54px;
    gap: 14px;
  }
  .logo {
    font-size: 17px;
  }
  .nav {
    gap: 15px;
  }
  .nav a {
    font-size: 13px;
  }
  .hero {
    padding: 30px 0 22px;
    text-align: left;
  }
  .hero h1 {
    font-size: 25px;
  }
  .hero-meta {
    justify-content: flex-start;
    gap: 20px;
    font-size: 12px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-title {
    font-size: 12.5px;
    min-height: 38px;
  }
  .price-now {
    font-size: 17px;
  }
  .section {
    padding: 22px 0;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .detail-info h1 {
    font-size: 18px;
  }
  .price-main .now {
    font-size: 27px;
  }
  .btn {
    height: 46px;
    font-size: 15px;
  }
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-item {
    padding: 12px 4px 11px;
    gap: 7px;
    border-radius: 11px;
  }
  .cat-ico {
    width: 34px;
    height: 34px;
  }
  .cat-ico svg {
    width: 17px;
    height: 17px;
  }
  .cat-name {
    font-size: 11.5px;
    letter-spacing: 0;
  }
  .prose {
    padding: 26px 0 40px;
  }
  .prose h1 {
    font-size: 21px;
  }
  table.data {
    font-size: 12px;
  }
  .stat-row {
    gap: 10px;
  }
  .stat .v {
    font-size: 20px;
  }
}

/* ==================== 后台图片上传 ==================== */
/* display:flex/block 会盖掉 hidden 属性，这里强制让 hidden 生效 */
.img-drop [hidden] {
  display: none !important;
}
.img-field {
  margin-bottom: 6px;
}
.img-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  border: 1.5px dashed #d3c9ba;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
  outline: none;
}
.img-drop:hover,
.img-drop:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.img-drop.over {
  border-color: var(--accent);
  background: var(--accent-soft);
  border-style: solid;
}
.img-drop.busy {
  opacity: 0.6;
  pointer-events: none;
}
.img-drop .img-preview {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: var(--radius-sm);
}
.img-drop .img-placeholder {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.9;
  padding: 20px;
}
.img-drop .img-placeholder strong {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.img-drop .img-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.img-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.img-actions .input {
  flex: 1;
  min-width: 0;
}

/* ============================================
   淘口令中转页（微信内打开 /go/:id 时使用）
   微信内置浏览器禁止跳转淘宝，只能引导复制口令。
   设计目标：一屏之内看清、按钮够大、不分散注意力。
   ============================================ */

.go-page {
  min-height: 100dvh;
  background: var(--bg);
}

.go-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 26px 20px calc(28px + env(safe-area-inset-bottom));
}

.go-brand {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.go-card {
  display: flex;
  gap: 13px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.go-thumb {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-soft);
}

.go-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.go-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.go-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 8px;
}

.go-coupon {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 1px 6px;
}

.go-final {
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.go-lead {
  margin: 22px 0 12px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.go-lead strong {
  color: var(--accent);
}

.go-code {
  padding: 15px 16px 13px;
  background: var(--bg-soft);
  border: 1px dashed #d9d0c4;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-align: center;
  user-select: all;
  -webkit-user-select: all;
  transition: background 0.2s, border-color 0.2s;
}

.go-code-main {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.3px;
  word-break: break-all;
}

.go-code-link {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-3);
  word-break: break-all;
}

.go-code.is-copied {
  background: #eef4f0;
  border-color: #c3d8cd;
}

.go-btn {
  width: 100%;
  margin-top: 14px;
  transition: background 0.2s;
}

.go-btn.is-done {
  background: var(--green);
}

/* 次要按钮：主按钮负责唤起淘宝 App，这个是「只复制口令」的退路 */
.go-btn-sub {
  width: 100%;
  margin-top: 10px;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}

.go-btn-sub.is-done {
  background: var(--bg-soft);
  color: var(--green);
  border-color: #c3d8cd;
}

/* 唤起失败后的提示，平时隐藏 */
.go-hint {
  margin: 12px 0 0;
  padding: 10px 13px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
  text-align: center;
}

.go-steps {
  margin: 22px 0 0;
  padding: 15px 18px 13px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.go-steps li::marker {
  color: var(--ink-3);
  font-weight: 600;
}

.go-alt {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.go-alt strong {
  color: var(--ink-2);
  font-weight: 600;
}

.go-fallback {
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
}

.go-fallback p {
  margin: 0 0 8px;
}

.go-fallback-hint {
  color: var(--ink-3);
  font-size: 12.5px;
}

.go-ad {
  margin: 26px 0 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
