@import "/mk3/assets/palette.css";
/* 著陸頁專用樣式 — 補 market.css 未涵蓋部分 */

  /* ── 內容寬度統一（全寬・響應式）─────────────────────────────
     首頁載入的樣式表（market.css / landing-sections.css / index.css）皆未定義
     --maxw，導致 .mk-services .mk-container、.about-grid、.by-spot 失去寬度上限
     而變成全寬，其餘區段卻固定 1100px，造成各區段寬窄不一、留白不均。
     於此定義 --maxw 並把所有內容容器統一為較寬的 var(--maxw)，
     側邊留白以 clamp() 隨視窗縮放，達致「全寬且響應式」。
     註：.mk-grid 與 .mk-section 的實際寬度／留白於下方各自的規則直接修改，
     避免與本檔稍後的同名規則衝突（同特異度時後者勝出）。 */
  :root { --maxw: 1760px; }
  .mk-landing > section { padding-left: clamp(18px, 4vw, 48px); padding-right: clamp(18px, 4vw, 48px); }
  .mk-landing .services-grid,
  .mk-landing .feature-grid,
  .mk-landing .how-grid,
  .mk-landing .tnc-box,
  .mk-landing .prog-grid,
  .mk-landing .partners-marquee { max-width: var(--maxw); }
  /* .mk-services 為 .mk-landing > section，側邊留白已由上方 clamp 提供；
     移除其內層 .mk-container 既有的 0 24px 側邊留白以免雙重內距。 */
  .mk-services .mk-container { padding-left: 0; padding-right: 0; }
  /* 「跳至主要內容」skip-link 已移至共用 public-chrome.css */
  /* Hero 下方平台數據條（#statsStrip 為 body 直屬全寬元素，由 inline script 注入 .stat）*/
  /* 平台數據條 — 對齊 landing_page 參考設計：深色全寬橫條、欄間細分隔線 */
  .stats-strip {
    display: flex; flex-wrap: wrap;
    background: var(--dark);
  }
  .stats-strip .stat {
    flex: 1; min-width: 130px; text-align: center;
    padding: 36px 20px; border-right: 1px solid rgba(255, 255, 255, .1);
  }
  .stats-strip .stat:last-child { border-right: none; }
  .stats-strip .stat-num { font-size: 38px; font-weight: 800; color: var(--orange); line-height: 1.1; }
  .stats-strip .stat-label { font-size: 13px; color: #b6b4b4; margin-top: 8px; }
  @media (max-width: 600px) {
    .stats-strip .stat { min-width: 45%; padding: 24px 12px; }
  }
  /* 導航欄 — 首頁採用與其他公開頁面（如課程頁）一致的白色導航欄：
     直接沿用 navbar.js 於執行階段注入的白色 .mk-nav 基底樣式（白底、深藍 logo、
     深色連結），不再以 nav.mk-nav 覆蓋為深藍版，確保全站導航欄外觀統一。 */

  #mzk, #partners, #about { scroll-margin-top: 80px; }
  .slide.slide-platform { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); }
  /* Hero CTA buttons — market.css styles only .slide text, so the hero buttons
     need explicit styling here (mirrors the reference .btn-primary/.btn-outline). */
  .slide .hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
  .slide .hero-buttons .btn-primary {
    background: var(--orange); color: var(--dark); border: none;
    padding: 15px 34px; border-radius: 8px; font-size: 15px; font-weight: 700;
    text-decoration: none; display: inline-block; cursor: pointer;
    transition: transform .2s, opacity .2s;
  }
  .slide .hero-buttons .btn-primary:hover { transform: translateY(-2px); opacity: .9; }
  .slide .hero-buttons .btn-outline {
    background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6);
    padding: 13px 34px; border-radius: 8px; font-size: 15px; font-weight: 600;
    text-decoration: none; display: inline-block; cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
  }
  .slide .hero-buttons .btn-outline:hover { border-color: #fff; background: #fff; color: var(--navy); }
  .section-cta-wrap { text-align: center; margin-top: 40px; }
  .partner-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
  .partner-chip {
    background: var(--light-blue); color: var(--navy); padding: 11px 22px;
    border-radius: 10px; font-size: 14px; font-weight: 700;
    border: 1px solid rgba(36, 85, 166, .15); display: inline-flex; align-items: center; gap: 8px;
  }
  .about-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
  .about-text p { font-size: 15px; color: #444; line-height: 1.9; margin-bottom: 16px; }
  .about-values { display: flex; flex-direction: column; gap: 16px; }
  .value-item { background: #fff; border-radius: 12px; padding: 20px 22px; border-left: 4px solid var(--navy); box-shadow: var(--shadow); }
  .value-item.o { border-left-color: var(--orange); }
  .value-item h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
  .value-item p { font-size: 13px; color: #555; line-height: 1.7; margin: 0; }
  .cta-orange { background: var(--orange); text-align: center; }
  .cta-orange h2 { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 14px; }
  .cta-orange p { font-size: 17px; color: rgba(0, 0, 0, .72); margin-bottom: 34px; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7; }
  @media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-orange h2 { font-size: 28px; }
  }

    #rwxShowcase .rwx-subhead{font-size:1.15rem;font-weight:800;margin:28px 0 14px;color:#1e293b;}
    #rwxShowcase .rwx-spot{display:flex;gap:24px;align-items:center;background:linear-gradient(135deg,var(--navy-deep),var(--navy));color:#fff;border-radius:20px;padding:30px;margin-bottom:8px;flex-wrap:wrap;position:relative;overflow:hidden;}
    #rwxShowcase .rwx-spot > *{position:relative;z-index:1;}
    #rwxShowcase .rwx-spot::after{content:"🎵";position:absolute;right:2rem;bottom:-1.5rem;font-size:7rem;opacity:.1;pointer-events:none;z-index:0;}
    #rwxShowcase .rwx-spot-emoji{font-size:3.4rem;line-height:1;}
    #rwxShowcase .rwx-spot-info{flex:1;min-width:260px;}
    #rwxShowcase .rwx-spot-info h3{margin:10px 0 6px;font-size:1.5rem;}
    #rwxShowcase .rwx-spot-info p{opacity:.85;margin:0 0 14px;}
    #rwxShowcase .rwx-bar{height:12px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden;margin-bottom:6px;}
    #rwxShowcase .rwx-bar > i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--orange),var(--success));}
    #rwxShowcase .rwx-bar-row{display:flex;justify-content:space-between;font-size:.85rem;opacity:.9;margin-bottom:16px;flex-wrap:wrap;gap:8px;}
    #rwxShowcase .rwx-card{border:1.5px solid #fde68a;}

  /* ===== 賽事精選 — 爆旋陀螺道館徽章賽（呼應賽事頁的 UI/UX，落地頁版本）=====
     紅色為賽事專屬重點色（非品牌色，允許 raw hex）；藍／橙一律用 palette token。 */
  .by-spot-section { --by-red: #b1121f; --by-red-deep: #6e0a13; }
  .by-spot {
    position: relative; overflow: hidden;
    max-width: var(--maxw); margin: 0 auto; border-radius: 24px;
    color: #fff; padding: 44px 40px; box-shadow: var(--shadow-lg);
    background:
      radial-gradient(circle at 14% 18%, rgba(177, 18, 31, .55), transparent 46%),
      radial-gradient(circle at 88% 86%, color-mix(in srgb, var(--navy-deep) 70%, transparent), transparent 52%),
      linear-gradient(135deg, var(--by-red-deep) 0%, var(--navy-deep) 100%);
    display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
  }
  .by-spot-bg {
    position: absolute; font-size: 300px; line-height: 1; opacity: .07;
    top: 50%; right: -36px; transform: translateY(-50%); pointer-events: none; user-select: none;
  }
  .by-spot-lead { position: relative; z-index: 1; }
  .by-spot-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--orange); color: var(--dark); font-weight: 800;
    padding: 7px 16px; border-radius: 20px; font-size: 12.5px; letter-spacing: .5px; margin-bottom: 16px;
  }
  .by-spot-lead h2 { font-size: 2.1rem; font-weight: 800; line-height: 1.15; margin: 0 0 12px; color: #fff; }
  .by-spot-lead h2 span { color: var(--orange); }
  .by-spot-lead > p { font-size: 15px; color: rgba(255, 255, 255, .86); line-height: 1.75; margin: 0 0 22px; max-width: 460px; }
  .by-spot-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
  .by-spot-stat {
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px; padding: 12px 18px; min-width: 84px; text-align: center;
  }
  .by-spot-stat .n { font-size: 1.5rem; font-weight: 800; color: var(--orange); line-height: 1.1; }
  .by-spot-stat .l { font-size: 12px; color: rgba(255, 255, 255, .78); margin-top: 4px; }
  .by-spot-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .by-spot-cta {
    background: linear-gradient(90deg, var(--by-red), #e02437); color: #fff;
    border: none; border-radius: 8px; font-weight: 800; padding: 13px 26px; font-size: 14.5px;
    text-decoration: none; display: inline-block; box-shadow: 0 10px 26px rgba(177, 18, 31, .42);
    transition: transform .2s, opacity .2s;
  }
  .by-spot-cta:hover { transform: translateY(-2px); opacity: .94; }
  .by-spot-ghost {
    background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 8px; font-weight: 700; padding: 11px 22px; font-size: 14.5px;
    text-decoration: none; display: inline-block; transition: background .2s, color .2s, border-color .2s;
  }
  .by-spot-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
  .by-spot-cards { position: relative; z-index: 1; }
  .by-spot-cards-title { font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, .92); margin: 0 0 14px; letter-spacing: .5px; }
  .by-spot-grid { display: flex; flex-direction: column; gap: 12px; }
  .by-spot-card {
    display: flex; gap: 14px; align-items: center; text-decoration: none;
    background: rgba(255, 255, 255, .96); border-radius: 14px; padding: 14px 16px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18); transition: transform .2s;
  }
  .by-spot-card:hover { transform: translateY(-2px); }
  .by-spot-card-emoji {
    flex: none; width: 52px; height: 52px; border-radius: 12px;
    display: grid; place-items: center; font-size: 26px;
    background: linear-gradient(135deg, var(--by-red-deep), var(--navy-deep)); color: #fff;
  }
  .by-spot-card-body { flex: 1; min-width: 0; }
  .by-spot-card-body h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
  .by-spot-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--gray); }
  .by-spot-card-cta { flex: none; align-self: center; font-size: 13px; font-weight: 800; color: var(--by-red); white-space: nowrap; }
  @media (max-width: 860px) {
    .by-spot { grid-template-columns: 1fr; gap: 28px; padding: 34px 22px; }
    .by-spot-lead h2 { font-size: 1.7rem; }
  }

