/* ============ 药安代 MedAid Global PC 商城 ============ */
:root {
  --primary: #0e9f8c;
  --primary-dark: #0b7f6f;
  --primary-light: #e6f7f4;
  --danger: #e64340;
  --danger-dark: #d4382f;
  --warning: #ffa940;
  --success: #22a06b;
  --text-main: #1f2d3d;
  --text-body: #303133;
  --text-sub: #606266;
  --text-muted: #909399;
  --border: #e4e7ed;
  --border-light: #ebeef5;
  --bg: #f4f6f9;
  --card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 4px rgba(17, 45, 60, 0.06);
  --shadow-md: 0 6px 20px rgba(17, 45, 60, 0.10);
  --shadow-lg: 0 14px 40px rgba(17, 45, 60, 0.14);
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; outline: none; }
img { border: 0; }

#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- 顶部 ---------- */
.hy-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 8px rgba(17, 45, 60, 0.05);
  position: sticky; top: 0; z-index: 100;
}
.hy-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: var(--header-h); gap: 28px;
}
.hy-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hy-logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: #fff8d8; border: 1px solid #f5d45e;
  box-shadow: 0 4px 10px rgba(117, 89, 0, 0.18); overflow: hidden;
}
.hy-logo-icon img { width: 100%; height: 100%; display: block; }
.hy-logo-text { display: flex; flex-direction: column; white-space: nowrap; line-height: 1.15; }
.hy-logo-text strong { font-size: 21px; color: var(--text-main); letter-spacing: 1px; }
.hy-logo-text small { margin-top: 3px; color: var(--primary-dark); font-size: 10px; font-weight: 600; letter-spacing: .8px; }
.hy-search { flex: 1; display: flex; max-width: 500px; position: relative; }
.hy-search input {
  flex: 1; height: 40px; border: 2px solid var(--primary); border-right: 0;
  border-radius: 8px 0 0 8px; padding: 0 16px; font-size: 14px; background: #fbfdfc;
  transition: box-shadow .15s, background .15s;
}
.hy-search input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(14, 159, 140, 0.15); }
.hy-search button {
  height: 40px; padding: 0 24px; border: 0; border-radius: 0 8px 8px 0;
  background: linear-gradient(135deg, #12b3a0, #0e7a6b); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; transition: opacity .15s;
}
.hy-search button:hover { opacity: .9; }
.hy-nav { display: flex; gap: 22px; font-size: 15px; }
.hy-nav a { color: var(--text-body); position: relative; padding: 6px 2px; font-weight: 500; }
.hy-nav a:hover { color: var(--primary); }
.hy-nav a.active { color: var(--primary); font-weight: 600; }
.hy-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--primary);
}
.hy-cart-badge {
  position: absolute; top: -6px; right: -14px; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px;
  line-height: 17px; text-align: center; padding: 0 5px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(230, 67, 64, 0.35);
}
.hy-user { margin-left: auto; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.hy-user a { color: var(--primary); font-weight: 500; }
.hy-user a:hover { text-decoration: underline; }
.hy-user-sep { color: var(--border); }

/* ---------- 主体 ---------- */
.hy-main { flex: 1; width: 100%; max-width: 1280px; margin: 24px auto; padding: 0 24px; }

/* 面包屑 / 标题 */
.hy-page-title {
  font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.hy-page-title::before {
  content: ''; width: 4px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg, #12b3a0, #0e7a6b); display: inline-block;
}
.hy-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.hy-breadcrumb a { color: var(--primary); }
.hy-breadcrumb a:hover { text-decoration: underline; }

/* ---------- 首页 ---------- */
.hy-home-banner {
  border-radius: 16px; overflow: hidden; margin-bottom: 22px; position: relative;
  background:
    radial-gradient(1200px 300px at 85% -40%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(120deg, #0b7f6f, #12b3a0 55%, #0b7f8c);
  color: #fff; padding: 40px 44px;
}
.hy-home-banner::after {
  content: '药安代'; position: absolute; right: 36px; bottom: -14px;
  font-size: 92px; font-weight: 800; opacity: 0.08; letter-spacing: 6px;
}
.hy-home-banner h1 { font-size: 28px; margin-bottom: 10px; letter-spacing: 1px; }
.hy-home-banner p { font-size: 14px; opacity: 0.94; line-height: 1.8; max-width: 720px; }
.hy-home-banner .hy-banner-badges { margin-top: 16px; display: flex; gap: 10px; }
.hy-home-banner .hy-banner-badges span {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px; padding: 5px 14px; font-size: 12px; backdrop-filter: blur(2px);
}
.hy-home-body { display: flex; gap: 22px; align-items: flex-start; }
.hy-cat-panel {
  width: 240px; flex-shrink: 0; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px);
}
.hy-cat-panel h3 {
  font-size: 15px; padding: 15px 18px; background: linear-gradient(90deg, var(--primary-light), transparent);
  color: var(--primary-dark); border-bottom: 1px solid var(--border-light); font-weight: 700;
}
.hy-cat-list { max-height: 620px; overflow-y: auto; padding: 8px 0; }
.hy-cat-item {
  display: block; padding: 9px 18px; font-size: 14px; color: var(--text-body);
  border-left: 3px solid transparent; transition: background .12s, color .12s;
}
.hy-cat-item:hover, .hy-cat-item.active { background: var(--primary-light); color: var(--primary-dark); border-left-color: var(--primary); }
.hy-cat-item small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 3px; line-height: 1.7; }
.hy-cat-children { padding: 2px 0 8px 32px; }
.hy-cat-child {
  display: inline-block; font-size: 12px; color: var(--text-sub); background: #f5f7fa;
  border-radius: 999px; padding: 3px 10px; margin: 3px 4px 3px 0; transition: background .12s, color .12s;
}
.hy-cat-child:hover { color: var(--primary-dark); background: var(--primary-light); }
.hy-products-panel { flex: 1; min-width: 0; }

/* 商品网格工具栏 */
.hy-grid-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  background: var(--card); border-radius: var(--radius); padding: 13px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.hy-grid-toolbar .hy-count { color: var(--text-sub); font-size: 13px; }
.hy-grid-toolbar .hy-count b { color: var(--primary-dark); font-size: 15px; }
.hy-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.hy-sort button {
  border: 1px solid var(--border); background: #fff; color: var(--text-sub);
  font-size: 13px; padding: 6px 14px; border-radius: 999px; transition: all .12s;
}
.hy-sort button:hover { border-color: var(--primary); color: var(--primary-dark); }
.hy-sort button.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* 分类快捷筛选标签 */
.hy-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hy-filter-chips .hy-chip {
  border: 1px solid var(--border); background: #fff; color: var(--text-sub);
  font-size: 12px; padding: 5px 12px; border-radius: 999px; transition: all .12s;
}
.hy-filter-chips .hy-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.hy-filter-chips .hy-chip.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }

/* 商品网格 */
.hy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1180px) { .hy-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .hy-grid { grid-template-columns: repeat(2, 1fr); } }
.hy-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.hy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hy-card .hy-card-img { width: 100%; aspect-ratio: 1; background: #fafbfc; position: relative; overflow: hidden; }
.hy-card .hy-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s; }
.hy-card:hover .hy-card-img img { transform: scale(1.04); }
.hy-card .hy-card-img .hy-img-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
}
.hy-card .hy-card-stock { position: absolute; right: 10px; top: 10px; }
.hy-card .hy-soldout {
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px;
  padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(2px);
}
.hy-card .hy-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.hy-card .hy-card-name {
  font-size: 14px; color: var(--text-body); line-height: 1.5; height: 42px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: color .12s;
}
.hy-card .hy-card-name:hover { color: var(--primary-dark); }
.hy-card .hy-card-meta { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; justify-content: space-between; }
.hy-card .hy-price { color: var(--danger); font-size: 19px; font-weight: 700; }
.hy-card .hy-price small { font-size: 13px; }
.hy-card .hy-otprice { color: var(--text-muted); font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.hy-card .hy-card-sales { color: var(--text-muted); font-size: 12px; }

/* 分页 */
.hy-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 26px 0; flex-wrap: wrap; }
.hy-pager button {
  border: 1px solid var(--border); background: #fff; color: var(--text-body);
  padding: 8px 15px; border-radius: 8px; font-size: 13px; transition: all .12s;
}
.hy-pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.hy-pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.hy-pager button:disabled { color: var(--text-muted); cursor: not-allowed; opacity: .6; }
.hy-pager .hy-pager-info { color: var(--text-muted); font-size: 13px; }

