/* ==========================================================================
   水工江地板 Chiangfloor — main stylesheet
   Breakpoints: mobile < 744, tablet 744–1023 (mobile nav), desktop ≥ 1024
   ========================================================================== */

:root {
	--ink: #1d1d1f;
	--ink-2: #424245;
	--muted: #6e6e73;
	--line: #d2d2d7;
	--line-soft: #e0e0e5;
	--grey: #f5f5f7;
	--accent: #8a5a32;
	--accent-dark: #6b4325;
	--accent-soft: #f7f1e9;
	--accent-on-dark: #e3bf98;
	--line-green: #00873c;
	--bg: #fff;
	--surface: #fff;
	--on-accent: #fff;
	--on-ink: #fff;
	--hover: rgba(0, 0, 0, .06);
	--hover-soft: rgba(0, 0, 0, .05);
	--divider: rgba(0, 0, 0, .08);
	--row-line: #e8e8ed;
	--surface-hover: #ececf0;
	--photo-bg: #efe8de;
	--ph-bg: #e7dccd;
	--ph-ink: rgba(29, 29, 31, .55);
	--ph-line: rgba(60, 40, 20, .08);
	--ph-line-2: rgba(60, 40, 20, .035);
	--fade: rgba(255, 255, 255, .85);
	--fade-0: rgba(255, 255, 255, 0);
	--chev: #8e8e93;
	--card-dark-bg: #1d1d1f;
	--card-dark-ink: #f5f5f7;
	--card-dark-sub: #c7c7cc;
	--glass-bg: rgba(255, 255, 255, .4);
	--glass-bg-light: rgba(255, 255, 255, .62);
	--glass-bg-solid: rgba(255, 255, 255, .94);
	--glass-border: rgba(255, 255, 255, .85);
	--glass-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), inset 0 1.5px 0 #fff, inset 0 -1px 1px rgba(255, 255, 255, .55), inset 0 0 18px rgba(255, 255, 255, .35), 0 14px 44px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .06);
	--glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .15) 28%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, .45) 100%);
	--shadow-soft: 0 6px 20px rgba(0, 0, 0, .06);
	color-scheme: light;
	--radius-lg: 28px;
	--radius: 20px;
	--radius-sm: 14px;
	--pill: 980px;
	--font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
	--header-space: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 160px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; color: var(--on-ink); }

.container { width: 100%; max-width: 1124px; margin: 0 auto; padding: 0 22px; }
.container--wide { max-width: 1324px; }

