* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f6f4f0; color: #2f2a26; padding: 0 40px; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 600; }
.wt-muted { color: #8b8177; font-size: 13px; }

/* ---------- 站头 ---------- */
.wt-header { background: #fff; border-bottom: 1px solid #eae4dc; }
.wt-head-top { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.wt-logo { display: flex; align-items: baseline; gap: 10px; min-width: 210px; }
.wt-logo b { font-size: 24px; letter-spacing: 2px; color: #7a4a24; }
.wt-logo span { font-size: 12px; color: #9a8c7c; letter-spacing: 1px; }
.wt-search { flex: 1; display: flex; max-width: 520px; border: 1px solid #d9cfc2; border-radius: 4px; overflow: hidden; background: #fff; }
.wt-search input { flex: 1; border: none; outline: none; padding: 9px 12px; font-size: 14px; }
.wt-search button { border: none; background: #7a4a24; color: #fff; padding: 0 22px; font-size: 14px; cursor: pointer; }
.wt-hotline { margin-left: auto; text-align: right; font-size: 12px; color: #9a8c7c; }
.wt-hotline b { display: block; font-size: 17px; color: #7a4a24; letter-spacing: .5px; }
.wt-mainnav { display: flex; gap: 30px; padding: 0 0 12px; font-size: 14px; color: #6b6156; flex-wrap: wrap; }
.wt-mainnav a { padding-bottom: 4px; border-bottom: 2px solid transparent; }
.wt-mainnav a.active, .wt-mainnav a:hover { color: #7a4a24; border-bottom-color: #7a4a24; }

/* ---------- 首页 ---------- */
.wt-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 20px 0 12px; }
.wt-hero h1 { font-size: 22px; letter-spacing: 1px; margin-bottom: 6px; color: #3a3128; }
.wt-hero p { font-size: 13px; line-height: 1.6; color: #7d7264; max-width: 760px; }
.wt-hero-stat { display: flex; gap: 34px; }
.wt-hero-stat div { text-align: center; }
.wt-hero-stat b { display: block; font-size: 24px; color: #7a4a24; }
.wt-hero-stat span { font-size: 12px; color: #9a8c7c; }

.wt-chips { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0 4px; }
.wt-chips a { background: #fff; border: 1px solid #e6ded3; color: #6b6156; font-size: 13px; padding: 7px 16px; border-radius: 20px; }
.wt-chips a.on, .wt-chips a:hover { background: #7a4a24; border-color: #7a4a24; color: #fff; }

.wt-floor { padding: 10px 0 18px; }
.wt-floor-head { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; }
.wt-floor-head h2 { font-size: 18px; color: #3a3128; }
.wt-floor-head span { font-size: 12px; color: #9a8c7c; }
.wt-floor-head a { margin-left: auto; font-size: 12px; color: #7a4a24; }

/* ---------- 商品网格 ---------- */
.wt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wt-card { background: #fff; border: 1px solid #eee7de; border-radius: 6px; overflow: hidden; transition: box-shadow .2s; }
.wt-card:hover { box-shadow: 0 4px 16px rgba(90, 62, 30, .10); }
.wt-thumb { width: 100%; height: 190px; object-fit: contain; background: #fff; padding: 8px; }
.wt-info { padding: 6px 10px 12px; }
.wt-name { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #3a3128; }
.wt-price { color: #b4451f; font-weight: 700; margin: 4px 0 6px; font-size: 16px; }
.wt-buybtn { display: inline-block; font-size: 12px; color: #7a4a24; border: 1px solid #d9c3ab; border-radius: 14px; padding: 3px 12px; }
.wt-grid-page { padding-top: 4px; }
.wt-page-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 0 4px; }
.wt-page-head h1 { font-size: 20px; color: #3a3128; }
.wt-page-head span { font-size: 12px; color: #9a8c7c; }
.wt-empty { text-align: center; padding: 60px 0; color: #9a8c7c; }

/* ---------- 详情 ---------- */
.wt-crumb { font-size: 12px; color: #9a8c7c; padding: 14px 0 8px; }
.wt-crumb a { color: #7a4a24; }
.wt-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; background: #fff; border: 1px solid #eee7de; border-radius: 6px; padding: 22px; }
.wt-gallery { position: relative; }
.wt-swiper { position: relative; overflow: hidden; background: #fff; border: 1px solid #f0eae2; }
.wt-track { display: flex; transition: transform .3s ease; will-change: transform; cursor: grab; touch-action: pan-y; }
.wt-track.dragging { transition: none; cursor: grabbing; }
.wt-slide { flex: 0 0 100%; }
.wt-slide img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; -webkit-user-drag: none; user-select: none; }
.wt-counter { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; border-radius: 12px; padding: 2px 10px; }
.wt-arrow { position: absolute; top: 45%; width: 34px; height: 34px; line-height: 30px; text-align: center; background: rgba(0,0,0,.28); color: #fff; border-radius: 50%; font-size: 20px; cursor: pointer; user-select: none; }
.wt-arrow.prev { left: 8px; }
.wt-arrow.next { right: 8px; }
.wt-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.wt-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ddd2c6; }
.wt-dots i.on { background: #7a4a24; width: 16px; border-radius: 4px; }

.wt-buybox { padding-top: 4px; }
.wt-title { font-size: 21px; line-height: 1.5; margin-bottom: 14px; color: #3a3128; }
.wt-pricerow { display: flex; align-items: baseline; gap: 8px; color: #8b8177; font-size: 13px; }
.wt-pricelg { font-size: 30px; color: #b4451f; font-weight: 700; }
.wt-meta { display: flex; gap: 22px; font-size: 12px; color: #9a8c7c; padding: 10px 0 16px; border-bottom: 1px dashed #eee4d8; }
.wt-specrow { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee4d8; font-size: 13px; color: #8b8177; }
.wt-specrow b { color: #3a3128; font-weight: 500; }
.wt-paynote { display: flex; align-items: center; gap: 8px; padding: 14px 0; font-size: 13px; color: #6b6156; }
.wt-alipay-mark { display: inline-block; background: #1677ff; color: #fff; font-size: 12px; border-radius: 3px; padding: 2px 8px; letter-spacing: 1px; }
.wt-buy-actions { display: flex; gap: 12px; }
.wt-btncart, .wt-btnbuy2 { flex: 1; border: none; border-radius: 4px; padding: 13px; font-size: 15px; cursor: pointer; }
.wt-btncart { background: #fff; border: 1px solid #7a4a24; color: #7a4a24; }
.wt-btnbuy2 { background: #7a4a24; color: #fff; }
.wt-card-box { background: #fff; border: 1px solid #eee7de; border-radius: 6px; margin: 18px 0; padding: 22px; }
.wt-card-box h4 { font-size: 16px; margin-bottom: 12px; }
.wt-content p { font-size: 14px; line-height: 1.9; color: #4a4038; margin-bottom: 6px; }
.wt-content b { color: #7a4a24; }

.wt-bottombar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,.06); z-index: 95; }
.wt-bottombar .wt-op { text-align: center; font-size: 12px; color: #6b6156; width: 58px; }
.wt-bottombar .wt-btncart, .wt-bottombar .wt-btnbuy2 { padding: 11px 8px; font-size: 14px; }
.wt-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 98; }
.wt-panel { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; background: #fff; border-radius: 12px 12px 0 0; padding: 16px; display: none; z-index: 99; max-height: 72vh; overflow: auto; }
.wt-panel-close { text-align: right; cursor: pointer; color: #9a8c7c; }
.wt-panel-thumb { width: 64px; height: 64px; object-fit: contain; border: 1px solid #eee4d8; }
.wt-panel-label { margin: 10px 0 4px; font-size: 13px; color: #8b8177; }
.wt-spec { display: inline-block; border: 1px solid #7a4a24; color: #7a4a24; border-radius: 4px; padding: 6px 14px; font-size: 13px; margin: 4px 8px 4px 0; cursor: pointer; }
.wt-spec.on { background: #7a4a24; color: #fff; }
.wt-num { display: inline-flex; align-items: center; gap: 12px; }
.wt-num button { width: 30px; height: 30px; border: 1px solid #ddd2c6; background: #fff; border-radius: 4px; cursor: pointer; }
.wt-panel-actions { display: flex; gap: 12px; margin-top: 16px; }

/* ---------- 页脚 ---------- */
.wt-footer { margin-top: 40px; padding: 30px 0 90px; border-top: 1px solid #e6ded3; color: #6b6156; }
.wt-foot-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 22px; }
.wt-foot-col h4 { font-size: 14px; margin-bottom: 10px; color: #3a3128; }
.wt-foot-col a, .wt-foot-col p { display: block; font-size: 12px; line-height: 1.9; color: #8b8177; }
.wt-foot-brand p { line-height: 1.8; max-width: 360px; }
.wt-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 12px; color: #8b8177; padding: 14px 0; border-top: 1px solid #eee4d8; }
.wt-foot-legal a { color: #7a4a24; }
.wt-payline { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #8b8177; padding: 6px 0 12px; }
.wt-copy { font-size: 12px; color: #a69a8c; }

/* ---------- 内容页 ---------- */
.wt-page { background: #fff; border: 1px solid #eee7de; border-radius: 6px; padding: 34px 40px; margin: 20px 0; max-width: 1100px; }
.wt-page h1 { font-size: 24px; margin-bottom: 18px; color: #3a3128; }
.wt-page h2 { font-size: 17px; margin: 22px 0 10px; color: #3a3128; }
.wt-page p { font-size: 14px; line-height: 2; color: #4a4038; margin-bottom: 10px; }
.wt-info-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.wt-info-table th, .wt-info-table td { border: 1px solid #eee4d8; padding: 10px 14px; font-size: 13px; text-align: left; }
.wt-info-table th { width: 130px; background: #faf7f3; color: #6b6156; font-weight: 500; }

/* ---------- 404 ---------- */
.wt-404 { max-width: 720px; margin: 80px auto; text-align: center; }
.wt-404 h1 { font-size: 72px; color: #d9c3ab; letter-spacing: 4px; }
.wt-404 p { margin: 12px 0; color: #6b6156; font-size: 14px; }
.wt-404-actions { display: flex; gap: 14px; justify-content: center; margin: 20px 0 26px; }
.wt-404-actions a { border: 1px solid #7a4a24; color: #7a4a24; border-radius: 4px; padding: 8px 18px; font-size: 13px; }

/* ---------- 底部导航 ---------- */
.wt-tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #eee4d8; display: none; z-index: 90; padding-bottom: env(safe-area-inset-bottom); }
.wt-tabbar a { flex: 1; text-align: center; padding: 8px 0; font-size: 12px; color: #8b8177; }
.wt-tabbar a .ico { display: block; font-size: 16px; }
.wt-tabbar a.active { color: #7a4a24; }

/* ---------- 旧页面复用组件 ---------- */
.wt-form { display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #eee; padding: 14px 16px; }
.wt-form input { flex: 1; border: none; outline: none; font-size: 15px; }
.wt-cell { background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.wt-btnmain { display: block; width: 100%; background: #7a4a24; color: #fff; border: none; border-radius: 4px; padding: 12px; font-size: 16px; text-align: center; cursor: pointer; }
.wt-mehead { background: #7a4a24; color: #fff; padding: 18px 16px 0; }
.wt-mestats { display: flex; text-align: center; padding: 14px 0; }
.wt-mestats div { flex: 1; }
.wt-mestats b { display: block; font-size: 18px; }
.wt-mestats span { font-size: 12px; color: #efe4d8; }
.wt-ordergrid { display: flex; background: #fff; padding: 12px 0; margin-top: 10px; }
.wt-ordergrid a { flex: 1; text-align: center; font-size: 12px; color: #555; position: relative; }

.wt-tag { background: #f7efe6; color: #7a4a24; border: 1px solid #d9c3ab; border-radius: 14px; font-size: 12px; padding: 3px 10px; }
.wt-chev { color: #c9bfb2; }
.wt-ico { font-size: 20px; display: block; }
.wt-badge { background: #b4451f; color: #fff; font-size: 10px; border-radius: 10px; padding: 0 5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    body { padding: 0 14px; }
    .wt-head-top { gap: 12px; flex-wrap: wrap; padding: 12px 0; }
    .wt-logo { min-width: 0; }
    .wt-logo b { font-size: 20px; }
    .wt-search { order: 3; flex: 0 0 100%; max-width: none; }
    .wt-hotline { display: none; }
    .wt-mainnav { gap: 16px; font-size: 13px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
    .wt-mainnav a { white-space: nowrap; }
    .wt-hero { display: block; padding: 14px 0 8px; }
    .wt-hero h1 { font-size: 18px; }
    .wt-hero p { font-size: 12px; }
    .wt-hero-stat { gap: 20px; margin-top: 12px; }
    .wt-hero-stat b { font-size: 18px; }
    .wt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .wt-thumb { height: auto; aspect-ratio: 1; padding: 4px; }
    .wt-info { padding: 6px 8px 10px; }
    .wt-name { font-size: 12px; height: 34px; }
    .wt-price { font-size: 15px; }
    .wt-buybtn { display: none; }
    .wt-detail { display: block; padding: 12px; gap: 0; }
    .wt-title { font-size: 17px; margin-top: 14px; }
    .wt-pricelg { font-size: 24px; }
    .wt-page { padding: 20px 16px; margin: 12px 0; }
    .wt-page h1 { font-size: 20px; }
    .wt-page p { font-size: 13px; line-height: 1.9; }
    .wt-foot-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
    .wt-foot-brand { grid-column: 1 / -1; }
    .wt-foot-legal { display: block; line-height: 2; }
    .wt-footer { padding: 22px 0 100px; }
    .wt-tabbar { display: flex; }
    .wt-card-box { margin: 12px 0; padding: 16px; }
    .wt-404 { margin: 50px auto; }
    .wt-404-actions { flex-direction: column; align-items: center; }
}
