body.xqd {
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ico-instagram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='20' x='2' y='2' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' x2='17.51' y1='6.5' y2='6.5'/%3E%3C/svg%3E");
  --ico-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
  --ico-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3Cpath d='M8 10v3'/%3E%3Cpath d='M11 10v3'/%3E%3Cpath d='M14 10v3l2-3v3'/%3E%3C/svg%3E");
}
/* =========================================================
   小奇大居家 — Elementor 對應樣式
   讓 style.css 的設計對應 Elementor 小工具的 HTML 結構；
   所有規則都限定在 body.xqd（外掛只在本站 4 個頁面加上這個 class）。
   ========================================================= */

/* ---------- 1. Elementor / 主題預設值重設 ---------- */
/* 容器：清掉預設內距與間距（用變數重設，使用者在 Elementor 面板調整時仍會生效） */
body.xqd :where(.e-con) {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px 0px; --row-gap: 0px; --column-gap: 0px;
  --container-widget-width: 100%;
}
body.xqd .elementor-widget:not(:last-child) { margin-block-end: 0; }
body.xqd .elementor-widget-container { height: auto; }
/* 文字小工具：不要套用 Elementor 預設的全域字型與顏色 */
body.xqd .elementor-heading-title { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; }
body.xqd .elementor-heading-title a { color: inherit; font: inherit; }
body.xqd :where(.elementor-widget-text-editor) { color: inherit; font-family: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; }
/* HTML 小工具裡的標題：不要套用 Elementor 網站設定／主題的 H1–H6 顏色，跟著區塊配色（深底白字、淺底黑字） */
body.xqd :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
body.xqd .elementor-widget-image { text-align: initial; }
body.xqd .elementor-widget-image img { display: block; }
/* Hello Elementor 主題：同名 class 與按鈕預設樣式 */
body.xqd .site-header, body.xqd .site-footer { max-width: none; margin-inline: 0; }
body.xqd .site-header { display: block; padding-block: 0; }
body.xqd .site-footer { display: flex; flex-direction: column; padding-bottom: 0; }
body.xqd button:hover, body.xqd button:focus { background-color: transparent; color: inherit; }
body.xqd label { line-height: inherit; }
body.xqd dt { font-weight: 400; }
/* 頁首所在的外層容器不佔高度 */
body.xqd .x-header-wrap { min-height: 0; }
/* WordPress 沒有 <main> 上方的內距：頁面 Hero 不需要往上偏移 */
body.xqd .page-hero { margin-top: 0; }
body.xqd .x-app .pd-crumb { padding-top: calc(var(--header-h) + 24px); }