.placeholder {
	display: flex; align-items: center; justify-content: center; text-align: center;
	width: 100%; height: 100%; min-height: 160px; padding: 16px;
	color: var(--ph-ink); font-size: 13px; letter-spacing: .06em;
	background-color: var(--ph-bg);
	background-image: repeating-linear-gradient(90deg, var(--ph-line) 0 1px, transparent 1px 96px), repeating-linear-gradient(0deg, var(--ph-line-2) 0 1px, transparent 1px 22px);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 24px; border-radius: var(--pill);
	font-size: 17px; font-weight: 700; line-height: 1; border: 1px solid transparent;
	cursor: pointer; transition: filter .15s, background .15s;
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn--line { background: var(--line-green); color: #fff; }
.btn--line:hover { color: #fff; filter: brightness(1.08); }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.link-more { font-size: 17px; white-space: nowrap; }

/* ---------- Liquid glass ---------- */
.glass {
	position: relative;
	background: var(--glass-bg);
	-webkit-backdrop-filter: blur(30px) saturate(210%) brightness(1.06);
	backdrop-filter: blur(30px) saturate(210%) brightness(1.06);
	border: 1px solid var(--glass-border);
	box-shadow: var(--glass-shadow);
}
.glass::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: var(--glass-sheen);
}
.glass > * { position: relative; }
.glass--light { background: var(--glass-bg-light); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.glass { background: var(--glass-bg-solid); }
}

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header__bar {
	width: min(1160px, calc(100% - 32px));
	margin: 16px auto 0;
	min-height: 64px;
	padding: 0 8px 0 12px;
	border-radius: var(--pill);
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-header .site-logo__img { height: 54px; width: auto; max-width: none; }

.primary-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; }
.primary-nav__link {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
	border: 0; border-radius: var(--pill); background: transparent;
	font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.primary-nav__link:hover { color: var(--accent); }
.primary-nav__link.is-current { color: var(--accent); }
.primary-nav__link[aria-expanded="true"] { background: var(--hover); }

.site-header__mobile-actions { display: none; align-items: center; }
.icon-btn {
	width: 44px; height: 44px; border: 0; border-radius: var(--pill); background: transparent;
	display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.icon-btn[aria-expanded="true"] { background: var(--hover); }
.icon-btn .icon-close { display: none; }
.icon-btn[aria-expanded="true"] .icon-open { display: none; }
.icon-btn[aria-expanded="true"] .icon-close { display: inline-flex; }
.icon-open, .icon-close { display: inline-flex; }

/* Mega menu */
.mega {
	width: min(1160px, calc(100% - 32px));
	margin: 12px auto 0;
	border-radius: var(--radius-lg);
	padding: 36px 40px 40px;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.mega[hidden] { display: none; }
.mega__col { display: flex; flex-direction: column; gap: 10px; }
.mega__label { font-size: 12px; color: var(--muted); }
.mega__big { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.mega__link { font-size: 14px; font-weight: 500; color: var(--ink); }
.mega__brand { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.mega__big:hover, .mega__link:hover { color: var(--accent); }

/* Mobile chips row */
.chips-row { display: none; position: relative; margin-top: 10px; }
.chips-row__track {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
	padding: 2px 44px 10px 40px;
}
.chips-row__track::-webkit-scrollbar { display: none; }
.chip {
	flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: var(--pill);
	display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--ink);
}
.chip.is-current { color: var(--accent); background: var(--accent-soft); border: 1.5px solid var(--accent); }
.chips-row__arrow {
	position: absolute; top: 2px; width: 44px; height: 44px; border: 0; padding: 0;
	display: flex; align-items: center; color: var(--chev); cursor: pointer; transition: opacity .2s;
}
.chips-row__arrow--prev { left: 0; justify-content: center; background: linear-gradient(270deg, var(--fade-0), var(--fade) 60%); }
.chips-row__arrow--next { right: 0; justify-content: center; background: linear-gradient(90deg, var(--fade-0), var(--fade) 60%); }
.chips-row__arrow.is-off { opacity: .35; pointer-events: none; }

/* Mobile panels */
.mobile-panel {
	margin: 10px 12px 0; border-radius: 30px; padding: 24px 26px 28px;
	display: flex; flex-direction: column; gap: 4px;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel__label { font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.mobile-panel__label:first-child { margin-top: 0; }
.mobile-panel__big { font-size: 24px; font-weight: 700; color: var(--ink); padding: 6px 0; }
.mobile-panel__link { font-size: 17px; font-weight: 500; color: var(--ink); padding: 8px 0; }
.mobile-panel .btn { margin-top: 14px; }

.search-field {
	display: flex; align-items: center; gap: 10px; color: var(--muted);
	border-bottom: 1px solid var(--divider);
}
.search-field input {
	flex: 1; min-width: 0; height: 48px; border: 0; background: transparent;
	font: inherit; font-size: 16px; color: var(--ink); outline: none;
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.primary-nav__link { font-size: 15px; padding: 0 9px; }
}
@media (max-width: 1023px) {
	.primary-nav, .site-header__actions { display: none; }
	.site-header__mobile-actions { display: flex; }
	.site-header__bar { width: auto; margin: 10px 12px 0; min-height: 60px; padding: 0 6px 0 8px; }
	.site-header .site-logo__img { height: 50px; }
	.chips-row { display: block; }
	.mega { display: none !important; }
	.site-header.panel-open .chips-row { display: none; }
	:root { --header-space: 146px; }
}

/* ---------- Layout ---------- */
.site-main { padding-top: var(--header-space); }
.section { padding: 140px 0 0; }
.section--grey { background: var(--grey); margin-top: 140px; padding: 100px 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section__title { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.section__title--center { text-align: center; }
.section__title--sm { font-size: 28px; }
.section__lead { margin-top: 12px; font-size: 19px; color: var(--muted); }
.section__lead--center { text-align: center; }
.page-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 32px; }

/* ---------- Home ---------- */
.home .site-main { padding-top: 0; }
.hero { padding-top: 168px; text-align: center; }
.hero__title { font-size: clamp(32px, 6vw, 80px); line-height: 1.1; letter-spacing: -.01em; }
.hero__media { max-width: 1324px; margin: 56px auto 0; padding: 0 22px; }
.hero__img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); }
.hero__img.placeholder { min-height: 0; }

.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; margin-top: 56px; }
.cat-card {
	background: var(--grey); border-radius: var(--radius-lg); overflow: hidden;
	display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 56px;
}
.cat-card__title { font-size: 40px; }
.cat-card__title a { color: inherit; }
.cat-card__sub { margin: 12px 32px 0; color: var(--ink-2); }
.cat-card__links { display: flex; gap: 28px; margin-top: 20px; margin-bottom: 40px; }
.cat-card__media { display: block; width: 100%; aspect-ratio: 16 / 10; margin-top: auto; overflow: hidden; flex-shrink: 0; }
.cat-card__media img, .cat-card__media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover .cat-card__media img { transform: scale(1.03); }
.cat-card--dark { background: var(--card-dark-bg); color: var(--card-dark-ink); }
.cat-card--dark .cat-card__sub { color: var(--card-dark-sub); }
.cat-card--dark .cat-card__links a { color: var(--accent-on-dark); }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 24px; margin-top: 40px; }
.work-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.work-card:hover { color: var(--ink); }
.work-card__media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-bottom: 6px; background: var(--grey); }
.work-card__media img, .work-card__media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__tag { font-size: 13px; font-weight: 700; color: var(--accent); }
.work-card__title { font-size: 19px; font-weight: 700; line-height: 1.4; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 32px; }
.brand-grid a {
	display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 16px;
	border-radius: 16px; background: var(--grey); color: var(--muted); font-weight: 500; text-align: center;
}
.brand-grid a:hover { color: var(--ink); }
.brand-grid img { max-height: 56px; width: auto; object-fit: contain; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-top: 56px; }
.steps__item { display: flex; flex-direction: column; gap: 12px; }
.steps__num { font-size: 15px; font-weight: 700; color: var(--accent); }
.steps__title { font-size: 21px; font-weight: 700; }
.steps__text { color: var(--muted); }

.contact-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 48px; }
.contact-card { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.contact-card__phone { display: flex; flex-direction: column; gap: 4px; }
.contact-card__phone span { font-size: 15px; color: var(--muted); }
.contact-card__phone a { font-size: 28px; font-weight: 700; color: var(--ink); }
.contact-card__actions { margin-top: 8px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; background: var(--photo-bg); }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grey); padding: 0 0 28px; font-size: 12px; color: var(--muted); }
.home .site-footer, .section--grey + .site-footer { padding-top: 0; }
.site-footer > .container { border-top: 1px solid var(--line); padding-top: 32px; }
.site-main ~ .site-footer { margin-top: 120px; }
.home .site-main ~ .site-footer { margin-top: 0; }
.footer-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.footer-map__col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--ink); margin-bottom: 8px; cursor: default; }
.footer-map__col summary::-webkit-details-marker { display: none; }
.footer-map__col summary .icon { display: none; }
.footer-map__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-map__col a { color: var(--ink-2); }
.footer-map__col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--ink-2); }

