/* ==================================================
   CSS Variables
   ================================================== */
:root {
  --orange:    #F3602F;
  --orange-lt: #FD6E47;
  --navy:      #232D46;
  --bg-pink:   #FEF3F2;

  --text-dark:  #2D2D2D;
  --text-gray:  #666666;
  --text-light: #999999;
  --border:     #E8E8E8;
  --bg-light:   #F7F7F7;
  --white:      #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

/* ==================================================
   Reset & Base
   ================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ==================================================
   Layout
   ================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================================================
   Header
   ================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 8px;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Desktop Nav */
.main-nav {
  flex: 1;
  overflow: hidden;
}

.main-nav ul {
  display: flex;
  align-items: stretch;
  height: 64px;
  justify-content: flex-end;
}

.main-nav li {
  display: flex;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 11px;
  height: 100%;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.main-nav a .ti {
  font-size: 11px;
  opacity: 0.55;
  margin-top: 1px;
}

.main-nav a:hover {
  color: var(--orange);
}

.main-nav li.active > a,
.main-nav a.active {
  color: var(--orange);
  font-weight: 500;
  border-bottom-color: var(--orange);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.lang-switch {
  font-size: 13px;
  color: var(--text-gray);
  padding: 4px 10px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.lang-switch:hover {
  color: var(--orange);
  background: var(--bg-pink);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  color: var(--text-dark);
  font-size: 20px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.icon-btn:hover {
  color: var(--orange);
  background: var(--bg-pink);
}

.icon-btn.menu-toggle {
  display: none;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  padding: 8px 0 12px;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 13px 24px;
  font-size: 15px;
  color: var(--text-dark);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav a:hover {
  color: var(--orange);
  background: var(--bg-pink);
}

.lang-switch-mobile {
  color: var(--text-gray) !important;
  font-size: 14px !important;
}

/* ==================================================
   Phase Placeholder (temporary)
   ================================================== */
.phase-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
  background: var(--bg-light);
  border-top: 3px dashed var(--border);
  min-height: 300px;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.phase-placeholder h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.phase-placeholder p {
  font-size: 15px;
  color: var(--text-gray);
  max-width: 480px;
  line-height: 1.8;
}

/* ==================================================
   Footer — Phase 7
   ================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.70);
  padding-top: 56px;
}

/* ==================================================
   Responsive — Header
   ================================================== */
@media (max-width: 1100px) {
  .main-nav a {
    padding: 0 8px;
    font-size: 13px;
  }
  .logo-img {
    height: 36px;
  }
}

@media (max-width: 900px) {
  .main-nav a {
    padding: 0 6px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .icon-btn.menu-toggle {
    display: flex;
  }

  .lang-switch {
    display: none;
  }

  .header-inner {
    height: 56px;
  }
}

/* ==================================================
   Phase 2 — 商品分頁區塊
   ================================================== */
.product-tabs-section {
  background: white;
  border-bottom: 1px solid var(--border);
}

/* ── Tab nav strip ── */
.tab-nav-outer {
  background: white;
  border-bottom: 1px solid var(--border);
}

.tab-nav-wrapper {
  display: flex;
  align-items: center;
}

.tab-nav-scroll {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Fade right edge to hint more items */
  -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, black 88%, transparent 100%);
}

.tab-nav-scroll::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.tab-btn:hover {
  color: var(--orange);
  background: var(--bg-pink);
}

.tab-btn.active {
  color: var(--orange);
  font-weight: 700;
  border-bottom-color: var(--orange);
  background: var(--bg-pink);
}

.tab-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-gray);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.tab-btn:hover .tab-btn-icon,
.tab-btn.active .tab-btn-icon {
  background: var(--orange);
  color: white;
}

.tab-btn-label {
  font-size: 14px;
  font-weight: 500;
}

.tab-btn.active .tab-btn-label { font-weight: 700; }

.tab-btn-coming-badge {
  display: inline-flex;
  padding: 2px 7px;
  background: #EFEFEF;
  color: var(--text-light);
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  letter-spacing: 0.02em;
  margin-left: 2px;
}

/* Desktop scroll arrows */
.tab-nav-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tab-nav-arrow:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.tab-nav-arrow:disabled {
  opacity: 0.30;
  pointer-events: none;
}

.tab-nav-prev { margin-right: 8px; }
.tab-nav-next { margin-left: 8px; }

/* ── Content area ── */
.tab-content-area {
  background: linear-gradient(135deg, #FEF3F2 0%, #FFF8F7 45%, #FFFFFF 70%);
  position: relative;
  padding: 48px 0 64px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: tabFadeIn 0.32s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-pane-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.tab-pane-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding-top: 8px;
}

.tab-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.12em;
}

.tab-headline {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.tab-desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.85;
  max-width: 440px;
}

/* Dual CTA */
.tab-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background: var(--orange);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(243, 96, 47, 0.35);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 96, 47, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: white;
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-pink);
}

.btn-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background: #E8E8E8;
  color: #AAAAAA;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: not-allowed;
  pointer-events: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Right column: stat cards + art */
.tab-pane-right {
  flex: 0 0 268px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-stat-cards {
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius);
  padding: 16px 18px 12px;
}

.tab-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.tab-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tab-stat-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tab-stat-value {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
}

.tab-stat-value strong {
  color: var(--orange);
}

.tab-stat-disclaimer {
  font-size: 10px;
  color: var(--text-light);
  text-align: right;
  margin-top: 8px;
  opacity: 0.75;
}

.tab-pane-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.product-section-tagline-wrap {
  background: white;
  padding: 32px 0 20px;
}
.product-section-tagline {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .tab-headline     { font-size: 22px; }
  .tab-pane-right   { flex: 0 0 230px; }
  .tab-content-area { padding: 36px 0 60px; }
}

@media (max-width: 768px) {
  /* Hide arrows; user swipes instead */
  .tab-nav-arrow { display: none; }

  /* Softer fade — less of the strip is hidden */
  .tab-nav-scroll {
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }

  .tab-content-area { padding: 28px 0 48px; }

  .tab-pane-inner {
    flex-direction: column;
    gap: 24px;
  }

  .tab-pane-right {
    flex: none;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .tab-stat-cards { flex: 1; min-width: 0; }
  .tab-pane-art   { flex: 0 0 148px; width: 148px; }

  .tab-headline  { font-size: 20px; }
  .tab-desc      { font-size: 14px; }
}

@media (max-width: 480px) {
  .tab-pane-right { flex-direction: column; }
  .tab-pane-art   { width: 170px; margin: 0 auto; }
  .tab-headline   { font-size: 18px; }
  .tab-desc       { font-size: 13px; }
  .tab-cta-row { gap: 8px; }
  .tab-cta-row .btn-primary,
  .tab-cta-row .btn-secondary,
  .tab-cta-row .btn-coming-soon { flex: 1; padding: 12px 10px; font-size: 14px; }
  .product-section-tagline { font-size: 17px; padding: 24px 0 16px; }
}

/* ==================================================
   Phase 3 — 客戶服務顯著區塊
   ================================================== */
.service-section {
  background: #F8F9FA;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.service-section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.service-section-heading h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-section-heading p {
  font-size: 15px;
  color: var(--text-gray);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-dark);
  gap: 14px;
  transition: border-top-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  border-top-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--orange);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.service-card:hover .service-card-icon {
  background: var(--orange);
  color: var(--white);
}

.service-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.service-card-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.65;
}

.service-card-arrow {
  font-size: 18px;
  color: var(--orange);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  margin-top: auto;
}

.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .service-grid { gap: 16px; }
  .service-card { padding: 32px 16px 28px; }
}

@media (max-width: 768px) {
  .service-section { padding: 48px 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-section-heading h2 { font-size: 22px; }
  .service-card { padding: 28px 14px 24px; }
  .service-card-icon { width: 54px; height: 54px; font-size: 24px; }
  .service-card-title { font-size: 15px; }
}

@media (max-width: 400px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ==================================================
   Phase 4 — 行銷活動輪播
   ================================================== */
.promo-section {
  background: var(--white);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.promo-section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.promo-section-heading h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.promo-section-heading p {
  font-size: 15px;
  color: var(--text-gray);
}

/* Outer wrapper — row with arrow buttons flanking the viewport */
.promo-carousel-outer {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Arrow buttons — hidden by default, shown on mobile via media query */
.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.carousel-arrow:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Viewport — clips overflowing track */
.promo-carousel-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

/* Track — flex row, slides via translateX */
.promo-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Cards — 3 per row on desktop */
.promo-card {
  flex: 0 0 calc((100% - 40px) / 3);  /* 3 cards + 2 × 20 px gap = 100 % */
  min-width: 0;
}

.promo-card-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow var(--transition), transform var(--transition);
}

.promo-card-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Image placeholder — gradient color block */
.promo-card-img {
  height: 175px;
  display: flex;
  align-items: flex-start;
  padding: 14px 16px;
}

.promo-img-1 { background: linear-gradient(135deg, #E8420E 0%, #F3602F 40%, #FD6E47 75%, #FFAC84 100%); }
.promo-img-2 { background: linear-gradient(135deg, #1A2333 0%, #232D46 45%, #344F7C 75%, #4A72AE 100%); }
.promo-img-3 { background: linear-gradient(135deg, #14605A 0%, #1C8A82 45%, #27B2AA 75%, #52CBBD 100%); }

/* Badge chip on image */
.promo-img-badge {
  display: inline-flex;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
}

/* Card body */
.promo-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.promo-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

.promo-card-date {
  font-size: 13px;
  color: var(--text-light);
}

.promo-card-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.65;
}

.promo-card-desc strong {
  color: var(--orange);
  font-weight: 700;
}

/* Dots indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #D0D0D0;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}

.carousel-dot.active {
  background: var(--orange);
  width: 22px;
}

/* Hide dots + arrows on desktop — all 3 cards visible, no navigation needed */
@media (min-width: 768px) {
  .promo-section .carousel-dots { display: none; }
}

/* Mobile — 1 card at a time */
@media (max-width: 767px) {
  .promo-section    { padding: 48px 0; }
  .promo-section-heading h2 { font-size: 22px; }

  .carousel-arrow   { display: flex; }   /* reveal arrows */

  .promo-card       { flex: 0 0 100%; }  /* full-width single card */

  .promo-card-img   { height: 145px; }
  .promo-card-title { font-size: 14px; }
  .promo-card-body  { padding: 14px 16px 18px; }
}

/* ==================================================
   Phase 5A — 使命數據卡
   ================================================== */
.stats-section {
  background: var(--white);
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 40px;
  gap: 12px;
}

.stat-card + .stat-card {
  border-left: 1px solid var(--border);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.stat-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-plus {
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-unit {
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  margin-left: 4px;
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  color: var(--text-gray);
  font-weight: 400;
}

@media (max-width: 768px) {
  .stats-section { padding: 52px 0; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stat-card { padding: 0 16px; }
  .stat-number { font-size: 40px; }
  .stat-plus   { font-size: 24px; }
  .stat-unit   { font-size: 20px; }
  .stat-label  { font-size: 13px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-card + .stat-card { border-left: none; border-top: 1px solid var(--border); padding-top: 40px; }
  .stat-number { font-size: 52px; }
}

/* ==================================================
   Phase 5B — 社會公益
   ================================================== */
.csr-section {
  background: var(--bg-pink);
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.csr-header {
  text-align: center;
  margin-bottom: 44px;
}

.csr-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.csr-header p {
  font-size: 15px;
  color: var(--text-gray);
}

.csr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.csr-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.csr-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--orange);
}

.csr-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.csr-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.75;
}

.csr-more-wrap {
  text-align: center;
}

.csr-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.csr-more-link:hover {
  border-bottom-color: var(--orange);
}

@media (max-width: 768px) {
  .csr-section { padding: 52px 0; }
  .csr-grid { grid-template-columns: 1fr; gap: 16px; }
  .csr-card { padding: 28px 20px; }
  .csr-header h2 { font-size: 22px; }
}

/* ==================================================
   Phase 5C — 我們的服務
   ================================================== */
.our-services-section {
  background: var(--white);
  padding-top: 72px;
  border-bottom: 1px solid var(--border);
}

.our-services-heading {
  text-align: center;
  margin-bottom: 44px;
}

.our-services-heading h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.our-services-heading p {
  font-size: 15px;
  color: var(--text-gray);
}

.our-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.our-service-card {
  display: block;
  text-decoration: none;
  min-height: 340px;
  overflow: hidden;
  position: relative;
  transition: filter var(--transition);
}

.our-service-card:hover {
  filter: brightness(1.06);
}

.our-service-personal {
  background: linear-gradient(135deg, #E8420E 0%, #F3602F 40%, #FD6E47 75%, #FFAC84 100%);
}

.our-service-corporate {
  background: linear-gradient(135deg, #181F30 0%, #232D46 50%, #2E3F63 100%);
}

.our-service-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 52px 52px 60px;
  height: 100%;
  gap: 24px;
}

.our-service-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: white;
}

.our-service-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.70);
  text-transform: uppercase;
}

.our-service-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: white;
}

.our-service-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.75;
  max-width: 320px;
}

.our-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.50);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color var(--transition), gap var(--transition);
}

.our-service-card:hover .our-service-cta {
  border-color: white;
  gap: 10px;
}

.our-service-art {
  flex: 0 0 160px;
  width: 160px;
  opacity: 0.9;
}

.our-service-art svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .our-service-inner { padding: 40px 36px; }
  .our-service-title { font-size: 22px; }
  .our-service-art   { flex: 0 0 130px; width: 130px; }
}

@media (max-width: 768px) {
  .our-services-section { padding-top: 52px; }
  .our-services-heading h2 { font-size: 22px; }
  .our-services-grid { grid-template-columns: 1fr; }
  .our-service-inner { padding: 36px 24px; }
  .our-service-title { font-size: 20px; }
  .our-service-art   { display: none; }
}

/* ==================================================
   Phase 6A — 深色 icon 列
   ================================================== */
.quick-links-section {
  background: var(--navy);
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-links-grid li {
  flex: 1 1 calc(100% / 7);
  min-width: 0;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), color var(--transition);
  text-align: center;
}

.quick-links-grid li:last-child .quick-link-item {
  border-right: none;
}

.quick-link-item:hover {
  background: rgba(243, 96, 47, 0.18);
  color: white;
}

.quick-link-item .ti {
  font-size: 26px;
  color: var(--orange-lt);
  transition: color var(--transition);
}

.quick-link-item:hover .ti {
  color: var(--orange);
}

.quick-link-item span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 80px;
}

@media (max-width: 1100px) {
  .quick-link-item span { font-size: 11px; max-width: 72px; }
  .quick-link-item       { padding: 24px 8px; }
  .quick-link-item .ti   { font-size: 22px; }
}

@media (max-width: 768px) {
  .quick-links-grid li   { flex: 1 1 25%; }
  .quick-link-item       { padding: 20px 10px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .quick-link-item span  { max-width: 64px; font-size: 11px; }
}

@media (max-width: 480px) {
  .quick-links-grid li   { flex: 1 1 33.333%; }
}

/* ==================================================
   Phase 6B — 標語 Banner
   ================================================== */
.slogan-banner {
  background: linear-gradient(100deg, #C93000 0%, #E8420E 30%, #F3602F 60%, #FD6E47 100%);
  padding: 64px 0;
}

.slogan-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.slogan-text {
  flex: 1;
}

.slogan-headline {
  font-size: 32px;
  font-weight: 700;
  color: white;
  line-height: 1.35;
  margin-bottom: 10px;
}

.slogan-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.65;
}

.btn-slogan {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-slogan:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: white;
}

@media (max-width: 768px) {
  .slogan-banner   { padding: 48px 0; }
  .slogan-inner    { flex-direction: column; align-items: flex-start; gap: 24px; }
  .slogan-headline { font-size: 24px; }
}

/* ==================================================
   Phase 6C — 最新消息
   ================================================== */
.news-section {
  background: var(--white);
  padding: 64px 0 80px;
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.news-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  transition: gap var(--transition);
}

.news-more:hover {
  gap: 9px;
}

.news-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: background var(--transition);
}

.news-item:hover .news-title {
  color: var(--orange);
}

.news-date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
  width: 72px;
}

.news-tag {
  flex-shrink: 0;
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-tag-notice  { background: #FFF0EA; color: var(--orange); }
.news-tag-product { background: #EAF0FF; color: #3B5FCF; }
.news-tag-service { background: #EAFAF2; color: #1A8A5A; }

.news-title {
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dark);
  transition: color var(--transition);
}

.news-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-light);
  transition: color var(--transition), transform var(--transition);
}

.news-item:hover .news-arrow {
  color: var(--orange);
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .news-section  { padding: 48px 0 60px; }
  .news-heading  { font-size: 22px; }
  .news-item     { flex-wrap: wrap; gap: 10px; padding: 14px 0; }
  .news-date     { width: auto; }
  .news-title    { flex: 0 0 100%; font-size: 14px; }
  .news-arrow    { display: none; }
}

/* ==================================================
   Phase 7 — Footer
   ================================================== */
.footer-inner {
  display: flex;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* Brand column */
.footer-brand {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo-link { display: inline-block; }

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.75;
  font-style: italic;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.75;
  margin-top: auto;
}

/* Nav columns */
.footer-nav {
  flex: 1;
  display: flex;
  gap: 40px;
}

.footer-nav-col { flex: 1; }

.footer-nav-heading {
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-nav-col ul li { margin-bottom: 10px; }

.footer-nav-col ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav-col ul a:hover { color: var(--orange-lt); }

/* Contact column */
.footer-contact { flex: 0 0 180px; }

.footer-phone {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  margin: 10px 0 5px;
  letter-spacing: 0.03em;
}

.footer-hours {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--orange);
  color: white;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.30);
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255, 255, 255, 0.75); }

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-inner   { gap: 32px; }
  .footer-brand   { flex: 0 0 170px; }
  .footer-contact { flex: 0 0 160px; }
  .footer-nav     { gap: 24px; }
}

@media (max-width: 768px) {
  .site-footer    { padding-top: 44px; }
  .footer-inner   { flex-direction: column; gap: 32px; padding-bottom: 32px; }
  .footer-brand   { flex: none; }
  .footer-nav     { gap: 24px; }
  .footer-contact { flex: none; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .footer-nav         { flex-wrap: wrap; }
  .footer-nav-col     { flex: 1 1 40%; }
  .container          { padding: 0 16px; }
}

/* ==================================================
   Service Detail Pages  (pages/*.html)
   ================================================== */
.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-gray);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  margin-left: auto;
}

