/* =========================================================================
   日烟居 Riyanju — 主样式
   墨黑 / 朱砂 / 纸白，衬线标题 + 无衬线正文
   ========================================================================= */

:root {
	--rj-ink: #16181d;
	--rj-ink-2: #2a2d34;
	--rj-paper: #f7f5f1;
	--rj-white: #ffffff;
	--rj-line: #e4dfd7;
	--rj-line-2: #d3ccc1;
	--rj-accent: #b23a2e;
	--rj-accent-d: #8c2a20;
	--rj-muted: #8b857b;
	--rj-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
	--rj-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--rj-radius: 2px;
	--rj-wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.rj-body {
	margin: 0;
	background: var(--rj-paper);
	color: var(--rj-ink);
	font-family: var(--rj-sans);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rj-accent); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--rj-serif); font-weight: 500; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }

.rj-sr {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.rj-wrap { width: 100%; max-width: var(--rj-wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.rj-topbar { background: var(--rj-ink); color: #cfcac2; font-size: 12px; }
.rj-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; }
.rj-topbar-note { letter-spacing: 0.02em; margin: 0; }
.rj-topbar-links { display: flex; gap: 18px; }
.rj-topbar-links a { color: #cfcac2; }
.rj-topbar-links a:hover { color: #fff; }

/* ---------- 页头 ---------- */
.rj-header {
	position: sticky; top: 0; z-index: 60;
	background: var(--rj-white);
	border-bottom: 1px solid var(--rj-line);
}
.rj-header.is-scrolled { box-shadow: 0 1px 12px rgba(22, 24, 29, 0.06); }
.rj-header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.rj-brand { flex: 0 0 auto; }
.rj-brand img { max-height: 46px; width: auto; }
.rj-logo { display: inline-flex; flex-direction: column; line-height: 1.05; }
.rj-logo-cn { font-family: var(--rj-serif); font-size: 24px; letter-spacing: 0.16em; color: var(--rj-ink); }
.rj-logo-en { font-size: 9px; letter-spacing: 0.42em; color: var(--rj-muted); margin-top: 3px; }

.rj-nav { flex: 1 1 auto; min-width: 0; }
.rj-nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.rj-nav-list > li > a {
	font-size: 14px; color: var(--rj-ink-2); padding: 6px 0; display: inline-block;
	border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.rj-nav-list > li > a:hover { color: var(--rj-accent); border-bottom-color: var(--rj-accent); }
.rj-nav-list .sub-menu {
	position: absolute; background: var(--rj-white); border: 1px solid var(--rj-line);
	padding: 10px 0; list-style: none; margin: 0; min-width: 180px; display: none;
}
.rj-nav-list li:hover > .sub-menu { display: block; }
.rj-nav-list .sub-menu a { display: block; padding: 7px 16px; font-size: 13px; }

.rj-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.rj-search { display: flex; align-items: center; border: 1px solid var(--rj-line); background: var(--rj-paper); height: 38px; padding: 0 6px 0 10px; }
.rj-search input[type="search"] {
	border: 0; background: transparent; outline: none; font-size: 13px; width: 148px;
	color: var(--rj-ink); font-family: inherit;
}
.rj-search input::placeholder { color: var(--rj-muted); }
.rj-search button {
	background: transparent; border: 0; color: var(--rj-muted); display: flex; align-items: center; padding: 4px;
}
.rj-search button:hover { color: var(--rj-accent); }

.rj-tool-link { font-size: 13px; color: var(--rj-ink-2); }
.rj-tool-cart {
	display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
	background: var(--rj-ink); color: #fff; padding: 9px 14px;
}
.rj-tool-cart:hover { background: var(--rj-accent); color: #fff; }
.rj-cart-num {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 18px; height: 18px; padding: 0 5px; background: var(--rj-accent);
	font-size: 11px; color: #fff; border-radius: 9px;
}

.rj-menu-toggle { display: none; background: transparent; border: 0; padding: 8px; flex-direction: column; gap: 4px; }
.rj-menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--rj-ink); }

/* ---------- 按钮 ---------- */
.rj-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 26px; font-size: 14px; letter-spacing: 0.04em;
	border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.rj-btn-solid { background: var(--rj-ink); color: #fff; }
.rj-btn-solid:hover { background: var(--rj-accent); color: #fff; }
.rj-btn-ghost { border-color: var(--rj-line-2); color: var(--rj-ink); }
.rj-btn-ghost:hover { border-color: var(--rj-ink); color: var(--rj-ink); }

/* ---------- 通用小标 ---------- */
.rj-eyebrow {
	font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
	color: var(--rj-accent); margin: 0 0 14px;
}

/* ---------- Hero ---------- */
.rj-hero { background: var(--rj-white); border-bottom: 1px solid var(--rj-line); }
.rj-hero-inner {
	display: grid; grid-template-columns: 1.02fr 0.98fr;
	gap: 56px; align-items: center; padding: 68px 24px 76px;
}
.rj-hero-title {
	font-size: clamp(34px, 4.2vw, 56px); line-height: 1.16; letter-spacing: 0.02em;
	color: var(--rj-ink);
}
.rj-hero-sub { margin-top: 22px; max-width: 30em; font-size: 14.5px; color: var(--rj-muted); line-height: 1.85; }
.rj-hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.rj-hero-facts {
	display: flex; gap: 30px; list-style: none; margin: 40px 0 0; padding: 22px 0 0;
	border-top: 1px solid var(--rj-line);
}
.rj-hero-facts li { display: flex; flex-direction: column; gap: 4px; }
.rj-hero-facts strong { font-family: var(--rj-serif); font-size: 17px; font-weight: 500; color: var(--rj-ink); }
.rj-hero-facts span { font-size: 12px; color: var(--rj-muted); }

.rj-hero-visual { position: relative; }
.rj-hero-visual img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; background: #efeae2; }
.rj-hero-visual::after {
	content: ""; position: absolute; inset: auto -14px -14px auto; width: 52%; height: 52%;
	border-right: 1px solid var(--rj-accent); border-bottom: 1px solid var(--rj-accent);
	pointer-events: none;
}
.rj-hero-plate {
	aspect-ratio: 4 / 3.4; background: var(--rj-ink); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.rj-hero-plate-cn { font-family: var(--rj-serif); font-size: 46px; letter-spacing: 0.24em; }
.rj-hero-plate-en { font-size: 10px; letter-spacing: 0.5em; color: #9a948b; }
.rj-hero-stamp {
	position: absolute; left: 18px; bottom: 18px; display: flex; flex-direction: column;
	align-items: center; justify-content: center; width: 58px; height: 58px;
	background: var(--rj-accent); color: #fff; font-size: 9px; letter-spacing: 0.12em; line-height: 1.5;
}

/* ---------- 分类带 ---------- */
.rj-catband { background: var(--rj-paper); padding: 44px 0 10px; }
.rj-catband-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.rj-catband-head h2 { font-size: 19px; }
.rj-catband-rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.rj-catchip {
	display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto;
	padding: 14px 22px; background: var(--rj-white); border: 1px solid var(--rj-line);
	transition: border-color .15s, background .15s;
}
.rj-catchip:hover { border-color: var(--rj-accent); color: var(--rj-ink); }
.rj-catchip-name { font-size: 14px; font-family: var(--rj-serif); }
.rj-catchip-count { font-size: 11px; color: var(--rj-muted); }

/* ---------- 区块 ---------- */
.rj-section { padding: 56px 0; }
.rj-section-alt { background: var(--rj-white); border-top: 1px solid var(--rj-line); border-bottom: 1px solid var(--rj-line); }
.rj-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.rj-section-title { font-size: clamp(22px, 2.4vw, 30px); }
.rj-more { font-size: 13px; color: var(--rj-muted); border-bottom: 1px solid var(--rj-line-2); padding-bottom: 2px; }
.rj-more:hover { color: var(--rj-accent); border-bottom-color: var(--rj-accent); }

/* ---------- 网格与卡片 ---------- */
.rj-grid { display: grid; gap: 22px; }
.rj-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rj-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rj-card { background: var(--rj-white); border: 1px solid var(--rj-line); display: flex; flex-direction: column; transition: border-color .18s; }
.rj-card:hover { border-color: var(--rj-line-2); }
.rj-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #f0ece5; overflow: hidden; }
.rj-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rj-card:hover .rj-card-media img { transform: scale(1.035); }
.rj-card-ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-family: var(--rj-serif); font-size: 40px; color: #cdc6bb;
}
.rj-badge {
	position: absolute; top: 10px; left: 10px; background: var(--rj-accent); color: #fff;
	font-size: 10px; letter-spacing: 0.12em; padding: 3px 8px;
}
.rj-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.rj-card-cat { font-size: 10px; letter-spacing: 0.16em; color: var(--rj-muted); text-transform: uppercase; margin: 0; }
.rj-card-title { font-family: var(--rj-sans); font-size: 14px; font-weight: 400; line-height: 1.55; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rj-card-title a:hover { color: var(--rj-accent); }
.rj-card-excerpt { font-size: 13px; color: var(--rj-muted); }
.rj-card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 6px; }
.rj-price { font-size: 15px; color: var(--rj-accent); letter-spacing: 0.01em; }
.rj-price del { color: var(--rj-muted); font-size: 12px; margin-right: 6px; }
.rj-price ins { text-decoration: none; }
.rj-card-link { font-size: 12px; color: var(--rj-muted); border-bottom: 1px solid var(--rj-line-2); }
.rj-card-link:hover { color: var(--rj-accent); border-bottom-color: var(--rj-accent); }

/* ---------- 三栏推荐 ---------- */
.rj-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rj-triple-item { display: flex; flex-direction: column; background: var(--rj-paper); border: 1px solid var(--rj-line); }
.rj-triple-media { aspect-ratio: 16 / 10; overflow: hidden; background: #efeae2; display: block; }
.rj-triple-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rj-triple-item:hover .rj-triple-media img { transform: scale(1.04); }
.rj-triple-body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.rj-triple-title { font-family: var(--rj-serif); font-size: 16px; line-height: 1.5; }

/* ---------- 指南区（深色） ---------- */
.rj-guides { background: var(--rj-ink); color: #efece7; padding: 62px 0 66px; }
.rj-guides-head { margin-bottom: 34px; }
.rj-guides .rj-eyebrow { color: #c8867c; }
.rj-guides .rj-section-title { color: #fff; }
.rj-guides-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #33363d; }
.rj-guide { background: var(--rj-ink); padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 10px; transition: background .18s; }
.rj-guide:hover { background: #1d2026; }
.rj-guide-no { font-family: var(--rj-serif); font-size: 12px; color: #8d8880; letter-spacing: 0.2em; }
.rj-guide h3 { font-size: 16px; color: #fff; line-height: 1.5; }
.rj-guide p { font-size: 12.5px; color: #a8a29a; line-height: 1.8; }

/* ---------- 信任条 ---------- */
.rj-trust { background: var(--rj-paper); padding: 46px 0 54px; }
.rj-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.rj-trust-item { border-top: 1px solid var(--rj-ink); padding-top: 16px; }
.rj-trust-item h3 { font-size: 15px; margin-bottom: 8px; }
.rj-trust-item p { font-size: 13px; color: var(--rj-muted); line-height: 1.8; }

/* ---------- 页脚 ---------- */
.rj-footer { background: var(--rj-ink); color: #b9b4ac; padding: 56px 0 26px; }
.rj-footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.rj-footer-brand .rj-logo-cn { color: #fff; }
.rj-footer-brand .rj-logo-en { color: #7d7871; }
.rj-footer-desc { margin-top: 16px; font-size: 12.5px; line-height: 1.9; color: #918c84; max-width: 26em; }
.rj-footer-col h3 { font-size: 13px; color: #fff; margin-bottom: 14px; font-family: var(--rj-sans); letter-spacing: 0.06em; }
.rj-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rj-footer-col a { font-size: 13px; color: #a29c94; }
.rj-footer-col a:hover { color: #fff; }
.rj-footer-bottom {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	border-top: 1px solid #2e3138; padding-top: 20px; font-size: 11.5px; color: #7d7871;
}
.rj-footer-note { letter-spacing: 0.08em; }

/* ---------- 单页 / 文章 ---------- */
.rj-page { padding: 54px 24px 78px; max-width: 880px; }
.rj-page-head { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--rj-line); }
.rj-page-title { font-size: clamp(26px, 3vw, 34px); }
.rj-prose { font-size: 15px; line-height: 1.95; color: var(--rj-ink-2); }
.rj-prose h2 { font-size: 21px; margin: 34px 0 12px; }
.rj-prose h3 { font-size: 17px; margin: 26px 0 10px; }
.rj-prose p { margin: 0 0 16px; }
.rj-prose ul, .rj-prose ol { margin: 0 0 16px; padding-left: 22px; }
.rj-prose li { margin-bottom: 7px; }
.rj-prose a { color: var(--rj-accent); text-decoration: underline; text-underline-offset: 3px; }
.rj-prose img { margin: 18px 0; }
.rj-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.rj-prose th, .rj-prose td { border: 1px solid var(--rj-line); padding: 9px 12px; text-align: left; }
.rj-prose th { background: var(--rj-white); font-weight: 500; }

/* ---------- 归档 / 404 ---------- */
.rj-archive { padding: 54px 24px 76px; }
.rj-archive-head { margin-bottom: 28px; }
.rj-archive-title { font-size: clamp(24px, 2.6vw, 30px); }
.rj-empty { color: var(--rj-muted); font-size: 14px; }
.rj-404 { text-align: center; padding: 120px 24px 140px; }
.rj-404-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.rj-404-sub { color: var(--rj-muted); margin-bottom: 30px; font-size: 14px; }
.rj-404 .rj-hero-actions { justify-content: center; }

/* ---------- 分页 ---------- */
.rj-pagination { margin-top: 34px; }
.rj-pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.rj-pagination a, .rj-pagination span {
	padding: 8px 13px; border: 1px solid var(--rj-line); font-size: 13px; background: var(--rj-white);
}
.rj-pagination .current { background: var(--rj-ink); color: #fff; border-color: var(--rj-ink); }

/* =========================================================================
   WooCommerce
   ========================================================================= */
.rj-woo { padding: 46px 24px 76px; }

.woocommerce-breadcrumb { font-size: 12px; color: var(--rj-muted); margin-bottom: 22px; }
.woocommerce-breadcrumb a { color: var(--rj-muted); }

.rj-woo .woocommerce-result-count { font-size: 12.5px; color: var(--rj-muted); }
.rj-woo .woocommerce-ordering select {
	border: 1px solid var(--rj-line); background: var(--rj-white); padding: 8px 10px;
	font-size: 13px; font-family: inherit; color: var(--rj-ink-2);
}

.rj-woo ul.products {
	list-style: none; margin: 26px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.rj-woo ul.products li.product { margin: 0 !important; width: auto !important; float: none !important; }
.rj-woo ul.products li.product .rj-card { height: 100%; }

/* 商品详情 */
.rj-woo div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 52px; align-items: start; }
.rj-woo div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; }
.rj-woo div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.rj-woo div.product .woocommerce-product-gallery img { background: #f0ece5; }
.rj-woo div.product .summary { margin: 0 !important; float: none !important; width: 100% !important; }

.rj-woo div.product .product_title {
	font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; margin-bottom: 14px;
	font-family: var(--rj-serif);
}
.rj-woo div.product p.price {
	font-size: 24px; color: var(--rj-accent); margin: 0 0 6px; font-family: var(--rj-sans);
}
.rj-woo div.product p.price del { font-size: 15px; color: var(--rj-muted); }

.rj-block { margin: 24px 0; }
.rj-block-title {
	font-family: var(--rj-sans); font-size: 11px; letter-spacing: 0.2em;
	color: var(--rj-muted); margin-bottom: 12px; text-transform: uppercase;
	border-bottom: 1px solid var(--rj-line); padding-bottom: 8px;
}
.rj-block-body { font-size: 14px; line-height: 1.9; color: var(--rj-ink-2); }
.rj-block-body p { margin: 0 0 10px; }

.rj-scene-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rj-scene-list li {
	font-size: 13.5px; color: var(--rj-ink-2); padding-left: 16px; position: relative;
}
.rj-scene-list li::before {
	content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 1px; background: var(--rj-accent);
}

/* 组合装清单：左边名称、右边规格与单价；窄屏折成两行 */
.rj-set-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rj-line); }
.rj-set-list li {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
	border-bottom: 1px solid var(--rj-line); padding: 12px 0;
}
.rj-set-list li a { font-size: 13.5px; color: var(--rj-ink); text-decoration: none; }
.rj-set-list li a:hover { color: var(--rj-accent); }
.rj-set-meta { font-size: 12.5px; color: var(--rj-muted); white-space: nowrap; }
@media (max-width: 640px) {
	.rj-set-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.rj-set-meta { white-space: normal; }
}

.rj-spec-list { margin: 0; padding: 0; border-top: 1px solid var(--rj-line); }
.rj-spec-row {
	display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
	border-bottom: 1px solid var(--rj-line); padding: 10px 0;
}
.rj-spec-row dt { font-size: 12.5px; color: var(--rj-muted); margin: 0; }
.rj-spec-row dd { font-size: 13.5px; margin: 0; color: var(--rj-ink-2); }

.rj-block-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--rj-muted); }
.rj-block-meta a { color: var(--rj-accent); }

.rj-woo div.product form.cart { margin: 22px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rj-woo div.product form.cart div.quantity { margin: 0; }
.rj-woo .quantity input.qty {
	width: 66px; height: 46px; border: 1px solid var(--rj-line); background: var(--rj-white);
	text-align: center; font-size: 14px; font-family: inherit;
}
.rj-woo div.product .single_add_to_cart_button,
.rj-woo .button.alt, .rj-woo button[name="update_cart"],
.rj-woo .wc-block-components-button {
	background: var(--rj-ink) !important; color: #fff !important; border: 0 !important;
	padding: 14px 30px !important; font-size: 14px !important; border-radius: 0 !important;
	letter-spacing: 0.04em; font-weight: 400 !important;
}
.rj-woo div.product .single_add_to_cart_button:hover,
.rj-woo .button.alt:hover { background: var(--rj-accent) !important; }

.rj-woo .product_meta { display: none; }

/* tab */
.rj-woo .woocommerce-tabs { margin-top: 56px; border-top: 1px solid var(--rj-line); padding-top: 8px; grid-column: 1 / -1; }
.rj-woo .woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 24px; border: 0; }
.rj-woo .woocommerce-tabs ul.tabs::before { display: none; }
.rj-woo .woocommerce-tabs ul.tabs li {
	background: transparent !important; border: 0 !important; border-radius: 0 !important;
	margin: 0 !important; padding: 0 !important;
}
.rj-woo .woocommerce-tabs ul.tabs li::before, .rj-woo .woocommerce-tabs ul.tabs li::after { display: none; }
.rj-woo .woocommerce-tabs ul.tabs li a {
	font-family: var(--rj-sans) !important; font-size: 13px !important; color: var(--rj-muted) !important;
	padding: 10px 0 !important; border-bottom: 1px solid transparent; font-weight: 400 !important;
}
.rj-woo .woocommerce-tabs ul.tabs li.active a { color: var(--rj-ink) !important; border-bottom-color: var(--rj-ink); }
.rj-woo .woocommerce-Tabs-panel { font-size: 14.5px; line-height: 1.95; color: var(--rj-ink-2); padding: 0; }
.rj-woo .woocommerce-Tabs-panel h2 { display: none; }
/* 正文里按商品生成的章节标题（186 会把 h3.ryj-h 提升成 h2，这里让它们显示出来，
   其余 h2 仍隐藏——那是旧正文里用来当小标题、和页面标题重复的一层） */
.rj-woo .woocommerce-Tabs-panel h2.ryj-h {
	display: block; font-size: 14px; font-weight: 600; color: var(--rj-ink);
	margin: 26px 0 10px; padding-left: 10px; border-left: 2px solid var(--rj-accent);
	letter-spacing: .02em; line-height: 1.5;
}
.rj-woo .woocommerce-Tabs-panel h2.ryj-h:first-child { margin-top: 0; }

/* FAQ */
.rj-faq { grid-column: 1 / -1; margin-top: 44px; }
.rj-faq-item { border-bottom: 1px solid var(--rj-line); }
.rj-faq-item summary {
	list-style: none; cursor: pointer; padding: 16px 0; font-size: 14.5px;
	display: flex; justify-content: space-between; align-items: center; color: var(--rj-ink);
}
.rj-faq-item summary::-webkit-details-marker { display: none; }
.rj-faq-item summary::after { content: "+"; color: var(--rj-accent); font-size: 17px; }
.rj-faq-item[open] summary::after { content: "−"; }
.rj-faq-answer { padding: 0 0 18px; font-size: 13.5px; color: var(--rj-muted); line-height: 1.9; max-width: 62em; }

/* 相关商品 */
.rj-woo .related.products, .rj-woo .upsells.products { grid-column: 1 / -1; margin-top: 54px; }
.rj-woo .related.products > h2, .rj-woo .upsells.products > h2 {
	font-family: var(--rj-serif); font-size: 20px; margin-bottom: 20px;
}
.rj-woo .related.products ul.products { margin-top: 0; }

/* 消息与表单 */
.rj-woo .woocommerce-message, .rj-woo .woocommerce-info, .rj-woo .woocommerce-error {
	background: var(--rj-white) !important; border: 1px solid var(--rj-line) !important;
	border-top: 2px solid var(--rj-accent) !important; color: var(--rj-ink-2) !important;
	font-size: 13.5px; padding: 14px 18px !important; list-style: none;
}
.rj-woo .woocommerce-message::before, .rj-woo .woocommerce-info::before { color: var(--rj-accent) !important; }

.rj-woo input[type="text"], .rj-woo input[type="email"], .rj-woo input[type="tel"],
.rj-woo input[type="password"], .rj-woo input[type="number"], .rj-woo textarea, .rj-woo select {
	border: 1px solid var(--rj-line); background: var(--rj-white); padding: 10px 12px;
	font-size: 14px; font-family: inherit; color: var(--rj-ink); border-radius: 0;
}
.rj-woo input:focus, .rj-woo textarea:focus, .rj-woo select:focus { outline: 1px solid var(--rj-accent); }

.rj-woo table.shop_table {
	border: 1px solid var(--rj-line); border-collapse: collapse; background: var(--rj-white);
	font-size: 13.5px; border-radius: 0;
}
.rj-woo table.shop_table th, .rj-woo table.shop_table td { border-bottom: 1px solid var(--rj-line); padding: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
	.rj-nav { display: none; }
	.rj-menu-toggle { display: flex; }
	.rj-header-inner { height: 68px; gap: 16px; }
	.rj-search input[type="search"] { width: 110px; }
	.rj-hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 46px 24px 56px; }
	.rj-woo div.product { grid-template-columns: 1fr; gap: 34px; }
	.rj-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rj-woo ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rj-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rj-footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 760px) {
	.rj-topbar-note { display: none; }
	.rj-topbar-inner { justify-content: flex-end; }
	.rj-tools .rj-search, .rj-tools .rj-tool-link { display: none; }
	.rj-grid-4, .rj-grid-3, .rj-triple, .rj-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rj-woo ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.rj-hero-facts { gap: 18px; flex-wrap: wrap; }
	.rj-hero-title { font-size: 32px; }
	.rj-guides-grid { grid-template-columns: 1fr; }
	.rj-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
	.rj-section { padding: 40px 0; }
	.rj-woo { padding: 28px 16px 56px; }
	.rj-wrap { padding: 0 16px; }
}

@media (max-width: 480px) {
	.rj-grid-4, .rj-grid-3, .rj-triple, .rj-trust-grid, .rj-woo ul.products { grid-template-columns: 1fr; }
	.rj-logo-cn { font-size: 21px; }
	.rj-tool-cart { padding: 8px 11px; font-size: 12px; }
}

/* ---------- 商品正文模块（重写后的内容结构） ---------- */
.rj-sec {
	font-family: var(--rj-sans); font-size: 11px; letter-spacing: 0.2em;
	color: var(--rj-muted); text-transform: uppercase;
	border-bottom: 1px solid var(--rj-line); padding-bottom: 8px;
	margin: 30px 0 12px;
}
.rj-sec:first-child { margin-top: 0; }
.rj-woo .woocommerce-Tabs-panel p { font-size: 14.5px; line-height: 1.95; color: var(--rj-ink-2); margin: 0 0 12px; }

.rj-spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.rj-spec-table th {
	width: 34%; text-align: left; font-weight: 400; font-size: 12.5px;
	color: var(--rj-muted); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rj-line);
	background: transparent;
}
.rj-spec-table td {
	font-size: 13.5px; color: var(--rj-ink-2); padding: 10px 0;
	border-bottom: 1px solid var(--rj-line);
}

.rj-scene { list-style: none; margin: 8px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rj-scene li { font-size: 13.5px; color: var(--rj-ink-2); padding-left: 16px; position: relative; }
.rj-scene li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 1px; background: var(--rj-accent); }

.rj-tip {
	font-size: 12.5px; color: var(--rj-muted); line-height: 1.85;
	border-left: 2px solid var(--rj-line-2); padding-left: 12px; margin-top: 18px;
}

/* ---------- 导购页 / 组合页正文的数据表 ---------- */
/* 正文宽度只有 880px，4 列表格在窄屏会挤爆，套一层横向滚动壳 */
.rjg-tw { margin: 16px 0 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rjg-tw table { margin: 0; min-width: 520px; }
.rjg-tw thead th { background: #fbfbfa; font-weight: 500; white-space: nowrap; }
.rjg-tw td { vertical-align: top; line-height: 1.7; }
.rjg-tw td a { text-decoration: none; border-bottom: 1px solid rgba(178, 58, 46, .28); }
.rjg-tw td a:hover { border-bottom-color: var(--rj-accent); }
.rjg-price { display: inline-block; margin-top: 2px; font-size: 12.5px; color: var(--rj-muted); }
.rjg-note { font-size: 12.5px; color: var(--rj-muted); line-height: 1.8; margin: 0 0 18px; }

.rjg-faq { margin-top: 4px; }
.rjg-faq .rj-faq-item summary { font-size: 15px; }
.rjg-faq .rj-faq-answer { max-width: none; }

/* ---------- 导购页的「接着看」列表 ---------- */
.rja-rel { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 8px; }
.rja-rel li {
	display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
	padding: 12px 16px; background: var(--rj-white); border: 1px solid var(--rj-line);
}
.rja-rel li a { color: var(--rj-ink); text-decoration: none; border-bottom: 1px solid transparent; }
.rja-rel li a:hover { color: var(--rj-accent); border-bottom-color: var(--rj-accent); }
.rja-rel li span { font-size: 12px; color: var(--rj-muted); white-space: nowrap; }
@media (max-width: 640px) {
	.rja-rel li { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---------- 组合页「这批货的短板」 ---------- */
/* 这是一个反向结论区，视觉上要比正文轻一档：不抢眼，但要能扫读 */
.rjg-weak { margin: 4px 0 16px; padding-left: 20px; }
.rjg-weak li { font-size: 14.5px; line-height: 1.9; color: var(--rj-ink-2); margin-bottom: 7px; }
.rjg-weak li::marker { color: var(--rj-accent); }
@media (max-width: 640px) {
	.rjg-weak li { font-size: 14px; line-height: 1.85; }
}

/* ---------- pSEO 页面的可见面包屑 ---------- */
/* 之前 .rjp-crumbs 一直没定义，正文顶上是浏览器默认样式的 nav，链接是一串蓝色下划线 */
.rjp-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	margin: 0 0 18px; font-size: 12.5px; color: var(--rj-muted); line-height: 1.6;
}
.rjp-crumbs a { color: var(--rj-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.rjp-crumbs a:hover { color: var(--rj-accent); border-bottom-color: var(--rj-accent); }
.rjp-crumbs span { color: #c9cfc9; }
.rjp-crumbs em { font-style: normal; color: var(--rj-ink); }

/* ---------- 场景页的「按这个顺序排除」 ---------- */
.rjg-steps { counter-reset: rjgstep; list-style: none; margin: 6px 0 18px; padding: 0; display: grid; gap: 10px; }
.rjg-steps li {
	counter-increment: rjgstep; position: relative;
	padding: 14px 18px 14px 52px; background: var(--rj-white); border: 1px solid var(--rj-line);
	font-size: 14.5px; line-height: 1.85; color: var(--rj-ink-2);
}
.rjg-steps li::before {
	content: counter(rjgstep); position: absolute; left: 16px; top: 14px;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--rj-accent); color: #fff;
	font-size: 12px; font-weight: 600; line-height: 22px; text-align: center;
}
.rjg-steps li b { color: var(--rj-ink); }
.rjg-steps li a { color: var(--rj-accent); text-decoration: none; border-bottom: 1px solid rgba(178, 58, 46, .3); }
.rjg-steps li a:hover { border-bottom-color: var(--rj-accent); }
@media (max-width: 640px) {
	.rjg-steps li { padding: 12px 14px 12px 46px; }
}

/* =========================================================================
   归档页正文（202-riyanju-archive-prose.php）
   /c/ 分类、/brand/ 品牌、/shop/ 原来只有商品网格，没有任何正文块。
   表格复用 .rjg-tw / .rjg-note，这里只补标题、导语、标签。
   ========================================================================= */
.ryj-a202 { margin: 0 0 24px; }
.ryj-a202-h1 {
	font-family: var(--rj-serif);
	font-size: 26px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--rj-ink);
	margin: 0 0 8px;
	letter-spacing: .02em;
}
.ryj-a202-meta {
	font-size: 12.5px;
	color: var(--rj-muted);
	line-height: 1.7;
	margin: 0 0 12px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--rj-line);
}
.ryj-a202-lead {
	font-size: 14px;
	line-height: 1.95;
	color: var(--rj-ink-2);
	margin: 0 0 6px;
}
.ryj-a202-p {
	font-size: 13.5px;
	line-height: 1.9;
	color: var(--rj-ink-2);
	margin: 0 0 10px;
}
.ryj-a202-h2 {
	font-family: var(--rj-serif);
	font-size: 17px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--rj-ink);
	margin: 22px 0 8px;
	padding: 0 0 0 10px;
	border-left: 3px solid var(--rj-accent);
}
.ryj-a202-chips-label {
	font-size: 12px;
	color: var(--rj-muted);
	margin: 0 0 6px;
}
.ryj-a202-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 6px;
}
.ryj-a202-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid var(--rj-line-2);
	border-radius: 999px;
	background: var(--rj-white);
	font-size: 13px;
	line-height: 1.5;
	color: var(--rj-ink-2);
	text-decoration: none;
	transition: border-color .15s, color .15s;
}
.ryj-a202-chip:hover { border-color: var(--rj-accent); color: var(--rj-accent); }
.ryj-a202-chip b {
	font-weight: 500;
	font-size: 11.5px;
	color: var(--rj-muted);
	font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
	.ryj-a202-h1 { font-size: 21px; }
	.ryj-a202-h2 { font-size: 15.5px; margin-top: 18px; }
	.ryj-a202-lead { font-size: 13.5px; line-height: 1.85; }
	.ryj-a202-chip { font-size: 12.5px; padding: 4px 10px; }
}

/* ---- 205 品牌价目表 ---- */
.ryj-a205{margin:26px 0 6px;}
.ryj-a205 .rjg-tw td:first-child{min-width:150px;}
.ryj-a205-u{font-size:11px;color:#8a939b;margin-left:1px;}
@media(max-width:720px){
  .ryj-a205 .rjg-tw td:first-child{min-width:96px;}
  .ryj-a205 .rjg-tw th,.ryj-a205 .rjg-tw td{padding:7px 6px;font-size:12px;}
}
