/* ============================================
   Portfolio — Full-Width Showcase Edition
   ============================================ */

/* Global: border-box 避免 padding 撐爆手機版 width:100% 的容器 */
.portfolio-page *,
.portfolio-page *::before,
.portfolio-page *::after {
  box-sizing: border-box;
}

/* Reset body 預設 8px margin(避免頁面浮空) */
body:has(.portfolio-page) {
  margin: 0;
}

.portfolio-page {
  min-height: 100vh;
  background: #faf8f5;
  font-family:
    "Noto Sans TC",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #2d1810;
}

/* ===== Hero ===== */
.portfolio-hero {
  position: relative;
  padding: 160px 40px 120px;
  text-align: center;
  background: #ffffff;
  overflow: hidden;
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(210, 105, 30, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 10%,
    rgba(210, 105, 30, 0.15) 50%,
    transparent 90%
  );
}

.portfolio-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Expert Hero Variant ===== */
.portfolio-hero--expert {
  background: linear-gradient(
    135deg,
    #0f0a1a 0%,
    #1a1030 30%,
    #12082a 60%,
    #0d0618 100%
  );
  padding: 0;
  text-align: left;
  min-height: 560px;
}

.portfolio-hero--expert::before {
  top: -200px;
  left: 30%;
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(120, 80, 220, 0.12) 0%,
    rgba(180, 100, 255, 0.04) 40%,
    transparent 65%
  );
}

.portfolio-hero--expert::after {
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(120, 80, 220, 0.2) 50%,
    transparent 95%
  );
}

.portfolio-hero-content--split {
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.portfolio-hero-text {
  flex: 1;
  padding: 100px 0 100px 60px;
  min-width: 0;
}

.portfolio-hero--expert .portfolio-badge {
  border-color: rgba(180, 140, 255, 0.35);
  color: #b8a0e8;
}

.portfolio-hero--expert .portfolio-hero-title {
  color: #ffffff;
}

.portfolio-hero--expert .portfolio-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* Photo */
.portfolio-hero-photo {
  position: relative;
  flex: 0 0 460px;
  align-self: flex-end;
  height: 580px;
  overflow: hidden;
}

.portfolio-hero-photo-glow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(160, 100, 255, 0.18) 0%,
    rgba(100, 60, 200, 0.06) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.portfolio-hero-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      black 5%,
      black 82%,
      transparent 100%
    ),
    linear-gradient(to right, transparent 0%, black 18%, black 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      black 5%,
      black 82%,
      transparent 100%
    ),
    linear-gradient(to right, transparent 0%, black 18%, black 100%);
  -webkit-mask-composite: source-in;
  filter: brightness(1.05) contrast(1.05);
}

/* Expert Hero Responsive */
@media (max-width: 768px) {
  .portfolio-hero--expert {
    min-height: auto;
  }

  .portfolio-hero-content--split {
    flex-direction: column;
    gap: 0;
  }

  .portfolio-hero-text {
    padding: 8px 32px 24px;
    text-align: center;
  }

  .portfolio-hero-photo {
    flex: none;
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .portfolio-hero-text {
    padding: 4px 16px 20px;
  }

  .portfolio-hero-photo {
    max-width: 280px;
  }

  .portfolio-hero--expert .portfolio-hero-subtitle {
    font-size: 0.95rem;
  }
}

.portfolio-badge {
  display: inline-block;
  padding: 8px 28px;
  border: 1px solid rgba(210, 105, 30, 0.25);
  border-radius: 9999px;
  color: #b8732a;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: transparent;
}

.portfolio-hero-title {
  font-size: clamp(1.9rem, 7vw, 5rem);
  font-weight: 900;
  color: #1a0f0a;
  line-height: 1.2;
  margin: 0 0 28px;
}

.portfolio-hero-title .highlight {
  background: linear-gradient(135deg, #c45e18, #d2691e, #cd853f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typewriter */
.typewriter-cursor {
  color: #d2691e;
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.portfolio-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #8a7262;
  line-height: 2;
  margin: 0 auto;
  max-width: 600px;
  font-weight: 300;
}

/* ===== Project Section (full-width alternating) ===== */
.pf-project {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.pf-project-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.pf-project-inner.pf-reverse {
  direction: rtl;
}

.pf-project-inner.pf-reverse > * {
  direction: ltr;
}

.pf-project-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(62, 39, 35, 0.1);
}

.pf-project-image img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.pf-project-inner:hover .pf-project-image img {
  transform: scale(1.04);
}

.pf-project-body {
  padding: 16px 0;
}

.pf-project-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #1a0f0a;
  margin: 0 0 16px;
  line-height: 1.2;
}

.pf-project-tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #d2691e;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.4;
}

.pf-project-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #6b5a4e;
  line-height: 1.9;
  margin: 0 0 28px;
  font-weight: 300;
}

