:root {
  /* ══════════════════════════════════════════
     主色階（只需改這裡，全站顏色自動更新）
     ══════════════════════════════════════════ */
  --blue-900: #0e2540;   /* 大區塊背景（topbar / strip / about / footer） */
  --blue-800: #163556;   /* hover 深藍 / 價格數字 */
  --blue-700: #1e4a78;   /* 主強調：按鈕 / 連結 / 品牌標誌 */
  --blue-500: #4d8bc2;   /* 中間調：icon 邊框 */
  --blue-300: #aac6e0;   /* 淺藍：footer 次要文字 / 裝飾線 */
  --blue-100: #dde9f3;   /* 極淺藍：topbar 文字 / footer 底色提示 */
  --blue-50:  #eef4fa;   /* 最淺：頁面底色 / 商品圖片佔位 */

  --cream:    #fafcff;   /* 深色背景上的白色文字 */
  --paper:    #fdfeff;   /* 頁面 & Nav 背景 */
  --ink:      #1a2433;   /* 主文字 */
  --ink-soft: #475568;   /* 次要文字 */
  --rule:     #d8e0ea;   /* 分隔線 */

  /* ══════════════════════════════════════════
     RGB 分量（與上方色碼保持同步，供 rgba() 使用）
     修改上方色碼時，記得同步更新這裡的 RGB 值
     ══════════════════════════════════════════ */
  --blue-900-rgb: 14,  37,  64;    /* #0e2540 */
  --blue-700-rgb: 30,  74,  120;   /* #1e4a78 */
  --paper-rgb:    253, 254, 255;   /* #fdfeff */

  /* ══════════════════════════════════════════
     語意透明度變數（引用上方 RGB 分量，不寫死數字）
     ══════════════════════════════════════════ */
  --nav-bg:       rgba(var(--paper-rgb),    0.95); /* Nav 毛玻璃背景 */
  --stamp-bg:     rgba(var(--blue-700-rgb), 0.60); /* Hero stamp 背景 */
  --card-shadow:  rgba(var(--blue-700-rgb), 0.25); /* 商品卡片 hover 陰影 */
  --overlay-dark: rgba(var(--blue-900-rgb), 0.55); /* 「七月發售」遮罩 */
  --shadow-text:  rgba(0, 0, 0,             0.60); /* 引言文字陰影（純黑不需分量） */

  /* ══════════════════════════════════════════
     元件專用色
     ══════════════════════════════════════════ */
  --card-white:   #ffffff;  /* 商品卡片 / 流程圓圈白底 */
  --disabled-btn: #aaa;     /* 停售按鈕 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* FOUC 防閃爍：字體載入前隱藏頁面，script.js 確認後再淡入 */
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.loaded { opacity: 1; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--blue-900);
  color: var(--blue-100);
  font-size: 1vw;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 8px 24px;
  white-space: nowrap;
  overflow: hidden;
}
.topbar span { margin: 0 1.25vw; }

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--blue-700);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 22px;
}
.brand-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.brand-sub {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--blue-700);
  letter-spacing: 0.25em;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-700); }
.nav-cta {
  background: var(--blue-700);
  color: white !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-900) !important; }

/* ============ HERO ============ */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-700);
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--blue-700);
}
.hero h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 68px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  color: var(--blue-900);
}
.hero h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--blue-700);
  font-weight: 400;
}
.hero p.lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-meta {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero-meta-item .num {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 36px;
  color: var(--blue-700);
  font-weight: 500;
  display: block;
  line-height: 1;
}
.hero-meta-item .lbl {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  margin-top: 8px;
  display: block;
}
.hero-meta-item .count-sfx {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 28px;
  color: var(--blue-700);
  font-weight: 500;
  line-height: 1;
}
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}
.hero-visual .hero-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 25px;
}
.hero-tag {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--cream);
  border: 1px solid var(--blue-300);
  padding: 20px 28px;
  z-index: 2;
}
.hero-tag .kanji {
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  color: var(--blue-700);
  letter-spacing: 0.3em;
  margin-bottom: 4px;
}
.hero-tag .roman {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--blue-900);
}
.hero-stamp {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 96px;
  height: 96px;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif TC', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  background: var(--stamp-bg);
  backdrop-filter: blur(4px);
}
.hero-stamp .big {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 4px 0;
}