/* ============================================================
   著陸頁區段系統（.mk-landing 以外的 <main> 區段）
   涵蓋：RWX 專區 / 探索課程・精選活動・場地租借 / 關於我們 / CTA。
   這些區段使用 .mk-section / .section-header / .mk-grid / .mk-card 等
   基礎元件類別，但著陸頁載入的樣式表並未定義它們（僅 .mk-landing 內有），
   故於此補齊，設計語言對齊參考稿（卡片、區段標題、navy/orange 配色）。
   全部使用 palette.css token；半透明 navy/orange overlay 為允許用法。
   ============================================================ */
  .mk-section { padding: 72px clamp(18px, 4vw, 48px); }
  .mk-section.alt { background: var(--light-gray); }
  #about.alt { background: var(--light-blue); }

  .mk-section .section-header { text-align: center; margin-bottom: 48px; }
  .mk-section .section-header h2 { font-size: 34px; font-weight: 800; color: var(--navy); margin: 0; }
  .mk-section .section-header p {
    color: var(--gray); font-size: 15px; max-width: 560px;
    margin: 12px auto 0; line-height: 1.7;
  }
  .mk-section .section-tag {
    display: inline-block; background: var(--orange); color: var(--dark);
    padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 700;
    margin-bottom: 14px; letter-spacing: 1px;
  }

  /* 區段卡片網格 */
  .mk-grid { display: grid; gap: 24px; max-width: var(--maxw); margin: 0 auto; }
  .mk-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .mk-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

  /* 卡片（課程 / 活動 / 場地 / RWX）— 對齊全站卡片設計 */
  .mk-card {
    display: block; background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--line); box-shadow: 0 2px 16px rgba(36, 85, 166, .07);
    color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s;
  }
  .mk-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(36, 85, 166, .14); }
  .mk-card .card-cover {
    height: 140px; display: flex; align-items: center; justify-content: center;
    font-size: 46px; color: #fff;
  }
  .mk-card .card-body { padding: 20px 24px; }
  .mk-card .card-body > * { margin-bottom: 12px; }
  .mk-card .card-body > *:last-child { margin-bottom: 0; }
  .mk-card .card-body h3 { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.4; }
  .mk-card .card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .mk-card .card-meta span { font-size: 12px; color: var(--gray); }
  .mk-card .card-foot { display: flex; align-items: center; justify-content: space-between; }
  .mk-card .price { font-size: 17px; font-weight: 800; color: var(--navy); }
  .mk-card .price small { font-size: 12px; font-weight: 400; color: var(--gray); }
  .mk-card .btn-primary.btn-sm { padding: 9px 20px; font-size: 13px; }

  /* 藥丸標籤 */
  .pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
  .pill-navy { background: var(--light-blue); color: var(--navy); }
  .pill-orange { background: var(--orange-soft); color: #a06800; }
  .pill-gray { background: var(--line); color: var(--gray); }
  .mk-section .tag {
    display: inline-block; background: var(--light-blue); color: var(--navy);
    font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin: 3px 3px 0 0;
  }

  /* 深色（navy）按鈕 — 區段 CTA / about / cta-orange / rwx 共用 */
  .btn-dark {
    display: inline-block; background: var(--navy); color: #fff; border: none;
    padding: 14px 36px; border-radius: 8px; font-size: 15px; font-weight: 700;
    cursor: pointer; text-decoration: none; font-family: 'Rubik', sans-serif;
    transition: background .2s, transform .2s;
  }
  .btn-dark:hover { background: var(--navy-hover); transform: translateY(-2px); }

  /* 關於我們 — 經文引言塊（對齊參考稿 .quote-block） */
  .about-text .muted { color: var(--gray); font-weight: 700; font-size: 13px; margin: 18px 0 10px; }
  .quote-block {
    background: var(--navy); color: #fff; border-radius: 12px; padding: 24px 26px;
    font-size: 14px; font-style: italic; line-height: 1.75; margin-top: 18px;
  }
  .quote-block span {
    display: block; margin-top: 10px; font-size: 12px; font-weight: 700;
    font-style: normal; color: var(--orange);
  }
  .value-item.o h4 { color: #a06800; }

  /* CTA 區段 — 大膽橙色搭配 navy 按鈕 + 音符水印（對齊參考稿） */
  .cta-orange { position: relative; overflow: hidden; }
  .cta-orange > * { position: relative; z-index: 1; }
  .cta-orange::after {
    content: "🎵"; position: absolute; right: 3rem; bottom: -1.5rem;
    font-size: 8rem; opacity: .12; pointer-events: none; z-index: 0;
  }
  .cta-orange .btn-dark { font-size: 16px; padding: 16px 44px; }

  /* 文化培育計劃 (#culture) — 四向度卡片 + 引言/框架卡（.mk-landing 之外，故於此補上） */
  #culture .culture-intro,
  #culture .culture-framework {
    max-width: 900px; margin: 0 auto 48px; padding: 40px;
    border-radius: 16px; text-align: center;
  }
  #culture .culture-intro {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  }
  #culture .culture-intro p { font-size: 18px; line-height: 1.8; color: #0c4a6e; margin: 0; }
  #culture .culture-framework {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  }
  #culture .culture-framework h4 { font-size: 20px; font-weight: 700; color: #92400e; margin-bottom: 14px; }
  #culture .culture-framework p { font-size: 16px; line-height: 1.8; color: #78350f; margin: 0; }
  #culture .feature-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 30px; max-width: 900px; margin: 0 auto 48px;
  }
  #culture .feature-card {
    background: #fff; border-radius: 12px; padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(36,85,166,0.08);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  #culture .feature-card.ac { border-top: 3px solid var(--orange); }
  #culture .feature-card:hover {
    transform: translateY(-8px); box-shadow: 0 8px 24px rgba(36,85,166,0.14);
  }
  #culture .feature-icon { font-size: 48px; margin-bottom: 18px; }
  #culture .feature-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
  #culture .feature-card p { font-size: 15px; color: var(--gray); line-height: 1.6; }
  #culture .section-cta-wrap {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; flex-wrap: wrap; margin-top: 48px;
  }
  #culture .section-cta-wrap .btn-dark { min-width: 200px; text-align: center; }

  @media (max-width: 1024px) {
    .mk-grid.cols-3, .mk-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 768px) {
    .mk-section { padding: 48px 18px; }
    .mk-section .section-header h2 { font-size: 26px; }
    .mk-grid.cols-3, .mk-grid.cols-4 { grid-template-columns: 1fr; }
    #coursesGrid, #eventsGrid, #venuesGrid {
      display: flex; flex-direction: row; flex-wrap: nowrap;
      overflow-x: auto; overflow-y: hidden; gap: 15px;
      padding: 4px 18px 14px; margin: 0 -18px;
      scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    #coursesGrid::-webkit-scrollbar,
    #eventsGrid::-webkit-scrollbar,
    #venuesGrid::-webkit-scrollbar { display: none; }
    #coursesGrid > .mk-card,
    #eventsGrid > .mk-card,
    #venuesGrid > .mk-card {
      flex: 0 0 78%; min-width: 0; max-width: 300px; scroll-snap-align: start;
    }
    #culture .feature-grid { grid-template-columns: 1fr; gap: 20px; }
    #culture .culture-intro, #culture .culture-framework { padding: 30px 20px; }
    #culture .section-cta-wrap { flex-direction: column; gap: 15px; }
    #culture .section-cta-wrap .btn-dark { width: 100%; max-width: 320px; min-width: 0; }
    .cta-orange::after { font-size: 5rem; right: 1rem; }
  }
  @media (max-width: 480px) {
    #culture .section-cta-wrap .btn-dark { padding: 14px 24px; font-size: 15px; }
    #culture .feature-card { padding: 30px 20px; }
    #culture .culture-intro p, #culture .culture-framework p { font-size: 16px; }
    #coursesGrid > .mk-card,
    #eventsGrid > .mk-card,
    #venuesGrid > .mk-card { flex: 0 0 82%; max-width: 260px; }
  }