.pf-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b8732a;
  letter-spacing: 0.08em;
  transition:
    gap 0.3s ease,
    color 0.3s ease;
}

.pf-project-inner:hover .pf-project-link {
  gap: 14px;
  color: #d2691e;
}

.pf-project-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.pf-project-inner:hover .pf-project-link svg {
  transform: translateX(4px);
}

/* ===== Scroll Reveal Animation ===== */
.pf-project {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.pf-project.pf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Divider ===== */
.pf-divider {
  text-align: center;
  padding: 60px 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.pf-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(210, 105, 30, 0.15),
    transparent
  );
}

.pf-divider-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1a0f0a;
  margin: 12px 0 0;
}

/* ===== Founder / AI vs Normal ===== */
.pf-founder {
  padding: 80px 40px;
  background: linear-gradient(180deg, #f5efe6 0%, #faf8f5 100%);
  position: relative;
}

.pf-founder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(210, 105, 30, 0.15),
    transparent
  );
}

.pf-founder-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Floating Brain LINE Button */
.pf-floating-brain {
  position: fixed;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  right: 32px;
  width: 80px;
  height: 80px;
  z-index: 999;
  animation: floatBrain 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 206, 209, 0.5));
  transition: transform 0.3s ease;
  cursor: pointer;
}

.pf-floating-brain:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 12px 32px rgba(0, 206, 209, 0.7));
}

.pf-floating-brain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pf-brain-tag {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: #2d3436;
  color: #f5efe6;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  max-width: 220px;
  text-align: center;
  line-height: 1.4;
}

.pf-brain-tag::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2d3436;
}

@keyframes floatBrain {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.pf-founder-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #1a0f0a;
  margin: 0 0 12px;
}

.pf-founder-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #6b5a4e;
  margin: 0 0 32px;
  line-height: 1.6;
}

.pf-founder-subtitle strong {
  color: #d2691e;
  font-size: 1.3em;
}

/* Compare Grid */
.pf-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.pf-compare-col {
  padding: 28px;
  border-radius: 16px;
}

.pf-compare-old {
  background: #f0ebe5;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pf-compare-new {
  background: linear-gradient(
    135deg,
    rgba(210, 105, 30, 0.08),
    rgba(205, 133, 63, 0.06)
  );
  border: 1px solid rgba(210, 105, 30, 0.15);
}

.pf-compare-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1a0f0a;
}

.pf-compare-new .pf-compare-heading {
  color: #d2691e;
}

.pf-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pf-compare-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: #6b5a4e;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pf-compare-list li:last-child {
  border-bottom: none;
}

.pf-compare-old .pf-compare-list li::before {
  content: "✕ ";
  color: #c0a090;
  font-weight: 700;
  margin-right: 4px;
}

.pf-compare-new .pf-compare-list li::before {
  content: "✓ ";
  color: #d2691e;
  font-weight: 700;
  margin-right: 4px;
}

/* Multiplier */
.pf-multiplier {
  text-align: center;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(210, 105, 30, 0.1);
  margin-bottom: 32px;
}

.pf-multiplier-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a7262;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.pf-multiplier-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pf-multiplier-tag {
  padding: 6px 16px;
  background: linear-gradient(135deg, #d2691e, #cd853f);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
}

.pf-multiplier-x {
  color: #d2691e;
  font-size: 1.2rem;
  font-weight: 700;
}

/* (LINE & pricing buttons removed, LINE is now floating brain) */

/* ===== CTA ===== */
.pf-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.pf-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: linear-gradient(135deg, #f5efe6, #efe7db);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
}

.pf-cta-image {
  overflow: hidden;
  border-radius: 24px 0 0 24px;
  height: 100%;
}

.pf-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-cta-body {
  padding: 56px 56px 56px 0;
}

.pf-cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #1a0f0a;
  margin: 0 0 20px;
  line-height: 1.3;
}

.pf-cta-text {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: #6b5a4e;
  line-height: 1.9;
  margin: 0 0 32px;
  font-weight: 300;
}

.pf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background: linear-gradient(135deg, #d2691e, #cd853f);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 6px 24px rgba(210, 105, 30, 0.3);
}

.pf-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(210, 105, 30, 0.4);
}

/* ===== Mid-page CTA ===== */
.pf-mid-cta {
  text-align: center;
  padding: 48px 24px;
  background: #f5efe6;
}
.pf-mid-cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #d2691e, #cd853f);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 12px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.pf-mid-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(210, 105, 30, 0.35);
}