/* ============ STRIP ============ */
.strip {
  background: var(--blue-900);
  color: var(--blue-100);
  padding: 28px 40px;
  overflow: hidden;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  align-items: center;
  gap: 16px 80px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1vw;
  letter-spacing: 0.1em;
}
.strip-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--blue-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif TC', serif;
}

/* ============ SECTION ============ */
section { padding: 120px 40px; }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-eyebrow {
  color: var(--blue-700);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--blue-900);
  letter-spacing: 0.05em;
}
.section-head .divider {
  width: 40px;
  height: 1px;
  background: var(--blue-700);
  margin: 24px auto 20px;
}
.section-head p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.2vw;
  line-height: 1.9;
}
.demo-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(var(--blue-900-rgb), 0.16);
  background: rgba(var(--blue-900-rgb), 0.045);
  color: var(--blue-900);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

/* ============ PRODUCTS ============ */
.products {
  background: linear-gradient(180deg, var(--paper) 0%, var(--blue-50) 100%);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.product-card {
  background: var(--card-white);
  border: 1px solid var(--rule);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px var(--card-shadow);
}
.product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--blue-50);
  overflow: hidden;
}
.product-image .photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}
.product-card:hover .product-image .photo { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--cream);
  border: 1px solid var(--blue-700);
  color: var(--blue-800);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  border-radius: 25px;
  z-index: 2;
}
.product-badge.new {
  background: var(--blue-700);
  color: var(--cream);
}
.product-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-origin {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--blue-700);
  font-size: 14px;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.product-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.product-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.7;
  flex: 1;
}
.product-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.product-meta span {
  font-size: 11px;
  color: var(--blue-700);
  letter-spacing: 0.15em;
  padding: 4px 10px;
  background: var(--blue-50);
  border-radius: 2px;
}
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.product-price { font-family: 'Noto Sans TC', sans-serif; }
.product-price .currency {
  font-size: 14px;
  color: var(--ink-soft);
  margin-right: 2px;
}
.product-price .amount {
  font-size: 28px;
  color: var(--blue-800);
  font-weight: 600;
}
.product-price .unit {
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: 4px;
}
.product-btn {
  background: var(--blue-700);
  color: white;
  border: none;
  padding: 12px 22px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-btn:hover { background: var(--blue-900); }
.product-btn::after { content: '→'; transition: transform 0.2s; }
.product-btn:hover::after { transform: translateX(3px); }
.product-card.out .product-btn {
  background: var(--disabled-btn);
  pointer-events: none;
}
.product-card.out .product-image::after {
  content: attr(data-launch);
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif TC', serif;
  font-size: 22px;
  letter-spacing: 0.4em;
  z-index: 3;
}

/* ============ ABOUT ============ */
.about {
  background: var(--blue-900);
  color: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  aspect-ratio: 3/4;
  position: relative;
}
.about-visual .photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.about-quote {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  color: var(--cream);
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 0 2px 12px var(--shadow-text);
}
.about-content .section-eyebrow { color: var(--blue-300); }
.about-content h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 44px;
  font-weight: 500;
  margin-bottom: 32px;
  line-height: 1.3;
  color: var(--cream);
}
.about-content p {
  color: var(--blue-100);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 24px;
}
.about-sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--blue-700);
}
.about-sign .name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--blue-300);
}
.about-sign .role {
  font-size: 12px;
  color: var(--blue-300);
  letter-spacing: 0.3em;
}

/* ============ PROCESS ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--blue-300);
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.process-num {
  width: 80px;
  height: 80px;
  background: var(--card-white);
  border: 1.5px solid var(--blue-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 32px;
  color: var(--blue-700);
  transition: border-color .3s, background .3s, color .3s;
}
.process-step:hover .process-num {
  border-color: var(--blue-900);
  background: var(--blue-50);
  color: var(--blue-900);
}
.process-step h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 20px;
  color: var(--blue-900);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.process-step p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ============ CTA ============ */
