/* 布娃娃 bwwshop - 浅色经典电商风 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #ff4d8d;
  --primary-dark: #e63678;
  --text: #333;
  --text-light: #999;
  --border: #e8e8e8;
  --bg: #f5f5f5;
  --price: #ff4d8d;
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: #fff; font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }

/* ---------- 导航 ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 56px; }
.nav-logo { font-size: 22px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-logo .logo-mark { width: 22px; height: 22px; display: block; }
.nav-cats { display: flex; gap: 4px; flex: 1; }
.nav-cats a { padding: 6px 12px; border-radius: 4px; color: #555; white-space: nowrap; }
.nav-cats a:hover, .nav-cats a.active { color: var(--primary); background: #ffeef5; font-weight: 500; }
.nav-search { display: flex; border: 2px solid var(--primary); border-radius: 20px; overflow: hidden; width: 260px; flex-shrink: 0; }
.nav-search input { border: none; padding: 6px 14px; flex: 1; min-width: 0; }
.nav-search button { border: none; background: var(--primary); color: #fff; padding: 6px 16px; }
.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cart { position: relative; display: flex; align-items: center; gap: 4px; color: #555; }
.nav-cart:hover { color: var(--primary); }
.nav-cart .badge { position: absolute; top: -8px; right: -12px; background: var(--primary); color: #fff; font-size: 11px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 8px; padding: 0 4px; }
.notice-bar { background: linear-gradient(90deg, #ffeef5, #ffdcec, #ffeef5); color: #d6336c; font-size: 13px; line-height: 1.6; padding: 7px 40px 7px 16px; text-align: center; position: relative; }
.notice-bar .notice-text { display: inline-block; max-width: 100%; word-break: break-word; font-weight: 500; }
.notice-bar .notice-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: none; background: none; font-size: 18px; color: #d6336c; cursor: pointer; line-height: 1; padding: 2px 6px; }
.nav-user { color: #555; }
.nav-user:hover { color: var(--primary); }
.nav-toggle { display: none; border: none; background: none; color: #555; cursor: pointer; padding: 4px 6px; flex-shrink: 0; line-height: 1; }

/* 移动端导航：紧凑两行 + 汉堡收缩菜单 */
@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 6px 12px; gap: 6px 10px; }
  .nav-logo { font-size: 18px; }
  .nav-right { order: 2; margin-left: auto; gap: 10px; }
  .nav-toggle { display: block; order: 3; font-size: 24px; }
  .nav-search { order: 4; width: 100%; }
  .nav-search input { padding: 6px 12px; }
  .nav-cats { order: 5; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; max-height: 0; overflow: hidden; padding: 0; transition: max-height .25s ease, padding .25s ease; }
  .nav-open .nav-cats { max-height: 60vh; overflow-y: auto; padding: 6px 0 4px; border-top: 1px solid var(--border); }
  .nav-cats a { padding: 11px 10px; border-radius: 6px; font-size: 15px; }
  .nav-cats #nav-user-box { width: 100%; }
  .nav-cart { font-size: 0; gap: 0; }
  .lang-select { max-width: 92px; }
}

/* ---------- 通用布局 ---------- */
.container { max-width: 1440px; margin: 0 auto; padding: 16px 24px; }
.page-main { min-height: 60vh; background: var(--bg); }

