/* demo3-home.css — 僅供 demo3.php 使用，以 .demo3-home 限定範圍 */

.demo3-home {
  --d3-navy: #0f1f33;
  --d3-navy-mid: #1a3048;
  --d3-teal: #1a7a6e;
  --d3-teal-light: #2a9d8f;
  --d3-accent: #d4824a;
  --d3-accent-soft: rgba(212, 130, 74, 0.12);
  --d3-ink: #1a2332;
  --d3-muted: #5c6778;
  --d3-line: rgba(15, 31, 51, 0.1);
  --d3-bg: #f7f8fa;
  --d3-card: #ffffff;
  --d3-radius: 4px;
  --d3-radius-lg: 8px;
  --d3-font: "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.demo3-home #m_column {
  overflow-x: hidden;
  font-family: var(--d3-font);
}

/* ── Hero ── */
.demo3-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4.5rem;
  background: #fafbfc;
  overflow: hidden;
}

.demo3-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--d3-navy) 0%, var(--d3-navy) 42%, transparent 42%),
    linear-gradient(180deg, #fafbfc 0%, #f0f3f6 100%);
  pointer-events: none;
}

.demo3-hero__inner {
  position: relative;
  z-index: 2;
}

.demo3-hero__row {
  align-items: center;
}

.demo3-hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.demo3-hero__title {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.28;
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.demo3-hero__lead {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36em;
  margin: 0 0 2rem;
  font-weight: 400;
}

.demo3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.demo3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border-radius: var(--d3-radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.demo3-btn--primary {
  background: var(--d3-accent);
  color: #fff !important;
  border: 1px solid var(--d3-accent);
}

.demo3-btn--primary:hover {
  background: #c07240;
  border-color: #c07240;
  color: #fff !important;
}

.demo3-btn--outline {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.demo3-btn--outline:hover {
  border-color: #fff;
  color: #fff !important;
}

/* Glass wrapper for hero stats */
.demo3-stats-wrap {
  padding: 1.25rem 1.5rem !important;
  margin-top: 1.5rem;
}

.demo3-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  margin: 0;
  padding: 0;
  border-top: none;
}

.demo3-stat {
  margin: 0;
}

.demo3-stat__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--d3-accent);
  margin: 0 0 0.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.demo3-stat__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  letter-spacing: 0.06em;
}

.demo3-hero__figure {
  margin: 0;
  position: relative;
  border-radius: var(--d3-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 31, 51, 0.18);
}

.demo3-hero__img {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.demo3-hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(15, 31, 51, 0.85));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo3-hero__caption-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d3-accent);
  font-weight: 600;
}

.demo3-hero__caption-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* ── 區塊通用 ── */
.demo3-section {
  padding: 5rem 0;
}

.demo3-section--light {
  background: var(--d3-bg);
}

.demo3-section--navy {
  background: var(--d3-navy);
  color: #fff;
}

.demo3-section__head {
  margin-bottom: 2.75rem;
}

.demo3-section__head--left {
  max-width: 640px;
}

.demo3-section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.demo3-section__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--d3-teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.demo3-section--navy .demo3-section__label {
  color: var(--d3-teal-light);
}

.demo3-section__title {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: var(--d3-ink);
  margin: 0;
  letter-spacing: 0.02em;
}

.demo3-section--navy .demo3-section__title {
  color: #fff;
}

.demo3-section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 14px;
  background: var(--d3-accent);
}

.demo3-section__head--split .demo3-section__title::after {
  margin-top: 10px;
}

.demo3-section__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--d3-muted);
  margin: 1rem 0 0;
}

.demo3-section__desc--center {
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.demo3-section__head {
  text-align: center;
}

.demo3-section__head--left,
.demo3-section__head--split {
  text-align: left;
}

/* ── 能力支柱 ── */
.demo3-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--d3-line);
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-radius-lg);
  overflow: hidden;
}

.demo3-pillar {
  background: var(--d3-card);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}

.demo3-pillar:hover {
  background: #fcfcfd;
}

.demo3-pillar__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--d3-teal);
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-radius);
  margin-bottom: 1.25rem;
}

.demo3-pillar h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--d3-ink);
  margin: 0 0 0.6rem;
}

.demo3-pillar p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--d3-muted);
  margin: 0;
}

/* ── 解決方案卡片 ── */
.demo3-solutions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.demo3-solution {
  display: flex;
  flex-direction: row;
  background: var(--d3-card);
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.demo3-solution:hover {
  box-shadow: 0 12px 40px rgba(15, 31, 51, 0.08);
  border-color: rgba(26, 122, 110, 0.25);
}

.demo3-solution__visual {
  flex: 0 0 42%;
  min-height: 200px;
  background: var(--d3-bg);
  overflow: hidden;
}

.demo3-solution__visual img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.demo3-solution__content {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.demo3-solution__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--d3-radius);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.demo3-solution__cat--cooking {
  background: var(--d3-accent-soft);
  color: #9a5a2e;
}

.demo3-solution__cat--npgy {
  background: rgba(26, 122, 110, 0.1);
  color: var(--d3-teal);
}

.demo3-solution__cat--partner {
  background: rgba(15, 31, 51, 0.06);
  color: var(--d3-navy-mid);
}

.demo3-solution__cat--general {
  background: var(--d3-bg);
  color: var(--d3-muted);
}

.demo3-solution__content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--d3-ink);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.demo3-solution__content p {
  font-size: 14px;
  color: var(--d3-muted);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 1rem;
}