/* ---------- Mobile bottom bar ---------- */
.bottom-bar { display: none; }
@media (max-width: 1023px) {
	.bottom-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); }
	.bottom-bar__inner { border-radius: var(--pill); padding: 6px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6px; }
	.bottom-bar__btn {
		height: 48px; border-radius: var(--pill); display: flex; align-items: center; justify-content: center; gap: 8px;
		color: var(--ink); font-size: 15px; font-weight: 700;
	}
	.bottom-bar__btn--line { background: var(--line-green); color: #fff; }
	.bottom-bar__btn--line:hover { color: #fff; }
	body.has-bottom-bar { padding-bottom: 84px; }
}

/* ---------- Generic content (pages not yet redesigned) ---------- */
.entry { max-width: 1124px; }
.entry__content > * + * { margin-top: 1em; }
.entry__content img { border-radius: var(--radius-sm); }

/* WooCommerce default wrappers until stage 2 */
.woocommerce .content-area, .woocommerce-page .content-area { width: 100%; max-width: 1124px; margin: 0 auto; padding: 0 22px; }

/* ---------- Mobile ---------- */
@media (max-width: 743px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.hero { padding-top: 172px; }
	.hero__title { font-size: 36px; white-space: nowrap; }
	.hero__media { margin-top: 28px; padding: 0 16px; }
	.hero__img { aspect-ratio: 4 / 5; border-radius: 22px; }
	.section { padding-top: 88px; }
	.section--grey { margin-top: 88px; padding: 64px 0; }
	.section__title { font-size: 28px; }
	.section__lead { font-size: 16px; }
	.cat-cards { margin-top: 32px; gap: 12px; }
	.cat-card { padding-top: 36px; border-radius: 22px; }
	.cat-card__title { font-size: 28px; }
	.cat-card__sub { margin: 8px 20px 0; font-size: 14px; }
	.cat-card__links { gap: 20px; margin-top: 4px; }
	.cat-card__links a { padding: 10px 0; }
	.cat-card__links { margin-bottom: 16px; }
	.scroll-row-mobile { display: flex; overflow-x: auto; scrollbar-width: none; gap: 12px; margin: 20px -16px 0; padding: 0 16px 4px; }
	.scroll-row-mobile::-webkit-scrollbar { display: none; }
	.scroll-row-mobile > * { flex: 0 0 280px; }
	.work-card__title { font-size: 17px; }
	.brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
	.brand-grid a { min-height: 64px; font-size: 15px; }
	.steps { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
	.steps__item { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; }
	.steps__num { grid-row: span 2; }
	.steps__title { font-size: 19px; }
	.steps__text { font-size: 15px; }
	.contact-band__grid { margin-top: 28px; }
	.contact-card { padding: 28px 24px; border-radius: 22px; gap: 18px; }
	.contact-card__phone a { font-size: 24px; }
	.contact-card .btn { width: 100%; }
	.map-embed, .map-embed iframe { min-height: 220px; border-radius: 22px; }
	.footer-map { grid-template-columns: 1fr; gap: 0; }
	.footer-map__col { border-bottom: 1px solid var(--line); }
	.footer-map__col summary { min-height: 48px; margin: 0; cursor: pointer; font-size: 14px; }
	.footer-map__col summary .icon { display: block; transition: transform .2s; }
	.footer-map__col[open] summary .icon { transform: rotate(45deg); }
	.footer-map__col ul { padding: 0 0 16px; font-size: 14px; }
	.site-footer > .container { border-top: 0; padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Stage 2 — catalog, brand / series, product
   ========================================================================== */
.container--catalog { max-width: 1224px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); }
.catalog__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin-top: 16px; }
.catalog__sub { font-size: 21px; margin: 48px 0 16px; }

.btn--outline-grey { border-color: var(--line); color: var(--ink); background: var(--surface); font-size: 15px; padding: 0 32px; }
.btn--outline-grey:hover { border-color: var(--ink); color: var(--ink); }
.btn--outline-grey.is-loading { opacity: .6; pointer-events: none; }
.btn--lg { min-height: 54px; font-size: 18px; }

/* Filters */
.filters { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.filter-row { display: flex; align-items: center; gap: 10px; }
.filter-row__label { flex: 0 0 56px; font-size: 15px; font-weight: 700; color: var(--muted); }
.filter-row__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pill);
	border: 1.5px solid var(--line-soft); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--muted); color: var(--ink); }
