/*!
 * 在线抽纸 · online-tissue
 * 导购型设计系统「主推轮播」：大图氛围底 + 右侧转化信息层 + 主推榜
 * 深浅主题跟随站点 :root[data-theme]，头尾与面包屑沿用公共机制
 */
.tss-page {
    --tss-bg: #f4f7fc;
    --tss-card: #ffffff;
    --tss-card2: #f8fbff;
    --tss-line: #dfe7f3;
    --tss-ink: #1d2a40;
    --tss-ink2: #5d6c84;
    --tss-blue: #2f62d8;
    --tss-blue-soft: #e9f0ff;
    --tss-violet: #7256d8;
    --tss-green: #11856a;
    --tss-warn: #b2650c;
    --tss-price: #e2562a;
    --tss-shadow: 0 10px 28px rgba(31, 58, 110, .07);
}
:root[data-theme="dark"] .tss-page {
    --tss-bg: #141a24;
    --tss-card: #1c2431;
    --tss-card2: #222c3b;
    --tss-line: #33415a;
    --tss-ink: #eef3fb;
    --tss-ink2: #a3b1c6;
    --tss-blue: #7ea5ff;
    --tss-blue-soft: #24345a;
    --tss-violet: #b09bff;
    --tss-green: #5fd0ad;
    --tss-warn: #e8b168;
    --tss-price: #ff9a72;
    --tss-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.tss-page { background: var(--tss-bg); color: var(--tss-ink); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 15px; line-height: 1.75; }
.tss-page *, .tss-page *::before, .tss-page *::after { box-sizing: border-box; }
.tss-wrap { max-width: 1160px; margin: 0 auto; padding: 18px 16px 40px; }
.tss-page .tsk-crumb-bar { margin-bottom: 14px; }
.tss-page .tsk-crumb a, .tss-page a { color: var(--tss-blue); }
.tss-page h1, .tss-page h2, .tss-page h3 { margin: 0; line-height: 1.35; }

/* ---------- 紧凑标题栏 ---------- */
.tss-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 26px; border: 1px solid var(--tss-line); border-radius: 18px; background: linear-gradient(120deg, var(--tss-card), var(--tss-card2)); box-shadow: var(--tss-shadow); }
.tss-kicker { font: 700 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; color: var(--tss-violet); }
.tss-hero h1 { font-size: 30px; margin: 3px 0 3px; }
.tss-sub { margin: 0; font-size: 14.5px; color: var(--tss-ink2); }
.tss-sub b { color: var(--tss-blue); white-space: nowrap; }
.tss-hero-side { display: flex; align-items: center; gap: 12px; }
.tss-hero-badge { background: var(--tss-blue-soft); color: var(--tss-blue); font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 20px; }
.tss-ghost { display: inline-block; border: 1px solid var(--tss-line); background: var(--tss-card); color: var(--tss-ink) !important; font-size: 13.5px; font-weight: 600; padding: 8px 18px; border-radius: 10px; text-decoration: none; }

/* ---------- Section 通用 ---------- */
.tss-sec { margin-top: 26px; scroll-margin-top: 76px; }
.tss-featured { margin-top: 20px; }
.tss-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tss-sec-no { font: 700 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .16em; color: var(--tss-violet); }
.tss-sec-head h2 { font-size: 23px; margin-top: 3px; }
.tss-sec-head p { margin: 0; font-size: 13px; color: var(--tss-ink2); max-width: 470px; }
.tss-card { background: var(--tss-card); border: 1px solid var(--tss-line); border-radius: 16px; box-shadow: var(--tss-shadow); }
.tss-orig-note { margin: 12px 0 0; font-size: 12.5px; color: var(--tss-ink2); }