.btn { display: inline-block; border: none; border-radius: 6px; padding: 10px 22px; font-size: 15px; text-align: center; transition: opacity .15s; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-plain { background: #fff; border: 1px solid var(--border); color: #555; }
.btn-plain:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: #fff; border: 1px solid #ff4d4f; color: #ff4d4f; }

.price { color: var(--price); font-weight: 600; }
.price .yen { font-size: .75em; }

/* toast */
#toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast-item { background: rgba(0,0,0,.78); color: #fff; padding: 10px 22px; border-radius: 6px; font-size: 14px; animation: toastIn .2s; max-width: 80vw; }
.toast-item.err { background: rgba(220,38,38,.92); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* 空状态 */
.empty { text-align: center; padding: 80px 20px; color: var(--text-light); }
.empty .icon { font-size: 48px; margin-bottom: 12px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.pagination button { border: 1px solid var(--border); background: #fff; padding: 8px 16px; border-radius: 4px; }
.pagination button.active { border-color: var(--primary); color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 首页 ---------- */
.home-banner { background: linear-gradient(135deg, #ff7ab1, #ff4d8d); border-radius: 12px; color: #fff; padding: 36px 32px; margin-bottom: 20px; }
.home-banner h1 { font-size: 26px; margin-bottom: 8px; }
.home-banner p { opacity: .9; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.section-head h2 { font-size: 18px; }
.section-head a { color: var(--text-light); font-size: 13px; }
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 20px; }

/* 商品卡（严格按参考图：无边框、圆角通栏大图 4:5、单行标题） */
.gs-card { display: flex; flex-direction: column; }
.gs-media { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #f0f0f0; }
.gs-img { width: 100%; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 13px; }
.gs-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gs-card:hover .gs-img img { transform: scale(1.04); }
.gs-card.soldout .gs-img { opacity: .6; }
.gs-badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.96); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: #e63678; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.gs-badge.gs-off { color: #888; }
.gs-body { flex: 1; display: flex; flex-direction: column; padding: 0 2px; }
.gs-swatches { display: flex; align-items: center; gap: 5px; margin: 9px 1px 0; min-height: 10px; }
.gs-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: inline-block; }
.gs-dot-more { color: var(--text-light); font-size: 12px; margin-left: 2px; }
.gs-title { margin-top: 7px; font-size: 15px; line-height: 1.4; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-title:hover { color: var(--primary); }
.gs-meta { margin-top: 3px; color: var(--text-light); font-size: 13px; }
.gs-price-row { margin-top: 3px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gs-price { font-size: 16px; font-weight: 700; color: #111; }
.gs-price-row del { color: #9aa0a6; font-size: 13px; }
.gs-dis { color: #188038; font-size: 12px; font-style: normal; font-weight: 600; }
.gs-actions { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gs-cart-btn { border: 1px solid #dadce0; background: #fff; border-radius: 20px; padding: 7px 16px; font-size: 13px; color: #202124; white-space: nowrap; transition: border-color .15s, color .15s; }
.gs-cart-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.gs-cart-btn:disabled { opacity: .45; cursor: not-allowed; }
.gs-more { color: #5f6368; font-size: 13px; white-space: nowrap; }
.gs-more:hover { color: var(--primary); }

/* ---------- 移动端：参考图样式，铺满页面 ---------- */
@media (max-width: 768px) {
  .container, .nav-inner, .footer-inner { padding-left: 8px; padding-right: 8px; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 8px; }
  .section-head { margin: 18px 0 10px; }
  .gs-media { border-radius: 8px; }
  .gs-badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 11px; }
  .gs-title { font-size: 14px; }
  .gs-price { font-size: 15px; }
  .gs-actions { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; }
  .gs-cart-btn { width: 100%; text-align: center; padding: 8px 0; }
  .gs-more { align-self: flex-start; }
}

/* ---------- 分类页 ---------- */
.crumb { color: var(--text-light); font-size: 13px; margin-bottom: 12px; }
.crumb a:hover { color: var(--primary); }
.filter-bar { display: flex; gap: 8px; align-items: center; background: #fff; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar .fitem { color: #666; padding: 5px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.filter-bar .fitem.active { color: var(--primary); background: #ffeef5; font-weight: 500; }
.result-tip { color: var(--text-light); font-size: 13px; margin: 10px 2px; }

/* ---------- 详情页 ---------- */
.product-wrap { display: flex; gap: 28px; background: #fff; padding: 24px; border-radius: 12px; max-width: 1200px; margin: 0 auto; }
.product-gallery { width: 420px; flex-shrink: 0; }
.product-gallery .main-img { width: 100%; aspect-ratio: 1; background: #f0f0f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #ccc; overflow: hidden; }
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-thumbs .th { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #f0f0f0; }
.product-thumbs .th.active { border-color: var(--primary); }
.product-thumbs .th img { width: 100%; height: 100%; object-fit: cover; }
.product-info { flex: 1; min-width: 0; }
.product-title { font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
.product-price-row { background: #fff0f6; padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }
.product-price-row .price { font-size: 26px; }
.product-price-row .sub { color: var(--text-light); font-size: 12px; margin-left: 14px; }
.spec-group { margin-bottom: 14px; }
.spec-group .label { color: var(--text-light); margin-bottom: 8px; }
.spec-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-opts .opt { border: 1px solid var(--border); background: #fff; padding: 7px 18px; border-radius: 4px; font-size: 13px; }
.spec-opts .opt.active { border-color: var(--primary); color: var(--primary); background: #ffeef5; }
.spec-opts .opt:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.spec-opts .opt.has-img { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 5px; }
.spec-opts .opt.has-img img { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; background: #f5f5f5; }
.sku-table .sku-thumb { width: 22px; height: 22px; border-radius: 3px; object-fit: cover; vertical-align: -6px; margin-right: 6px; background: #f5f5f5; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.qty-ctl { display: flex; border: 1px solid var(--border); border-radius: 4px; }
.qty-ctl button { width: 32px; height: 34px; border: none; background: #fafafa; font-size: 16px; }
.qty-ctl input { width: 52px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.buy-row { display: flex; gap: 12px; margin-top: 20px; }
.buy-row .btn { flex: 1; padding: 13px; font-size: 16px; }
.product-desc { background: #fff; border-radius: 12px; margin-top: 16px; padding: 24px; }
.product-desc h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.product-desc .content { white-space: pre-wrap; line-height: 1.8; color: #555; }
@media (max-width: 768px) {
  .product-wrap { flex-direction: column; padding: 14px; }
  .product-gallery { width: 100%; }
}

/* ---------- 购物车 ---------- */
.cart-list { background: #fff; border-radius: 10px; border: 1px solid var(--border); max-width: 1100px; margin: 0 auto; }
.cart-head { display: flex; padding: 12px 16px; color: var(--text-light); font-size: 13px; border-bottom: 1px solid var(--border); }
.cart-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item .ck { margin-right: 12px; }
.cart-item .img { width: 72px; height: 72px; border-radius: 6px; background: #f0f0f0; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 11px; }
.cart-item .img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; margin: 0 14px; }
.cart-item .t { font-size: 14px; margin-bottom: 4px; }
.cart-item .spec { color: var(--text-light); font-size: 12px; margin-bottom: 6px; }
.cart-item .invalid { color: #ff4d4f; font-size: 12px; }
.cart-item .right { text-align: right; flex-shrink: 0; }
.cart-item .p { font-size: 16px; margin-bottom: 8px; }
.cart-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border); padding: 12px 16px; display: flex; align-items: center; gap: 16px; border-radius: 0 0 10px 10px; box-shadow: 0 -2px 12px rgba(0,0,0,.05); }
.cart-bar .total { flex: 1; }
.cart-bar .total .n { font-size: 20px; }
@media (max-width: 768px) {
  .cart-head { display: none; }
  .cart-item .right .price { display: block; }
}

/* ---------- 结算/表单 ---------- */
.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin: 0 auto 14px; max-width: 960px; }
.panel h3 { font-size: 15px; margin-bottom: 14px; }
.addr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.addr-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; cursor: pointer; position: relative; }
.addr-card.active { border-color: var(--primary); background: #ffeef5; }
.addr-card .r { font-weight: 600; margin-bottom: 4px; }
.addr-card .r .phone { font-weight: 400; color: var(--text-light); margin-left: 8px; font-size: 13px; }
.addr-card .d { color: #666; font-size: 13px; line-height: 1.5; }
.addr-card .tag { position: absolute; top: 8px; right: 8px; font-size: 11px; color: var(--primary); border: 1px solid var(--primary); border-radius: 3px; padding: 0 4px; }
.addr-card .ops { margin-top: 8px; display: flex; gap: 10px; font-size: 12px; }
.addr-card .ops a { color: var(--text-light); }
.addr-card .ops a:hover { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item label { display: block; color: #666; margin-bottom: 5px; font-size: 13px; }
.form-item input, .form-item textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; }
.form-item input:focus, .form-item textarea:focus { border-color: var(--primary); }
.checkout-items .ci { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.checkout-items .ci:last-child { border-bottom: none; }
.checkout-items .img { width: 52px; height: 52px; border-radius: 6px; background: #f0f0f0; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 10px; }
.checkout-items .img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-items .info { flex: 1; min-width: 0; }
.checkout-items .sum { flex-shrink: 0; text-align: right; }

/* ---------- 订单列表 ---------- */
.order-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.order-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.order-head .no { color: var(--text-light); }
.order-head .st { color: var(--primary); font-weight: 500; }
.order-body { padding: 4px 16px; }
.order-body .oi { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.order-body .img { width: 56px; height: 56px; border-radius: 6px; background: #f0f0f0; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 10px; }
.order-body .img img { width: 100%; height: 100%; object-fit: cover; }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.order-foot .acts { display: flex; gap: 8px; }
.status-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 4px; margin-bottom: 14px; overflow-x: auto; }
.status-tabs a { flex-shrink: 0; padding: 7px 14px; border-radius: 6px; color: #666; font-size: 13px; }
.status-tabs a.active { background: #ffeef5; color: var(--primary); font-weight: 500; }

/* ---------- 登录/注册 ---------- */
.auth-wrap { max-width: 380px; margin: 48px auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; }
.auth-wrap h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.auth-wrap .sub { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 24px; }
.auth-wrap .form-item { margin-bottom: 14px; }
.auth-wrap .btn-block { padding: 11px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-light); }
.auth-switch a { color: var(--primary); }

/* ---------- 个人中心 ---------- */
.account-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.account-tabs a { padding: 9px 20px; background: #fff; border: 1px solid var(--border); border-radius: 8px; color: #555; }
.account-tabs a.active { border-color: var(--primary); color: var(--primary); background: #ffeef5; font-weight: 500; }

/* 弹层 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; padding: 22px; }
.modal h3 { margin-bottom: 16px; }
.modal .close-x { float: right; border: none; background: none; font-size: 20px; color: #999; line-height: 1; }

/* ---------- 后台 ---------- */
body.admin-body { background: #f0f2f5; }
.admin-header { background: #001529; color: #fff; padding: 0 20px; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.admin-header .brand { font-size: 17px; font-weight: 600; }
.admin-header .right { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.admin-header .right button { background: none; border: 1px solid #434343; color: #ccc; border-radius: 4px; padding: 4px 12px; font-size: 12px; }
.admin-tabs { display: flex; gap: 2px; background: #fff; padding: 6px 12px 0; border-bottom: 1px solid var(--border); }
.admin-tabs a { padding: 10px 22px; color: #555; border-bottom: 2px solid transparent; }
.admin-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.stat-card .label { color: var(--text-light); font-size: 13px; }
.stat-card .val { font-size: 26px; font-weight: 600; margin-top: 6px; }
.stat-card .val.price { font-size: 22px; }
.admin-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table th { background: #fafafa; color: #666; font-weight: 500; white-space: nowrap; }
.admin-table .ops-cell { white-space: nowrap; }
.admin-table .ops-cell a, .admin-table .ops-cell button { margin-right: 8px; font-size: 12px; }
.tag-on, .tag-off, .tag-status { display: inline-block; font-size: 11px; border-radius: 3px; padding: 1px 7px; }
.tag-on { color: #52c41a; background: #f6ffed; border: 1px solid #b7eb8f; }
.tag-off { color: #999; background: #fafafa; border: 1px solid #d9d9d9; }
.tag-status { color: var(--primary); background: #ffeef5; border: 1px solid #ffb3d1; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.admin-toolbar input, .admin-toolbar select { border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; }
.img-upload-list { display: flex; gap: 10px; flex-wrap: wrap; }
.img-upload-item { width: 84px; }
.img-upload-item .box { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); position: relative; background: #f0f0f0; }
.img-upload-item.main .box { border-color: var(--primary); }
.img-upload-item .box img { width: 100%; height: 100%; object-fit: cover; }
.img-upload-item .main-tag { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,77,141,.85); color: #fff; font-size: 10px; text-align: center; padding: 1px 0; }
.img-upload-item .ops { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; }
.img-upload-item .ops a { color: var(--text-light); }
.img-upload-item .ops a:hover { color: var(--primary); }
.img-upload-add { width: 84px; height: 84px; border: 1px dashed #d9d9d9; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; cursor: pointer; font-size: 20px; background: #fafafa; }
.img-upload-add span { font-size: 11px; margin-top: 4px; }
.dims-editor .dim-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.dims-editor .dim-row input { border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; }
.dims-editor .dim-row .dim-name { width: 110px; }
.dims-editor .dim-row .dim-vals { flex: 1; }
.sku-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sku-table th, .sku-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.sku-table input { width: 90px; border: 1px solid var(--border); border-radius: 4px; padding: 5px 8px; }
.admin-login-wrap { max-width: 360px; margin: 80px auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; text-align: center; }
.admin-login-wrap input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin: 18px 0 14px; text-align: center; }

/* ---------- 成功页 ---------- */
.success-wrap { max-width: 420px; margin: 60px auto; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 44px 28px; }
.success-wrap .icon { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: #f6ffed; color: #52c41a; font-size: 32px; margin: 0 auto 18px; border: 1px solid #b7eb8f; }
.success-wrap h1 { font-size: 20px; margin-bottom: 10px; }
.success-wrap .ono { color: var(--text-light); font-size: 13px; margin-bottom: 24px; word-break: break-all; }
.success-wrap .btns { display: flex; gap: 12px; justify-content: center; }

/* ---------- 页脚 ---------- */
.footer { background: #fff; border-top: 1px solid var(--border); margin-top: 32px; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 0 24px; text-align: center; color: var(--text-light); font-size: 12px; line-height: 1.8; }

/* PayPal 支付方式 */
.pay-opt{display:flex;gap:8px;align-items:center;padding:10px 2px;cursor:pointer;font-size:14px}
.pay-opt input{accent-color:#ff4d8d;width:16px;height:16px}

/* ---------- 语言选择器 ---------- */
.lang-select {
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #444;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}
.lang-select:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 768px) {
  .lang-select { padding: 4px 2px; }
}

/* ---------- 首页抖音式商品流 ---------- */
.feed-main { background: #0d0d0f; }
.feed-outer { display: flex; justify-content: center; background: #0d0d0f; }
.feed-wrap { width: 100%; max-width: 520px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.feed-wrap::-webkit-scrollbar { display: none; }
.feed-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #1c1c22, #101014); overflow: hidden; }
.feed-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.feed-img { max-width: 100%; max-height: 80%; object-fit: contain; }
.feed-item.soldout .feed-img { filter: grayscale(1) opacity(.6); }
.feed-info { position: absolute; left: 0; right: 72px; bottom: 0; padding: 56px 16px 20px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; pointer-events: none; }
.feed-title { pointer-events: auto; display: block; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.feed-price { margin-top: 6px; font-size: 22px; font-weight: 800; color: #ff5c9e; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.feed-price del { margin-left: 8px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,.55); }
.feed-meta { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.65); }
.feed-colors { margin-top: 8px; font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.88); }
.fc-label { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 12px; }
.fc-vals { word-break: break-all; }
.feed-media { position: absolute; inset: 0; }
.feed-slider { width: 100%; height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feed-slider::-webkit-scrollbar { display: none; }
.feed-slide { flex: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; background: linear-gradient(160deg, #1c1c22, #101014); }
.feed-slide .feed-img { max-width: 100%; max-height: 78%; object-fit: contain; }
.feed-dots { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: all .2s; }
.feed-dot.on { background: #fff; transform: scale(1.25); }
.feed-actions { position: absolute; right: 10px; bottom: 26px; display: flex; flex-direction: column; gap: 20px; }
.feed-btn { background: none; border: none; padding: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.fb-icon { display: block; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.fb-icon svg { width: 24px; height: 24px; fill: #fff; display: block; }
.fb-txt { font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.feed-btn.like.on .fb-icon { background: rgba(255,45,85,.22); }
.feed-btn.like.on .fb-icon svg { fill: #ff2d55; }
.feed-btn.star.on .fb-icon { background: rgba(255,184,0,.22); }
.feed-btn.star.on .fb-icon svg { fill: #ffb800; }
.feed-btn.cart:active .fb-icon, .feed-btn.pop .fb-icon { animation: feedPop .35s ease; }
.feed-btn.dis { opacity: .4; cursor: default; }
@keyframes feedPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.feed-off { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 6px 18px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; letter-spacing: 2px; }
.feed-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 14px; }

@media (min-width: 769px) {
  .feed-outer { padding: 14px 0; }
  .feed-wrap { height: calc(100vh - 84px) !important; border-radius: 16px; }
  .feed-item { border-radius: 16px; }
}

/* ---------- 博客 ---------- */
.modal-lg { max-width: 860px; }
.blog-h1 { font-size: 22px; margin: 6px 2px 14px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0 0 8px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.post-cover { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 13px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body-mini { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body-mini h3 { font-size: 15px; line-height: 1.4; margin: 0; }
.post-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.55; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-date { font-size: 12px; color: #b0b0b0; }
.article-wrap { max-width: 780px; margin: 8px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px 26px; }
.article-wrap h1 { font-size: 24px; line-height: 1.35; margin: 0 0 10px; }
.article-meta { color: #b0b0b0; font-size: 13px; margin-bottom: 18px; }
.article-cover { margin: 0 0 18px; border-radius: 10px; overflow: hidden; }
.article-cover img { width: 100%; display: block; }
.post-body { font-size: 15px; line-height: 1.85; color: var(--text); word-break: break-word; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body h2 { font-size: 19px; margin: 26px 0 10px; }
.post-body h3 { font-size: 16px; margin: 20px 0 8px; }
.post-body p { margin: 0 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 12px; padding-left: 22px; }
.post-body blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--primary); background: #fdf2f7; color: var(--text-light); border-radius: 0 8px 8px 0; }
.post-body a { color: var(--primary); }
.article-back { max-width: 780px; margin: 18px auto 40px; }
.article-back a { color: var(--text-light); font-size: 14px; text-decoration: none; }
.article-back a:hover { color: var(--primary); }
