:root {
  --green: #79977f;
  --mint: #eeffe2;
  --yellow: #fee77e;
  --soft-yellow: #fdf5b6;
  --cream: #fffad1;
  --brown: #a0846a;
  --beige: #fef1dd;
  --off-white: #fff6e9;
  --bg: #fffef2;
  --pink: #ffd1c2;
  --dark: #525252;

  --max-width: 1120px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(82, 82, 82, 0.08);

  /* spacing scale */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 36px;

  /* readable measure for paragraphs */
  --lead-max-width: 65ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* header styling */
.header {
  background: var(--bg);
  padding: 16px 0;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* readable paragraphs */
p {
  max-width: var(--lead-max-width);
  margin: 0 0 var(--space-md);
}

.section {
  padding: 64px 0;
}

.hero {
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(40px, 7vw, 88px);
}

.hero-grid,
.story-grid,
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-video-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  border-radius: 32px;
  overflow: hidden;
  background: #fffef2;
  box-shadow: none;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* adjust if your mp4 has a different ratio */
  object-fit: cover;
  border-radius: 32px;
  background: #fffef2;
}


/* tablet / mobile breakpoints consolidated later in file */

.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: var(--green);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 800;
}

/* spacing improvements for hero content */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.hero-copy h1 {
  margin-bottom: var(--space-md);
}

.section-title {
  margin: 40px 0 60px;
  color: var(--green);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 800;
}


.section-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(82, 82, 82, 0.88);
}



.center {
  text-align: center;
}

.top-gap {
  margin-top: 28px;
}

.top-gap-sm {
  margin-top: 32px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: var(--space-lg);
}

.center-row {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* accessibility: visible focus state */
.btn:focus {
  outline: 3px solid rgba(121,151,127,0.18);
  outline-offset: 3px;
}

/* secondary button variant */
.btn.secondary {
  background: transparent;
  color: var(--green);
  box-shadow: none;
  border: 1px solid rgba(121,151,127,0.12);
}

/* hero actions: show original on desktop, show mobile duplicate on small screens */
.hero-actions-mobile { display: none; }

@media (max-width: 720px) {
  .hero-actions { display: none; }
  .hero-actions-mobile { display: block; margin-top: 0px; }
  .hero-video-card { margin-top: 8px; }
}



.screen-title {
  margin: 0;
  font-weight: 700;
}


.yijun-visual-card {
  position: relative;
  min-height: 360px;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.yijun-bg-shape {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;              /* card bottom */
  height: 42%;
  background: var(--mint);
  border-radius: 0 36px 36px 36px;
}

.yijun-apng {
  position: relative;
  z-index: 1;
  max-width: 78%;
  height: auto;
  object-fit: contain;
  align-self: flex-end;   /* image bottom aligns to container bottom */
  margin-bottom: 0;       /* ensure no gap */
  vertical-align: bottom; /* avoids inline-image baseline gap */
  display: block;
}

.split-card,
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.comment-side,
.story-media {
  display: flex;
  justify-content: flex-end; /* push to right edge */
}

.comment-card,
.cat-media-box {
  width: 100%;
  max-width: 450px; /* same width for both */
}

.comment-card {
  position: relative;
  min-height: 450px;
  padding: 32px 28px 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.comment-badge {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 600;
}

.comment-stars {
  margin-top: 0;
  margin-bottom: var(--space-lg);
  color: #edbf47;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.comment-text {
  max-width: 400px;
  color: rgba(82, 82, 82, 0.82);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}


.story-copy {
  display: flex;
  flex-direction: column;
  align-items: top;
  justify-content: top;
  text-align: top;
  height: 100%;
}

.story-copy p {
  align-items: top;
  font-size: clamp(1.05rem, 1.9vw, 1.65rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--green);
}


.cat-media-box {
  border-radius: 32px;
  overflow: hidden;
  background: var(--mint);
}

.cat-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 32px;
}
.floating-visual {
  min-height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-visual img {
  max-width: 360px;
}

.soft-card {
  min-height: 450px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--mint);
  box-shadow: none;
}

.icon-wrap {
  width: 64px;
  height: 64px;
  margin: var(--space-lg) auto var(--space-sm);
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}

.soft-card h3 {
  margin: 0 var(--space-sm);
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.3;
}

.soft-card p {
  margin: var(--space-lg) var(--space-md) var(--space-md);
  font-size: 1.55rem;
  line-height: 1.6;
  text-align: left;
  color: rgba(82, 82, 82, 0.82);
}

.feature-pairs {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}

.feature-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 80px;
  align-items: stretch;
  margin-top: clamp(40px, 3vw, 40px);
}

.feature-card,
.feature-visual {
  min-width: 0;
}

.feature-card h3 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  line-height: 1.3;
}

.feature-card p {
  margin: 10px 0 0;
  line-height: 1.6;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}

.feature-card strong,
.feature-card .subhead {
  display: block;
  margin-top: 35px;
  margin-bottom: 10px;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--green);
}

.feature-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: clamp(0.8rem, 1.2vw, 1.2rem);
}

.feature-card li {
  margin: 6px 0;
  line-height: 1.8;
}


.feature-card .feature-citation {
  max-width: none;
  width: 100%;
  margin-top: 20px;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(82, 82, 82, 0.65);
}

.feature-visual {
  min-height: clamp(220px, 24vw, 280px);
  padding: clamp(16px, 2vw, 20px);
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  background: var(--bg);
}


.placeholder {
  border: 2px dashed rgba(121, 151, 127, 0.25);
  color: rgba(121, 151, 127, 0.9);
  font-weight: 700;
  text-align: center;
}

.yijun-expression-box {
  width: 100%;
  max-width: 320px; /* adjust size */
  border-radius: 50%;
  overflow: hidden;
  background: var(--mint);
}