/* ---------- 主推轮播 + 榜单 ---------- */
.tss-showcase { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.tss-carousel { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(20, 36, 70, .18); }
.tss-swiper { width: 100%; height: 522px; }
.tss-slide { position: relative; height: 100%; overflow: hidden; background: #121c30; }
.tss-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.6) saturate(1.25); transform: scale(1.16); z-index: 0; }
.tss-slide-pic { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; z-index: 2; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.tss-slide-img { max-width: 86%; max-height: 90%; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 44px rgba(0, 0, 0, .5); background: #fff; }
.tss-slide-info { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; z-index: 3; padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: linear-gradient(90deg, rgba(10, 18, 34, .02), rgba(10, 18, 34, .78) 30%, rgba(10, 18, 34, .95)); }
.tss-slide-tag { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: #ffe0a8; background: rgba(255, 190, 90, .16); border: 1px solid rgba(255, 200, 110, .4); border-radius: 20px; padding: 4px 12px; }
.tss-slide-info h3 { font-size: 21px; margin: 13px 0 8px; }
.tss-page .tss-slide-info h3, .tss-page .tss-slide-info p { color: #fff; }
.tss-page .tss-slide-spec, .tss-page .tss-slide-points { margin: 0 0 5px; font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.tss-page .tss-slide-points { color: #9de5c4; }
.tss-slide-buy { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tss-slide-price small { display: block; font-size: 11px; color: rgba(255, 255, 255, .65); }
.tss-slide-price b { font: 700 30px ui-monospace, Menlo, Consolas, monospace; color: #ffcf6b; letter-spacing: -.02em; }
.tss-buy { display: inline-block; flex: 1; min-width: 132px; border: 0; border-radius: 10px; background: linear-gradient(120deg, #ff8a45, #ef4b2f); color: #fff !important; font-size: 14.5px; font-weight: 700; text-align: center; padding: 12px 14px; cursor: pointer; text-decoration: none; box-shadow: 0 10px 22px rgba(239, 75, 47, .35); transition: transform .15s, filter .15s; }
.tss-buy:hover { transform: translateY(-2px); filter: brightness(1.06); }
.tss-slide-actions { display: flex; gap: 8px; margin-top: 14px; }
.tss-slide-info .tss-mini { flex: 1; margin-left: 0; text-align: center; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.tss-slide-info .tss-mini:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.tss-swiper-pagination { position: absolute; left: 24px; bottom: 14px; z-index: 6; display: flex; gap: 6px; width: auto; }
.tss-swiper-pagination .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; border-radius: 50%; background: rgba(255, 255, 255, .55); opacity: 1; transition: .2s; }
.tss-swiper-pagination .swiper-pagination-bullet-active { width: 22px; border-radius: 6px; background: #ffcf6b; }
.tss-swiper-prev, .tss-swiper-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 38px; height: 38px; border-radius: 50%; background: rgba(10, 18, 34, .5); color: #fff; font-size: 27px; line-height: 34px; text-align: center; cursor: pointer; user-select: none; transition: background .15s; }
.tss-swiper-prev:hover, .tss-swiper-next:hover { background: rgba(10, 18, 34, .78); }
.tss-swiper-prev { left: 12px; }
.tss-swiper-next { right: calc(46% + 12px); }
.tss-fallback .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; }
.tss-fallback .swiper-slide { scroll-snap-align: start; }
.tss-deal-bar { flex: none; min-height: 68px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: linear-gradient(120deg, #16213a, #1e2c4a); color: rgba(255, 255, 255, .9); font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tss-deal-label { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #ffcf6b; border: 1px solid rgba(255, 207, 107, .45); border-radius: 20px; padding: 3px 10px; }
.tss-deal-bar b { font-weight: 600; color: #fff; }
.tss-deal-bar .tss-deal-sep { flex: none; width: 1px; height: 14px; background: rgba(255, 255, 255, .25); }
.tss-deal-bar a { margin-left: auto; color: #ffcf6b !important; text-decoration: none; font-weight: 700; white-space: nowrap; }
.tss-deal-bar #tssDealNote { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tss-rank { display: flex; flex-direction: column; min-width: 0; background: var(--tss-card); border: 1px solid var(--tss-line); border-radius: 18px; box-shadow: var(--tss-shadow); overflow: hidden; }
.tss-rank-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--tss-line); }
.tss-rank-head b { font-size: 15px; }
.tss-rank-head span { font-size: 12px; color: var(--tss-ink2); }
.tss-rank-list { flex: 1; min-height: 0; }
.tss-rank-item { display: grid; grid-template-columns: 20px 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--tss-line); background: transparent; text-align: left; cursor: pointer; font-family: inherit; color: var(--tss-ink); transition: background .15s; }
.tss-rank-item:last-child { border-bottom: 0; }
.tss-rank-item:hover { background: var(--tss-card2); }
.tss-rank-item.on { background: var(--tss-blue-soft); box-shadow: inset 3px 0 0 var(--tss-blue); }
.tss-rank-no { font: 700 12px ui-monospace, Menlo, Consolas, monospace; color: var(--tss-ink2); }
.tss-rank-item.on .tss-rank-no { color: var(--tss-blue); }
.tss-rank-item img { width: 46px; height: 60px; object-fit: contain; background: #f0f3f8; border-radius: 6px; }
.tss-rank-txt { min-width: 0; }
.tss-rank-txt b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tss-rank-txt small { display: block; font-size: 11px; color: var(--tss-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tss-rank-price { font: 700 14px ui-monospace, Menlo, Consolas, monospace; color: var(--tss-price); white-space: nowrap; }
.tss-rank-foot { padding: 10px 14px; font-size: 11.5px; color: var(--tss-ink2); border-top: 1px solid var(--tss-line); }

/* ---------- 通用按钮与 chips ---------- */
.tss-cta { display: inline-block; border: 0; background: linear-gradient(120deg, var(--tss-blue), #6688f0); color: #fff !important; font-size: 15px; font-weight: 700; padding: 12px 28px; border-radius: 11px; cursor: pointer; text-decoration: none; box-shadow: 0 8px 18px rgba(47, 98, 216, .24); transition: transform .15s; }
.tss-cta:hover { transform: translateY(-2px); }
.tss-examples { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tss-chip { border: 1px solid var(--tss-line); background: var(--tss-card2); color: var(--tss-ink2); font-size: 12.5px; padding: 6px 13px; border-radius: 20px; cursor: pointer; transition: .15s; font-family: inherit; }
.tss-chip:hover { border-color: var(--tss-blue); color: var(--tss-blue); }

/* ---------- 计算器 / 表格 ---------- */
.tss-calc { padding: 24px; }
.tss-calc form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.tss-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--tss-ink2); }
.tss-field-wide { grid-column: span 2; }
.tss-field input, .tss-field select { width: 100%; border: 1px solid var(--tss-line); background: var(--tss-card2); color: var(--tss-ink); border-radius: 9px; padding: 9px 11px; font-size: 14px; font-family: inherit; outline: none; }
.tss-field input:focus, .tss-field select:focus { border-color: var(--tss-blue); box-shadow: 0 0 0 3px var(--tss-blue-soft); }
.tss-submit { grid-column: span 4; width: 100%; padding: 10px 12px; font-size: 13.5px; }
.tss-msg { margin: 12px 0 0; font-size: 12.5px; color: var(--tss-ink2); }
.tss-msg.error { color: var(--tss-warn); font-weight: 700; }
.tss-msg.ok { color: var(--tss-green); font-weight: 700; }
.tss-examples { margin-top: 14px; }
.tss-ex-label { font-size: 12.5px; color: var(--tss-ink2); }
.tss-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.tss-metric { border: 1px solid var(--tss-line); border-radius: 12px; background: var(--tss-card2); padding: 14px 16px; }
.tss-metric span { display: block; font-size: 12px; color: var(--tss-ink2); }
.tss-metric b { display: block; font: 700 22px ui-monospace, Menlo, Consolas, monospace; color: var(--tss-blue); margin-top: 3px; }
.tss-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.tss-table-head h3 { font-size: 16px; }
.tss-table-head small { font-size: 12px; font-weight: 400; color: var(--tss-ink2); margin-left: 8px; }
.tss-mini { border: 1px solid var(--tss-line); background: var(--tss-card2); color: var(--tss-ink2); font-size: 12px; padding: 5px 11px; border-radius: 8px; cursor: pointer; font-family: inherit; margin-left: 6px; }
.tss-mini:hover { border-color: var(--tss-blue); color: var(--tss-blue); }
.tss-tablebox { overflow-x: auto; border: 1px solid var(--tss-line); border-radius: 12px; }
.tss-table { border-collapse: collapse; width: 100%; min-width: 700px; font-size: 13.5px; }
.tss-table th, .tss-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--tss-line); vertical-align: middle; }
.tss-table th { background: var(--tss-card2); font-size: 12.5px; color: var(--tss-ink2); white-space: nowrap; }
.tss-table tbody tr:last-child td { border-bottom: 0; }
.tss-table tbody tr:hover { background: var(--tss-card2); }
.tss-table tr.best { background: var(--tss-blue-soft); }
.tss-table .tss-empty td { text-align: center; color: var(--tss-ink2); }

/* ---------- 结论 ---------- */
.tss-verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tss-verdict { padding: 18px 20px; border-top: 3px solid var(--tss-blue); }
.tss-vq { font-size: 12px; color: var(--tss-ink2); }
.tss-verdict h3 { font-size: 17px; margin: 6px 0; color: var(--tss-blue); }
.tss-verdict p { margin: 0; font-size: 13px; color: var(--tss-ink2); }
.tss-verdict b { color: var(--tss-ink); }

/* ---------- 选购指南正文 ---------- */
.tss-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tss-guide-item { padding: 18px 20px; }
.tss-guide-item h3 { font-size: 16px; color: var(--tss-blue); margin-bottom: 8px; }
.tss-guide-item p { margin: 0; font-size: 13.5px; color: var(--tss-ink2); }
.tss-guide-item b { color: var(--tss-ink); }
.tss-guide-item a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 全部实拍（缩略图墙） ---------- */
.tss-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tss-shot { margin: 0; overflow: hidden; }
.tss-shot-pic { display: flex; align-items: center; justify-content: center; width: 100%; height: 208px; border: 0; padding: 0; background: #f0f3f8; cursor: zoom-in; overflow: hidden; }
.tss-shot-pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .25s; }
.tss-shot-pic:hover img { transform: scale(1.03); }
.tss-shot figcaption { padding: 10px; font-size: 12px; }
.tss-shot figcaption b { display: block; font-size: 12.5px; line-height: 1.45; min-height: 36px; }
.tss-shot-price { display: block; font: 700 16px ui-monospace, Menlo, Consolas, monospace; color: var(--tss-price); margin: 4px 0 8px; }
.tss-shot-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tss-shot-actions .tss-mini { flex: 1; margin-left: 0; text-align: center; font-size: 11px; padding: 5px 4px; }
.tss-shot-actions a.tss-mini { text-decoration: none; }

/* ---------- 灯箱（页面外层，固定色） ---------- */
.tss-lightbox[hidden] { display: none; }
.tss-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(12, 19, 32, .93); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 18px; }
.tss-lb-stage { display: flex; align-items: center; justify-content: center; max-width: 95vw; max-height: 80vh; overflow: hidden; }
.tss-lightbox img { max-width: 95vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.tss-lightbox.zoom .tss-lb-stage { display: block; overflow: auto; -webkit-overflow-scrolling: touch; }
.tss-lightbox.zoom img { max-width: none; max-height: none; width: 864px; height: auto; border-radius: 0; }
.tss-lb-tip { margin: 12px 0 0; max-width: 92vw; text-align: center; color: rgba(255, 255, 255, .78); font-size: 12.5px; line-height: 1.6; }
.tss-slide-pic img, .tss-shot-pic img, .tss-lightbox img { -webkit-touch-callout: default; }
.tss-lb-bar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 14px; color: #fff; font-size: 13px; }
.tss-lb-bar button, .tss-lb-bar a { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; border-radius: 9px; padding: 7px 15px; font-size: 13px; cursor: pointer; text-decoration: none; }
.tss-lb-bar button:hover, .tss-lb-bar a:hover { background: rgba(255, 255, 255, .28); }

@media (max-width: 1100px) {
    .tss-showcase { grid-template-columns: 1fr; }
    .tss-swiper { flex: none; height: 470px; }
    .tss-rank-list { display: flex; overflow-x: auto; }
    .tss-rank-item { min-width: 230px; border-bottom: 0; border-right: 1px solid var(--tss-line); }
    .tss-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .tss-draw-grid { grid-template-columns: 1fr; }
    .tss-calc form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tss-field-wide, .tss-submit { grid-column: span 2; }
    .tss-verdicts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tss-swiper { height: 470px; }
    .tss-slide-info { width: 50%; padding: 22px; }
    .tss-swiper-next { right: calc(50% + 12px); }
}
@media (max-width: 620px) {
    .tss-wrap { padding: 14px 12px 30px; }
    .tss-hero { padding: 16px 18px; }
    .tss-hero h1 { font-size: 26px; }
    .tss-verdicts, .tss-metrics, .tss-guide { grid-template-columns: 1fr; }
    .tss-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tss-swiper { height: 520px; }
    .tss-slide-pic { width: 100%; height: 58%; bottom: auto; }
    .tss-slide-img { max-height: 92%; }
    .tss-slide-info { top: auto; bottom: 0; width: 100%; height: 42%; padding: 14px 16px; background: linear-gradient(0deg, rgba(10, 18, 34, .97), rgba(10, 18, 34, .86) 72%, rgba(10, 18, 34, .35)); }
    .tss-slide-info h3 { font-size: 17px; margin: 8px 0 5px; }
    .tss-slide-spec, .tss-slide-points { font-size: 11.5px; margin-bottom: 3px; }
    .tss-slide-buy { margin-top: 10px; }
    .tss-slide-price b { font-size: 24px; }
    .tss-slide-actions { margin-top: 9px; }
    .tss-swiper-prev, .tss-swiper-next { display: none; }
    .tss-swiper-pagination { left: auto; right: 12px; bottom: auto; top: 12px; }
    .tss-sec-head h2 { font-size: 20px; }
    .tss-deal-bar { gap: 8px; padding: 10px 14px; font-size: 12px; }
    .tss-deal-bar a { margin-left: 0; }
}
