/* ─── story.html Custom Styles ─── */

/* ─── CSS Variables & Design System ─── */
    :root {
      --brand-green: #2E5B4B;
      /* 沉穩草綠 */
      --brand-green-light: #edf2f6;
      /* 冷灰淡化 */
      --brand-green-dark: #2E5B4B;
      /* 沉穩草綠 */
      --brand-yellow: #f5c518;
      --brand-dark: #0a2e45;
      --brand-orange: #d94512;
      --brand-orange-light: #fff3f0;
      --brand-amber: #E09F3E;
      /* 陽光金/琥珀橘 */
      --brand-amber-light: #fdf6ec;
      --bg: #F0F4F8;
      /* 冷灰輔助底色 */
      --white: #ffffff;
      --text-primary: #3A4045;
      /* 深岩灰 */
      --text-secondary: #5a6068;
      --text-muted: #9aa0a6;
      --border: #ccd6dd;
      /* 冷灰邊框色 */
      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 28px;
      --radius-pill: 100px;
      --shadow-sm: 0 4px 16px rgba(0, 0, 0, .06);
      --shadow-md: 0 12px 36px rgba(0, 0, 0, .10);
      --shadow-lg: 0 24px 60px rgba(0, 0, 0, .14);
      --transition: .35s cubic-bezier(.4, 0, .2, 1);
      --max-w: 1100px;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Noto Sans TC', 'Outfit', sans-serif;
      background: var(--bg);
      color: var(--text-primary);
      line-height: 1.95;
      overflow-x: hidden;
      opacity: 0;
      transition: opacity 0.15s ease-in-out;
    }

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

    /* ─── HERO BANNER ─── */
    .hero-banner {
      position: relative;
      background: url('/images/Snipaste_2026-06-16_18-11-27.webp') no-repeat center center / cover;
      padding: 140px 24px;
      color: var(--white);
      text-align: center;
      min-height: 500px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero-banner::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, rgba(0, 40, 66, 0.82) 0%, rgba(0, 40, 66, 0.55) 100%);
      z-index: 1;
    }

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

    .hero-badge {
      background: rgba(123, 191, 78, 0.9);
      color: var(--white);
      padding: 6px 20px;
      border-radius: var(--radius-pill);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 1.5px;
      display: inline-block;
      margin-bottom: 24px;
      text-transform: uppercase;
      box-shadow: var(--shadow-sm);
    }

    .hero-banner h1 {
      font-size: 46px;
      font-weight: 900;
      line-height: 1.3;
      margin-bottom: 28px;
      letter-spacing: 1.5px;
      text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
      color: #f2f8ee !important;
    }

    .hero-banner p.lead {
      font-size: 20px;
      font-weight: 400;
      opacity: 1;
      max-width: 720px;
      margin: 0 auto;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
      color: rgba(236, 248, 228, 0.95) !important;
      letter-spacing: 0.3px;
    }

    /* ─── SECTION STYLING ─── */
    section {
      padding: 120px 24px;
      margin: 0 !important;
      /* Ensure sections flow seamlessly with zero gap spacing */
      display: flow-root;
      /* Prevent margin collapsing and contain child floats */
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }

    section+section,
    .hero-banner+section {
      margin-top: -1px !important;
      /* Prevent subpixel rendering gap/lines between sections */
    }

    #header-placeholder,
    #footer-placeholder {
      margin: 0 !important;
      padding: 0 !important;
      border: none !important;
      display: block;
    }

    .section-container {
      max-width: var(--max-w);
      margin: 0 auto;
    }

    .section-title-wrap {
      margin-bottom: 60px;
      text-align: left;
    }

    .section-tag {
      color: var(--brand-green);
      font-weight: 700;
      font-size: 13px;
      letter-spacing: 2.5px;
      display: inline-block;
      margin-bottom: 16px;
      text-transform: uppercase;
      background: var(--brand-green-light);
      padding: 5px 14px;
      border-radius: var(--radius-pill);
    }

    .section-title-wrap h2 {
      font-size: 38px;
      color: var(--brand-dark);
      font-weight: 900;
      line-height: 1.3;
      letter-spacing: -0.5px;
    }

    /* ─── SECTION 1: INVISIBLE BURDEN (痛點) ─── */
    .sec-burden {
      background: #F0F4F8 !important;
      /* Cold Grey background */
    }

    .burden-grid {
      display: grid;
      grid-template-columns: 0.85fr 1.25fr;
      gap: 60px;
      align-items: center;
    }

    .burden-text p {
      font-size: 16px;
      color: var(--text-secondary);
      margin-bottom: 16px;
      /* Reduced to avoid large blank spaces */
      text-align: justify;
    }

    .burden-highlight {
      background: var(--brand-orange-light);
      border-left: 5px solid var(--brand-orange);
      padding: 20px;
      border-radius: var(--radius-sm);
      margin: 20px 0;
      /* Tightened margin */
    }

    .burden-highlight h4 {
      color: var(--brand-orange);
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .burden-highlight p {
      margin-bottom: 0;
      color: var(--brand-dark);
      font-weight: 500;
    }

    .route-visual {
      background: #f7f9fb;
      border-radius: var(--radius-lg);
      padding: 30px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
    }

    .route-visual-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--brand-dark);
      text-align: center;
      margin-bottom: 20px;
    }

    /* ─── SECTION 2: TECH DETAILS (技術) ─── */
    .sec-tech {
      background: var(--brand-green-dark) !important;
      /* 沉穩草綠 */
      color: var(--white);
    }

    .sec-tech h2 {
      color: var(--white) !important;
    }

    .sec-tech .story-p {
      color: rgba(255, 255, 255, 0.9) !important;
    }

    .sec-tech .section-tag {
      color: var(--brand-green-dark);
      background: var(--brand-green-light);
    }

    .tech-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      margin-top: 20px;
    }

    .tech-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 44px 34px;
      box-shadow: var(--shadow-sm);
      border: 1px solid rgba(46, 91, 75, 0.18);
      transition: transform var(--transition), box-shadow var(--transition);
      color: var(--text-primary);
    }

    .tech-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 50px rgba(0, 40, 66, 0.13);
    }

    .tech-icon-wrap {
      width: 64px;
      height: 64px;
      background: var(--brand-green-light);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      color: var(--brand-green);
      margin-bottom: 24px;
    }

    .tech-card h3 {
      font-size: 22px;
      color: var(--brand-dark) !important;
      font-weight: 800;
      margin-bottom: 16px;
      letter-spacing: -0.3px;
    }

    .tech-card p {
      font-size: 15px;
      color: var(--text-secondary) !important;
      line-height: 1.75;
      text-align: justify;
    }

    /* ─── SECTION 3: CIRCULAR ECOSYSTEM (社會價值) ─── */
    .sec-eco {
      background: var(--white) !important;
      /* Clean Lab white */
    }

    .eco-grid {
      display: grid;
      grid-template-columns: 1fr 1.8fr;
      gap: 80px;
      align-items: center;
    }

    .eco-text p {
      font-size: 16px;
      color: var(--text-secondary);
      margin-bottom: 16px;
      /* Reduced space */
      text-align: justify;
    }

    .eco-badge-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-top: 25px;
    }

    .eco-badge-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .eco-badge-item i {
      color: var(--brand-green);
      font-size: 18px;
      margin-top: 4px;
    }

    .eco-badge-item div h5 {
      font-size: 16px;
      color: var(--brand-dark);
      font-weight: 700;
      margin-bottom: 4px;
    }

    .eco-badge-item div p {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 0;
    }

    .diagram-container {
      padding: 0;
      background: none;
      border: none;
      box-shadow: none;
      display: block;
      overflow: hidden;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
    }

    .diagram-container img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .diagram-container:hover img {
      transform: scale(1.12);
    }

    /* ─── VIDEO & LIVE COUNTER SECTION ─── */
    .sec-stats {
      background: var(--brand-green-dark) !important;
      /* 沉穩草綠 */
      color: #ffffff !important;
      padding: 140px 24px;
      text-align: center;
    }

    .sec-stats h3,
    .sec-stats p,
    .sec-stats .counter-card h3,
    .sec-stats .counter-card p {
      color: #ffffff !important;
    }

    .sec-stats .counter-card h3 {
      color: #92e05f !important;
    }

    .sec-stats .counter-card p {
      color: rgba(255, 255, 255, 0.9) !important;
    }

    .stats-layout {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .video-placeholder-container {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: #001829;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      border: 2px solid rgba(255, 255, 255, 0.1);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      transition: border var(--transition);
    }

    .video-placeholder-container:hover {
      border-color: var(--brand-green);
    }

    .video-play-btn {
      width: 70px;
      height: 70px;
      background: rgba(123, 191, 78, 0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      color: var(--white);
      margin-bottom: 16px;
      box-shadow: 0 4px 15px rgba(123, 191, 78, 0.4);
      transition: transform var(--transition), background var(--transition);
    }

    .video-placeholder-container:hover .video-play-btn {
      transform: scale(1.1);
      background: var(--brand-green);
    }

    .video-text-info {
      font-size: 15px;
      font-weight: 500;
    }

    .video-tag {
      position: absolute;
      top: 15px;
      left: 15px;
      background: rgba(0, 0, 0, 0.6);
      padding: 4px 12px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    .counter-card {
      text-align: left;
      padding: 20px 0;
    }

    .counter-card h3 {
      font-size: 20px;
      font-weight: 700;
      color: var(--brand-green);
      margin-bottom: 12px;
    }

    .counter-card p {
      font-size: 15px;
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 30px;
      line-height: 1.7;
    }

    .counter-value-wrapper {
      font-family: 'Outfit', sans-serif;
      font-size: 48px;
      font-weight: 900;
      color: var(--brand-yellow);
      display: flex;
      align-items: baseline;
      gap: 10px;
      margin-bottom: 12px;
    }

    .counter-value-wrapper span.unit {
      font-size: 20px;
      font-weight: 700;
      color: var(--white);
    }

    .cta-btn {
      display: inline-block;
      padding: 14px 32px;
      background: var(--brand-green);
      color: var(--white);
      font-weight: 700;
      font-size: 16px;
      border-radius: var(--radius-pill);
      box-shadow: 0 4px 15px rgba(123, 191, 78, 0.3);
      transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
    }

    .cta-btn:hover {
      background: #62a339;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(123, 191, 78, 0.4);
    }

    /* ─── ANIMATION PULSE FOR ARROWS ─── */
    @keyframes pulse-flow {
      0% {
        stroke-dashoffset: 24;
      }

      100% {
        stroke-dashoffset: 0;
      }
    }

    .flow-line {
      stroke-dasharray: 8, 4;
      animation: pulse-flow 1.5s linear infinite;
    }

    /* ─── SECTION 3.5: SPECIES-SPECIFIC PRODUCTS ─── */
    .sec-species {
      background: #F0F4F8 !important;
      /* Cold Grey background */
      padding-bottom: 40px !important;
    }

    .species-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      margin-top: 20px;
    }

    .species-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 40px 30px;
      box-shadow: var(--shadow-sm);
      border: 1px solid rgba(46, 91, 75, 0.2);
      transition: transform var(--transition), box-shadow var(--transition);
      display: flex;
      flex-direction: column;
    }

    .species-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 50px rgba(0, 40, 66, 0.13);
    }

    .species-badge {
      align-self: flex-start;
      background: var(--brand-green);
      color: var(--white);
      font-size: 13px;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: var(--radius-pill);
      margin-bottom: 20px;
    }

    .species-card h3 {
      font-size: 20px;
      color: var(--brand-dark);
      font-weight: 800;
      margin-bottom: 22px;
      letter-spacing: -0.3px;
    }

    .species-detail {
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 15px;
    }

    .species-detail strong {
      color: var(--brand-orange);
      display: block;
      margin-bottom: 4px;
    }

    .species-detail p {
      color: var(--text-secondary);
      text-align: justify;
    }

    /* ─── SECTION 3.6: D2C SUBSCRIPTION & ECO-SYS ─── */
    .sec-subscription {
      background: #F0F4F8 !important;
      /* Cold Grey background */
      padding-top: 40px !important;
    }

    /* Carousel progress bar */
    .carousel-progress-bar {
      width: 100%;
      height: 3px;
      background: var(--border);
      border-radius: var(--radius-pill);
      margin: 0 auto 24px;
      max-width: 900px;
      overflow: hidden;
    }

    .carousel-progress-fill {
      height: 100%;
      background: var(--brand-green);
      border-radius: var(--radius-pill);
      transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
      width: 20%;
    }

    .sub-carousel-container {
      position: relative;
      width: 100%;
      max-width: 900px;
      margin: 40px auto;
      height: 740px;
      display: flex;
      align-items: center;
      justify-content: center;
      perspective: 1200px;
    }

    .sub-slider-track {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      list-style: none;
      margin: 0;
      padding: 0;
      cursor: grab;
      user-select: none;
    }

    .sub-slider-track.active {
      cursor: grabbing;
    }

    .sub-card {
      position: absolute;
      width: 350px;
      height: 690px;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      display: flex;
      flex-direction: column;
      transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
      overflow: visible;
    }

    /* 3D States for 5 cards */
    .sub-card.card-left {
      transform: translateX(-240px) translateZ(-160px) rotateY(15deg) scale(0.85);
      opacity: 0.6;
      z-index: 2;
      pointer-events: auto;
      cursor: pointer;
      filter: blur(2px);
    }

    .sub-card.card-center {
      transform: translateX(0) translateZ(120px) rotateY(0) scale(1);
      opacity: 1;
      z-index: 5;
      pointer-events: auto;
    }

    .sub-card.card-right {
      transform: translateX(240px) translateZ(-160px) rotateY(-15deg) scale(0.85);
      opacity: 0.6;
      z-index: 2;
      pointer-events: auto;
      cursor: pointer;
      filter: blur(2px);
    }

    .sub-card.card-hidden-left {
      transform: translateX(-440px) translateZ(-320px) rotateY(30deg) scale(0.7);
      opacity: 0;
      z-index: 1;
      pointer-events: none;
      filter: blur(8px);
    }

    .sub-card.card-hidden-right {
      transform: translateX(440px) translateZ(-320px) rotateY(-30deg) scale(0.7);
      opacity: 0;
      z-index: 1;
      pointer-events: none;
      filter: blur(8px);
    }

    /* Card Inner containers */
    .overview-card-inner,
    .plan-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 22px 24px;
      border: 1px solid var(--border);
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100%;
      width: 100%;
      box-shadow: var(--shadow-sm);
      transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
      color: var(--text-primary);
    }

    .overview-card-inner:hover,
    .plan-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-md);
    }

    /* Highlighted card in story.html (Card 3: 綻放會員) */
    .plan-card.popular {
      background: var(--brand-dark);
      color: var(--white);
      border-color: var(--brand-green);
    }

    .plan-card.popular .plan-title {
      color: var(--white);
    }

    .plan-card.popular .plan-target {
      background: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.9);
    }

    .plan-card.popular .plan-section-title {
      border-bottom-color: rgba(255, 255, 255, 0.15);
      color: var(--white);
    }

    .plan-card.popular .plan-features li {
      color: rgba(255, 255, 255, 0.85);
    }

    .plan-card.popular .plan-features li i {
      color: #92e05f;
    }

    .plan-card.popular .plan-features li.main-food-included {
      color: rgba(255, 255, 255, 0.5) !important;
    }

    .plan-card.popular .plan-features li.main-food-included i {
      color: rgba(255, 255, 255, 0.3) !important;
    }

    .plan-card.popular .plan-btn {
      background: var(--brand-green);
      border-color: var(--brand-green);
      color: var(--white);
      box-shadow: 0 4px 14px rgba(46, 91, 75, 0.3);
    }

    .plan-card.popular .plan-btn:hover,
    .plan-card.popular:hover .plan-btn {
      background: #3c7560;
      border-color: #3c7560;
      box-shadow: 0 6px 18px rgba(46, 91, 75, 0.4);
    }

    /* Active Highlight styles for center cards inner contents */
    .sub-card.card-center .plan-card,
    .sub-card.card-center .overview-card-inner {
      box-shadow: 0 25px 50px rgba(0, 40, 66, 0.15), 0 0 25px rgba(46, 91, 75, 0.1);
      border-color: rgba(46, 91, 75, 0.3);
    }

    .sub-card.card-center .plan-card.popular {
      border-color: var(--brand-green);
      box-shadow: 0 25px 50px rgba(0, 40, 66, 0.20), 0 0 25px rgba(46, 91, 75, 0.22);
    }

    /* Card hover button lighting */
    .overview-card-inner:hover .plan-btn,
    .plan-card:hover .plan-btn {
      background: var(--brand-dark);
      color: var(--white);
    }

    /* Included Main Food formatting */
    .main-food-included {
      font-size: 12px !important;
      color: #718096 !important;
      opacity: 0.85;
    }

    .main-food-included i {
      color: #a0aec0 !important;
    }

    /* Gold Shining Button */
    .gold-cta-btn {
      position: relative;
      overflow: hidden;
    }

    .gold-cta-btn::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -60%;
      width: 30%;
      height: 200%;
      background: rgba(255, 255, 255, 0.35);
      transform: rotate(30deg);
      transition: none;
      animation: shine 4s ease-in-out infinite;
    }

    @keyframes shine {
      0% {
        left: -60%;
      }

      15%,
      100% {
        left: 130%;
      }
    }

    .plan-card:hover .gold-cta-btn {
      background: linear-gradient(135deg, #f5c518 0%, var(--brand-orange) 100%) !important;
      box-shadow: 0 8px 25px rgba(217, 69, 18, 0.6);
    }

    /* Card Content elements */
    .card-icon-wrap {
      width: 44px;
      height: 44px;
      background: var(--brand-green-light);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      margin-bottom: 12px;
      color: var(--brand-green);
    }

    .sub-card h3 {
      font-size: 17.5px;
      color: var(--brand-dark);
      font-weight: 800;
      margin-bottom: 8px;
    }

    .card-intro {
      font-size: 12.5px;
      color: var(--text-secondary);
      line-height: 1.45;
      margin-bottom: 12px;
    }

    .overview-list-vertical {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .overview-item-3d {
      display: flex;
      flex-direction: column;
      gap: 2px;
      border-bottom: 1px dashed #edf2f7;
      padding-bottom: 6px;
    }

    .overview-item-3d:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .item-3d-name {
      font-size: 13px;
      font-weight: 700;
      color: #2d3748;
    }

    .item-3d-desc {
      font-size: 11.5px;
      color: #718096;
      padding-left: 18px;
    }

    .bonus-box-vertical {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .bonus-item-3d {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .bonus-3d-tag {
      align-self: flex-start;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 4px;
      white-space: nowrap;
    }

    .bonus-3d-tag.tag-orange {
      background: var(--brand-orange-light);
      color: var(--brand-orange);
    }

    .bonus-3d-text {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    /* Dots indicator */
    .sub-slider-dots {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 20px;
      margin-bottom: 50px;
    }

    .sub-dot {
      width: 10px;
      height: 10px;
      background: var(--border);
      border-radius: 50%;
      cursor: pointer;
      transition: all var(--transition);
    }

    .sub-dot.active {
      background: var(--brand-green);
      width: 24px;
      border-radius: var(--radius-pill);
    }

    .plan-card-wrapper {
      position: absolute;
      width: 350px;
      height: 690px;
      display: flex;
      flex-direction: column;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      overflow: visible;
      z-index: 1;
    }

    .popular-badge {
      position: absolute;
      top: -16px;
      left: 50%;
      transform: translate3d(-50%, 0, 0);
      background: linear-gradient(135deg, #78aa5a 0%, var(--brand-green) 100%);
      color: var(--white);
      padding: 6px 20px;
      border-radius: var(--radius-pill);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 1px;
      box-shadow: 0 4px 12px rgba(46, 91, 75, 0.35);
      z-index: 10;
      white-space: nowrap;
      border: 1px solid rgba(255, 255, 255, 0.25);
      animation: badge-breath 3s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes badge-breath {

      0%,
      100% {
        transform: translate3d(-50%, 0, 0) scale(1);
        box-shadow: 0 4px 12px rgba(46, 91, 75, 0.35);
      }

      50% {
        transform: translate3d(-50%, -4px, 0) scale(1.05);
        box-shadow: 0 8px 20px rgba(46, 91, 75, 0.5);
      }
    }

    .plan-header {
      text-align: center;
      margin-bottom: 15px;
    }

    .plan-icon {
      font-size: 28px;
      margin-bottom: 6px;
    }

    .plan-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--brand-dark);
      margin-bottom: 4px;
    }

    .plan-card:not(.popular) .plan-title {
      color: var(--brand-dark);
    }

    .plan-price {
      display: flex;
      justify-content: center;
      align-items: baseline;
      margin-top: 8px;
    }

    .plan-price .currency {
      font-size: 18px;
      font-weight: 600;
      color: var(--brand-orange);
    }

    .plan-price .amount {
      font-size: 38px;
      font-weight: 800;
      color: var(--brand-orange);
      font-family: 'Fredoka One', cursive;
    }

    .plan-price .period {
      font-size: 13px;
      color: var(--text-muted);
      margin-left: 4px;
    }

    .plan-card:not(.popular) .plan-target {
      text-align: center;
      font-size: 12.5px;
      color: var(--text-secondary);
      background: var(--brand-green-light);
      padding: 6px 10px;
      border-radius: var(--radius-sm);
      margin-top: 8px;
    }

    .plan-target {
      text-align: center;
      font-size: 12.5px;
      padding: 6px 10px;
      border-radius: var(--radius-sm);
      margin-top: 8px;
    }

    .plan-features {
      list-style: none;
      margin: 10px 0;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .plan-features li {
      font-size: 13px;
      display: flex;
      align-items: flex-start;
      gap: 6px;
    }

    .plan-features li i {
      margin-top: 3px;
    }

    .plan-card:not(.popular) .plan-features li {
      color: var(--text-secondary);
    }

    .plan-card:not(.popular) .plan-features li i {
      color: var(--brand-green);
    }

    .plan-btn {
      width: 100%;
      padding: 9px;
      border-radius: var(--radius-pill);
      font-size: 13.5px;
      font-weight: 700;
      cursor: pointer;
      text-align: center;
      transition: all var(--transition);
      border: 2px solid var(--brand-green);
      background: transparent;
      color: var(--brand-green);
    }

    .plan-card:not(.popular) .plan-btn:hover,
    .plan-card:not(.popular):hover .plan-btn {
      background: var(--brand-green);
      color: var(--white);
    }

    .plan-section-title {
      font-size: 13px;
      font-weight: 700;
      margin: 10px 0 6px 0;
      border-bottom: 2px solid rgba(46, 91, 75, 0.15);
      padding-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .plan-card:not(.popular) .plan-section-title {
      color: var(--brand-dark);
    }

    .plan-card .plan-btn {
      margin-top: auto;
    }

    /* Detailed Introduction Trigger Button (Vanillafied Tailwind style) */
    .detail-intro-btn-wrap {
      margin-top: auto;
      padding-top: 10px;
      display: flex;
      justify-content: center;
      width: 100%;
    }

    .detail-intro-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background-color: var(--brand-green);
      color: var(--white);
      font-size: 13px;
      font-weight: 700;
      padding: 10px 16px;
      border-radius: var(--radius-pill);
      border: none;
      cursor: pointer;
      transition: all var(--transition);
      box-shadow: var(--shadow-sm);
      width: 100%;
    }

    .detail-intro-btn svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .detail-intro-btn:hover {
      background-color: #1e3d32;
      color: var(--white);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .detail-intro-btn:active {
      transform: translateY(0);
    }

    /* Table styling enhancements copied from subscription.css */
    #planComparisonContainer table {
      border-radius: 8px !important;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    #planComparisonContainer tr:nth-child(even) {
      background-color: #F9FAFB;
    }

    #planComparisonContainer th {
      position: sticky;
      top: 0;
      background: var(--white);
      z-index: 10;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    /* Highlight column 4 (豐收領主) */
    #planComparisonContainer td:nth-child(4),
    #planComparisonContainer th:nth-child(4) {
      background-color: #F0F7F4 !important;
      border-left: 1.5px solid rgba(46, 91, 75, 0.35);
      border-right: 1.5px solid rgba(46, 91, 75, 0.35);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    }

    #planComparisonContainer th:nth-child(4) {
      background-color: #E6F2EC !important;
    }

    /* Highlights styling with earth tones */
    .highlights-wrap {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 60px 50px;
      border: 1px solid rgba(46, 91, 75, 0.2);
      /* Mapped to brand accent */
      box-shadow: var(--shadow-sm);
    }

    .highlights-title {
      font-size: 26px;
      color: var(--brand-dark);
      font-weight: 900;
      margin-bottom: 40px;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      letter-spacing: -0.4px;
    }

    .highlights-title i {
      color: var(--brand-amber);
    }

    .highlights-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
    }

    .highlight-item {
      display: flex;
      gap: 20px;
      align-items: flex-start;
    }

    .hl-icon {
      width: 50px;
      height: 50px;
      background: var(--white);
      color: var(--brand-amber);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      box-shadow: var(--shadow-sm);
      flex-shrink: 0;
      border: 1px solid rgba(46, 91, 75, 0.15);
    }

    .highlight-item h4 {
      font-size: 17px;
      color: var(--brand-dark);
      font-weight: 800;
      margin-bottom: 10px;
      letter-spacing: -0.2px;
    }

    .highlight-item p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.75;
      text-align: justify;
    }

    /* ─── STORYTELLING & COLLABORATION STYLING ─── */
    .story-p {
      font-size: 17px;
      line-height: 1.85;
      /* Reverted from 2.1 to standard line-height */
      margin-bottom: 16px;
      /* Tightened paragraph space to prevent ugly blank lines */
      color: var(--text-secondary);
      text-align: justify;
    }

    .sec-collab {
      background: var(--white) !important;
      /* Clean Lab white */
    }

    .collab-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      margin-top: 40px;
    }

    .collab-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 40px 30px;
      box-shadow: var(--shadow-sm);
      border: 1px solid rgba(46, 91, 75, 0.2);
      /* Mapped to brand accent */
      transition: transform var(--transition), box-shadow var(--transition);
      display: flex;
      flex-direction: column;
    }

    .collab-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(46, 91, 75, 0.12);
    }

    .collab-badge {
      align-self: flex-start;
      background: var(--brand-amber);
      /* Mapped to brand accent */
      color: var(--white);
      font-size: 13px;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: var(--radius-pill);
      margin-bottom: 20px;
    }

    .collab-card h3 {
      font-size: 20px;
      color: var(--brand-dark);
      font-weight: 800;
      margin-bottom: 16px;
      letter-spacing: -0.3px;
    }

    .collab-card p {
      font-size: 14.5px;
      color: var(--text-secondary);
      line-height: 1.75;
      text-align: justify;
    }

    .sec-highlights {
      background: #F0F4F8 !important;
      /* Cold Grey background */
      padding: 120px 24px;
    }

    /* ─── BUTTON JUMP COLORS (跳色策略) ─── */
    /* Light Beige background sections: Deep Green buttons */
    .sec-species .cta-btn,
    .sec-collab .cta-btn {
      background: var(--brand-green-dark) !important;
      color: var(--white) !important;
      box-shadow: 0 4px 15px rgba(46, 91, 75, 0.3) !important;
    }

    .sec-species .cta-btn:hover,
    .sec-collab .cta-btn:hover {
      background: #1e3d32 !important;
      box-shadow: 0 6px 20px rgba(46, 91, 75, 0.45) !important;
      transform: translateY(-2px);
    }

    /* Deep Green background sections: Amber Orange buttons */
    .sec-stats .cta-btn {
      background: var(--brand-amber) !important;
      color: var(--white) !important;
      box-shadow: 0 4px 15px rgba(224, 159, 62, 0.3) !important;
    }

    .sec-stats .cta-btn:hover {
      background: #cb882e !important;
      box-shadow: 0 6px 20px rgba(224, 159, 62, 0.45) !important;
      transform: translateY(-2px);
    }

    /* ─── SCROLL REVEAL ANIMATION ─── */
    .reveal {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal-delay-1 {
      transition-delay: 0.1s;
    }

    .reveal-delay-2 {
      transition-delay: 0.2s;
    }

    .reveal-delay-3 {
      transition-delay: 0.3s;
    }

    .reveal-delay-4 {
      transition-delay: 0.45s;
    }

    /* ─── CO2 TOOLTIP ─── */
    .tooltip-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: help;
    }

    .tooltip-wrap .tooltip-icon {
      width: 18px;
      height: 18px;
      background: rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.8);
      vertical-align: middle;
      flex-shrink: 0;
    }

    .tooltip-wrap .tooltip-box {
      position: absolute;
      bottom: calc(100% + 10px);
      left: 0;
      width: 260px;
      background: rgba(10, 46, 69, 0.97);
      border: 1px solid rgba(93, 168, 50, 0.4);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.88);
      line-height: 1.6;
      pointer-events: none;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 100;
      box-shadow: var(--shadow-lg);
      white-space: normal;
    }

    .tooltip-wrap:hover .tooltip-box {
      opacity: 1;
      transform: translateY(0);
    }

    /* ─── RESPONSIVE ─── */