.yijun-expression {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}

.protocol-box {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
}

.protocol-mp4 {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-webp-box {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
}

.feature-webp {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: contain;
}

.cta-box {
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(238, 255, 226, 0.8) 0%,
    rgba(255, 250, 209, 0.38) 100%
  );
  box-shadow: none;
}

.footer {
  padding: 28px 0 56px;
  text-align: center;
  color: rgba(82, 82, 82, 0.65);
  font-size: 0.95rem;
}





/* responsive rules consolidated near end of file */

/* Consolidated mobile tidy rules */
@media (max-width: 720px) {
  .header { padding: 12px 0; }
  .logo-img { height: 40px; }
  .nav-link { font-size: 1.5rem; }

  .section { padding: 36px 0; }
  .hero { padding-top: 28px; padding-bottom: 36px; }

  /* make hero copy larger on mobile */
  .hero-copy { gap: calc(var(--space-lg) + 8px); }
  .hero-copy h1 { font-size: clamp(3.2rem, 10vw, 4.6rem); line-height: 1.45; text-align: center; }
  /* tighter hero-grid spacing on mobile */
  .hero-grid { gap: var(--space-sm); grid-template-columns: 1fr; }

  /* reduce section-title margin on mobile */
  .section-title { margin: 20px 0 30px; }

  /* stack soft-card items (grid-two) into two rows on mobile */
  .grid-two { grid-template-columns: 1fr; gap: 16px; }

  .hero-video-card { max-width: 420px; margin: 20px auto 0; border-radius: 24px; }
  .hero-video { aspect-ratio: auto; max-height: 420px; }

  .yijun-visual-card {
    min-height: 240px;
    padding: 0 12px;
    align-items: flex-end;
  }
  .yijun-bg-shape { bottom: 0; height: 52%; border-radius: 0 24px 24px 24px; }
  .yijun-apng { margin-bottom: 0; align-self: flex-end; }
  .soft-card { min-height: 260px; padding: 20px; }
  .feature-visual { min-height: 180px; padding: 12px; }

  /* reduce yijun-expression-box by ~30% on mobile */
  .yijun-expression-box {
    width: 70%;
    max-width: 224px; /* 320px * 0.7 = 224px */
  }

  .button-row { gap: 12px; justify-content: center; }
  /* keep buttons side-by-side on mobile with equal widths */
  .button-row { display: flex; flex-wrap: nowrap; gap: 12px; }
  .button-row .btn { flex: 1 1 0; min-width: 0; padding: 12px 18px; font-size: 1rem; }

  .feature-card p, .soft-card p { font-size: 1rem; line-height: 1.6; }

  /* make story copy paragraph the same size as h3 on mobile */
  .story-copy p { font-size: 1.3rem; line-height: 1.8; font-weight: 400; }

  /* feature card responsive adjustments */
  .feature-pairs { gap: 20px; }
  .feature-pairs.top-gap { margin-top: -66px !important; }
  .grid-two.top-gap { margin-top: 0; }
  .feature-pair { gap: 14px; }
  .feature-card { padding: 20px 18px; border-radius: 20px; }
  .feature-card h3 { margin: 0 0 12px; font-size: 1.75rem; line-height: 1.35; word-break: keep-all; }
  .feature-card p, .feature-card li, .feature-card .subhead { font-size: 1rem; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word; }
  .feature-card ul { margin: 10px 0 0; padding-left: 1.2rem; }
  .feature-visual { min-height: 200px; padding: 12px; border-radius: 20px; }

  .comment-card { min-height: auto; padding: 38px 24px 24px; border-radius: 26px; }
  .comment-badge { width: 62px; height: 62px; font-size: 0.95rem; }
  .comment-stars { font-size: 1.5rem; margin-bottom: 18px; }
  .comment-text { max-width: 100%; font-size: 0.98rem; line-height: 1.9; margin-bottom: var(--space-md); }

  /* left-align some paragraph blocks for better readability on mobile */
  .soft-card p,
  .comment-text {
    text-align: left;
  }
  /* make comment card square on mobile */
  .comment-card {
    aspect-ratio: 1 / 1;
    width: min(92%, 420px);
    max-width: 420px;
    margin: 0 auto;
    min-height: auto;
    padding: 20px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .cat-video-wrap, .cat-video { border-radius: 24px; }

  /* reduce soft-card h3 on mobile for better fit */
  .soft-card h3 { font-size: 1.25rem; margin: 0 12px; }
}


@media (max-width: 480px) {
  .section {
    padding: 28px 0;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .yijun-visual-card {
    min-height: 280px;
    padding: 0 16px;
  }

  .yijun-bg-shape {
    bottom: 0;
    height: 52%;
    border-radius: 0 24px 24px 24px;
  }

  .yijun-apng {
    max-width: 84%;
  }

  .comment-badge {
    top: -28px;
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }

  .comment-stars {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .btn {
    border-radius: var(--radius-pill);
    padding: 12px;
  }
}

@media (max-width: 960px) {
  .hero-grid, .story-grid, .split-card { grid-template-columns: 1fr; }
  .hero-video-card { max-width: 100%; margin: 0 auto; }

  .feature-pair { grid-template-columns: 1fr; gap: 16px; }
  .feature-visual { min-height: 220px; }

  .phone-card { margin: 0 auto; }
  .quote-card { margin-top: 20px; }

  .story-grid { grid-template-columns: 1fr; align-items: start; }
  .story-copy { display: block; height: auto; }
  .story-buttons { margin-top: 28px; }
  .story-media { justify-content: center; }

  .feature-card, .feature-visual { width: 100%; min-width: 0; }
}

/* end of stylesheet */