/* 空状态 */
.hy-empty { text-align: center; padding: 80px 0; color: var(--text-muted); }
.hy-empty .hy-empty-icon { font-size: 52px; margin-bottom: 14px; opacity: .8; }
.hy-empty .hy-empty-actions { margin-top: 18px; }

/* ---------- 商品详情 ---------- */
.hy-detail { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.hy-detail-top { display: flex; gap: 30px; }
.hy-detail-gallery { width: 400px; flex-shrink: 0; }
.hy-detail-main-img {
  width: 400px; height: 400px; border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: #fafbfc; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hy-detail-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hy-detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hy-detail-thumbs img {
  width: 68px; height: 68px; object-fit: cover; border: 2px solid transparent;
  border-radius: var(--radius-sm); cursor: pointer; background: #fafbfc; transition: border-color .12s;
}
.hy-detail-thumbs img.active { border-color: var(--primary); }
.hy-detail-info { flex: 1; min-width: 0; }
.hy-detail-name { font-size: 21px; font-weight: 700; color: var(--text-main); line-height: 1.5; }
.hy-detail-sub { color: var(--text-muted); font-size: 13px; margin-top: 8px; line-height: 1.7; }
.hy-detail-pricebox {
  background: linear-gradient(90deg, #fdf3f2, #fef8f6); border: 1px solid #fbe4e2;
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.hy-detail-price { color: var(--danger); font-size: 30px; font-weight: 700; }
.hy-detail-price small { font-size: 17px; }
.hy-detail-otprice { color: var(--text-muted); text-decoration: line-through; font-size: 13px; }
.hy-detail-stock { color: var(--text-sub); font-size: 13px; margin-left: auto; }
.hy-detail-stock .hy-in-stock { color: var(--primary-dark); font-weight: 600; }
.hy-detail-stock .hy-out-stock { color: var(--danger); font-weight: 600; }
.hy-detail-spec { margin: 16px 0; display: flex; align-items: center; gap: 10px; }
.hy-detail-spec label { color: var(--text-muted); font-size: 13px; }
.hy-detail-spec .hy-spec-value {
  border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 7px 16px; font-size: 13px;
}
.hy-detail-qty { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.hy-detail-qty label { color: var(--text-muted); font-size: 13px; }
.hy-detail-qty .hy-qty-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.hy-detail-qty .hy-qty-box button { width: 34px; height: 34px; border: 0; background: #f5f7fa; font-size: 16px; color: var(--text-sub); transition: background .12s; }
.hy-detail-qty .hy-qty-box button:hover { background: var(--border-light); }
.hy-detail-qty .hy-qty-box input { width: 56px; height: 34px; border: 0; text-align: center; font-size: 14px; border-left: 1px solid var(--border-light); border-right: 1px solid var(--border-light); }
.hy-detail-actions { display: flex; gap: 14px; margin-top: 22px; }
.hy-btn {
  border: 0; border-radius: 8px; font-size: 15px; font-weight: 600;
  padding: 13px 36px; color: #fff; transition: all .15s; letter-spacing: 1px;
}
.hy-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14); }
.hy-btn:active { transform: translateY(0); }
.hy-btn-primary { background: linear-gradient(135deg, #f0524f, var(--danger-dark)); }
.hy-btn-primary:hover { background: linear-gradient(135deg, #f25e5b, var(--danger-dark)); }
.hy-btn-outline { background: linear-gradient(135deg, #ffb54d, #f0952f); }
.hy-btn-outline:hover { background: linear-gradient(135deg, #ffbd5e, #f0952f); }
.hy-btn-plain { background: linear-gradient(135deg, #12b3a0, var(--primary-dark)); }
.hy-btn-plain:hover { background: linear-gradient(135deg, #14c2ad, var(--primary-dark)); }
.hy-btn:disabled { background: #c8cdd4; cursor: not-allowed; box-shadow: none; transform: none; }
.hy-detail-tabs { margin-top: 30px; border-top: 1px solid var(--border-light); }
.hy-detail-tabs .hy-tabs-head { display: flex; gap: 34px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.hy-detail-tabs .hy-tabs-head span { font-size: 15px; color: var(--text-sub); cursor: pointer; padding-bottom: 16px; margin-bottom: -16px; border-bottom: 2px solid transparent; font-weight: 500; }
.hy-detail-tabs .hy-tabs-head span.active { color: var(--primary-dark); border-bottom-color: var(--primary); font-weight: 700; }
.hy-detail-desc { padding: 20px 0; line-height: 2; color: var(--text-body); font-size: 14px; word-break: break-word; }
.hy-detail-desc img { max-width: 100%; }
.hy-detail-desc h1, .hy-detail-desc h2, .hy-detail-desc h3 { margin: 12px 0; font-size: 16px; color: var(--text-main); }
.hy-detail-desc p { margin: 8px 0; }

/* ---------- 购物车 ---------- */
.hy-cart-layout { display: flex; gap: 20px; align-items: flex-start; }
.hy-cart-list { flex: 1; min-width: 0; }
.hy-table { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.hy-table table { width: 100%; border-collapse: collapse; }
.hy-table th {
  background: #f8faf9; color: var(--text-sub); font-size: 13px; font-weight: 600;
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border-light);
}
.hy-table td { padding: 15px 16px; border-bottom: 1px solid #f2f4f6; font-size: 14px; vertical-align: middle; }
.hy-table tr:last-child td { border-bottom: 0; }
.hy-table tbody tr { transition: background .1s; }
.hy-table tbody tr:hover { background: #fafcfb; }
.hy-cart-product { display: flex; align-items: center; gap: 12px; }
.hy-cart-product img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 8px; background: #fafbfc;
  border: 1px solid var(--border-light);
}
.hy-cart-product .hy-cart-name { color: var(--text-body); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hy-cart-product .hy-cart-name:hover { color: var(--primary-dark); }
.hy-cart-product .hy-cart-spec { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.hy-qty-inline { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.hy-qty-inline button { width: 30px; height: 30px; border: 0; background: #f5f7fa; font-size: 15px; color: var(--text-sub); transition: background .12s; }
.hy-qty-inline button:hover { background: var(--border-light); }
.hy-qty-inline input { width: 48px; height: 30px; border: 0; text-align: center; font-size: 13px; border-left: 1px solid var(--border-light); border-right: 1px solid var(--border-light); }
.hy-link-btn { color: var(--primary); font-size: 13px; background: none; border: 0; padding: 2px 0; transition: color .12s; }
.hy-link-btn:hover { color: var(--danger); text-decoration: underline; }
.hy-link-btn.danger { color: var(--danger); }
.hy-cart-footer {
  margin-top: 18px; background: var(--card); border-radius: var(--radius); padding: 16px 22px;
  display: flex; align-items: center; justify-content: flex-end; gap: 22px;
  box-shadow: var(--shadow-sm); position: sticky; bottom: 16px;
}
.hy-cart-footer .hy-cart-selected { color: var(--text-sub); font-size: 13px; }
.hy-cart-footer .hy-cart-selected b { color: var(--primary-dark); font-size: 16px; }
.hy-cart-footer .hy-total { font-size: 15px; color: var(--text-body); }
.hy-cart-footer .hy-total b { color: var(--danger); font-size: 24px; font-weight: 700; }
.hy-cart-invalid {
  margin-top: 16px; background: #fff9f0; border: 1px solid #f6e2c3; border-radius: var(--radius);
  padding: 14px 18px; color: #9a6b22; font-size: 13px; line-height: 1.8;
}
.hy-cart-invalid b { color: #b3771e; }
.hy-cart-invalid button { margin-top: 8px; }

/* ---------- 订单状态 ---------- */
.hy-order-status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.hy-order-status.s0 { background: #fff3dc; color: #d48806; }
.hy-order-status.s1 { background: #e6f7f4; color: var(--primary-dark); }
.hy-order-status.s2 { background: #e8f0fe; color: #2f6fd6; }
.hy-order-status.s3 { background: #eafaf1; color: var(--success); }
.hy-order-status.s-2, .hy-order-status.s-1 { background: #fdecec; color: var(--danger); }
.hy-order-status.s4 { background: #f3f0ff; color: #7c5cd6; }

/* 订单卡片列表 */
.hy-order-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 16px; overflow: hidden; transition: box-shadow .15s;
}
.hy-order-card:hover { box-shadow: var(--shadow-md); }
.hy-order-card .hy-order-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 13px 20px; background: #f8faf9; border-bottom: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-sub);
}
.hy-order-card .hy-order-head .hy-order-no { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--text-muted); }
.hy-order-card .hy-order-body { padding: 16px 20px; }
.hy-order-card .hy-order-goods { display: flex; gap: 12px; flex-wrap: wrap; }
.hy-order-card .hy-order-goods img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  background: #fafbfc; border: 1px solid var(--border-light);
}
.hy-order-card .hy-order-goods .hy-order-goods-name { font-size: 13px; color: var(--text-body); max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hy-order-card .hy-order-more { color: var(--text-muted); font-size: 12px; }
.hy-order-card .hy-order-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 13px 20px; border-top: 1px solid var(--border-light); background: #fff;
}
.hy-order-card .hy-order-time { color: var(--text-muted); font-size: 12px; }
.hy-order-card .hy-order-amount { font-size: 14px; color: var(--text-body); }
.hy-order-card .hy-order-amount b { color: var(--danger); font-size: 20px; font-weight: 700; }
.hy-order-card .hy-order-actions { display: flex; gap: 10px; align-items: center; }
.hy-order-card .hy-btn { padding: 8px 20px; font-size: 13px; border-radius: 6px; }

/* ---------- 结算 ---------- */
.hy-checkout { display: flex; gap: 20px; align-items: flex-start; }
.hy-checkout-left { flex: 1; min-width: 0; }
.hy-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 16px; }
.hy-panel h3 { font-size: 15px; color: var(--text-main); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); font-weight: 700; }
.hy-addr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .hy-addr-grid { grid-template-columns: repeat(2, 1fr); } }
.hy-addr-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; position: relative;
  transition: all .12s;
}
.hy-addr-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.hy-addr-card.active { border-color: var(--primary); background: var(--primary-light); }
.hy-addr-card .hy-addr-name { font-weight: 600; margin-bottom: 4px; }
.hy-addr-card .hy-addr-detail { color: var(--text-sub); font-size: 13px; line-height: 1.6; }
.hy-addr-card .hy-addr-default { color: var(--primary-dark); font-size: 12px; margin-top: 5px; font-weight: 600; }
.hy-form-row { margin-bottom: 13px; display: flex; align-items: center; gap: 10px; }
.hy-form-row label { width: 90px; color: var(--text-sub); font-size: 13px; text-align: right; flex-shrink: 0; }
.hy-form-row input[type=text], .hy-form-row select, .hy-form-row input[type=password] {
  height: 36px; border: 1px solid var(--border); border-radius: 6px; padding: 0 12px; font-size: 13px; background: #fff; min-width: 180px;
  transition: border-color .12s, box-shadow .12s;
}
.hy-form-row input:focus, .hy-form-row select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 159, 140, 0.12); }
.hy-checkout-right { width: 330px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.hy-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-body); padding: 7px 0; }
.hy-summary-row.total { font-size: 16px; font-weight: 700; border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 14px; }
.hy-summary-row.total b { color: var(--danger); font-size: 24px; }
.hy-paytype { display: flex; gap: 12px; margin: 12px 0; }
.hy-paytype label {
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 18px; cursor: pointer; font-size: 13px; transition: all .12s;
}
.hy-paytype label.active { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); font-weight: 600; }

/* ---------- 登录 ---------- */
.hy-login-wrap {
  display: flex; justify-content: center; align-items: flex-start; padding: 64px 0;
  background:
    radial-gradient(800px 300px at 20% -10%, rgba(14, 159, 140, 0.10), transparent 60%),
    radial-gradient(700px 280px at 90% 10%, rgba(18, 179, 160, 0.08), transparent 60%);
}
.hy-login-card {
  width: 440px; background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 40px 44px; position: relative; overflow: hidden;
}
.hy-login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #12b3a0, #0e7a6b, #0b7f8c);
}
.hy-login-card .hy-login-brand { text-align: center; margin-bottom: 28px; }
.hy-login-card .hy-login-brand .hy-logo-icon {
  width: 58px; height: 58px; font-size: 22px; border-radius: 16px;
  box-shadow: 0 8px 20px rgba(14, 159, 140, 0.3);
}
.hy-login-card .hy-login-brand h2 { font-size: 22px; margin-top: 16px; color: var(--text-main); letter-spacing: 1px; }
.hy-login-card .hy-login-brand p { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.hy-login-card .hy-form-row { margin-bottom: 18px; }
.hy-login-card .hy-form-row label { width: 100%; text-align: left; margin-bottom: 6px; display: block; color: var(--text-sub); font-size: 13px; }
.hy-login-card .hy-form-row .hy-input-wrap { position: relative; }
.hy-login-card .hy-form-row input[type=text], .hy-login-card .hy-form-row input[type=password] {
  width: 100%; min-width: 0; height: 44px; font-size: 14px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 8px;
}
.hy-login-card .hy-form-row .hy-input-wrap .hy-pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--text-muted); font-size: 14px; padding: 4px;
}
.hy-login-card .hy-login-error {
  display: none; background: #fdecec; border: 1px solid #f6caca; color: var(--danger);
  font-size: 13px; padding: 9px 14px; border-radius: 8px; margin-bottom: 14px;
}
.hy-login-card .hy-login-btn { width: 100%; margin-top: 6px; height: 46px; font-size: 16px; }
.hy-login-card .hy-login-foot { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.hy-login-card .hy-login-foot a { color: var(--primary); }

/* ---------- Toast / Loading ---------- */
.hy-toast {
  position: fixed; top: 96px; left: 50%; transform: translateX(-50%);
  background: rgba(24, 32, 42, 0.85); color: #fff; font-size: 14px;
  padding: 12px 26px; border-radius: 10px; z-index: 999; max-width: 72%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); backdrop-filter: blur(4px);
  animation: hy-toast-in .2s ease;
}
@keyframes hy-toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.hy-loading { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.55); z-index: 998; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(1px); }
.hy-loading-spinner {
  width: 42px; height: 42px; border: 4px solid var(--border-light); border-top-color: var(--primary);
  border-radius: 50%; animation: hy-spin .8s linear infinite;
}
@keyframes hy-spin { to { transform: rotate(360deg); } }

/* ---------- 页脚 ---------- */
.hy-footer {
  background: #fff; border-top: 1px solid var(--border-light); padding: 26px 0; text-align: center;
  color: var(--text-muted); font-size: 13px; line-height: 2;
}
.hy-footer .hy-footer-brand { color: var(--text-sub); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hy-header-inner { gap: 16px; padding: 0 16px; }
  .hy-home-body { flex-direction: column; }
  .hy-cat-panel { width: 100%; position: static; }
  .hy-cat-list { max-height: none; }
  .hy-detail-top { flex-direction: column; }
  .hy-detail-gallery, .hy-detail-main-img { width: 100%; height: auto; aspect-ratio: 1; }
  .hy-checkout { flex-direction: column; }
  .hy-checkout-right { width: 100%; position: static; }
  .hy-cart-layout { flex-direction: column; }
}
@media (max-width: 720px) {
  .hy-header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
  .hy-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .hy-nav { gap: 14px; font-size: 14px; }
  .hy-main { padding: 0 14px; }
  .hy-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hy-grid-toolbar { padding: 10px 12px; }
  .hy-login-card { width: 100%; padding: 30px 24px; }
  .hy-login-wrap { padding: 32px 14px; }
}
