/* =============================================================
   雲南普洱茶廠（台灣站）— 主樣式
   ============================================================= */

:root {
	--ink: #1C3B2E;
	--ink-2: #2F5D4C;
	--ink-3: #0E2419;
	--gold: #C8A45C;
	--gold-dark: #A9853C;
	--brown: #8B5E34;
	--cream: #FBF8F1;
	--soft: #F4EFE4;
	--paper: #FFFFFF;
	--text: #2A2A28;
	--muted: #706B60;
	--line: #E7E1D4;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 6px 24px rgba(28, 59, 46, .08);
	--shadow-lg: 0 18px 48px rgba(28, 59, 46, .14);
	--sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
	--serif: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", Georgia, serif;
	--wrap: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.8;
	color: var(--text);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: var(--ink-2); text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

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

.screen-reader-text { position: absolute !important; left: -9999px; }
.skip-link:focus { left: 0; top: 0; background: #000; color: #fff; padding: 8px 16px; z-index: 9999; position: fixed; }

/* ---------- 按鈕 ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 26px; border: 1px solid transparent; border-radius: 999px;
	font-size: 15px; font-weight: 500; cursor: pointer;
	transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-gold { background: var(--gold); color: #2A1E09; border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 頂部公告列 ---------- */
.site-topbar { background: var(--ink-3); color: #E8E2D4; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar-msg { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar-msg .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: #E8E2D4; }
.topbar-links a:hover { color: var(--gold); }
.tb-line { color: var(--gold) !important; font-weight: 500; }

/* ---------- 頁首 ---------- */
.site-header {
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 900;
	transition: box-shadow .3s;
}
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: 1px; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: 1.6px; color: var(--muted); }

.primary-nav { margin-left: auto; }
.nav-menu { display: flex; gap: 4px; }
.nav-menu li { position: relative; }
.nav-menu > li > a {
	display: block; padding: 10px 16px; font-size: 15px; color: var(--text);
	border-radius: var(--radius-sm); position: relative;
}
.nav-menu > li > a:hover { color: var(--ink); background: var(--soft); }
.nav-menu > li.current-menu-item > a { color: var(--ink); font-weight: 500; }
.nav-menu > li.current-menu-item > a::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
	height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-menu .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
	background: #fff; box-shadow: var(--shadow); border-radius: var(--radius-sm); padding: 8px 0; z-index: 10;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 8px 18px; font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-link {
	display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
	color: var(--ink); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
}
.cart-link:hover { border-color: var(--gold); color: var(--gold-dark); }
.cart-count {
	background: var(--gold); color: #2A1E09; font-style: normal; font-size: 12px;
	min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex;
	align-items: center; justify-content: center; padding: 0 6px; font-weight: 700;
}

.nav-toggle {
	display: none; width: 42px; height: 42px; border: 1px solid var(--line);
	background: #fff; border-radius: var(--radius-sm); cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: 120px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow { font-size: 13px; letter-spacing: 3px; color: var(--gold); margin-bottom: 18px; }
.hero-title { font-size: clamp(38px, 5.4vw, 66px); color: #fff; margin-bottom: 22px; letter-spacing: 2px; }
.hero-title .sep { color: var(--gold); margin: 0 10px; }
.hero-sub { font-size: 17px; line-height: 2; color: rgba(255,255,255,.86); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--ink); }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; margin: 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 32px; color: var(--gold); line-height: 1.1; }
.hero-stats small { font-size: 15px; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.7); letter-spacing: 1px; }