/* ====================================================
   📱 story.html 手機直向 (Mobile Portrait 390px / max-width: 767px) 全面優化
   ==================================================== */
@media (max-width: 767px) {
  /* 1. 攔截並解除垂直直排（Writing Mode Normalization）：全站強制橫向書寫 */
  html, body, main, section, div, p, h1, h2, h3, h4, h5, h6, span, a, li, button, td, th {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  /* 2. 頁面外框與 Section 間距優化 */
  section {
    padding: 44px 16px !important;
    overflow-x: hidden !important;
  }

  .section-container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 3. Hero Banner 手機縮放 */
  .hero-banner {
    padding: 80px 16px 50px 16px !important;
    min-height: auto !important;
  }

  .hero-banner h1 {
    font-size: 24px !important;
    line-height: 1.35 !important;
    margin-bottom: 16px !important;
    letter-spacing: 0.5px !important;
  }

  .hero-banner p.lead {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .section-title-wrap {
    margin-bottom: 28px !important;
  }

  .section-title-wrap h2,
  .section-title-wrap h3 {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }

  .story-p {
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    margin-bottom: 14px !important;
  }

  /* 4. 多欄結構轉為垂直單欄堆疊 (Responsive Stack) */
  .burden-grid,
  .eco-grid,
  .species-grid,
  .highlights-grid,
  .collab-grid,
  .stats-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
  }

  /* 5. 圖片、影片與 SVG 容器 100% 響應縮放 (防超寬破版) */
  img, video, svg, iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  .diagram-container,
  .route-visual,
  .video-placeholder-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .route-visual {
    padding: 16px 12px !important;
  }

  /* 6. 特殊卡片與物種模組優化 */
  .species-card,
  .collab-card,
  .tech-card {
    padding: 24px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .highlights-wrap {
    padding: 30px 18px !important;
  }

  .highlight-item {
    gap: 12px !important;
  }

  /* 7. D2C 訂閱卡片與輪播 (Carousel) 在手機直向的滑展優化 */
  .sub-carousel-container {
    height: auto !important;
    min-height: 660px !important;
    margin: 20px auto !important;
  }

  .sub-card {
    width: 90% !important;
    max-width: 340px !important;
  }

  .counter-card {
    text-align: center !important;
    padding: 10px 0 !important;
  }

  .counter-value-wrapper {
    justify-content: center !important;
    font-size: 36px !important;
  }

  /* 8. 比較表格在手機下防溢出 */
  #planComparisonContainer > div {
    padding: 16px 10px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 9. 手機直向訂閱彈窗 Logo 切換 */
  /* 手機上隱藏桌機 Logo，顯示新的品牌 Logo */
  .modal-logo-desktop {
    display: none !important;
  }
  .modal-logo-mobile {
    display: block !important;
    margin: 0 auto !important;
    max-width: 190px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* 10. 訂閱彈窗 QR 碼手機直向保持橫排（防止因 min-width 超出容器而換行堆疊） */
  #subscriptionModal .qr-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  #subscriptionModal .qr-card-link {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  #subscriptionModal .qr-card {
    padding: 8px 6px !important;
  }
  #subscriptionModal .qr-container img {
    width: 105px !important;
    height: 105px !important;
    max-width: 100% !important;
  }
  #subscriptionModal .qr-container span[style] {
    font-size: 11px !important;
  }
}