.filter-chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.filter-chip__dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 1.5px var(--bg); }

.grid-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.grid-meta__clear { font-weight: 700; padding: 10px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; margin-top: 24px; }
.product-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.product-card:hover { color: var(--ink); }
.product-card__media { aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; margin-bottom: 6px; background: var(--grey); }
.product-card__media img, .product-card__media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__brand { font-size: 13px; color: var(--muted); }
.product-card__title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.product-card__layouts { font-size: 13px; font-weight: 500; color: var(--accent); }
.load-more { display: flex; justify-content: center; margin-top: 64px; }
.empty-note { margin-top: 32px; color: var(--muted); }

/* Brand / series */
.brand-head { display: flex; align-items: center; gap: 28px; margin-top: 24px; }
.brand-head__logo { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 24px; border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.brand-head__logo img { max-width: 84%; max-height: 84%; object-fit: contain; }
.brand-head__logo span { font-size: 40px; font-weight: 700; color: var(--line); }
.brand-head__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.brand-head__eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); }
.brand-head .catalog__title { margin-top: 0; }
.brand-head__desc { font-size: 17px; color: var(--muted); }
.series-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.series-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; border-radius: 20px; border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink); }
.series-card:hover { color: var(--ink); border-color: var(--muted); }
.series-card.is-active { border: 2px solid var(--accent); background: var(--accent-soft); padding: 9px 9px 13px; }
.series-card__media { display: block; height: 120px; border-radius: 14px; overflow: hidden; margin-bottom: 8px; background: var(--grey); }
.series-card__media img, .series-card__media .placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.series-card__name { font-size: 17px; font-weight: 700; padding: 0 4px; }
.series-card__meta { font-size: 13px; color: var(--muted); padding: 0 4px; }