/* ===== Footer ===== */
.portfolio-footer {
  padding: 32px 24px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: #f5efe6;
  border-top: 1px solid rgba(210, 105, 30, 0.08);
}

.portfolio-footer-text {
  font-size: 0.8rem;
  color: #b5a08e;
  margin: 0;
  letter-spacing: 0.05em;
}

.portfolio-footer-text a {
  color: #b5a08e;
  text-decoration: none;
}

.portfolio-footer-text a:hover {
  color: #d2691e;
}

/* ===== Tablet (768px) ===== */
@media (max-width: 768px) {
  .portfolio-hero {
    padding: 100px 24px 60px;
  }

  .pf-project {
    padding: 40px 24px;
  }

  .pf-project-inner,
  .pf-project-inner.pf-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    direction: ltr;
  }

  .pf-project-body {
    padding: 0;
  }

  .pf-divider {
    padding: 48px 24px 16px;
  }

  .pf-founder {
    padding: 48px 24px;
  }

  .pf-cta {
    padding: 40px 24px;
  }

  .pf-cta-inner {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 20px;
  }

  .pf-cta-image {
    border-radius: 20px 20px 0 0;
    max-height: 240px;
  }

  .pf-cta-body {
    padding: 32px 28px;
    text-align: center;
  }

  .pf-cta-btn {
    margin: 0 auto;
  }
}

/* ===== Mobile (480px) ===== */
@media (max-width: 480px) {
  .portfolio-hero {
    padding: 4px 14px 40px;
  }

  .portfolio-hero::before {
    width: 300px;
    height: 300px;
  }

  .portfolio-badge {
    font-size: 0.65rem;
    padding: 6px 16px;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
  }

  .portfolio-hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .pf-project {
    padding: 28px 14px;
  }

  .pf-project-inner {
    gap: 20px;
  }

  .pf-project-image {
    border-radius: 14px;
  }

  .pf-project-title {
    font-size: 1.4rem;
  }

  .pf-project-tagline {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .pf-project-desc {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .pf-divider {
    padding: 36px 14px 12px;
  }

  .pf-divider-title {
    font-size: 1.2rem;
  }

  .pf-founder {
    padding: 36px 14px;
  }

  .pf-founder-title {
    font-size: 1.25rem;
  }

  .pf-founder-subtitle {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .pf-compare {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pf-compare-col {
    padding: 20px;
    border-radius: 14px;
  }

  .pf-compare-heading {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .pf-compare-list li {
    font-size: 0.85rem;
    padding: 6px 0;
  }

  .pf-multiplier {
    padding: 18px;
    margin-bottom: 24px;
  }

  .pf-multiplier-items {
    gap: 5px;
  }

  .pf-multiplier-tag {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .pf-multiplier-x {
    font-size: 1rem;
  }

  .pf-floating-brain {
    width: 56px;
    height: 56px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }

  .pf-brain-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    max-width: 160px;
  }

  .pf-cta {
    padding: 28px 14px;
  }

  .pf-cta-inner {
    border-radius: 16px;
  }

  .pf-cta-image {
    border-radius: 16px 16px 0 0;
    max-height: 200px;
  }

  .pf-cta-body {
    padding: 24px 20px;
    text-align: center;
  }

  .pf-cta-title {
    font-size: 1.2rem;
  }

  .pf-cta-text {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }

  .pf-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9rem;
    border-radius: 10px;
    margin: 0 auto;
  }

  /* Footer safe area */
  .portfolio-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== Expert Section (Apple-inspired) ===== */
.expert-section {
  background: #ffffff;
  padding: 120px 0 100px;
  position: relative;
}

.expert-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 10%,
    rgba(210, 105, 30, 0.15) 50%,
    transparent 90%
  );
}

.expert-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 72px;
  align-items: flex-start;
}

.expert-photo-side {
  flex: 0 0 300px;
  position: sticky;
  top: 80px;
}

.expert-photo {
  width: 300px;
  height: 375px;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(45, 24, 16, 0.12);
}

.expert-content {
  flex: 1;
  min-width: 0;
}

.expert-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #1a0f0a;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.expert-lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #c45e18;
  font-weight: 600;
  margin: 0 0 48px;
}

/* Compare items */
.expert-compare {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 56px;
}

.expert-compare-item {
  padding: 0 0 0 24px;
  border-left: 3px solid #d2691e;
}

.expert-compare-item:first-child {
  border-left-color: #ccc;
}

.expert-compare-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #d2691e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.expert-compare-heading--dim {
  color: #999;
}