/* ---------- 區塊通用 ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--gold-dark); margin-bottom: 10px; font-weight: 500; }
.section-title { font-size: clamp(26px, 3vw, 36px); color: var(--ink); margin-bottom: 14px; letter-spacing: 1px; }
.section-title-sm { font-size: 22px; margin-bottom: 20px; }
.section-desc { color: var(--muted); margin: 0; }
.section-head-light .section-title { color: #fff; }
.section-head-light .section-desc { color: rgba(255,255,255,.75); }
.section-more { text-align: center; margin-top: 48px; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- 三大堅持 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 38px 32px; text-align: center; box-shadow: var(--shadow); }
.feature-icon { color: var(--gold-dark); display: inline-flex; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- 商品卡 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
	background: #fff; border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
	display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-thumb { position: relative; display: block; background: var(--soft); aspect-ratio: 1/1; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.thumb-placeholder {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #2F5D4C, #1C3B2E); color: var(--gold);
	font-family: var(--serif); font-size: 26px; letter-spacing: 4px;
}
.thumb-placeholder.big { position: relative; height: 420px; font-size: 40px; }
.badge-sale, .badge-year {
	position: absolute; top: 14px; left: 14px; background: var(--gold); color: #2A1E09;
	font-size: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 700; z-index: 2;
}
.badge-year { left: auto; right: 14px; background: rgba(28,59,46,.9); color: #fff; }
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 12px; color: var(--gold-dark); margin-bottom: 8px; letter-spacing: 1px; }
.product-cat .sep { margin: 0 6px; }
.product-title { font-size: 18px; margin-bottom: 10px; }
.product-title a { color: var(--ink); }
.product-excerpt { font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-price { font-family: var(--serif); font-size: 20px; color: var(--brown); font-weight: 700; }

/* ---------- 茶區 ---------- */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.region-card {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
	border-radius: var(--radius); padding: 32px 26px; position: relative; transition: .3s;
}
.region-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.region-index { font-family: var(--serif); font-size: 34px; color: rgba(200,164,92,.5); display: block; margin-bottom: 12px; }
.region-card h3 { font-size: 20px; color: #fff; margin-bottom: 4px; }
.region-en { font-size: 11px; letter-spacing: 2px; color: var(--gold); margin-bottom: 14px; }
.region-desc { font-size: 14px; color: rgba(255,255,255,.76); margin-bottom: 18px; }
.region-tag { font-size: 12px; border: 1px solid var(--gold); color: var(--gold); padding: 4px 12px; border-radius: 999px; }

/* ---------- 工藝步驟 ---------- */
.craft-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.craft-steps li { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); position: relative; }
.step-num {
	width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-size: 16px; margin-bottom: 14px;
}
.craft-steps h4 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.craft-steps p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- 關於廠區 ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-img-frame {
	border-radius: var(--radius); overflow: hidden; position: relative; height: 460px;
	background:
		linear-gradient(180deg, rgba(28,59,46,.15), rgba(28,59,46,.75)),
		repeating-linear-gradient(135deg, #2F5D4C 0 40px, #26493C 40px 80px);
	display: flex; align-items: flex-end; padding: 28px;
}
.img-caption { color: #fff; font-size: 14px; letter-spacing: 2px; }
.about-badge {
	position: absolute; right: -18px; bottom: 36px; background: var(--gold);
	border-radius: var(--radius); padding: 22px 26px; text-align: center; box-shadow: var(--shadow-lg);
}
.about-badge strong { display: block; font-family: var(--serif); font-size: 40px; color: #2A1E09; line-height: 1; }
.about-badge span { font-size: 13px; color: #4A3616; }
.about-content p { color: var(--muted); }
.about-list { margin: 24px 0 30px; }
.about-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.about-list li::before {
	content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px;
	background: var(--gold); border-radius: 50%;
}

/* ---------- 文章卡 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 26px; }
.post-meta { font-size: 12px; color: var(--gold-dark); letter-spacing: 1px; margin-bottom: 8px; }
.post-body h3 { font-size: 18px; margin-bottom: 10px; }
.post-body h3 a { color: var(--ink); }
.post-body p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink-3), var(--ink-2)); color: #fff; padding: 70px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { font-size: 30px; color: #fff; margin-bottom: 10px; }
.cta-text p { color: rgba(255,255,255,.8); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-actions .btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- 內頁 ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 56px 0 44px; }
.page-hero-sm { padding: 40px 0 32px; }
.page-title { font-size: clamp(26px, 3.2vw, 38px); color: #fff; margin: 10px 0 8px; }
.page-sub, .entry-meta { color: rgba(255,255,255,.75); margin: 0; font-size: 14px; }
.puer-breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); }
.puer-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.puer-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.35); }
.puer-breadcrumb a { color: rgba(255,255,255,.75); }
.puer-breadcrumb a:hover { color: var(--gold); }

/* 淺色底（商品頁、內文頁）的麵包屑改用深色字 */
.site-content > .puer-breadcrumb,
.shop-content > .puer-breadcrumb { color: var(--muted); }
.site-content > .puer-breadcrumb a,
.shop-content > .puer-breadcrumb a { color: var(--ink-2); }
.site-content > .puer-breadcrumb a:hover,
.shop-content > .puer-breadcrumb a:hover { color: var(--gold-dark); }
.site-content > .puer-breadcrumb li + li::before,
.shop-content > .puer-breadcrumb li + li::before { color: var(--line); }

.site-content { padding: 56px 24px 80px; display: grid; grid-template-columns: 1fr; gap: 40px; }
.site-content.has-sidebar { grid-template-columns: 1fr 300px; }
.content-area { min-width: 0; }
.content-page { max-width: 860px; margin: 0 auto; width: 100%; }
.entry-thumb { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.entry-content { font-size: 16px; line-height: 2; }
.entry-content h2 { font-size: 24px; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content ul { margin: 0 0 1.2em; padding-left: 22px; list-style: disc; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { border-left: 3px solid var(--gold); padding-left: 18px; color: var(--muted); font-style: italic; margin: 1.6em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--soft); }
.entry-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- 商店工具列 ---------- */
.shop-content { display: block; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cat-filter-sub { margin-top: 12px; align-items: center; }
.filter-label { font-size: 13px; color: rgba(255,255,255,.6); margin-right: 4px; }
.cat-chip {
	display: inline-block; padding: 7px 18px; border-radius: 999px; font-size: 14px;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff;
}
.cat-chip:hover { background: rgba(255,255,255,.18); color: #fff; }
.cat-chip.is-active { background: var(--gold); border-color: var(--gold); color: #2A1E09; font-weight: 500; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.result-count { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- 商品詳情 ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 70px; }
.product-gallery .main-img { border-radius: var(--radius); width: 100%; }
.pd-cat { font-size: 13px; color: var(--gold-dark); letter-spacing: 1px; margin-bottom: 10px; }
.pd-cat a { color: var(--gold-dark); }
.pd-cat .sep { margin: 0 8px; color: var(--muted); }
.pd-title { font-size: 32px; margin-bottom: 16px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.pd-price .price { font-family: var(--serif); font-size: 30px; color: var(--brown); font-weight: 700; }
.price-note { font-size: 13px; color: var(--muted); }
.pd-excerpt { color: var(--muted); }
.pd-meta { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 15px; }
.pd-meta th { width: 90px; text-align: left; color: var(--muted); font-weight: 400; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pd-meta td { padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.pd-service { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.pd-service li { position: relative; padding-left: 22px; }
.pd-service li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); }
.pd-contact { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; }
.pd-contact p { margin: 0 0 6px; color: var(--muted); }
.pd-contact a { color: var(--ink); font-weight: 500; }

.product-tabs { margin-bottom: 80px; }
.tab-nav { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab-nav li { padding: 12px 24px; cursor: pointer; font-family: var(--serif); font-size: 17px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-nav li.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.tab-panel { display: none; font-size: 16px; line-height: 2; }
.tab-panel.is-active { display: block; }
.brew-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.brew-list strong { display: inline-block; width: 80px; color: var(--ink); }

.related-products { margin-top: 20px; }

/* ---------- 詢價頁 ---------- */
.inquiry-page { display: block; }
.inquiry-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 46px; align-items: start; }
.inquiry-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.inquiry-table th, .inquiry-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.inquiry-table thead th { background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; }
.inquiry-table tfoot th { background: var(--soft); }
.inquiry-table .total { color: var(--brown); font-family: var(--serif); font-size: 19px; }
.remove-item { color: var(--muted); font-size: 13px; }
.remove-item:hover { color: #C0392B; }
.inquiry-form-wrap { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.inquiry-form .form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.inquiry-form .req { color: #C0392B; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
	font-family: inherit; font-size: 15px; background: #fff; color: var(--text);
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
	outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,92,.15);
}
.form-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.notice-success { background: #fff; border-radius: var(--radius); padding: 48px; text-align: center; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.notice-success h2 { color: var(--ink); }

/* ---------- 分頁 / 留言 ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 14px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.comments-area { margin-top: 50px; }
.comment-list li { background: #fff; padding: 20px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------- 404 ---------- */
.notfound { display: block; text-align: center; }
.notfound-inner { max-width: 560px; margin: 0 auto; padding: 60px 0; }
.notfound-code { font-family: var(--serif); font-size: 90px; color: var(--gold); margin: 0; line-height: 1; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; margin: 26px 0; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--ink-3); color: rgba(255,255,255,.72); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text em { color: rgba(255,255,255,.5); }
.footer-desc { font-size: 14px; margin: 18px 0 20px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-menu a:hover { color: var(--gold); }
.footer-contact li { font-size: 14px; margin-bottom: 12px; line-height: 1.7; }
.footer-contact span { display: block; color: var(--gold); font-size: 12px; letter-spacing: 1px; margin-bottom: 2px; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
	width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
	display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #2A1E09; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom p { margin: 0; }

.back-to-top {
	position: fixed; right: 26px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--ink); color: #fff; border: none; cursor: pointer; display: none;
	align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 800;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--gold); color: #2A1E09; }

/* ---------- RWD ---------- */
@media (max-width: 1080px) {
	.feature-grid, .product-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.region-grid, .craft-steps { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.about-split, .product-detail, .inquiry-grid { grid-template-columns: 1fr; gap: 40px; }
	.about-badge { right: 0; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; margin-left: auto; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: #fff;
		border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		max-height: 0; overflow: hidden; transition: max-height .3s ease;
	}
	.primary-nav.open { max-height: 460px; overflow-y: auto; }
	.nav-menu { flex-direction: column; padding: 12px; }
	.nav-menu .sub-menu { position: static; box-shadow: none; display: none; }
	.header-actions { order: 3; }
	.header-inner { flex-wrap: wrap; min-height: 66px; }
	.section { padding: 64px 0; }
	.hero { padding: 76px 0 60px; }
	.hero-stats { gap: 28px; }
	.product-detail { gap: 32px; }
	.site-content { padding: 36px 0 60px; }
}

/* ---------- 品牌標誌 ---------- */
.brand-logo { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.site-footer .brand-logo { width: 42px; height: 42px; }

/* ---------- Hero 實景照片 ---------- */
.hero.has-photo { min-height: 580px; display: flex; align-items: center; }
.hero.has-photo .hero-bg img.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-scrim {
	position: absolute; inset: 0;
	/* 兩層遮罩：左側留深色給白字閱讀，右側與底部讓實景照片透出來 */
	background:
		linear-gradient(to top, rgba(9, 24, 17, .58) 0%, rgba(9, 24, 17, 0) 46%),
		linear-gradient(100deg, rgba(9, 24, 17, .88) 0%, rgba(9, 24, 17, .64) 34%, rgba(9, 24, 17, .22) 66%, rgba(9, 24, 17, .04) 100%);
}
.hero-real {
	display: inline-flex; align-items: center; gap: 8px;
	margin-bottom: 16px; padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px;
	font-size: 12.5px; letter-spacing: 1.5px; color: rgba(255, 255, 255, .88);
}
.hero-real::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 92, .25); }

/* ---------- 榮譽與認證 ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.honor-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.honor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.honor-media { aspect-ratio: 4/3; background: var(--soft); position: relative; overflow: hidden; }
.honor-media img { width: 100%; height: 100%; object-fit: cover; }
.honor-media .thumb-placeholder { font-size: 22px; }
.honor-body { padding: 24px 26px 28px; }
.honor-body h3 { font-size: 18px; margin-bottom: 6px; color: var(--ink); }
.honor-sub { color: var(--gold-dark); font-size: 14px; margin-bottom: 10px; letter-spacing: 1px; }
.honor-body p:last-child { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- 工序標題 ---------- */
.craft-title { text-align: center; font-size: 19px; color: var(--ink); margin-bottom: 26px; letter-spacing: 2px; }
.craft-title::after { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin: 12px auto 0; }
.craft-title-gap { margin-top: 56px; }
.craft-steps-5 { grid-template-columns: repeat(5, 1fr); }
.step-aging .step-num { background: var(--gold); color: #2A1E09; }
.step-aging { border: 1px solid rgba(200,164,92,.45); }

/* ---------- 廠區照片框 ---------- */
.about-img-frame.has-photo { background: none; padding: 0; }
.about-img-frame.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-img-frame.has-photo .img-caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 22px;
	background: linear-gradient(transparent, rgba(0,0,0,.72));
}

@media (max-width: 1080px) {
	.honor-grid { grid-template-columns: repeat(2, 1fr); }
	.craft-steps-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
	.feature-grid, .product-grid, .post-grid, .region-grid, .craft-steps, .craft-steps-5, .honor-grid, .footer-grid { grid-template-columns: 1fr; }
	.topbar-links { gap: 12px; font-size: 12px; }
	.hero-stats strong { font-size: 24px; }
	.form-row-2 { grid-template-columns: 1fr; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.footer-bottom-inner { flex-direction: column; }
}

/* ---------- 加入詢價單：Toast 提示 ---------- */
.puer-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 9999;
	transform: translate(-50%, 24px);
	display: flex; align-items: center; gap: 14px;
	max-width: calc(100vw - 32px);
	padding: 14px 22px;
	background: var(--ink); color: #fff;
	border-radius: 999px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
	font-size: 14.5px;
	opacity: 0; pointer-events: none;
	transition: opacity .3s, transform .3s;
}
.puer-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.puer-toast.is-error { background: #8B2E22; }
.puer-toast-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puer-toast-link { color: var(--gold); font-weight: 500; white-space: nowrap; border-bottom: 1px solid rgba(200, 164, 92, .5); }
.puer-toast-link:hover { color: #fff; border-color: #fff; }

/* 頁首詢價單徽章：加入後彈一下 */
.cart-link.is-bump { animation: puer-bump .5s ease; }
@keyframes puer-bump {
	0% { transform: scale(1); }
	35% { transform: scale(1.16); }
	100% { transform: scale(1); }
}

/* 加入中按鈕 */
.btn.is-loading { opacity: .7; cursor: progress; }

@media (max-width: 620px) {
	.puer-toast { left: 16px; right: 16px; bottom: 16px; transform: translate(0, 24px); max-width: none; justify-content: space-between; }
	.puer-toast.show { transform: translate(0, 0); }
	.puer-toast-msg { white-space: normal; }
}
