/* ══════════════════════════════════════════
   Receipt 設計 Token
   standalone：base.css 先載入，這裡補 receipt 專屬值
   整合到官網（ASPX）：本區塊即完整基底，無需 base.css
══════════════════════════════════════════ */
:root {
  /* ── Brand Scale ── */
  --brand-950: #2b3345;
  --brand-900: #3c4560;
  --brand-800: #4a5469;
  --brand-700: #5e687f;
  --brand-600: #6b7590;
  --brand-500: #7886a3;
  --brand-400: #9ba4b8;
  --brand-300: #afb7ca;
  --brand-200: #cdd2db;
  --brand-100: #d6dbe4;
  --brand-50:  #eceef2;
  --brand-0:   #ffffff;

  /* ── Semantic Text ── */
  --text-primary:   #2b3345;
  --text-secondary: #4a5469;
  --text-muted:     #7886a3;

  /* ── Surface ── */
  --bg:           #f4f5f8;
  --surface:      #ffffff;
  --border:       #d6dbe4;
  --border-light: rgba(94, 104, 127, 0.15);

  /* ── Shadow ── */
  --shadow-sm: 0 1px 4px rgba(74, 84, 105, 0.08);
  --shadow-md: 0 4px 16px rgba(74, 84, 105, 0.12);
  --shadow-lg: 0 12px 40px rgba(74, 84, 105, 0.18);
  --shadow-xl: 0 20px 48px rgba(74, 84, 105, 0.22);

  /* ── Receipt 專屬 ── */
  --receipt-bg:     #fefefe;
  --receipt-border: var(--brand-100);
  --section-gap:    80px;
}

/* ── 防衛性 Reset：確保父層 CSS 不干擾 ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* !important 覆蓋父層 SiteNew.css 的 body { font-size:.80em } */
html {
  font-size: 16px !important;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  padding: 100px 48px 100px;
  text-align: center;
  background: linear-gradient(160deg, var(--brand-100) 0%, var(--brand-200) 50%, var(--brand-50) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(94,104,127,0.12), transparent);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: var(--brand-950);
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 16px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--brand-700);
  margin-bottom: 28px;
  position: relative;
}
.hero-badge::before,
.hero-badge::after {
  content: '';
  flex: 0 0 80px;
  height: 1px;
  background: var(--brand-500);
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 40px;
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 48px;
}
.chip {
  background: white;
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.hero-scroll::after {
  content: '';
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--brand-400), transparent);
}


/* ══════════════════════════════════════════
   DEVICE SECTION
══════════════════════════════════════════ */
.device-section {
  padding: 64px 48px 80px;
  background: var(--brand-50);
  position: relative;
  overflow: hidden;
}
.device-header {
  max-width: 1200px;
  margin: 0 auto 50px;
  text-align: center;
  position: relative;
}
.device-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.device-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  width: 100%;
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.60) 0%,
    rgba(255, 255, 255, 0.30) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 32px rgba(74, 84, 105, 0.14),
    0 2px 6px rgba(74, 84, 105, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.device-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0.00) 55%
  );
  pointer-events: none;
}
.device-img {
  position: relative;
  max-width: 68%;
  width: 68%;
  filter: drop-shadow(0 16px 32px rgba(74,84,105,0.20));
}
.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(94, 104, 127, 0.1);
  border: 1px solid rgba(94, 104, 127, 0.22);
  color: var(--brand-700);
  font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}
.device-pricing {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.device-for {
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-900);
}
.device-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.device-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-800);
  line-height: 1;
}
.device-per {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-secondary);
}
.device-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.device-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--brand-100);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.device-card-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.device-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}
.device-link {
  font-size: 13px;
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
}
.device-link:hover { color: var(--brand-800); text-decoration: underline; }
.device-ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-300));
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(74,84,105,0.30);
}
.device-ig-btn i {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
  top: 1px;
}
.device-ig-btn:hover { opacity: 0.88; transform: translateY(-2px); }


/* ══════════════════════════════════════════
   SECTIONS 1 – 5
══════════════════════════════════════════ */

/* ── Wrappers & Grid ── */
.section {
  padding: var(--section-gap) 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-inner.reverse { direction: rtl; }
.section-inner.reverse > * { direction: ltr; }
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--brand-200), transparent);
  max-width: 1200px; margin: 0 auto;
}
.section-bg-soft { background: var(--brand-50); }
.section-wrap { padding: var(--section-gap) 0; }

/* ── Text Elements ── */
.section-number {
  font-size: 80px; font-weight: 800;
  color: var(--brand-100);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--brand-600);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--brand-900);
  line-height: 1.3;
  margin-bottom: 16px;
  text-align: left;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 380px;
  text-align: justify;
  text-wrap: pretty;
}
.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--text-secondary);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 2px;
  background: var(--brand-50);
  border: 1.5px solid var(--brand-300);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%235e687f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Receipt Stage ── */
.receipt-stage {
  position: relative;
  isolation: isolate;
  display: flex; justify-content: center; align-items: center;
  padding: 32px;
}
.receipt-stage-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--brand-100) 0%, transparent 70%);
  border-radius: 24px;
}

/* ── Receipt Image Anchor（label badge 的定位父層）── */
.receipt-img-anchor { position: relative; }
.receipt-img-anchor--offset { margin-top: 40px; }