/* Product page */
.product-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; margin-top: 24px; align-items: start; }
.product-gallery { display: flex; flex-direction: column; gap: 14px; }
.product-gallery__stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; background: var(--photo-bg); }
.product-gallery__slide { position: absolute; inset: 0; margin: 0; }
.product-gallery__slide[hidden] { display: none; }
.product-gallery__slide img, .product-gallery__slide .placeholder { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__tag { position: absolute !important; left: 16px; bottom: 16px; border-radius: var(--pill); padding: 8px 16px; font-size: 14px; font-weight: 700; }
.product-gallery__thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.product-gallery__thumb { width: 96px; height: 96px; padding: 0; border-radius: 18px; overflow: hidden; border: 2px solid transparent; background: var(--grey); cursor: pointer; }
.product-gallery__thumb.is-active { border-color: var(--accent); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-note { display: flex; gap: 6px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.product-note .icon { flex: 0 0 auto; margin-top: 3px; }

.product-info { display: flex; flex-direction: column; padding-top: 8px; }
.product-info__eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); }
.product-info__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.product-info__title { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.share-btn {
	flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface);
	display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.share-btn:hover { border-color: var(--ink); }
.product-info__label { font-size: 17px; margin: 40px 0 12px; }
.layout-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.layout-option {
	display: flex; align-items: center; gap: 12px; text-align: left; padding: 18px; min-height: 44px; border-radius: 18px;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.layout-option.is-active { border: 2px solid var(--accent); padding: 17px; background: var(--accent-soft); }
.layout-option span { display: flex; flex-direction: column; gap: 2px; }
.layout-option strong { font-size: 17px; }
.layout-option small { font-size: 14px; color: var(--muted); }
.layout-option .layout-icon { flex: 0 0 auto; }
.spec-table { margin: 0; }
.spec-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--row-line); font-size: 15px; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 500; text-align: right; }
.product-info__cta { margin-top: 32px; }
.product-info__cta p { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.product-section { margin-top: 110px; }
.product-section__title { font-size: 32px; }
.product-section .product-grid, .product-section .work-grid { margin-top: 28px; }

@media (max-width: 743px) {
	.catalog__title { font-size: 34px; margin-top: 10px; }
	.breadcrumbs ol { font-size: 12px; gap: 6px; }
	.breadcrumbs li + li::before { margin-right: 6px; }
	.filters { margin: 24px -16px 0; padding: 14px 0; gap: 12px; }
	.filter-row { gap: 8px; }
	.filter-row__label { flex: 0 0 auto; font-size: 14px; padding-left: 16px; }
	.filter-row__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 16px; gap: 8px; }
	.filter-row__chips::-webkit-scrollbar { display: none; }
	.filter-chip { height: 44px; }
	.grid-meta { font-size: 13px; margin-top: 8px; }
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; margin-top: 8px; }
	.product-card__media { border-radius: 16px; }
	.product-card__brand { font-size: 12px; }
	.product-card__title { font-size: 15px; }
	.product-card__layouts { font-size: 12px; }
	.load-more { margin-top: 40px; }
	.brand-head { gap: 16px; margin-top: 16px; }
	.brand-head__logo { flex-basis: 72px; width: 72px; height: 72px; border-radius: 16px; }
	.brand-head__logo span { font-size: 28px; }
	.brand-head__eyebrow { font-size: 13px; }
	.brand-head .catalog__title { font-size: 30px; }
	.brand-head__desc { font-size: 15px; }
	.catalog__sub { font-size: 18px; margin: 32px 0 12px; }
	.series-cards { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; gap: 10px; }
	.series-cards::-webkit-scrollbar { display: none; }
	.series-card { flex: 0 0 150px; }
	.series-card__media { height: 90px; }
	.series-card__name { font-size: 15px; }
	.series-card__meta { font-size: 12px; }
	.product-main { gap: 28px; margin-top: 14px; }
	.product-gallery { gap: 10px; }
	.product-gallery__stage { border-radius: 22px; }
	.product-gallery__thumb { width: 68px; height: 68px; border-radius: 14px; }
	.product-info { padding-top: 0; }
	.product-info__eyebrow { font-size: 14px; }
	.product-info__title { font-size: 40px; }
	.product-info__label { margin: 32px 0 10px; }
	.layout-option { padding: 12px; gap: 10px; }
	.layout-option.is-active { padding: 11px; }
	.layout-option .layout-icon { width: 32px; height: 32px; }
	.layout-option strong { font-size: 16px; }
	.layout-option small { font-size: 12px; }
	.product-info__cta .btn { display: none; }
	.product-section { margin-top: 64px; }
	.product-section__title { font-size: 24px; }
	.product-section .scroll-row-mobile > .product-card { flex-basis: 150px; }
}

.layout-alt { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.layout-alt[hidden] { display: none; }
.layout-alt__btn {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; min-height: 44px;
	border-radius: 16px; border: 1px solid var(--line-soft); background: var(--grey); color: var(--ink); cursor: pointer;
}
.layout-alt__btn:hover { border-color: var(--accent); }
.layout-alt__btn span { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 15px; }
.layout-alt__btn strong { color: var(--accent); }
.layout-alt__btn small { font-size: 13px; color: var(--muted); }
.layout-alt__btn .layout-icon { width: 32px; height: 32px; flex: 0 0 auto; color: var(--accent); }
.layout-alt__btn .icon-chev-r { color: var(--muted); flex: 0 0 auto; }


/* ==========================================================================
   Stage 3 — 作品集
   ========================================================================== */
.filter-row__label--wide { flex-basis: 72px; }
.work-grid--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 24px; margin-top: 24px; }
.work-card__used { font-size: 13px; color: var(--muted); line-height: 1.5; }

