/* =============================================================================
   TGR 官网样式
   - 移动优先(广告流量几乎全是手机), 断点 640 / 960
   - 颜色只从 :root 取; 主色是品牌红 #D81319, 橙 #ED7620 只做次级强调(品牌规范)
   - 类名一律 tgw-*: 不用 ad- / banner / promo / sponsor 这些词, 广告拦截会整块隐藏
   ============================================================================= */

:root {
    --tgw-red: #D81319;
    --tgw-red-dark: #9E0C0E;
    --tgw-red-soft: #FDECEC;
    --tgw-orange: #ED7620;
    --tgw-orange-soft: #FFF2E6;
    --tgw-black: #141414;
    --tgw-ink: #2B2B2B;
    --tgw-text: #1F2329;
    --tgw-muted: #6B7280;
    --tgw-border: #E5E7EB;
    --tgw-bg: #F5F6F8;
    --tgw-card: #FFFFFF;
    --tgw-success: #12794F;
    --tgw-success-soft: #E6F4EC;
    --tgw-warning: #9A6700;
    --tgw-warning-soft: #FCF3DC;
    --tgw-danger: #B3261E;
    --tgw-danger-soft: #FCEAE8;
    --tgw-info: #1F5FA9;
    --tgw-info-soft: #E8F1FB;
    --tgw-radius: 10px;
    --tgw-radius-sm: 6px;
    --tgw-shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 4px 16px rgba(20, 20, 20, .06);
    --tgw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --tgw-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tgw-bg); color: var(--tgw-text); font: 15px/1.6 var(--tgw-font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tgw-red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; color: var(--tgw-black); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.tgw-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.tgw-narrow { max-width: 860px; }
.tgw-page { padding-top: 16px; padding-bottom: 40px; }
.tgw-center { text-align: center; justify-content: center; }
.tgw-muted { color: var(--tgw-muted); }
.tgw-small { font-size: 13px; }
.tgw-mono { font-family: var(--tgw-mono); }
.tgw-ok { color: var(--tgw-success); }
.tgw-hint { color: var(--tgw-muted); margin: 4px 0 0; }
.tgw-lead { font-size: 1.05rem; color: var(--tgw-ink); }
.tgw-empty { color: var(--tgw-muted); padding: 24px 0; }
.tgw-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tgw-skip { position: absolute; left: -9999px; }
.tgw-skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.tgw-h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.tgw-h3 { font-size: 1.05rem; }
.tgw-h4 { font-size: .95rem; font-weight: 600; display: block; margin-bottom: 6px; }

/* ---------- 按钮 ---------- */
.tgw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); background: #fff; color: var(--tgw-ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.tgw-btn:hover { text-decoration: none; border-color: #cfd3d8; background: #fafafa; }
.tgw-btn-primary { background: var(--tgw-red); border-color: var(--tgw-red); color: #fff; }
.tgw-btn-primary:hover { background: var(--tgw-red-dark); border-color: var(--tgw-red-dark); }
.tgw-btn-outline { border-color: var(--tgw-red); color: var(--tgw-red); }
.tgw-btn-outline:hover { background: var(--tgw-red-soft); }
.tgw-btn-danger { background: #fff; border-color: var(--tgw-danger); color: var(--tgw-danger); }
.tgw-btn-light { background: #fff; color: var(--tgw-red); border-color: #fff; }
.tgw-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.tgw-btn-link { border-color: transparent; background: transparent; color: var(--tgw-red); padding: 0 6px; }
.tgw-btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.tgw-btn-lg { min-height: 50px; font-size: 16px; }
.tgw-btn-block { display: flex; width: 100%; }
.tgw-btn-facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.tgw-btn-google { background: #fff; border-color: #dadce0; color: #3c4043; }
.tgw-btn[disabled] { opacity: .55; cursor: not-allowed; }
.tgw-linkbtn { border: 0; background: none; color: var(--tgw-muted); cursor: pointer; padding: 8px 12px; text-align: left; width: 100%; }
.tgw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tgw-grow { flex: 1; }

/* ---------- 顶栏 / 页头 ---------- */
.tgw-topbar { background: var(--tgw-black); color: #cfd3d8; font-size: 13px; }
.tgw-topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 12px; }
.tgw-topbar a { color: #e5e7eb; }
.tgw-topbar-links { display: flex; gap: 14px; white-space: nowrap; }
.tgw-topbar-note { display: none; }

.tgw-header { background: #fff; border-bottom: 1px solid var(--tgw-border); position: sticky; top: 0; z-index: 30; }
.tgw-header-inner { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "search search"; gap: 8px 12px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.tgw-logo { grid-area: logo; display: block; }
.tgw-logo img { height: 36px; width: auto; }
.tgw-search { grid-area: search; display: flex; border: 2px solid var(--tgw-red); border-radius: 999px; overflow: hidden; background: #fff; }
.tgw-search input { flex: 1; min-width: 0; border: 0; padding: 8px 14px; outline: none; }
.tgw-search button { border: 0; background: var(--tgw-red); color: #fff; padding: 0 16px; cursor: pointer; }
.tgw-search-page { margin: 16px 0; border-radius: var(--tgw-radius-sm); }
.tgw-search-page button { border-radius: 0; }
.tgw-header-actions { grid-area: actions; display: flex; justify-content: flex-end; gap: 4px; }
.tgw-icon-link { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--tgw-ink); padding: 2px 8px; font-size: 12px; }
.tgw-icon-link:hover { text-decoration: none; color: var(--tgw-red); }
.tgw-icon-label { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgw-badge-count { position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tgw-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

.tgw-catnav { border-top: 1px solid var(--tgw-border); }
.tgw-catnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tgw-catnav-inner::-webkit-scrollbar { display: none; }
.tgw-catnav a { flex: 0 0 auto; padding: 10px 12px; color: var(--tgw-ink); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; }
.tgw-catnav a:hover { text-decoration: none; color: var(--tgw-red); }
.tgw-catnav a[aria-current="page"] { color: var(--tgw-red); border-bottom-color: var(--tgw-red); }

/* ---------- 提示 ---------- */
.tgw-alert { margin: 12px 0; padding: 10px 14px; border-radius: var(--tgw-radius-sm); border: 1px solid transparent; }
.tgw-alert-success { background: var(--tgw-success-soft); color: var(--tgw-success); border-color: #bfe3cf; }
.tgw-alert-error { background: var(--tgw-danger-soft); color: var(--tgw-danger); border-color: #f3c6c2; }
.tgw-alert-warning { background: var(--tgw-warning-soft); color: var(--tgw-warning); border-color: #f0dcaa; }
.tgw-alert-info { background: var(--tgw-info-soft); color: var(--tgw-info); border-color: #c8dcf3; }

/* ---------- 首页 ---------- */
.tgw-hero { position: relative; background: var(--tgw-black); }
.tgw-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tgw-hero-track::-webkit-scrollbar { display: none; }
.tgw-hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; color: #fff; display: block; }
.tgw-hero-slide:hover { text-decoration: none; }
/* 手机上: 传了手机图(750×900)才用竖图; 没传就保持横幅比例不裁切, 文字放到图下方的深色条里 */
.tgw-hero-slide img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.tgw-hero-slide.tgw-hero-m img { aspect-ratio: 5 / 6; }
.tgw-hero-text { position: absolute; left: 0; right: 0; bottom: 24px; }
.tgw-hero-slide:not(.tgw-hero-m) .tgw-hero-text { position: static; padding-top: 12px; padding-bottom: 28px; background: var(--tgw-black); }
.tgw-hero-text h2 { color: #fff; font-size: 1.5rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.tgw-hero-text p { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.tgw-hero-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.tgw-hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .5); cursor: pointer; }
.tgw-hero-dots button[aria-current="true"] { width: 22px; background: #fff; }
.tgw-hero-plain { background: linear-gradient(135deg, var(--tgw-black), #3a0b0c 60%, var(--tgw-red-dark)); color: #fff; padding: 40px 0; }
.tgw-hero-plain h1 { color: #fff; font-size: 1.75rem; }

.tgw-promises { background: #fff; border-bottom: 1px solid var(--tgw-border); }
.tgw-promises-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.tgw-promise { display: flex; gap: 10px; align-items: center; }
.tgw-promise strong { display: block; font-size: 14px; }
.tgw-promise span { font-size: 12px; color: var(--tgw-muted); line-height: 1.4; }
.tgw-promise-icon { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--tgw-red-soft); position: relative; }
.tgw-promise-icon::after { content: ""; position: absolute; inset: 9px; background: var(--tgw-red); -webkit-mask: var(--tgw-icon) center / contain no-repeat; mask: var(--tgw-icon) center / contain no-repeat; }
.tgw-promise-genuine { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5z'/%3E%3C/svg%3E"); }
.tgw-promise-warranty { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm2 2v4h4V5zm8-2h8v8h-8zm2 2v4h4V5zM3 13h8v8H3zm2 2v4h4v-4zm8-2h3v3h-3zm5 0h3v3h-3zm-5 5h3v3h-3zm5 0h3v3h-3z'/%3E%3C/svg%3E"); }
.tgw-promise-install { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.tgw-promise-invoice { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6zm8 1.5V8h4.5zM8 12h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E"); }

.tgw-section { padding: 24px 0; }
.tgw-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.tgw-section-head h2 { margin: 0; }
.tgw-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tgw-cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); color: var(--tgw-ink); }
.tgw-cat-tile:hover { text-decoration: none; border-color: var(--tgw-red); }
.tgw-cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tgw-red-soft); color: var(--tgw-red); margin-bottom: 6px; }
.tgw-cat-name { font-weight: 700; }
.tgw-cat-count { font-size: 12px; color: var(--tgw-muted); }

.tgw-network { background: linear-gradient(135deg, var(--tgw-red-dark), var(--tgw-red)); color: #fff; }
.tgw-network h2 { color: #fff; }
.tgw-network-inner { display: grid; gap: 20px; }
.tgw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tgw-steps li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .1); border-radius: var(--tgw-radius-sm); padding: 10px 12px; }
.tgw-steps strong { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--tgw-red); display: flex; align-items: center; justify-content: center; }

.tgw-post-grid { display: grid; gap: 14px; }
.tgw-post { display: block; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); overflow: hidden; color: var(--tgw-ink); }
.tgw-post:hover { text-decoration: none; box-shadow: var(--tgw-shadow); }
.tgw-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tgw-post-body { padding: 12px 14px; }
.tgw-post-body time { font-size: 12px; color: var(--tgw-muted); }
.tgw-post-body h2, .tgw-post-body h3 { font-size: 1rem; margin: 4px 0 6px; }
.tgw-post-body p { font-size: 14px; color: var(--tgw-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 商品卡片 / 列表 ---------- */
.tgw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tgw-card { background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.tgw-card:hover { border-color: #f1b3b5; box-shadow: var(--tgw-shadow); }
.tgw-card-link { display: block; color: inherit; height: 100%; }
.tgw-card-link:hover { text-decoration: none; }
.tgw-card-img { position: relative; background: #fff; }
.tgw-card-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 8px; }
.tgw-card-tag { position: absolute; top: 8px; left: 8px; background: var(--tgw-red); color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; }
.tgw-card-body { padding: 8px 12px 12px; }
.tgw-card-name { font-size: 14px; font-weight: 500; line-height: 1.4; min-height: 2.8em; margin: 0 0 6px; color: var(--tgw-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tgw-card-meta { margin-top: 4px; font-size: 12px; color: var(--tgw-success); }
.tgw-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.tgw-price-now { color: var(--tgw-red); font-weight: 700; font-size: 16px; }
.tgw-price-old { color: var(--tgw-muted); font-size: 13px; }
.tgw-price-off { background: var(--tgw-red-soft); color: var(--tgw-red); border-radius: 4px; padding: 0 6px; font-size: 13px; font-weight: 700; }

.tgw-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--tgw-muted); }
.tgw-crumbs li + li::before { content: "›"; margin-right: 4px; }
.tgw-crumbs a { color: var(--tgw-muted); }
.tgw-list-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tgw-list-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tgw-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tgw-chips::-webkit-scrollbar { display: none; }
.tgw-chip { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--tgw-border); border-radius: 999px; background: #fff; color: var(--tgw-ink); font-size: 14px; }
.tgw-chip:hover { text-decoration: none; border-color: var(--tgw-red); }
.tgw-chip.is-active { background: var(--tgw-red); border-color: var(--tgw-red); color: #fff; }
.tgw-chip.is-static { cursor: default; }
.tgw-pdp-models .tgw-chips { flex-wrap: wrap; overflow: visible; }
.tgw-sort { display: flex; align-items: center; gap: 8px; }
.tgw-sort select { padding: 6px 10px; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); background: #fff; }
.tgw-empty-box { background: #fff; border: 1px dashed var(--tgw-border); border-radius: var(--tgw-radius); padding: 32px 16px; text-align: center; }
.tgw-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
.tgw-pager a, .tgw-pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); background: #fff; color: var(--tgw-ink); padding: 0 8px; }
.tgw-pager span[aria-current] { background: var(--tgw-red); border-color: var(--tgw-red); color: #fff; }

/* ---------- 商品详情 ---------- */
.tgw-pdp { display: grid; gap: 16px; background: #fff; border-radius: var(--tgw-radius); padding: 12px; border: 1px solid var(--tgw-border); }
.tgw-gallery-main { position: relative; border-radius: var(--tgw-radius-sm); overflow: hidden; background: #fff; }
.tgw-gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.tgw-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.tgw-gallery-thumbs button { flex: 0 0 64px; padding: 2px; border: 2px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); background: #fff; cursor: pointer; }
.tgw-gallery-thumbs button[aria-current="true"] { border-color: var(--tgw-red); }
.tgw-gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: contain; }
.tgw-pdp-title { font-size: 1.35rem; }
.tgw-pdp-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--tgw-muted); margin-bottom: 10px; }
.tgw-pdp-price { background: var(--tgw-red-soft); border-radius: var(--tgw-radius-sm); padding: 10px 14px; margin-bottom: 12px; }
.tgw-pdp-price .tgw-price-now { font-size: 1.6rem; }
.tgw-pdp-price p { margin: 2px 0 0; }
.tgw-pdp-summary { color: var(--tgw-ink); }
.tgw-checklist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.tgw-checklist li { position: relative; padding-left: 26px; }
.tgw-checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--tgw-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tgw-checklist-lg li { font-size: 1.02rem; }
.tgw-pdp-models { margin-bottom: 14px; }
.tgw-buy { display: grid; gap: 10px; margin: 14px 0; }
.tgw-buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tgw-buy-actions .tgw-btn { min-height: 48px; }
.tgw-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); overflow: hidden; background: #fff; width: max-content; }
.tgw-qty button { width: 40px; border: 0; background: #f3f4f6; cursor: pointer; font-size: 18px; }
.tgw-qty input { width: 56px; border: 0; text-align: center; -moz-appearance: textfield; }
.tgw-qty input::-webkit-outer-spin-button, .tgw-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tgw-qty-sm button { width: 32px; }
.tgw-qty-sm input { width: 44px; }
.tgw-assure { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; border-top: 1px solid var(--tgw-border); padding-top: 12px; }
.tgw-assure li { display: grid; font-size: 14px; }
.tgw-assure strong { color: var(--tgw-black); }
.tgw-assure span { color: var(--tgw-muted); font-size: 13px; }
.tgw-pdp-detail { display: grid; gap: 16px; margin-top: 16px; }
.tgw-panel { background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); padding: 16px; margin-bottom: 16px; }
.tgw-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.tgw-specs th, .tgw-specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--tgw-border); vertical-align: top; }
.tgw-specs th { width: 40%; color: var(--tgw-muted); font-weight: 500; background: #fafafa; }
.tgw-prose { line-height: 1.75; overflow-wrap: anywhere; }
.tgw-prose img { border-radius: var(--tgw-radius-sm); margin: 12px auto; }
.tgw-prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.tgw-prose table { width: 100%; border-collapse: collapse; }
.tgw-prose td, .tgw-prose th { border: 1px solid var(--tgw-border); padding: 6px 8px; }
.tgw-prose blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--tgw-red); background: #fafafa; }
.tgw-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--tgw-border); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); transform: translateY(110%); transition: transform .2s; }
.tgw-sticky-buy.is-visible { transform: none; }
.tgw-sticky-buy .tgw-btn { min-width: 150px; min-height: 46px; }

/* ---------- 落地页 ---------- */
.tgw-landing-hero { background: #fff; padding: 12px 0 20px; }
.tgw-landing-hero-inner { display: grid; gap: 16px; }
.tgw-landing-img { width: 100%; border-radius: var(--tgw-radius); object-fit: cover; }
.tgw-landing-copy h1 { font-size: 1.6rem; }
.tgw-landing-sub { font-size: 1.05rem; color: var(--tgw-ink); }
.tgw-landing-buy { display: grid; gap: 12px; }
.tgw-landing-row { display: flex; gap: 10px; align-items: stretch; }
.tgw-landing .tgw-sticky-buy { display: flex; }
.tgw-promises-compact { border-top: 1px solid var(--tgw-border); }

/* ---------- 选择卡片 / 表单 ---------- */
.tgw-options { display: grid; gap: 8px; border: 0; padding: 0; margin: 0 0 12px; }
.tgw-option { display: block; cursor: pointer; }
.tgw-option input { position: absolute; opacity: 0; pointer-events: none; }
.tgw-option-body { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); background: #fff; }
.tgw-option-body img { width: 48px; height: 48px; object-fit: contain; }
.tgw-option-name { flex: 1; font-weight: 500; }
.tgw-option-text { flex-direction: column; align-items: flex-start; gap: 2px; }
.tgw-option-text span { font-size: 13px; color: var(--tgw-muted); }
.tgw-option input:checked + .tgw-option-body { border-color: var(--tgw-red); background: var(--tgw-red-soft); }
.tgw-option input:focus-visible + .tgw-option-body { outline: 2px solid var(--tgw-info); outline-offset: 2px; }

.tgw-form { display: grid; gap: 12px; }
.tgw-form-grid { display: grid; gap: 12px; margin: 12px 0; }
.tgw-field { display: grid; gap: 4px; align-content: start; }
.tgw-field label { font-weight: 600; font-size: 14px; }
.tgw-field input, .tgw-field select, .tgw-field textarea, .tgw-inline input:not([type="checkbox"]):not([type="radio"]) { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: var(--tgw-radius-sm); background: #fff; }
.tgw-field input:focus, .tgw-field select:focus, .tgw-field textarea:focus { outline: none; border-color: var(--tgw-red); box-shadow: 0 0 0 3px rgba(216, 19, 25, .12); }
.tgw-field input[readonly], .tgw-field input[disabled] { background: #f3f4f6; color: var(--tgw-muted); }
.tgw-field-error { color: var(--tgw-danger); font-size: 13px; margin: 2px 0 0; }
.tgw-field:has(> .tgw-field-error) :is(input, select, textarea) { border-color: var(--tgw-danger); background: var(--tgw-danger-soft); }
.tgw-req { color: var(--tgw-red); }
.tgw-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.tgw-check input { margin-top: 4px; accent-color: var(--tgw-red); width: 16px; height: 16px; flex: 0 0 16px; }
.tgw-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tgw-inline input:not([type="checkbox"]) { flex: 1; min-width: 140px; }
/* 等分成一排: 手机上三个选项也不折行(字长的选项自己在格子里换行) */
.tgw-segment { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 100%; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); overflow: hidden; margin-bottom: 8px; }
.tgw-segment label { cursor: pointer; display: flex; }
.tgw-segment label + label { border-left: 1px solid var(--tgw-border); }
.tgw-segment input { position: absolute; opacity: 0; }
.tgw-segment span { display: flex; align-items: center; justify-content: center; width: 100%; padding: 8px 12px; background: #fff; font-size: 14px; text-align: center; line-height: 1.3; }
.tgw-segment input:checked + span { background: var(--tgw-red); color: #fff; }
.tgw-segment input:focus-visible + span { outline: 2px solid var(--tgw-info); }
.tgw-step { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--tgw-red); color: #fff; font-size: 14px; align-items: center; justify-content: center; }

.tgw-desc { display: grid; gap: 6px; margin: 0 0 12px; }
.tgw-desc > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px; }
.tgw-desc dt { color: var(--tgw-muted); font-size: 14px; }
.tgw-desc dd { margin: 0; overflow-wrap: anywhere; }
.tgw-desc-stack > div { grid-template-columns: minmax(0, 1fr); gap: 0; }

/* ---------- 购物车 / 结算 ---------- */
.tgw-cart, .tgw-checkout { display: grid; gap: 16px; }
.tgw-cart-lines { background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); }
.tgw-cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info remove" "img qty amount"; gap: 6px 12px; padding: 12px; border-bottom: 1px solid var(--tgw-border); align-items: center; }
.tgw-cart-img { grid-area: img; }
.tgw-cart-img img { width: 64px; height: 64px; object-fit: contain; }
.tgw-cart-info { grid-area: info; display: grid; }
.tgw-cart-name { color: var(--tgw-ink); font-weight: 500; }
.tgw-cart-line .tgw-qty { grid-area: qty; }
.tgw-cart-amount { grid-area: amount; text-align: right; }
.tgw-cart-remove { grid-area: remove; justify-self: end; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--tgw-muted); cursor: pointer; }
.tgw-cart-tools { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.tgw-summary { background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); padding: 16px; align-self: start; }
.tgw-summary dl, .tgw-summary-dl { margin: 0 0 12px; display: grid; gap: 6px; }
.tgw-summary dl > div, .tgw-summary-dl > div { display: flex; justify-content: space-between; gap: 12px; }
.tgw-summary dd, .tgw-summary-dl dd { margin: 0; font-weight: 600; }
.tgw-summary-total { border-top: 1px solid var(--tgw-border); padding-top: 8px; font-size: 1.1rem; }
.tgw-summary-total dd { color: var(--tgw-red); }
.tgw-summary .tgw-btn-block { margin: 12px 0 8px; }
.tgw-summary-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tgw-summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.tgw-summary-lines em { color: var(--tgw-muted); font-style: normal; white-space: nowrap; }

.tgw-success { background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); padding: 24px 16px; text-align: center; margin-bottom: 16px; }
.tgw-success-icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--tgw-success); color: #fff; font-size: 30px; line-height: 56px; }
.tgw-success-amount strong { color: var(--tgw-red); font-size: 1.25rem; }
.tgw-transfer-grid { display: grid; gap: 16px; align-items: start; }
.tgw-qr { margin: 0; text-align: center; }
.tgw-qr img { width: 240px; height: 240px; margin: 0 auto; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); }
.tgw-qr figcaption { font-size: 13px; color: var(--tgw-muted); margin-top: 6px; }
.tgw-proof { border-top: 1px dashed var(--tgw-border); margin-top: 12px; padding-top: 12px; }
[data-copy] { cursor: copy; }

/* ---------- 登录 / 注册 ---------- */
.tgw-auth { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); padding: 24px 20px; }
.tgw-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--tgw-border); margin-bottom: 16px; }
.tgw-tabs a { text-align: center; padding: 10px; color: var(--tgw-muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tgw-tabs a:hover { text-decoration: none; }
.tgw-tabs a[aria-selected="true"] { color: var(--tgw-red); border-bottom-color: var(--tgw-red); }
.tgw-divider { display: flex; align-items: center; gap: 10px; color: var(--tgw-muted); font-size: 13px; margin: 16px 0; }
.tgw-divider::before, .tgw-divider::after { content: ""; flex: 1; height: 1px; background: var(--tgw-border); }
.tgw-social { display: grid; gap: 8px; }
.tgw-auth-switch { margin: 16px 0 0; font-size: 14px; }

/* ---------- 账户 ---------- */
.tgw-account { display: grid; gap: 16px; }
.tgw-account-nav { display: flex; gap: 4px; overflow-x: auto; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); padding: 4px; scrollbar-width: none; }
.tgw-account-nav a { flex: 0 0 auto; padding: 8px 12px; border-radius: var(--tgw-radius-sm); color: var(--tgw-ink); font-size: 14px; }
.tgw-account-nav a:hover { text-decoration: none; background: #f3f4f6; }
.tgw-account-nav a[aria-current="page"] { background: var(--tgw-red-soft); color: var(--tgw-red); font-weight: 600; }
.tgw-account-nav form { flex: 0 0 auto; }
/* 窄屏一行放不下时(site.js 按滚动位置加类), 还有项的那一边渐隐, 提示可以左右滑 */
.tgw-account-nav.is-more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.tgw-account-nav.is-more-start { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.tgw-account-nav.is-more-start.is-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tgw-stage { justify-self: end; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--tgw-info-soft); color: var(--tgw-info); }
.tgw-stage-awaiting_payment { background: var(--tgw-warning-soft); color: var(--tgw-warning); }
.tgw-stage-confirming { background: var(--tgw-orange-soft); color: #a3500f; }
.tgw-stage-completed { background: var(--tgw-success-soft); color: var(--tgw-success); }
.tgw-stage-cancelled, .tgw-stage-refunded { background: #f3f4f6; color: var(--tgw-muted); }
/* 我的订单: 状态标签 + 订单卡片(2026-10-05)。右栏 min-width: 0, 否则一行标签把窄屏页面撑出横向滚动 */
.tgw-account-main { min-width: 0; }
.tgw-otabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); padding: 0 8px; margin-bottom: 12px; }
.tgw-otabs::-webkit-scrollbar { display: none; }
.tgw-otabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 12px 10px; border-bottom: 2px solid transparent; color: var(--tgw-ink); font-size: 14px; white-space: nowrap; }
.tgw-otabs a:hover { text-decoration: none; color: var(--tgw-red); }
.tgw-otabs a[aria-current="page"] { border-bottom-color: var(--tgw-red); color: var(--tgw-red); font-weight: 700; }
.tgw-otabs-n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #f3f4f6; color: var(--tgw-muted); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.tgw-otabs a[aria-current="page"] .tgw-otabs-n { background: var(--tgw-red-soft); color: var(--tgw-red); }
.tgw-ocards { display: grid; gap: 12px; margin-bottom: 16px; }
.tgw-ocard { background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); overflow: hidden; }
.tgw-ocard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: #fafafa; border-bottom: 1px solid var(--tgw-border); }
.tgw-ocard-head .tgw-stage { flex: 0 0 auto; white-space: nowrap; }
.tgw-ocard-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.tgw-ocard-no { font-family: var(--tgw-mono); font-weight: 700; color: var(--tgw-ink); }
.tgw-ocard-body { display: block; padding: 2px 16px; color: var(--tgw-ink); }
.tgw-ocard-body:hover { text-decoration: none; }
.tgw-ocard-body:hover .tgw-oline-name { color: var(--tgw-red); }
.tgw-oline { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.tgw-oline + .tgw-oline { border-top: 1px dashed var(--tgw-border); }
.tgw-oline img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); background: #fff; }
.tgw-oline-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tgw-oline-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; }
.tgw-oline-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tgw-ocard-more { margin: 0 0 8px 76px; font-size: 13px; color: var(--tgw-muted); }
.tgw-ocard-hint { margin: 4px 16px 0; padding: 8px 12px; border-radius: var(--tgw-radius-sm); background: var(--tgw-info-soft); color: var(--tgw-info); font-size: 13px; overflow-wrap: anywhere; }
.tgw-ocard-hint-awaiting_payment { background: var(--tgw-warning-soft); color: var(--tgw-warning); }
.tgw-ocard-hint-confirming { background: var(--tgw-orange-soft); color: #a3500f; }
.tgw-ocard-foot { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; margin-top: 12px; border-top: 1px solid var(--tgw-border); }
.tgw-ocard-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; font-size: 14px; }
.tgw-ocard-sum strong { color: var(--tgw-red); font-size: 1.1rem; }
.tgw-ocard-actions { display: flex; gap: 8px; }
.tgw-ocard-actions .tgw-btn { flex: 1 1 0; min-height: 38px; padding: 0 14px; }
.tgw-oempty { text-align: center; padding: 40px 16px; }
.tgw-oempty svg { color: #d1d5db; }
.tgw-oempty p { margin: 8px 0 16px; color: var(--tgw-muted); }
.tgw-otabs.is-more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.tgw-otabs.is-more-start { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.tgw-otabs.is-more-start.is-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* ---------- 会员中心(2026-10-05): 线条图标、头像、页头、概览、订单详情、保修卡片、地址 / 开票卡片、可折叠表单 ---------- */
.tgw-ico { display: inline-flex; align-items: center; gap: 8px; }
.tgw-ico::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--tgw-icon) center / contain no-repeat; mask: var(--tgw-icon) center / contain no-repeat; }
.tgw-i-grid { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.tgw-i-bag { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.tgw-i-shield { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.tgw-i-user { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.tgw-i-pin { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.tgw-i-file { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8'/%3E%3C/svg%3E"); }
.tgw-i-logout { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
.tgw-i-card { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.tgw-i-box { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.tgw-i-truck { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h14v12H1zM15 9h4l3 3v4h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2'/%3E%3Ccircle cx='18.5' cy='18.5' r='2'/%3E%3C/svg%3E"); }
.tgw-i-check { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.tgw-i-plus { --tgw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.tgw-avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--tgw-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; line-height: 1; }
.tgw-avatar-lg { width: 60px; height: 60px; font-size: 24px; }
/* 窄屏导航是一行横滑的标签: 不要头像和图标 */
.tgw-account-user { display: none; }
.tgw-account-nav .tgw-ico::before { display: none; }
.tgw-account-title { font-size: 1.35rem; margin: 0 0 12px; overflow-wrap: anywhere; }
.tgw-account-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.tgw-account-head .tgw-account-title { margin: 0; }
.tgw-account-lead { margin: -4px 0 12px; }
.tgw-account-main .tgw-alert p { margin: 0; }
.tgw-account-main .tgw-alert p + p { margin-top: 4px; }
.tgw-back { display: inline-block; margin-bottom: 4px; font-size: 14px; color: var(--tgw-muted); }
.tgw-back:hover { color: var(--tgw-red); text-decoration: none; }
/* 两个类叠写: 基础 .tgw-tag 在文件更后面, 同优先级会盖掉颜色(复核修正) */
.tgw-tag.tgw-tag-red { background: var(--tgw-red-soft); color: var(--tgw-red); }
.tgw-tag.tgw-tag-ok { background: var(--tgw-success-soft); color: var(--tgw-success); }
/* 概览 */
.tgw-welcome { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.tgw-welcome-text { flex: 1 1 140px; min-width: 0; }
.tgw-welcome-text h1 { font-size: 1.25rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.tgw-welcome-text p { margin: 0; overflow-wrap: anywhere; }
.tgw-ostatus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tgw-ostatus a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border-radius: var(--tgw-radius-sm); color: var(--tgw-ink); font-size: 13px; line-height: 1.3; text-align: center; }
.tgw-ostatus a:hover { text-decoration: none; background: #fafafa; color: var(--tgw-red); }
.tgw-ostatus-ico { position: relative; color: var(--tgw-red); }
.tgw-ostatus-ico::before { width: 28px; height: 28px; }
.tgw-ostatus-n { position: absolute; top: -7px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: var(--tgw-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.tgw-dash-orders > h2 { margin: 4px 0 10px; }
.tgw-quick { display: grid; gap: 12px; }
.tgw-quick-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); color: var(--tgw-ink); transition: border-color .15s, box-shadow .15s; }
.tgw-quick-item:hover { text-decoration: none; border-color: #f3c6c2; box-shadow: var(--tgw-shadow); }
.tgw-quick-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.tgw-quick-item > span:last-child span { font-size: 13px; color: var(--tgw-muted); }
.tgw-quick-ico { flex: 0 0 40px; height: 40px; justify-content: center; border-radius: 50%; background: var(--tgw-red-soft); color: var(--tgw-red); }
.tgw-quick-ico::before { width: 20px; height: 20px; }
/* 订单详情 */
.tgw-order-time { margin: 0 0 14px; }
.tgw-oline > a { display: block; line-height: 0; }
a.tgw-oline-name { color: var(--tgw-ink); }
a.tgw-oline-name:hover { color: var(--tgw-red); text-decoration: none; }
.tgw-order-sum { max-width: 340px; margin: 8px 0 0 auto; padding-top: 10px; border-top: 1px solid var(--tgw-border); }
.tgw-two .tgw-desc > div { grid-template-columns: 112px minmax(0, 1fr); }
.tgw-help { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tgw-help p { margin: 2px 0 0; }
.tgw-help-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* 保修卡片 */
.tgw-wcards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.tgw-wcard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); }
.tgw-wcard-img img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius-sm); background: #fff; }
.tgw-wcard-main { display: grid; gap: 8px; align-content: start; min-width: 0; }
.tgw-wcard-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 12px; }
.tgw-wcard-top .tgw-warranty-name { flex: 1 1 160px; min-width: 0; }
.tgw-wcard-meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 16px; }
.tgw-wcard-meta dt { font-size: 12px; color: var(--tgw-muted); }
.tgw-wcard-meta dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.tgw-wbar-row { display: flex; align-items: center; gap: 10px; }
.tgw-wbar { flex: 1 1 auto; max-width: 240px; height: 6px; border-radius: 999px; background: #eef0f2; overflow: hidden; }
.tgw-wbar span { display: block; height: 100%; border-radius: inherit; background: var(--tgw-success); }
.tgw-wcard-tip { margin: 0; }
/* 地址 / 开票卡片 */
.tgw-acards { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.tgw-acard { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); }
.tgw-acard.is-default { border-color: #f3c6c2; }
.tgw-acard.is-editing { border-color: var(--tgw-red); box-shadow: 0 0 0 3px rgba(216, 19, 25, .1); }
.tgw-acard-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; overflow-wrap: anywhere; }
.tgw-acard-top .tgw-tag { margin-left: 0; }
.tgw-acard-text { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.tgw-acard-meta { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.tgw-acard-meta > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.tgw-acard-meta dt { color: var(--tgw-muted); }
.tgw-acard-meta dd { margin: 0; overflow-wrap: anywhere; }
.tgw-acard-actions { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--tgw-border); }
/* 「添加新地址 / 开票信息」: 收起时是一条虚线按钮, 展开后成为表单的标题栏 */
.tgw-formbox { margin-bottom: 16px; }
.tgw-formbox > summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border: 1px dashed #cfd3d8; border-radius: var(--tgw-radius); background: #fff; color: var(--tgw-red); font-weight: 600; cursor: pointer; }
.tgw-formbox > summary::-webkit-details-marker { display: none; }
.tgw-formbox > summary:hover { border-color: var(--tgw-red); background: var(--tgw-red-soft); }
.tgw-formbox[open] > summary { justify-content: flex-start; border: 1px solid var(--tgw-border); border-bottom: 0; border-radius: var(--tgw-radius) var(--tgw-radius) 0 0; background: #fff; color: var(--tgw-ink); font-size: 1.05rem; }
.tgw-formbox[open] > summary .tgw-ico::before { display: none; }
.tgw-formbox > .tgw-panel { margin-bottom: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.tgw-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tgw-form-actions .tgw-btn { min-width: 120px; }
.tgw-linked { list-style: none; margin: 0; padding: 0; }
.tgw-linked li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tgw-border); }
.tgw-linked li:first-child { border-top: 0; }
/* 登录 / 注册: 桌面左侧品牌栏 */
.tgw-auth-aside { display: none; }
.tgw-progress { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.tgw-progress li { position: relative; text-align: center; font-size: 12px; color: var(--tgw-muted); padding-top: 30px; }
.tgw-progress li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #e5e7eb; color: #fff; line-height: 24px; font-weight: 700; z-index: 1; }
.tgw-progress li + li::after { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: #e5e7eb; }
.tgw-progress li.is-done { color: var(--tgw-ink); }
.tgw-progress li.is-done::before, .tgw-progress li.is-done::after { background: var(--tgw-red); }
.tgw-two { display: grid; gap: 16px; }
.tgw-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #f3f4f6; color: var(--tgw-ink); margin-left: 6px; }
.tgw-tag-flagship { background: var(--tgw-red); color: #fff; }
.tgw-tag-authorized { background: var(--tgw-orange-soft); color: #a3500f; }
.tgw-cancel { border-color: #f3c6c2; }
.tgw-link-list { margin: 0; padding-left: 18px; }
/* 保修卡片: 名称和状态胶囊一行, 放不下时胶囊换到下一行(不挤名称) */
.tgw-warranty-name { font-weight: 600; color: var(--tgw-ink); overflow-wrap: anywhere; }
.tgw-wstate { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: #f3f4f6; color: var(--tgw-muted); }
.tgw-wstate-active { background: var(--tgw-success-soft); color: var(--tgw-success); }
.tgw-wstate-unavailable, .tgw-wstate-contact { background: var(--tgw-warning-soft); color: var(--tgw-warning); }
.tgw-wstate-replaced { background: var(--tgw-info-soft); color: var(--tgw-info); }

/* ---------- 门店 / 文章 / 页面 ---------- */
.tgw-store-filter { margin: 8px 0 16px; }
.tgw-store-grid { display: grid; gap: 12px; margin-bottom: 20px; }
.tgw-store { background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); padding: 14px 16px; }
.tgw-store-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tgw-store-head h2 { font-size: 1.02rem; margin-bottom: 4px; }
.tgw-store-addr { margin-bottom: 4px; }
.tgw-store-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tgw-callout { border-left: 4px solid var(--tgw-red); }
.tgw-article h1 { font-size: 1.6rem; }
.tgw-article-cover { width: 100%; border-radius: var(--tgw-radius); margin: 12px 0; }
.tgw-howto { counter-reset: howto; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.tgw-howto li { position: relative; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); padding: 14px 16px 14px 60px; }
.tgw-howto li::before { counter-increment: howto; content: counter(howto); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--tgw-red); color: #fff; font-weight: 700; text-align: center; line-height: 30px; }
.tgw-howto h2 { font-size: 1rem; margin-bottom: 4px; }
.tgw-howto p { margin: 0; color: var(--tgw-ink); }
.tgw-error { padding: 40px 0; }
.tgw-error-code { font-size: 4rem; font-weight: 800; color: var(--tgw-red); line-height: 1; margin-bottom: 8px; }
.tgw-bare-logo { padding: 24px 16px 0; }

/* ---------- 页脚 ---------- */
.tgw-footer { background: var(--tgw-black); color: #b9bec6; margin-top: 24px; font-size: 14px; }
.tgw-footer-grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 24px; }
.tgw-footer-brand img { height: 36px; width: auto; margin-bottom: 12px; }
.tgw-footer-title { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.tgw-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tgw-footer a { color: #e5e7eb; }
.tgw-footer-badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.tgw-footer-badges li::before { content: "✓ "; color: var(--tgw-orange); }
.tgw-footer-lang { margin-top: 14px; display: flex; gap: 8px; }
.tgw-footer-lang a[aria-current] { font-weight: 700; color: #fff; }
.tgw-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); font-size: 13px; }
.tgw-zalo-float { position: fixed; right: 16px; bottom: 84px; z-index: 35; width: 52px; height: 52px; border-radius: 50%; background: #0068FF; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 104, 255, .35); }
.tgw-zalo-float:hover { text-decoration: none; }

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
    h1 { font-size: 1.75rem; }
    .tgw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .tgw-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tgw-promises-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tgw-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tgw-hero-slide img, .tgw-hero-slide.tgw-hero-m img { aspect-ratio: 16 / 6; }
    .tgw-hero-text, .tgw-hero-slide:not(.tgw-hero-m) .tgw-hero-text { position: absolute; bottom: 48px; padding-top: 0; padding-bottom: 0; background: none; }
    .tgw-hero-text h2 { font-size: 2.2rem; max-width: 60%; }
    .tgw-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tgw-field-wide { grid-column: 1 / -1; }
    .tgw-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tgw-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tgw-transfer-grid { grid-template-columns: 260px minmax(0, 1fr); }
    .tgw-list-tools { flex-direction: row; justify-content: space-between; align-items: center; }
    .tgw-cart-line { grid-template-columns: 80px minmax(0, 1fr) auto 120px 32px; grid-template-areas: "img info qty amount remove"; }
    .tgw-cart-img img { width: 80px; height: 80px; }
    .tgw-ocard-foot { flex-direction: row; justify-content: space-between; align-items: center; }
    .tgw-ocard-sum { flex-direction: column; align-items: flex-start; gap: 2px; }
    .tgw-ocard-actions .tgw-btn { flex: 0 0 auto; }
    .tgw-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tgw-acards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tgw-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
    .tgw-topbar-note { display: inline; }
    .tgw-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions"; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
    .tgw-logo img { height: 40px; }
    .tgw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tgw-cat-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .tgw-network-inner { grid-template-columns: 1.2fr 1fr; align-items: center; }
    .tgw-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 24px; }
    .tgw-pdp-detail { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
    .tgw-sticky-buy:not(.is-visible) { display: none; }
    .tgw-landing .tgw-sticky-buy { display: none; }
    /* 右栏(标题 + 型号列表 + 下单)常常比图高: 图顶对齐并吸在头部下面, 不在中间悬着留一大块空白 */
    .tgw-landing-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
    .tgw-landing-hero-inner > .tgw-landing-img { position: sticky; top: 140px; }
    .tgw-landing-copy h1 { font-size: 2.1rem; }
    .tgw-cart { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
    .tgw-checkout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
    .tgw-checkout-side { position: sticky; top: 140px; }
    .tgw-account { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
    .tgw-account-nav { flex-direction: column; overflow: visible; position: sticky; top: 140px; gap: 2px; padding: 8px; }
    .tgw-account-nav a { padding: 10px 12px; }
    .tgw-account-nav .tgw-ico::before { display: block; }
    .tgw-account-user { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--tgw-border); }
    .tgw-account-user div { display: grid; min-width: 0; }
    .tgw-account-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tgw-account-user div span { font-size: 13px; color: var(--tgw-muted); }
    .tgw-account-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--tgw-border); }
    .tgw-account-logout .tgw-linkbtn { padding: 10px 12px; border-radius: var(--tgw-radius-sm); }
    .tgw-account-logout .tgw-linkbtn:hover { background: #f3f4f6; color: var(--tgw-ink); }
    .tgw-auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) 460px; max-width: 1000px; margin: 8px auto 0; background: #fff; border: 1px solid var(--tgw-border); border-radius: var(--tgw-radius); overflow: hidden; box-shadow: var(--tgw-shadow); }
    .tgw-auth-shell .tgw-auth { max-width: none; border: 0; border-radius: 0; padding: 32px; }
    .tgw-auth-aside { display: block; padding: 44px 40px; background: linear-gradient(150deg, var(--tgw-red) 0%, var(--tgw-red-dark) 100%); color: #fff; }
    .tgw-auth-aside-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; opacity: .85; }
    .tgw-auth-aside h2 { margin: 0 0 10px; font-size: 1.7rem; line-height: 1.3; color: #fff; }
    .tgw-auth-aside > h2 + p { margin: 0 0 32px; opacity: .9; }
    .tgw-auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
    .tgw-auth-aside .tgw-promise strong { color: #fff; font-size: 15px; }
    .tgw-auth-aside .tgw-promise span { color: rgba(255, 255, 255, .82); font-size: 13px; }
    .tgw-auth-aside .tgw-promise-icon { flex-basis: 40px; height: 40px; background: rgba(255, 255, 255, .16); }
    .tgw-auth-aside .tgw-promise-icon::after { background: #fff; }
    .tgw-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .tgw-zalo-float { bottom: 24px; }
}