.expert-compare-item p {
  color: #5a4a3e;
  line-height: 1.8;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.expert-compare-item strong {
  color: #1a0f0a;
}

/* Divider */
.expert-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(210, 105, 30, 0.2), transparent 80%);
  margin: 56px 0;
}

/* Free block */
.expert-free-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.expert-free-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
  color: #1a0f0a;
  margin: 0;
  letter-spacing: -0.01em;
}

.expert-line-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #06c755;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.expert-line-btn:hover {
  opacity: 0.9;
}

/* Ordered list */
.expert-free-list {
  list-style: none;
  counter-reset: free-items;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  row-gap: 0;
}

.expert-free-list li {
  counter-increment: free-items;
  padding: 18px 0;
  border-bottom: 1px solid rgba(210, 105, 30, 0.08);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: #6b5a4e;
  line-height: 1.7;
}

.expert-free-list li::before {
  content: counter(free-items, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 700;
  color: #d2691e;
  margin-right: 12px;
  opacity: 0.5;
}

.expert-free-list li strong {
  color: #2d1810;
  font-weight: 700;
}

/* Bottom CTA */
.expert-bottom-cta {
  background: #faf8f5;
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.expert-bottom-cta p {
  color: #6b5a4e;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin: 0;
  line-height: 1.6;
}

.expert-cta-btn {
  flex-shrink: 0;
  padding: 16px 36px;
  background: #d2691e;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.expert-cta-btn:hover {
  background: #b8572a;
}

/* Expert responsive — tablet */
@media (max-width: 768px) {
  .expert-section {
    padding: 80px 0 64px;
  }

  .expert-inner {
    flex-direction: column;
    gap: 40px;
    padding: 0 32px;
  }

  .expert-photo-side {
    position: static;
    flex: none;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .expert-photo {
    width: 220px;
    height: 275px;
  }

  .expert-title {
    text-align: center;
  }

  .expert-lead {
    text-align: center;
  }

  .expert-free-list {
    grid-template-columns: 1fr;
  }

  .expert-bottom-cta {
    flex-direction: column;
    text-align: center;
  }
}

/* Expert responsive — mobile */
@media (max-width: 480px) {
  .expert-section {
    padding: 64px 0 48px;
  }

  .expert-inner {
    padding: 0 20px;
  }

  .expert-photo {
    width: 180px;
    height: 225px;
  }

  .expert-title {
    font-size: 1.6rem;
  }

  .expert-lead {
    font-size: 1.05rem;
  }

  .expert-free-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .expert-free-heading {
    font-size: 1.3rem;
  }

  .expert-bottom-cta {
    padding: 24px 20px;
  }

  .expert-cta-btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}

/* ===== 實驗室區塊 ===== */
.exp-lab {
  background: #f5efe6;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.exp-lab::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(210, 105, 30, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.exp-lab-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.exp-lab-header {
  text-align: center;
  margin-bottom: 56px;
}

.exp-lab-badge {
  display: inline-block;
  background: rgba(210, 105, 30, 0.12);
  border: 1px solid rgba(210, 105, 30, 0.35);
  color: #e07b3a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.exp-lab-title {
  font-size: 52px;
  font-weight: 900;
  color: #2d1810;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.exp-lab-title-period {
  color: #d2691e;
}

.exp-lab-sub {
  font-size: 16px;
  color: rgba(45, 24, 16, 0.5);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

.exp-lab-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(210, 105, 30, 0.15);
  border-radius: 20px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.exp-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d2691e, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 105, 30, 0.4);
  box-shadow:
    0 16px 48px rgba(45, 24, 16, 0.1),
    0 0 0 1px rgba(210, 105, 30, 0.15);
}

.exp-card:hover::after {
  opacity: 1;
}

.exp-card-no {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d2691e;
  margin-bottom: 20px;
}

.exp-card-stat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.exp-card-stat-bad {
  font-size: 48px;
  font-weight: 900;
  color: rgba(45, 24, 16, 0.2);
  line-height: 1;
}

.exp-card-stat-good {
  font-size: 48px;
  font-weight: 900;
  color: #d2691e;
  line-height: 1;
}

.exp-card-stat-unit {
  font-size: 22px;
  font-weight: 700;
}

.exp-card-stat-arrow {
  font-size: 22px;
  color: rgba(45, 24, 16, 0.2);
}

.exp-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.exp-card-mini {
  background: rgba(210, 105, 30, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exp-card-mini-num {
  font-size: 22px;
  font-weight: 900;
  color: #d2691e;
  line-height: 1;
}

.exp-card-mini-label {
  font-size: 11px;
  color: rgba(45, 24, 16, 0.45);
  letter-spacing: 0.04em;
}

.exp-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #2d1810;
  line-height: 1.45;
  margin-bottom: 12px;
}

.exp-card-desc {
  font-size: 14px;
  color: rgba(45, 24, 16, 0.55);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

.exp-card-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #d2691e;
  margin-top: auto;
  transition: letter-spacing 0.2s ease;
}

.exp-card:hover .exp-card-cta {
  letter-spacing: 0.03em;
}

.exp-card-split {
  cursor: default;
}

.exp-card-split:hover {
  transform: none;
  border-color: rgba(210, 105, 30, 0.15);
  box-shadow: none;
}

.exp-card-split:hover::after {
  opacity: 0;
}

.exp-card-dual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.exp-card-dual-btn {
  display: block;
  text-align: center;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.exp-card-dual-btn:hover {
  transform: translateY(-2px);
}

.exp-card-dual-bad {
  background: rgba(45, 24, 16, 0.04);
  color: rgba(45, 24, 16, 0.5);
  border: 1px solid rgba(45, 24, 16, 0.1);
}

.exp-card-dual-bad:hover {
  background: rgba(45, 24, 16, 0.08);
  color: rgba(45, 24, 16, 0.7);
}

.exp-card-dual-good {
  background: rgba(210, 105, 30, 0.1);
  color: #c45e18;
  border: 1px solid rgba(210, 105, 30, 0.25);
}

.exp-card-dual-good:hover {
  background: rgba(210, 105, 30, 0.18);
}

.exp-card-featured {
  background: #fffaf5;
  border-color: rgba(210, 105, 30, 0.25);
}

/* Horizontal full-width card layout */
.exp-card--h {
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0;
}

.exp-card-left {
  flex: 0 0 300px;
  padding: 40px 40px;
  border-right: 1px solid rgba(210, 105, 30, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
  justify-content: center;
}

.exp-card-right {
  flex: 1;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exp-card--h .exp-card-stat-row {
  margin-bottom: 0;
}

.exp-card--h .exp-card-grid {
  margin-bottom: 0;
}

.exp-card--h .exp-card-desc {
  margin-bottom: 20px;
}

.exp-card--h .exp-card-dual {
  flex-direction: row;
  gap: 12px;
  margin-top: 0;
}

.exp-card--h .exp-card-dual-btn {
  flex: 1;
}

.exp-card-left-note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(45, 24, 16, 0.35);
  margin: 0;
}

.exp-card-versus {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exp-card-versus-bad {
  font-size: 28px;
  font-weight: 900;
  color: rgba(45, 24, 16, 0.2);
  line-height: 1;
}

.exp-card-versus-good {
  font-size: 28px;
  font-weight: 900;
  color: #d2691e;
  line-height: 1;
}

.exp-card-versus-vs {
  font-size: 16px;
  font-weight: 700;
  color: rgba(45, 24, 16, 0.4);
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .exp-lab-cards {
    gap: 16px;
  }

  .exp-card--h {
    flex-direction: column;
    padding: 0;
  }

  .exp-card-left {
    flex: none;
    width: 100%;
    box-sizing: border-box;
    border-right: none;
    border-bottom: 1px solid rgba(210, 105, 30, 0.1);
    padding: 28px 28px 24px;
    align-self: auto;
    min-width: 0;
  }

  .exp-card-right {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 28px 32px;
    min-width: 0;
  }

  .exp-card-stat-row,
  .exp-card-versus {
    flex-wrap: wrap;
  }

  .exp-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exp-card--h .exp-card-dual {
    flex-direction: column;
  }

  .exp-lab-title {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .exp-lab {
    padding: 60px 0 72px;
  }

  .exp-lab-inner {
    padding: 0 16px;
  }

  .exp-lab-title {
    font-size: 30px;
  }

  /* 橫向卡片在 480px 已由 900px 斷點收回垂直，此處補細節 */
  .exp-card-left {
    padding: 24px 20px 18px;
    gap: 10px;
  }

  .exp-card-right {
    padding: 18px 20px 28px;
  }

  .exp-card-stat-bad,
  .exp-card-stat-good {
    font-size: 36px;
  }

  .exp-card-title {
    font-size: 16px;
  }

  .exp-card-desc {
    font-size: 13px;
    line-height: 1.7;
  }

  .exp-card-mini-num {
    font-size: 18px;
  }

  .exp-card-versus-bad,
  .exp-card-versus-good {
    font-size: 22px;
  }

  .exp-card-dual {
    flex-direction: column;
    gap: 8px;
  }

  .exp-card-no {
    font-size: 12px;
  }
}