.cta {
  background: var(--blue-50);
  text-align: center;
  padding: 100px 40px;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 44px;
  color: var(--blue-900);
  margin-bottom: 24px;
  line-height: 1.3;
}
.cta p {
  color: var(--ink-soft);
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.9;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 16px 36px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--blue-700);
}
.btn-primary { background: var(--blue-700); color: white; }
.btn-primary:hover { background: var(--blue-900); border-color: var(--blue-900); }
.btn-secondary { background: transparent; color: var(--blue-700); }
.btn-secondary:hover { background: var(--blue-700); color: white; }

/* ============ FOOTER ============ */
footer {
  background: var(--blue-900);
  color: var(--blue-100);
  padding: 60px 40px 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--blue-700);
}
.footer-brand h4 {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--blue-300);
  max-width: 320px;
}
.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--blue-300);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; font-size: 13px; }
.footer-col a {
  color: var(--blue-100);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--blue-300);
  letter-spacing: 0.2em;
}

/* ============ RESPONSIVE ============ */

/* 平板（600px ~ 900px） */
@media (max-width: 900px) {
  .hero, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 44px; }
  section { padding: 80px 24px; }
  .section-head h2 { font-size: 36px; }
  .section-head p { font-size: 2vw; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .process-grid::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* 商品卡片 2 欄 */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .product-body { padding: 16px; }
  .product-origin { font-size: 1.6vw; }
  .product-name { font-size: 2.4vw; }
  .product-desc { font-size: 1.6vw; }
  .product-meta span { font-size: 1.3vw; }
  .product-price .currency { font-size: 1.4vw; }
  .product-price .amount { font-size: 3vw; }
  .product-price .unit { font-size: 1.4vw; }
  .product-btn { font-size: 1.5vw; padding: 10px 14px; }
  .product-card.out .product-image::after { font-size: 2.5vw; }

  /* Nav */
  .nav-inner {
    padding: 14px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-links {
    order: 2;
    flex: 0 0 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .brand-name { font-size: 18px; }
  .brand { gap: 10px; }
  .nav-cta { padding: 9px 18px; font-size: 13px; }

  /* Strip & Topbar */
  .strip { padding: 28px 24px; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 14px 40px; }
  .strip-item { font-size: 1.8vw; gap: 10px; }
  .strip-icon { width: 28px; height: 28px; flex-shrink: 0; }
  .topbar { font-size: 1.4vw; white-space: nowrap; overflow: hidden; }
  .topbar span { margin: 0 1.2vw; }
}

/* 手機（< 600px） */
@media (max-width: 600px) {
  .section-head p { font-size: 3.5vw; }

  /* 商品卡片維持 2 欄，縮小文字 */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 10px; }
  .product-origin { font-size: 2.8vw; }
  .product-name { font-size: 3.8vw; }
  .product-desc { font-size: 2.8vw; }
  .product-meta { gap: 6px; }
  .product-meta span { font-size: 2.4vw; padding: 3px 6px; }
  .product-price .currency { font-size: 2.5vw; }
  .product-price .amount { font-size: 4.5vw; }
  .product-price .unit { font-size: 2.5vw; }
  .product-btn { font-size: 2.8vw; padding: 8px 10px; letter-spacing: 0.05em; }
  .product-btn::after { display: none; }
  .product-card.out .product-image::after { font-size: 4vw; letter-spacing: 0.2em; }

  /* Nav */
  .nav-inner { padding: 12px 16px; }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .brand-name { font-size: 4.2vw; }
  .brand { gap: 8px; }
  .brand-sub { font-size: 2.4vw; letter-spacing: 0.15em; }
  .nav-cta { padding: 8px 14px; font-size: 3.2vw; letter-spacing: 0.1em; }
  .demo-notice {
    display: flex;
    width: 100%;
    font-size: 3vw;
    padding: 10px 12px;
  }

  /* Strip & Topbar */
  .strip { padding: 20px 20px; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .strip-item { font-size: 2.6vw; gap: 6px; }
  .strip-icon { width: 24px; height: 24px; font-size: 11px; flex-shrink: 0; }
  .topbar { font-size: 2.4vw; white-space: nowrap; overflow: hidden; }
  .topbar span { margin: 0 0.8vw; }
}