.back-to-home:hover {
  color: var(--orange);
  background: var(--bg-pink);
}

.service-page-hero {
  background: linear-gradient(135deg, #FEF3F2 0%, #FFF8F7 60%, #FFFFFF 100%);
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--border);
}

.service-page-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.service-page-icon {
  width: 72px;
  height: 72px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  flex-shrink: 0;
}

.service-page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-page-subtitle {
  font-size: 15px;
  color: var(--text-gray);
}

.service-page-body {
  padding: 52px 0 80px;
  background: var(--bg-light);
  min-height: 280px;
}

.service-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-sub-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: border-top-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-sub-item:hover {
  border-top-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-sub-item-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-pink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--orange);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.service-sub-item:hover .service-sub-item-icon {
  background: var(--orange);
  color: white;
}

.service-sub-item-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.service-sub-item-text p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.65;
}

.service-page-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.45);
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
}

.service-page-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.service-page-footer a:hover {
  color: var(--orange-lt);
}

@media (max-width: 768px) {
  .service-page-hero  { padding: 36px 0 28px; }
  .service-page-title { font-size: 24px; }
  .service-page-icon  { width: 56px; height: 56px; font-size: 24px; }
  .service-page-body  { padding: 36px 0 60px; }
  .service-sub-grid   { grid-template-columns: 1fr; }
}