.demo3-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--d3-teal) !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
}

.demo3-link:hover {
  color: var(--d3-navy) !important;
}

.demo3-link--head {
  white-space: nowrap;
}

/* ── 新聞（簡潔列表） ── */
.demo3-news {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-radius-lg);
  overflow: hidden;
  background: var(--d3-card);
}

.demo3-news-item {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--d3-line);
  border-right: 1px solid var(--d3-line);
  transition: background 0.2s;
}

.demo3-news-item:nth-child(2n) {
  border-right: none;
}

.demo3-news-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.demo3-news-item:hover {
  background: #fcfcfd;
}

.demo3-news-item__date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--d3-teal);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.demo3-news-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}

.demo3-news-item__title a {
  color: var(--d3-ink) !important;
  text-decoration: none !important;
}

.demo3-news-item__title a:hover {
  color: var(--d3-teal) !important;
}

.demo3-news-item__excerpt {
  font-size: 13px;
  color: var(--d3-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── 水平時間軸 ── */
.demo3-timeline {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 2rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
}

.demo3-timeline::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 3.1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 0;
}

.demo3-timeline__node {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 240px;
  padding: 0 1rem;
  text-align: center;
  position: relative;
}

.demo3-timeline__date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--d3-accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.demo3-timeline__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--d3-accent);
  border: 2px solid var(--d3-navy);
  box-shadow: 0 0 0 3px rgba(212, 130, 74, 0.35);
  position: relative;
  z-index: 1;
}

.demo3-timeline__card {
  text-align: left;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--d3-radius);
}

.demo3-timeline__card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.demo3-timeline__card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  margin: 0;
}

/* ── 合作夥伴 ── */
.demo3-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-radius-lg);
  background: var(--d3-card);
  padding: 0.5rem;
}

.demo3-partner {
  flex: 1 1 calc(16.666% - 2px);
  min-width: 110px;
  max-width: 180px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--d3-line);
  transition: opacity 0.2s;
}

.demo3-partner:last-child {
  border-right: none;
}

.demo3-partner:hover {
  opacity: 0.85;
}

.demo3-partner img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.25s, opacity 0.25s;
}

.demo3-partner:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.demo3-partner--text {
  font-size: 12px;
  font-weight: 600;
  color: var(--d3-muted);
  text-align: center;
  background: var(--d3-bg);
}

/* ── RWD ── */
@media (max-width: 991px) {
  .demo3-hero {
    min-height: auto;
    padding: 3.5rem 0 3rem;
  }

  .demo3-hero__bg {
    background: linear-gradient(180deg, var(--d3-navy) 0%, var(--d3-navy-mid) 55%, #fafbfc 55%);
  }

  .demo3-hero__eyebrow,
  .demo3-hero__title,
  .demo3-hero__lead {
    color: #fff;
  }

  .demo3-hero__figure {
    margin-top: 2rem;
  }

  .demo3-pillars {
    grid-template-columns: 1fr;
  }

  .demo3-solutions {
    grid-template-columns: 1fr;
  }

  .demo3-solution {
    flex-direction: column;
  }

  .demo3-solution__visual {
    flex: none;
    min-height: 180px;
  }

  .demo3-news {
    grid-template-columns: 1fr;
  }

  .demo3-news-item {
    border-right: none !important;
  }

  .demo3-news-item:nth-last-child(1) {
    border-bottom: none;
  }
}

/* ── Systems / O2O / Playtest (ChefBear) ── */
.demo3-system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.demo3-system-card {
  margin: 0;
  background: var(--d3-card);
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-radius-lg);
  overflow: hidden;
}

.demo3-system-card img {
  width: 100%;
  height: auto;
  display: block;
}

.demo3-system-card figcaption {
  padding: 1rem 1.15rem 1.25rem;
}

.demo3-system-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--d3-ink);
}

.demo3-system-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--d3-muted);
  margin: 0;
}

.demo3-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.demo3-split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--d3-radius-lg);
  box-shadow: 0 12px 40px rgba(15, 31, 51, 0.12);
}

.demo3-split__content .demo3-section__title {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.demo3-o2o-stats {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.demo3-o2o-stats li {
  padding: 0.75rem 1rem;
  background: var(--d3-accent-soft);
  border-radius: var(--d3-radius);
  font-size: 0.9rem;
  color: var(--d3-ink);
}

.demo3-playtest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.demo3-playtest-card {
  background: var(--d3-card);
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-radius-lg);
  overflow: hidden;
  padding-bottom: 1.25rem;
}

.demo3-playtest-card img {
  width: 100%;
  height: auto;
  display: block;
}

.demo3-playtest-card h3 {
  font-size: 1.05rem;
  margin: 1rem 1.15rem 0.35rem;
  color: var(--d3-ink);
}

.demo3-playtest-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 1.15rem;
  color: var(--d3-muted);
}

.demo3-health-copy {
  max-width: 42em;
  margin: 0 auto;
  text-align: center;
}

.demo3-health-copy p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
}

@media (max-width: 991px) {
  .demo3-system-grid {
    grid-template-columns: 1fr;
  }

  .demo3-split {
    grid-template-columns: 1fr;
  }

  .demo3-playtest-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .demo3-stats {
    gap: 1.25rem 1.5rem;
  }

  .demo3-o2o-stats {
    grid-template-columns: 1fr;
  }

  .demo3-partner {
    flex: 0 0 50%;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid var(--d3-line);
  }

  .demo3-timeline__node {
    min-width: 180px;
  }
}
