/* ╔══════════════════════════════════════════════
   ║  夏悅窗飾 · 產品系列頁
   ║  命名空間：xy-  (完全獨立)
   ╚══════════════════════════════════════════════ */

:root {
  --xy-brand:        #AA7566;
  --xy-brand-light:  #FCCABC;
  --xy-brand-pale:   #FFF4F0;
  --xy-brand-rose:   #F5DDD6;
  --xy-brand-dark:   #7A4F42;
  --xy-brand-deep:   #4E2E24;
  --xy-accent:       #C98B78;
  --xy-cream:        #FDF8F6;
  --xy-white:        #FFFFFF;
  --xy-text:         #2C1A14;
  --xy-text-mid:     #7A5C54;
  --xy-text-muted:   #B89A93;
  --xy-border:       #EDD5CC;
  --xy-shadow:       rgba(170,117,102,0.12);
  --xy-shadow-md:    rgba(170,117,102,0.20);
  --xy-radius-sm:    8px;
  --xy-radius-md:    14px;
  --xy-radius-lg:    22px;
  --xy-nav-h:        64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--xy-cream);
  color: var(--xy-text);
  line-height: 1.75;
}

/* ── 圖片替代色塊 ── */
.xy-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--xy-brand-pale) 0%, var(--xy-brand-rose) 100%);
  border-radius: var(--xy-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--xy-brand);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.xy-img-placeholder svg {
  width: 36px; height: 36px;
  opacity: 0.6;
}


/* ════════════════════════════════
   HERO
════════════════════════════════ */
.xy-hero {
  background: var(--xy-brand-deep);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.xy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(170,117,102,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 80% 30%, rgba(252,202,188,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.xy-hero-deco {
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(252,202,188,0.18);
  pointer-events: none;
}
.xy-hero-deco2 {
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(170,117,102,0.15);
  pointer-events: none;
}
.xy-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.xy-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--xy-brand-light);
  font-weight: 400;
  margin-bottom: 1rem;
}
.xy-hero-eyebrow::before,
.xy-hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--xy-brand-light);
  opacity: 0.5;
}
/* h2 */
.xy-hero h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.xy-hero h2 em {
  font-style: normal;
  color: var(--xy-brand-light);
}
.xy-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  font-weight: 300;
  line-height: 1.85;
}
.xy-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 2rem;
}
.xy-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(252,202,188,0.25);
  color: var(--xy-brand-light);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.xy-hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.xy-btn-primary {
  background: var(--xy-brand);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.xy-btn-primary:hover {
  background: var(--xy-accent);
  transform: translateY(-1px);
}
.xy-btn-outline {
  border: 1px solid rgba(252,202,188,0.4);
  color: var(--xy-brand-light);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: border-color 0.2s;
  display: inline-block;
}
.xy-btn-outline:hover { border-color: var(--xy-brand-light); }

/* ════════════════════════════════
   BREADCRUMB
════════════════════════════════ */
.xy-breadcrumb {
  background: var(--xy-white);
  border-bottom: 1px solid var(--xy-border);
  padding: 10px clamp(1.5rem, 5vw, 4rem);
}
.xy-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--xy-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.xy-breadcrumb a {
  color: var(--xy-brand);
  text-decoration: none;
}
.xy-breadcrumb a:hover { text-decoration: underline; }
.xy-breadcrumb-sep { opacity: 0.5; }

/* ════════════════════════════════
   TRUST BAR
════════════════════════════════ */
.xy-trust-bar {
  background: var(--xy-brand-pale);
  border-bottom: 1px solid var(--xy-border);
  padding: 14px clamp(1.5rem, 5vw, 4rem);
}
.xy-trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.xy-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--xy-brand-dark);
  font-weight: 500;
}
.xy-trust-icon {
  width: 18px; height: 18px;
  color: var(--xy-brand);
  flex-shrink: 0;
}

/* ════════════════════════════════
   MAIN LAYOUT
════════════════════════════════ */
.xy-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ════════════════════════════════
   INTRO SECTION
════════════════════════════════ */
.xy-intro {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.xy-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--xy-brand);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.xy-section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--xy-brand);
  border-radius: 2px;
}
/* H2 */
.xy-intro h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--xy-brand-deep);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.xy-intro p {
  font-size: 15px;
  color: var(--xy-text-mid);
  max-width: 700px;
  line-height: 1.9;
  margin-bottom: 0.75rem;
}
.xy-intro strong {
  color: var(--xy-brand-dark);
  font-weight: 500;
}

/* ════════════════════════════════
   PRODUCTS GRID
════════════════════════════════ */
.xy-products-section {
  padding: 1.5rem 0 clamp(3rem, 8vw, 5rem);
}
/* H2 for product section */
.xy-products-section > .xy-page-wrap > h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--xy-brand-deep);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.xy-products-section > .xy-page-wrap > h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--xy-border);
}