/* ---------- 2. 共用小工具樣式 ---------- */
/* 圖片：x-cover 讓圖片填滿外框（外框比例由 el-ar-* 或元件 class 決定） */
body.xqd :where(.x-cover) { position: relative; overflow: hidden; border-radius: var(--radius); }
body.xqd .x-cover img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: 0; }
body.xqd .x-cover a { display: block; position: absolute; inset: 0; }
body.xqd .el-ar-45 { aspect-ratio: 4 / 5; }
body.xqd .el-ar-11 { aspect-ratio: 1; }
body.xqd .el-ar-34 { aspect-ratio: 3 / 4; }
body.xqd .el-ar-43 { aspect-ratio: 4 / 3; }
body.xqd .el-ar-3x42 { aspect-ratio: 3 / 4.2; }
body.xqd .x-caption { margin-top: 14px; font-size: .8125rem; color: var(--c-ink-3); letter-spacing: .06em; }
.js body.xqd .x-cover[data-reveal="img"] { clip-path: inset(14% 0 0 0); transition: clip-path 1.5s var(--ease-expo) var(--d, 0s); }
.js body.xqd .x-cover[data-reveal="img"] img { transform: scale(1.14); transition: transform 1.8s var(--ease-expo) var(--d, 0s); }
.js body.xqd .x-cover[data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
.js body.xqd .x-cover[data-reveal="img"].is-in img { transform: none; }
body.xqd .x-zoom img { transition: transform 1.4s var(--ease-expo); }
body.xqd .x-zoom:hover img, .js body.xqd .x-zoom.is-in:hover img { transform: scale(1.04); }
body.xqd .x-prose p + p { margin-top: 1em; }
body.xqd .x-icon .icon { width: 26px; height: 26px; color: var(--c-oak); stroke-width: 1.3; }

/* 按鈕：x-btn（膠囊按鈕）、x-link（底線文字連結） */
body.xqd .x-btn .elementor-button {
  --btn-bg: var(--c-ink); --btn-fg: var(--c-paper); --btn-bd: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; box-shadow: none; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 500; letter-spacing: .06em; line-height: 1.2; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
body.xqd .x-btn--primary .elementor-button:hover { --btn-bg: #3A3833; --btn-bd: #3A3833; }
body.xqd .x-btn--light .elementor-button { --btn-bg: var(--c-on-dark); --btn-fg: var(--c-ink); --btn-bd: var(--c-on-dark); }
body.xqd .x-btn--light .elementor-button:hover { --btn-bg: #fff; --btn-bd: #fff; }
body.xqd .x-btn--ghost-light .elementor-button { --btn-bg: transparent; --btn-fg: var(--c-on-dark); --btn-bd: rgba(245, 242, 236, .5); }
body.xqd .x-btn--ghost-light .elementor-button:hover { --btn-bd: var(--c-on-dark); --btn-bg: rgba(245, 242, 236, .08); }
body.xqd .x-btn--arrow .elementor-button-text::after,
body.xqd .x-link .elementor-button-text::after {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-left: 10px; vertical-align: -4px;
  background: currentColor; -webkit-mask: var(--ico-arrow) center / contain no-repeat; mask: var(--ico-arrow) center / contain no-repeat;
  transition: transform var(--dur) var(--ease-expo);
}
body.xqd .x-btn--arrow .elementor-button:hover .elementor-button-text::after,
body.xqd .x-link .elementor-button:hover .elementor-button-text::after { transform: translateX(5px); }
body.xqd .x-link .elementor-button {
  position: relative; display: inline-flex; align-items: center; padding: 10px 0; min-height: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; color: inherit;
  font-family: var(--font-sans); font-size: .875rem; font-weight: 500; letter-spacing: .08em; line-height: 1.4; white-space: nowrap;
}
body.xqd .x-link .elementor-button:hover, body.xqd .x-link .elementor-button:focus { background: transparent; color: inherit; }
body.xqd .x-link .elementor-button::before {
  content: ""; position: absolute; left: 0; right: 28px; bottom: 6px; height: 1px; background: currentColor;
  transform-origin: right; transition: transform var(--dur) var(--ease-expo);
}
body.xqd .x-link .elementor-button:hover::before { transform: scaleX(0); }

/* 標題內的排版（span 換行、眉標） */
body.xqd .eyebrow .elementor-heading-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.xqd .sec-title .elementor-heading-title { display: flex; flex-direction: column; gap: 14px; }
body.xqd .sec-head--center .sec-title .elementor-heading-title { align-items: center; }
body.xqd .hero__title-zh { display: block; }
body.xqd .smart__title .elementor-heading-title { display: grid; gap: 18px; }
body.xqd .story-meta .elementor-heading-title { display: flex; gap: 16px; align-items: center; margin: 0; color: inherit; font-size: inherit; }
body.xqd .el-head { display: block; }

/* 商品橫向列表、捲動控制 */
body.xqd .x-rail { width: 100%; }

/* ---------- 3. 首頁 ---------- */
/* Hero */
body.xqd .hero__media { position: absolute; inset: 0; }
@media (min-width: 768px) {
  body.xqd .hero__ctas { flex-direction: row; }
}
@media (max-width: 767px) {
  body.xqd .hero__ctas .x-btn .elementor-button { width: 100%; }
}

/* 品牌主張 */
body.xqd .manifesto__fig-tall { grid-column: 1 / span 5; }
body.xqd .manifesto__fig-small { grid-column: 9 / span 4; margin-top: 24px; }
body.xqd .el-pillar { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; padding: 24px 0; border-top: 1px solid var(--c-line); }
body.xqd .el-pillar:last-child { border-bottom: 1px solid var(--c-line); }
body.xqd .el-pillar__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; letter-spacing: .06em; line-height: 1.5; }
body.xqd .el-pillar__text { color: var(--c-ink-2); font-size: .9375rem; }
body.xqd .el-trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--c-line); }
body.xqd .el-trust__item { display: grid; grid-template-columns: 26px 1fr; gap: 0 16px; align-content: start; padding: 28px 24px 0 0; }
body.xqd .el-trust__item + .el-trust__item { padding-left: 24px; border-left: 1px solid var(--c-line); }
body.xqd .el-trust__item .x-icon { grid-row: span 2; margin-top: 2px; }
body.xqd .el-trust__title { font-weight: 500; letter-spacing: .06em; }
body.xqd .el-trust__text { font-size: .8125rem; color: var(--c-ink-3); line-height: 1.6; }
@media (max-width: 1023px) {
  body.xqd .manifesto__fig-tall { grid-column: 1 / span 6; }
  body.xqd .manifesto__fig-small { display: none; }
  body.xqd .el-trust { grid-template-columns: repeat(2, 1fr); }
  body.xqd .el-trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  body.xqd .manifesto__fig-tall { grid-column: 1 / -1; }
  body.xqd .el-trust { grid-template-columns: 1fr; }
  body.xqd .el-trust__item, body.xqd .el-trust__item + .el-trust__item { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--c-line); }
}