/* ── Receipt Label Badges ── */
.receipt-label-badge {
  position: absolute;
  background: var(--brand-700);
  color: white;
  font-size: 12px; font-weight: 700;
  font-family: 'Noto Sans TC', sans-serif;
  padding: 3px 15px;
  border-radius: 100px;
  white-space: nowrap;
  
}
.receipt-label-badge--right {
  right: 0;
  left: auto;
  transform: translateX(calc(100% + 34px));
}
.receipt-label-badge--right::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%; transform: translateY(-50%);
  width: 22px; height: 1px;
  background: var(--brand-300);
}
.receipt-label-badge--right::after {
  content: '';
  position: absolute;
  right: calc(100% + 20px);
  top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-500);
}
.receipt-label-badge--left {
  left: 0;
  right: auto;
  transform: translateX(calc(-100% - 34px));
}
.receipt-label-badge--left::before {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%; transform: translateY(-50%);
  width: 22px; height: 1px;
  background: var(--brand-300);
}
.receipt-label-badge--left::after {
  content: '';
  position: absolute;
  left: calc(100% + 20px);
  top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* ── Receipt Images ── */
.receipt-img {
  max-width: 240px;
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--receipt-border);
  display: block;
}
.receipt-img--wide {
  max-width: 280px;
}
.receipt-img-pair {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

/* ── Thermal Paper Showcase ── */
.thermal-showcase {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  position: relative;
}
.thermal-img {
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--receipt-border);
}
.thermal-img--center {
  width: 200px;
  position: relative;
  z-index: 2;
}
.thermal-img--left {
  width: 150px;
  transform: rotate(-4deg) translateY(12px);
  opacity: 0.88;
}
.thermal-img--right {
  width: 150px;
  transform: rotate(4deg) translateY(12px);
  opacity: 0.88;
}


/* ══════════════════════════════════════════
   OVERVIEW CARDS
══════════════════════════════════════════ */
.overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}
.overview-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 48px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.overview-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.overview-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.overview-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.overview-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}


/* ══════════════════════════════════════════
   RESPONSIVE — 3 斷點系統
   Desktop  > 1024px（基準，無 query）
   Tablet  ≤ 1024px
   Mobile  ≤  767px
══════════════════════════════════════════ */

/* ════ Tablet ≤ 1024px ════ */
@media (max-width: 1024px) {
  /* Layout */
  .hero            { padding: 60px 32px 80px; }
  .device-section  { padding: 60px 32px; }
  .device-inner    { grid-template-columns: 1fr; gap: 40px; }
  .device-img-wrap { max-width: 240px; }
  .device-price    { font-size: 40px; }
  .section         { padding: 60px 32px; }
  .section-inner   { grid-template-columns: 1fr; gap: 48px; }
  .overview        { padding: 60px 32px; }
  .overview-grid   { grid-template-columns: repeat(2, 1fr); }
  .device-img-wrap { justify-self: center; }
  .device-pricing  { justify-content: center; }
  .device-card     { align-items: center; }
  .device-ig-btn   { display: flex; margin: 0 auto; }
  .hero-chips      { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; }
  /* 文字在上，圖片在下 */
  .section-inner.reverse                  { direction: ltr; }
  .section-inner.reverse > *:first-child  { order: 2; }
  .section-inner.reverse > *:last-child   { order: 1; }
  /* 圖片：單欄空間充足，維持基準尺寸 */
  .receipt-img           { max-width: 260px; }
  .receipt-img--wide     { max-width: 280px; }
  .thermal-img--center   { width: 180px; }
  .thermal-img--left,
  .thermal-img--right    { width: 135px; }
  /* S4 雙圖垂直疊排 */
  .receipt-img-pair      { flex-direction: column; align-items: center; gap: 24px; }
  /* Label connector */
  .receipt-label-badge--right { transform: translateX(calc(100% + 22px)); }
  .receipt-label-badge--right::before { width: 14px; }
  .receipt-label-badge--right::after  { right: calc(100% + 11px); width: 4px; height: 4px; }
  .receipt-label-badge--left  { transform: translateX(calc(-100% - 22px)); }
  .receipt-label-badge--left::before  { width: 14px; }
  .receipt-label-badge--left::after   { left: calc(100% + 11px); width: 4px; height: 4px; }
}

/* ════ Mobile ≤ 767px ════ */
@media (max-width: 767px) {
  /* Layout */
  .hero            { padding: 40px 20px 56px; }
  .hero-badge      { font-size: 13px; }
  .hero-sub        { font-size: 15px; }
  .hero-chips      { display: inline-grid; grid-template-columns: repeat(2, auto); justify-items: start; }
  .chip            { font-size: 12px; padding: 5px 12px; }
  .device-section  { padding: 40px 20px; }
  .device-img-wrap { max-width: 180px; }
  .device-price    { font-size: 32px; }
  .section         { padding: 40px 20px; }
  .section-inner   { gap: 28px; }
  .section-number  { font-size: 48px; }
  .section-title   { font-size: 22px; }
  .section-desc    { font-size: 14px; max-width: 100%; }
  .receipt-stage   { padding: 16px; }
  .overview        { padding: 40px 20px; }
  .overview-grid   { grid-template-columns: 1fr; gap: 10px; }
  /* 圖片：縮至約 58% */
  .receipt-img           { max-width: 150px; }
  .receipt-img--wide     { max-width: 170px; }
  .thermal-img--center   { width: 105px; }
  .thermal-img--left,
  .thermal-img--right    { width: 78px; }
  /* Label connector */
  .receipt-label-badge        { font-size: 9px; padding: 2px 7px; }
  .receipt-label-badge--right { transform: translateX(calc(100% + 10px)); }
  .receipt-label-badge--right::before { width: 7px; }
  .receipt-label-badge--right::after  { right: calc(100% + 5px); width: 4px; height: 4px; }
  .receipt-label-badge--left  { transform: translateX(calc(-100% - 10px)); }
  .receipt-label-badge--left::before  { width: 7px; }
  .receipt-label-badge--left::after   { left: calc(100% + 5px); width: 4px; height: 4px; }
}