/* ====================================================
   📱 手機橫向 (Mobile Landscape / max-width: 767px + orientation: landscape)
   訂閱彈窗：加入縱向滾動條，確保可看到所有內容
   ==================================================== */
@media (max-width: 900px) and (orientation: landscape) {
  /* ── 訂閱彈窗 Overlay 可滾動 ── */
  #subscriptionModal.modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 12px 10px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 訂閱彈窗容器高度限制並加入滾動 */
  #subscriptionModal .modal-container {
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    margin: auto !important;
    padding: 16px 18px !important;
    max-width: 480px !important;
    width: 92% !important;
  }

  /* 橫向時縮小 Logo 節省空間 */
  .modal-logo-mobile {
    max-width: 140px !important;
    margin-bottom: 6px !important;
  }
  .modal-logo-desktop {
    height: 40px !important;
  }

  /* QR 碼橫向時縮小 */
  #subscriptionModal .modal-content .qr-container img {
    width: 110px !important;
    height: 110px !important;
  }

  /* 段落間距壓縮，節省縱向空間 */
  #subscriptionModal .modal-content h3 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }
  #subscriptionModal .modal-content p {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  /* ── 生活機能包詳細彈窗 (#detailModal) 橫向可滾動 ── */
  #detailModal.detail-modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 12px 10px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #detailModal .detail-modal-container {
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    margin: auto !important;
    padding: 20px 18px !important;
    max-width: 600px !important;
    width: 95% !important;
  }
}