/* Editor's Selection */
body.xqd .editors__feature-media { position: absolute; inset: 0; }
body.xqd .editors__feature-thumb { grid-row: span 4; width: 88px; aspect-ratio: 4 / 5; border-radius: 2px; }
body.xqd .editors__kicker .elementor-heading-title { font-size: .9375rem; color: var(--c-oak); }
body.xqd .editors__feature-title { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; line-height: 1.45; letter-spacing: .04em; }
body.xqd .editors__feature-foot { flex-direction: row; }
body.xqd .editors__feature-foot .pcard__brand .elementor-heading-title { font-size: .6875rem; color: var(--c-ink-3); }
@media (max-width: 767px) {
  body.xqd .editors__feature-media { position: relative; aspect-ratio: 4 / 4.6; border-radius: 0; }
  body.xqd .editors__feature-thumb { width: 72px; }
}

/* Smart Living */
body.xqd .scene { gap: 0; }
body.xqd .scene__media { margin-bottom: 24px; }
body.xqd .scene__body { display: block; }
body.xqd .scene__text { color: var(--c-on-dark-2); margin-top: 10px; font-size: .9375rem; max-width: 32em; }

/* Everyday */
body.xqd .band__kicker { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; }
body.xqd .ev-scene { gap: 0; }
body.xqd .ev-scene .x-cover { margin-bottom: 18px; }
body.xqd .ev-scene__en .elementor-heading-title { color: var(--c-oak); font-size: 1rem; }
body.xqd .ev-scene__title { margin-top: 2px; }
body.xqd .ev-scene__text { margin-top: 8px; }

/* Outdoor */
body.xqd .outdoor__hero, body.xqd .taiwan__hero, body.xqd .page-hero { flex-direction: row; }
body.xqd .outdoor__img1 { aspect-ratio: 3 / 4; }
body.xqd .outdoor__img2 { aspect-ratio: 1; }
body.xqd .outdoor__p p { color: var(--c-on-dark-2); }

/* Japan */
body.xqd .japan__fig-a { grid-column: 1 / span 5; grid-row: 2 / span 2; margin-top: 64px; }
body.xqd .japan__fig-b { grid-column: 7 / span 4; grid-row: 2; margin-top: 160px; }
body.xqd .japan__fig-c { grid-column: 9 / span 3; grid-row: 3; margin-top: 24px; }
@media (max-width: 1023px) {
  body.xqd .japan__fig-a { grid-column: 1 / span 6; margin-top: 48px; }
  body.xqd .japan__fig-b { grid-column: 7 / span 6; margin-top: 48px; }
  body.xqd .japan__fig-c { grid-column: 7 / span 4; }
}
@media (max-width: 767px) {
  body.xqd .japan__fig-a { grid-column: 1 / span 4; grid-row: 2; margin-top: 32px; }
  body.xqd .japan__fig-b { grid-column: 3 / span 4; grid-row: 3; margin-top: -48px; }
  body.xqd .japan__fig-c { display: none; }
}