.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.work-head__text { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.work-head__tag { font-size: 15px; font-weight: 700; color: var(--accent); }
.work-head__title { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; }
.work-head__meta { font-size: 15px; color: var(--muted); }

.work-photos { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work-photos__item { display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--grey); cursor: zoom-in; }
.work-photos__item--main { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.work-photos__item:not(.work-photos__item--main):nth-child(even):last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.work-photos__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-photos__item:hover img { transform: scale(1.02); }

.work-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; margin-top: 72px; align-items: start; }
.work-body__title { font-size: 24px; margin-bottom: 16px; }
.work-body__text { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.used-products { display: flex; flex-direction: column; gap: 12px; }
.used-product { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 22px; background: var(--grey); color: var(--ink); }
.used-product:hover { color: var(--ink); background: var(--surface-hover); }
.used-product__img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--ph-bg); }
.used-product__img img { width: 100%; height: 100%; object-fit: cover; }
.used-product__text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.used-product__text small { font-size: 13px; color: var(--muted); }
.used-product__text strong { font-size: 19px; }
.used-product__go { font-size: 15px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.cta-box { margin-top: 80px; padding: 48px; border-radius: var(--radius-lg); background: var(--grey); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-box h2 { font-size: 28px; }
.cta-box p { margin-top: 8px; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 12, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 14px; }

@media (max-width: 743px) {
	.work-grid--list { grid-template-columns: 1fr; gap: 36px; margin-top: 16px; }
	.work-head { margin-top: 14px; gap: 12px; align-items: center; }
	.work-head__tag { font-size: 13px; }
	.work-head__title { font-size: 26px; }
	.work-head__meta { font-size: 13px; }
	.work-photos { margin-top: 20px; gap: 8px; }
	.work-photos__item { aspect-ratio: 1 / 1; border-radius: 14px; }
	.work-photos__item--main { aspect-ratio: 4 / 3; border-radius: 20px; }
	.work-body { margin-top: 40px; gap: 36px; }
	.work-body__title { font-size: 20px; margin-bottom: 12px; }
	.work-body__text { font-size: 15px; }
	.used-product { padding: 12px; gap: 14px; border-radius: 18px; }
	.used-product__img { flex-basis: 72px; width: 72px; height: 72px; border-radius: 12px; }
	.used-product__text strong { font-size: 17px; }
	.used-product__go { display: none; }
	.cta-box { margin-top: 40px; padding: 28px 24px; border-radius: 22px; text-align: center; justify-content: center; }
	.cta-box h2 { font-size: 21px; }
	.cta-box .btn { width: 100%; }
	.lightbox__nav { display: none; }
}

/* =========================================================================
 * Stage 4: header search, search page, 404, 聯絡預約
 * ====================================================================== */
.site-header__actions { display: none; }
@media (min-width: 1024px) { .site-header__actions { display: flex; align-items: center; gap: 4px; } }
.site-header__search { color: var(--ink); }
.site-header__search:hover { color: var(--accent); background: var(--hover-soft); }

.search-box {
	display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 20px;
	border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
	transition: border-color .2s ease;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
	flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
	font: inherit; font-size: 19px; font-weight: 500; color: var(--ink); outline: none;
}
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-box__submit {
	flex: 0 0 auto; height: 44px; padding: 0 22px; border: 0; border-radius: var(--pill);
	background: var(--ink); color: var(--on-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.search-box__submit:hover { background: var(--ink-2); }

.search-page__form { margin-top: 28px; max-width: 720px; }
.search-page__meta { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.search-page__suggest { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.search-tabs { display: flex; gap: 10px; margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tabs .filter-chip { flex: 0 0 auto; }
.search-section { margin-top: 40px; }
.search-section + .search-section { margin-top: 64px; }
.search-section__title { margin: 0; font-size: 24px; }
.search-section__title span { font-size: 17px; font-weight: 500; color: var(--muted); }
.product-grid--compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 20px; margin-top: 20px; }
.product-grid--compact .product-card__media { border-radius: 18px; }
.product-grid--compact .product-card__title { font-size: 16px; }
.search-section .work-grid--list { margin-top: 20px; }
.search-empty { margin-top: 40px; padding: 40px; border-radius: var(--radius-lg); background: var(--grey); }
.search-empty p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.search-empty .search-page__suggest { margin-top: 20px; }
.search-empty .search-page__suggest .filter-chip { background: var(--surface); }
.search-empty__line { margin-top: 28px !important; margin-bottom: 14px !important; color: var(--muted) !important; }

.not-found { padding-top: calc(var(--header-space) + 40px); }
.not-found__inner { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.not-found__code { font-size: clamp(96px, 16vw, 160px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--accent-soft); -webkit-text-stroke: 2px var(--accent); }
.not-found__title { margin: 24px 0 0; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.2; }
.not-found__lead { margin: 16px 0 0; font-size: 19px; line-height: 1.7; color: var(--muted); }
.not-found__search { width: 100%; max-width: 560px; margin-top: 36px; text-align: left; }
.not-found__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

.contact-page__lead { margin: 14px 0 0; font-size: 21px; line-height: 1.6; color: var(--ink-2); }
.contact-page__h2 { margin: 0; font-size: 32px; }
.contact-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.contact-box { border-radius: var(--radius-lg); background: var(--grey); padding: 48px; display: flex; flex-direction: column; gap: 14px; }
.contact-box--line { justify-content: space-between; gap: 40px; }
.contact-box__head { display: flex; flex-direction: column; gap: 14px; }
.contact-box__eyebrow { font-size: 15px; font-weight: 700; color: var(--muted); }
.contact-box__eyebrow--line { color: var(--line-green); }
.contact-box__title { margin: 0; font-size: 36px; line-height: 1.25; }
.contact-box__line { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.contact-qr { display: flex; align-items: center; gap: 14px; }
.contact-qr__img { width: 112px; height: 112px; border-radius: 14px; border: 1px solid var(--line); background: #fff; object-fit: contain; padding: 6px; }
.contact-qr span { font-size: 14px; line-height: 1.6; color: var(--muted); }
.phone-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 18px; background: var(--surface); color: var(--ink); transition: box-shadow .2s ease; }
.phone-row:hover { color: var(--ink); box-shadow: var(--shadow-soft); }
.phone-row__text { display: flex; flex-direction: column; gap: 2px; }
.phone-row__name { font-size: 14px; color: var(--muted); }
.phone-row__num { font-size: 24px; font-weight: 700; }
.phone-row__icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.contact-steps { margin-top: 100px; }
.contact-steps__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.contact-steps__list li { display: flex; flex-direction: column; gap: 8px; }
.contact-steps__num { font-size: 15px; font-weight: 700; color: var(--accent); }
.contact-steps__title { font-size: 21px; font-weight: 700; }
.contact-steps__text { font-size: 17px; line-height: 1.6; color: var(--muted); }
.contact-store { margin-top: 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: stretch; }
.contact-store__info { display: flex; flex-direction: column; gap: 20px; padding: 8px 0; }
.contact-store__addr { display: flex; gap: 12px; align-items: flex-start; }
.contact-store__pin { color: var(--accent); margin-top: 3px; }
.contact-store__addr > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.contact-store__addr strong { font-size: 19px; }
.contact-store__addr small { font-size: 15px; color: var(--muted); }
.contact-store__row { display: flex; flex-direction: column; gap: 6px; padding-left: 32px; }
.contact-store__row .btn { align-self: flex-start; }
.contact-store__label { font-size: 15px; color: var(--muted); }
.contact-store__hours { font-size: 17px; font-weight: 500; line-height: 1.7; }
.contact-store__social { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.contact-store__map, .contact-store__map iframe { min-height: 420px; }

@media (max-width: 743px) {
	.search-box { height: 52px; padding-left: 16px; }
	.search-box input { font-size: 17px; }
	.search-box__submit { display: none; }
	.product-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.search-empty { padding: 28px 22px; }
	.not-found { padding-top: calc(var(--header-space) + 8px); }
	.not-found__lead { font-size: 17px; }
	.not-found__actions .btn { flex: 1 1 100%; }
	.contact-page__lead { font-size: 17px; }
	.contact-cards { margin-top: 28px; }
	.contact-box { padding: 28px 22px; border-radius: 22px; }
	.contact-box--line { gap: 24px; }
	.contact-box__title { font-size: 28px; }
	.contact-box__line .btn { width: 100%; }
	.contact-qr { display: none; }
	.phone-row__num { font-size: 21px; }
	.contact-steps, .contact-store { margin-top: 64px; }
	.contact-page__h2 { font-size: 26px; }
	.contact-steps__list { margin-top: 20px; gap: 24px; }
	.contact-store__row { padding-left: 32px; }
	.contact-store__map, .contact-store__map iframe { min-height: 300px; }
}

/* Social icons */
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.social-icons a:hover { color: var(--accent); background: var(--hover-soft); }
.footer-bottom { align-items: center; }
.footer-social { margin-right: -8px; }
.social-icons--lg { gap: 10px; }
.social-icons--lg a { width: 44px; height: 44px; background: var(--grey); color: var(--ink); }
.social-icons--lg a:hover { background: var(--accent-soft); color: var(--accent); }
.social-icons--lg .icon-social { width: 22px; height: 22px; }

/* Tablet (744–1023px) */
@media (min-width: 744px) and (max-width: 1023px) {
	.product-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
	.bottom-bar__inner { max-width: 520px; margin: 0 auto; }
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }
	.product-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.product-info__cta .btn { display: none; }
}

/* Comfortable tap targets for 「查看全部 ›」 links on phones */
@media (max-width: 743px) {
	.link-more { display: inline-flex; align-items: center; min-height: 44px; }
}

/* =========================================================================
 * Dark mode: data-theme="dark", or follow the system when no choice is saved
 * ====================================================================== */
:root[data-theme="dark"] {
	--ink: #f5f5f7;
	--ink-2: #d1d1d6;
	--muted: #a1a1a6;
	--line: #424245;
	--line-soft: #333336;
	--grey: #1c1c1e;
	--accent: #d2a173;
	--accent-dark: #e4b98f;
	--accent-soft: #33271c;
	--accent-on-dark: #e4b98f;
	--bg: #0f0f10;
	--surface: #2c2c2e;
	--on-accent: #1d1d1f;
	--on-ink: #1d1d1f;
	--hover: rgba(255, 255, 255, .1);
	--hover-soft: rgba(255, 255, 255, .08);
	--divider: rgba(255, 255, 255, .1);
	--row-line: #333336;
	--surface-hover: #3a3a3c;
	--photo-bg: #2a2520;
	--ph-bg: #2a2520;
	--ph-ink: rgba(245, 245, 247, .5);
	--ph-line: rgba(255, 235, 210, .07);
	--ph-line-2: rgba(255, 235, 210, .03);
	--fade: rgba(15, 15, 16, .9);
	--fade-0: rgba(15, 15, 16, 0);
	--chev: #8e8e93;
	--card-dark-bg: #2c2c2e;
	--card-dark-ink: #f5f5f7;
	--card-dark-sub: #c7c7cc;
	--glass-bg: rgba(36, 36, 38, .55);
	--glass-bg-light: rgba(30, 30, 32, .84);
	--glass-bg-solid: rgba(32, 32, 34, .96);
	--glass-border: rgba(255, 255, 255, .12);
	--glass-shadow: 0 0 0 .5px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 18px rgba(255, 255, 255, .03), 0 14px 44px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
	--glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .02) 30%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .05) 100%);
	--shadow-soft: 0 6px 20px rgba(0, 0, 0, .4);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #f5f5f7;
		--ink-2: #d1d1d6;
		--muted: #a1a1a6;
		--line: #424245;
		--line-soft: #333336;
		--grey: #1c1c1e;
		--accent: #d2a173;
		--accent-dark: #e4b98f;
		--accent-soft: #33271c;
		--accent-on-dark: #e4b98f;
		--bg: #0f0f10;
		--surface: #2c2c2e;
		--on-accent: #1d1d1f;
		--on-ink: #1d1d1f;
		--hover: rgba(255, 255, 255, .1);
		--hover-soft: rgba(255, 255, 255, .08);
		--divider: rgba(255, 255, 255, .1);
		--row-line: #333336;
		--surface-hover: #3a3a3c;
		--photo-bg: #2a2520;
		--ph-bg: #2a2520;
		--ph-ink: rgba(245, 245, 247, .5);
		--ph-line: rgba(255, 235, 210, .07);
		--ph-line-2: rgba(255, 235, 210, .03);
		--fade: rgba(15, 15, 16, .9);
		--fade-0: rgba(15, 15, 16, 0);
		--chev: #8e8e93;
		--card-dark-bg: #2c2c2e;
		--card-dark-ink: #f5f5f7;
		--card-dark-sub: #c7c7cc;
		--glass-bg: rgba(36, 36, 38, .55);
		--glass-bg-light: rgba(30, 30, 32, .84);
		--glass-bg-solid: rgba(32, 32, 34, .96);
		--glass-border: rgba(255, 255, 255, .12);
		--glass-shadow: 0 0 0 .5px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 18px rgba(255, 255, 255, .03), 0 14px 44px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
		--glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .02) 30%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .05) 100%);
		--shadow-soft: 0 6px 20px rgba(0, 0, 0, .4);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] .site-logo__img { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .site-logo__img { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
}

/* 顯示模式切換 */
.footer-bottom__end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--pill); background: var(--hover-soft); }
.theme-switch button {
	display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--pill);
	background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (max-width: 743px) {
	.footer-bottom__end { width: 100%; justify-content: space-between; }
}

/* Category intro text (SEO) */
.seo-text { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 760px; }
.seo-text__title { margin: 0; font-size: 21px; }
.seo-text__body { margin-top: 14px; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.seo-text__body p { margin: 0 0 12px; }
@media (max-width: 743px) { .seo-text { margin-top: 56px; padding-top: 28px; } }