.xy-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ── PRODUCT CARD ── */
.xy-card {
  background: var(--xy-white);
  border: 1px solid var(--xy-border);
  border-radius: var(--xy-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.xy-card:hover {
  box-shadow: 0 8px 32px var(--xy-shadow-md);
  transform: translateY(-3px);
}
.xy-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.xy-card-img-wrap img,
.xy-card-img-wrap .xy-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.xy-card:hover .xy-card-img-wrap img,
.xy-card:hover .xy-card-img-wrap .xy-img-placeholder {
  transform: scale(1.04);
}
.xy-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--xy-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}
.xy-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* H3 product name */
.xy-card-body h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--xy-brand-deep);
  margin-bottom: 6px;
  line-height: 1.4;
}
.xy-card-sub {
  font-size: 12px;
  color: var(--xy-brand);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.xy-card-desc {
  font-size: 13.5px;
  color: var(--xy-text-mid);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 14px;
}
.xy-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.xy-tag {
  background: var(--xy-brand-pale);
  color: var(--xy-brand-dark);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 12px;
  font-weight: 400;
}
.xy-card-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--xy-brand);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.03em;
  transition: gap 0.2s;
  text-decoration: none;
}
.xy-card:hover .xy-card-link { gap: 8px; }

/* ════════════════════════════════
   EXPERTISE STRIP (E-E-A-T)
════════════════════════════════ */
.xy-eeat {
  background: linear-gradient(135deg, var(--xy-brand-deep) 0%, #6a3728 100%);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.xy-eeat::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(252,202,188,0.08);
  pointer-events: none;
}
.xy-eeat-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 720px) {
  .xy-eeat-inner { grid-template-columns: 1fr; }
}
.xy-eeat-text .xy-section-label { color: var(--xy-brand-light); }
.xy-eeat-text .xy-section-label::before { background: var(--xy-brand-light); }
/* H2 inside EEAT */
.xy-eeat-text h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(19px, 2.8vw, 26px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.xy-eeat-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  margin-bottom: 0.6rem;
}
.xy-eeat-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.xy-stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(252,202,188,0.18);
  border-radius: var(--xy-radius-sm);
  padding: 18px 20px;
  text-align: center;
}
.xy-stat-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--xy-brand-light);
  line-height: 1;
  margin-bottom: 6px;
}
.xy-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════
   PROCESS SECTION
════════════════════════════════ */
.xy-process {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--xy-white);
}
.xy-process-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.xy-process-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.xy-process-header .xy-section-label {
  justify-content: center;
}
.xy-process-header .xy-section-label::before { display: none; }
/* H2 process */
.xy-process-header h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 600;
  color: var(--xy-brand-deep);
  margin-bottom: 0.6rem;
}
.xy-process-header p {
  font-size: 14px;
  color: var(--xy-text-muted);
  max-width: 480px;
  margin: 0 auto;
}
.xy-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--xy-border);
  border-radius: var(--xy-radius-md);
  overflow: hidden;
  border: 1px solid var(--xy-border);
}
.xy-step {
  background: var(--xy-white);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
  transition: background 0.2s;
}
.xy-step:hover { background: var(--xy-brand-pale); }
.xy-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--xy-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xy-step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--xy-brand-deep);
  line-height: 1.4;
}
.xy-step-note {
  font-size: 12px;
  color: var(--xy-text-muted);
  line-height: 1.6;
}

/* ════════════════════════════════
   GEO SECTION
════════════════════════════════ */
.xy-geo {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--xy-brand-pale);
}
.xy-geo-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.xy-geo-header {
  margin-bottom: 1.8rem;
}
/* H2 geo */
.xy-geo-header h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 600;
  color: var(--xy-brand-deep);
  margin-bottom: 0.4rem;
}
.xy-geo-header p {
  font-size: 13.5px;
  color: var(--xy-text-muted);
}
.xy-geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.xy-geo-card {
  background: var(--xy-white);
  border: 1px solid var(--xy-border);
  border-radius: var(--xy-radius-sm);
  padding: 20px 22px;
}
.xy-geo-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.xy-geo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--xy-brand);
  flex-shrink: 0;
}
.xy-geo-card-head strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--xy-brand-dark);
}
.xy-geo-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.xy-geo-card ul li {
  font-size: 13px;
  color: var(--xy-text-mid);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.55;
}
.xy-geo-card ul li::before {
  content: '›';
  color: var(--xy-brand);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ════════════════════════════════
   CTA SECTION
════════════════════════════════ */
.xy-cta-section {
  background: linear-gradient(120deg, var(--xy-brand) 0%, var(--xy-accent) 100%);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.xy-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.xy-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
/* H2 CTA */
.xy-cta-inner h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.xy-cta-inner p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.6rem;
  line-height: 1.8;
}
.xy-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.xy-cta-phone {
  background: #fff;
  color: var(--xy-brand-dark);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.xy-cta-phone:hover { transform: scale(1.03); }
.xy-cta-line {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: background 0.2s;
}
.xy-cta-line:hover { background: rgba(255,255,255,0.28); }



/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 640px) {
  .xy-products-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .xy-products-grid {
    grid-template-columns: 1fr;
  }
}