/* Brands */
body.xqd .brand-card { gap: 0; }
body.xqd .brand-card__img { margin-bottom: 22px; }
body.xqd .brand-card .x-link { margin-top: 10px; }
body.xqd .brand-card:hover .brand-card__img img { transform: scale(1.04); }
body.xqd .brand-card__img img { transition: transform 1.6s var(--ease-expo); }

/* Pet */
body.xqd .pet__p { color: var(--c-ink-2); }
body.xqd .pet__sub { box-shadow: 0 0 0 10px var(--c-paper); }
body.xqd .pet__text .x-link { justify-self: start; }

/* Taiwan */
body.xqd .taiwan__p p { color: var(--c-ink-2); }
body.xqd .duo__img { position: absolute; inset: 0; border-radius: 0; }
body.xqd .duo__item::after, body.xqd .duo__text { pointer-events: none; }
body.xqd .duo__text { display: block; }
body.xqd .duo__text strong { display: block; }

/* Journal */
body.xqd .journal__feature-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.625rem, 3vw, 2.75rem); line-height: 1.4; letter-spacing: .04em; margin-top: 18px; }
body.xqd .journal__feature-p { margin-top: 18px; }
body.xqd .journal__feature .x-link { margin-top: 20px; }
body.xqd .story-card { gap: 0; }
body.xqd .story-card__img { margin-bottom: 16px; }
body.xqd .story-card__title { margin-top: 12px; }
body.xqd .story-card__p { margin-top: 10px; }
@media (max-width: 767px) {
  body.xqd .journal__feature .x-cover { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  body.xqd .story-card { grid-template-columns: 112px 1fr; gap: 0 16px; }
  body.xqd .story-card__img { grid-row: span 3; aspect-ratio: 1; margin-bottom: 0; }
  body.xqd .story-card__title { margin-top: 6px; }
}

/* Newsletter */
body.xqd .el-newsletter-copy { display: block; }

/* 頁尾 */
body.xqd .footer__bottom { flex-direction: row; }
body.xqd .footer-links { display: grid; gap: 4px; }
body.xqd .footer__trust + .footer__company { margin-top: 20px; } /* 公司資訊和購物保障放在同一個 HTML 小工具 */
body.xqd .footer-links--social a::before {
  content: ""; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
body.xqd .footer-links--social a[href*="instagram"] { --ico: var(--ico-instagram); }
body.xqd .footer-links--social a[href*="facebook"] { --ico: var(--ico-facebook); }
body.xqd .footer-links--social a[href*="line.me"], body.xqd .footer-links--social a[href*="lin.ee"] { --ico: var(--ico-line); }

/* ---------- 4. 品牌故事頁 ---------- */
body.xqd .el-hero-copy { display: block; }
body.xqd .page-hero__title { margin-top: 18px; }
body.xqd .about-philo__p p { color: var(--c-ink-2); }
body.xqd .el-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(80px, 10vw, 140px); }
body.xqd .el-process__item { padding-top: 22px; border-top: 1px solid var(--c-ink); display: grid; gap: 10px; align-content: start; }
body.xqd .el-process__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; letter-spacing: .06em; }
body.xqd .el-process__text { font-size: .9375rem; color: var(--c-ink-2); }
body.xqd .el-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.xqd .el-promise__item { background: var(--c-card); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; align-content: start; }
body.xqd .el-promise__item .x-icon .icon { width: 30px; height: 30px; margin-bottom: 10px; }
body.xqd .el-promise__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; letter-spacing: .06em; }
body.xqd .el-promise__text { font-size: .9375rem; color: var(--c-ink-2); }
body.xqd .el-brand-row { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(20px, 2.4vw, 36px); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
body.xqd .el-brand-row .brand-card__spirit { margin-top: 10px; font-size: 1rem; }
body.xqd .el-brand-row .x-link { margin-top: 6px; }
body.xqd .partnership__side .x-btn { justify-self: start; }
body.xqd .el-check-list { display: grid; gap: 4px; }
body.xqd .el-check-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--c-on-dark-line); }
body.xqd .el-check-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat;
}
@media (max-width: 1023px) {
  body.xqd .el-process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 767px) {
  body.xqd .el-process { grid-template-columns: 1fr; }
  body.xqd .el-promise { grid-template-columns: 1fr; }
  body.xqd .el-brand-row { grid-template-columns: 120px 1fr; }
  body.xqd .el-brand-row .brand-card__name { font-size: 1.75rem; }
}
