
    /* ─── DETAIL HERO ───────────────────────────────── */
    .detail-hero {
      padding-top: 110px;
      position: relative;
      min-height: 520px;
      display: flex;
      align-items: flex-end;
      overflow: hidden;
    }
    .detail-hero-bg {
      position: absolute;
      inset: 0;
      background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover no-repeat;
    }
    .detail-hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(10,22,40,1) 0%, rgba(10,22,40,.6) 50%, rgba(10,22,40,.3) 100%);
    }
    .detail-hero-inner {
      position: relative;
      z-index: 1;
      width: 100%;
      padding: 3rem 0 2.5rem;
    }
    .detail-hero-eyebrow {
      font-family: 'Oswald', sans-serif;
      font-size: .75rem;
      letter-spacing: .25em;
      color: var(--accent);
      text-transform: uppercase;
    }
    .detail-hero-title {
      font-family: 'Oswald', sans-serif;
      font-size: clamp(2.2rem, 5vw, 3.8rem);
      font-weight: 700;
      color: #fff;
      line-height: 1.1;
      margin: .4rem 0 1rem;
    }
    .detail-hero-chips {
      display: flex;
      flex-wrap: wrap;
      gap: .6rem;
      margin-bottom: 1.8rem;
    }
    .detail-chip {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: rgba(255,255,255,.1);
      border: 1px solid rgba(255,255,255,.18);
      color: rgba(255,255,255,.85);
      font-size: .8rem;
      padding: .35rem .85rem;
      backdrop-filter: blur(4px);
    }
    .detail-chip i { color: var(--accent); }

    /* 倒數計時（Hero 右側） */
    .hero-countdown-box {
      background: rgba(10,22,40,.75);
      border: 1px solid rgba(0,194,224,.3);
      backdrop-filter: blur(8px);
      padding: 1.4rem 1.8rem;
      text-align: center;
    }
    .hero-cd-label {
      font-size: .7rem;
      letter-spacing: .18em;
      color: var(--accent);
      text-transform: uppercase;
      margin-bottom: .8rem;
    }
    .hero-cd-blocks {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: .4rem;
    }
    .hero-cd-block {
      min-width: 54px;
      background: var(--secondary);
      border: 1px solid rgba(255,255,255,.1);
      padding: .6rem .4rem .4rem;
      text-align: center;
    }
    .hero-cd-block .n {
      font-family: 'Oswald', sans-serif;
      font-size: 1.9rem;
      font-weight: 700;
      color: #fff;
      line-height: 1;
      display: block;
    }
    .hero-cd-block .u {
      font-size: .65rem;
      color: var(--text-muted);
    }
    .hero-cd-sep {
      font-family: 'Oswald', sans-serif;
      font-size: 1.6rem;
      color: var(--accent);
      margin-bottom: 4px;
    }
    .hero-cd-deadline {
      font-size: .72rem;
      color: var(--text-muted);
      margin-top: .6rem;
    }

    /* ─── STICKY TAB NAV ────────────────────────────── */
    .detail-tabs-wrap {
      position: sticky;
      top: 110px;
      z-index: 99;
      background: var(--secondary);
      border-bottom: 1px solid rgba(255,255,255,.07);
      box-shadow: 0 4px 20px rgba(0,0,0,.3);
    }
    .detail-tabs {
      display: flex;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .detail-tabs::-webkit-scrollbar { display: none; }
    .detail-tab {
      flex-shrink: 0;
      padding: 1rem 1.4rem;
      font-size: .85rem;
      font-weight: 600;
      letter-spacing: .06em;
      color: var(--text-muted);
      text-decoration: none;
      border-bottom: 3px solid transparent;
      transition: color .2s, border-color .2s;
      white-space: nowrap;
    }
    .detail-tab:hover { color: #fff; }
    .detail-tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }
    .detail-tab-cta {
      margin-left: auto;
      padding: .65rem 1.6rem;
      background: var(--accent);
      color: var(--primary) !important;
      font-weight: 700;
      font-size: .82rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: .4rem;
      transition: background .2s;
      flex-shrink: 0;
    }
    .detail-tab-cta:hover { background: #00a8c4; }

    /* ─── CONTENT SECTIONS ──────────────────────────── */
    .detail-section {
      padding: 4rem 0;
      border-bottom: 1px solid rgba(255,255,255,.06);
      scroll-margin-top: 165px;
    }
    .detail-section:last-of-type { border-bottom: none; }

    .ds-eyebrow {
      font-family: 'Oswald', sans-serif;
      font-size: .72rem;
      letter-spacing: .2em;
      color: var(--accent);
      text-transform: uppercase;
      margin-bottom: .4rem;
    }
    .ds-title {
      font-family: 'Oswald', sans-serif;
      font-size: 1.8rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 1.6rem;
    }
    .ds-title .accent { color: var(--accent); }

    /* 賽事介紹 */
    .intro-lead {
      font-size: 1.05rem;
      color: rgba(255,255,255,.85);
      line-height: 2;
      max-width: 720px;
    }
    .intro-highlight-box {
      background: var(--secondary);
      border-left: 4px solid var(--accent);
      padding: 1.2rem 1.5rem;
      font-size: .92rem;
      color: rgba(255,255,255,.8);
      line-height: 1.9;
    }

    /* 資訊卡 */
    .info-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1px;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.07);
    }
    .info-card {
      background: var(--secondary);
      padding: 1.4rem 1.2rem;
    }
    .info-card-icon {
      font-size: 1.3rem;
      color: var(--accent);
      margin-bottom: .5rem;
    }
    .info-card-label {
      font-size: .68rem;
      letter-spacing: .14em;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-bottom: .25rem;
    }
    .info-card-value {
      font-size: .95rem;
      font-weight: 600;
      color: #fff;
    }

    /* 賽程規則 timeline */
    .rules-list { list-style: none; padding: 0; margin: 0; }
    .rules-list li {
      display: flex;
      gap: 1.2rem;
      padding: 1.1rem 0;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .rules-list li:last-child { border-bottom: none; }
    .rule-num {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      border: 2px solid var(--accent);
      color: var(--accent);
      font-family: 'Oswald', sans-serif;
      font-weight: 700;
      font-size: .9rem;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: .1rem;
    }
    .rule-text {
      font-size: .9rem;
      color: rgba(255,255,255,.8);
      line-height: 1.8;
    }
    .rule-text strong { color: var(--accent2); }

    /* 關門時間表格 */
    .cutoff-table {
      width: 100%;
      border-collapse: collapse;
      font-size: .88rem;
    }
    .cutoff-table th {
      background: rgba(0,194,224,.12);
      color: var(--accent);
      font-weight: 600;
      letter-spacing: .06em;
      padding: .75rem 1rem;
      text-align: left;
      border-bottom: 2px solid rgba(0,194,224,.3);
    }
    .cutoff-table td {
      padding: .75rem 1rem;
      border-bottom: 1px solid rgba(255,255,255,.06);
      color: rgba(255,255,255,.8);
    }
    .cutoff-table tr:hover td { background: rgba(255,255,255,.03); }

    /* 組別卡 */
    .category-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    .cat-card {
      background: var(--secondary);
      border: 1px solid rgba(255,255,255,.08);
      padding: 2rem;
      position: relative;
      overflow: hidden;
    }
    .cat-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 4px;
    }
    .cat-card.hero-cat::before { background: var(--accent); }
    .cat-card.warrior-cat::before { background: var(--accent2); }
    .cat-card-badge {
      display: inline-block;
      font-size: .68rem;
      letter-spacing: .12em;
      font-weight: 700;
      text-transform: uppercase;
      padding: .2rem .7rem;
      margin-bottom: .8rem;
    }
    .hero-cat .cat-card-badge { background: rgba(0,194,224,.15); color: var(--accent); border: 1px solid rgba(0,194,224,.3); }
    .warrior-cat .cat-card-badge { background: rgba(232,180,0,.1); color: var(--accent2); border: 1px solid rgba(232,180,0,.3); }
    .cat-distance {
      font-family: 'Oswald', sans-serif;
      font-size: 3rem;
      font-weight: 700;
      line-height: 1;
      margin-bottom: .3rem;
    }
    .hero-cat .cat-distance { color: var(--accent); }
    .warrior-cat .cat-distance { color: var(--accent2); }
    .cat-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 1.2rem; }
    .cat-info-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: .5rem 0;
      border-bottom: 1px solid rgba(255,255,255,.06);
      font-size: .85rem;
    }
    .cat-info-row:last-child { border-bottom: none; }
    .cat-info-row span:first-child { color: var(--text-muted); }
    .cat-info-row span:last-child { color: #fff; font-weight: 600; }
    .cat-route-map-btn {
      display: block; margin-top: 1rem;
      padding: .45rem 1rem; border-radius: 6px;
      background: rgba(0,194,224,.1); border: 1px solid rgba(0,194,224,.3);
      color: var(--accent); text-decoration: none;
      font-size: .82rem; font-weight: 600; text-align: center;
      transition: background .2s, border-color .2s;
    }
    .cat-route-map-btn:hover {
      background: rgba(0,194,224,.2); border-color: var(--accent); color: var(--accent);
    }

    /* 補給站 */
    .aid-station-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .aid-item {
      display: flex;
      align-items: stretch;
      gap: 0;
    }
    .aid-timeline {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 40px;
      position: relative;
    }
    /* 上半段連接線（除第一項外都顯示） */
    .aid-item:not(:first-child) .aid-timeline::before {
      content: '';
      position: absolute;
      top: 0; bottom: 50%;
      left: 50%; transform: translateX(-50%);
      width: 2px;
      background: rgba(0,194,224,.2);
    }
    /* 下半段連接線（除最後一項外都顯示） */
    .aid-item:not(:last-child) .aid-timeline::after {
      content: '';
      position: absolute;
      top: 50%; bottom: 0;
      left: 50%; transform: translateX(-50%);
      width: 2px;
      background: rgba(0,194,224,.2);
    }
    .aid-dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 3px solid var(--accent);
      background: var(--primary);
      flex-shrink: 0;
      position: relative;
      z-index: 1;
    }
    .aid-dot.start { background: var(--accent); }
    .aid-dot.finish { background: var(--accent2); border-color: var(--accent2); }
    /* 隱藏原本的 line 子元素 */
    .aid-line { display: none; }
    .aid-content {
      flex: 1;
      background: var(--secondary);
      border: 1px solid rgba(255,255,255,.06);
      padding: 1rem 1.2rem;
      margin-bottom: 1rem;
    }
    .aid-km {
      font-size: .7rem;
      letter-spacing: .12em;
      color: var(--accent);
      text-transform: uppercase;
      font-weight: 700;
    }
    .aid-name { font-size: .95rem; font-weight: 600; color: #fff; margin: .2rem 0; }
    .aid-features {
      display: flex;
      flex-wrap: wrap;
      gap: .4rem;
      margin-top: .4rem;
    }
    .aid-tag {
      font-size: .68rem;
      padding: .15rem .5rem;
      background: rgba(255,255,255,.07);
      color: var(--text-muted);
      border: 1px solid rgba(255,255,255,.1);
    }
    .aid-cutoff { font-size: .78rem; color: var(--accent2); margin-top: .3rem; }

    /* ─── 補給站 Tab ─────────────────────────────── */
    .aid-map-link {
      display: flex; align-items: center; gap: .4rem;
      font-size: .85rem; color: var(--text-muted);
    }
    .aid-map-anchor {
      color: var(--accent); text-decoration: none; font-weight: 600;
    }
    .aid-map-anchor:hover { text-decoration: underline; }
    .aid-map-note { font-size: .78rem; opacity: .6; }

    .aid-tabs {
      display: flex; gap: .5rem; margin-bottom: 1.8rem;
      border-bottom: 1px solid rgba(255,255,255,.1);
      padding-bottom: 0;
    }
    .aid-tab-btn {
      background: none; border: none; outline: none;
      color: var(--text-muted); font-family: 'Oswald', sans-serif;
      font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
      padding: .6rem 1.4rem; cursor: pointer; position: relative;
      transition: color .2s;
    }
    .aid-tab-btn::after {
      content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
      height: 2px; background: var(--accent); transform: scaleX(0);
      transition: transform .2s;
    }
    .aid-tab-btn.active { color: #fff; }
    .aid-tab-btn.active::after { transform: scaleX(1); }
    .aid-tab-btn:hover { color: #fff; }

    .aid-tab-panel { display: none; }
    .aid-tab-panel.active { display: block; }

    /* ─── 報名表 ─────────────────────────────────── */
    #register {
      background: var(--secondary);
      scroll-margin-top: 165px;
    }
    .reg-form-wrap {
      background: var(--primary);
      border: 1px solid rgba(255,255,255,.08);
      padding: 2.5rem;
    }
    .form-section-title {
      font-family: 'Oswald', sans-serif;
      font-size: 1rem;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1.2rem;
      padding-bottom: .5rem;
      border-bottom: 1px solid rgba(0,194,224,.2);
    }
    .form-floating label { color: var(--text-muted); font-size: .88rem; }
    .form-control, .form-select {
      background: rgba(255,255,255,.05) !important;
      border: 1px solid rgba(255,255,255,.12) !important;
      color: #fff !important;
      border-radius: 0 !important;
    }
    .form-control:focus, .form-select:focus {
      border-color: var(--accent) !important;
      box-shadow: 0 0 0 2px rgba(0,194,224,.15) !important;
    }
    .form-control::placeholder { color: var(--text-muted); }
    input[type="date"].form-control { color-scheme: dark; }
    .form-select option { background: var(--secondary); color: #fff; }
    .form-check-input {
      background-color: rgba(255,255,255,.1);
      border-color: rgba(255,255,255,.2);
    }
    .form-check-input:checked {
      background-color: var(--accent);
      border-color: var(--accent);
    }
    .form-check-label { color: rgba(255,255,255,.75); font-size: .88rem; }
    .reg-fee-box {
      background: rgba(0,194,224,.08);
      border: 1px solid rgba(0,194,224,.25);
      padding: 1.2rem 1.4rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: .8rem;
    }
    .reg-fee-label { font-size: .82rem; color: var(--text-muted); }
    .reg-fee-amount {
      font-family: 'Oswald', sans-serif;
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--accent2);
    }
    .reg-fee-note { font-size: .75rem; color: var(--text-muted); }
    .btn-submit {
      background: var(--accent);
      color: var(--primary);
      font-family: 'Oswald', sans-serif;
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      border: none;
      border-radius: 0;
      padding: .9rem 2.5rem;
      width: 100%;
      transition: background .2s, transform .15s;
    }
    .btn-submit:hover { background: #00a8c4; transform: translateY(-1px); }
    .btn-submit:active { transform: translateY(0); }
    .reg-agree-text {
      font-size: .78rem;
      color: var(--text-muted);
      line-height: 1.7;
    }
    .reg-agree-text a { color: var(--accent); text-decoration: none; }
    .reg-agree-text a:hover { text-decoration: underline; }

    /* 右側資訊欄 */
    .sidebar-box {
      background: var(--secondary);
      border: 1px solid rgba(255,255,255,.07);
      padding: 1.4rem;
      margin-bottom: 1.2rem;
    }
    .sidebar-box-title {
      font-size: .72rem;
      letter-spacing: .15em;
      color: var(--accent);
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: .9rem;
      padding-bottom: .5rem;
      border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .sidebar-info-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: .45rem 0;
      font-size: .85rem;
      border-bottom: 1px solid rgba(255,255,255,.04);
    }
    .sidebar-info-row:last-child { border-bottom: none; }
    .sidebar-info-row .k { color: var(--text-muted); }
    .sidebar-info-row .v { color: #fff; font-weight: 600; text-align: right; }
    .reg-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
    .reg-steps li {
      counter-increment: step;
      display: flex;
      align-items: flex-start;
      gap: .7rem;
      padding: .5rem 0;
      font-size: .83rem;
      color: rgba(255,255,255,.75);
    }
    .reg-steps li::before {
      content: counter(step);
      flex-shrink: 0;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(0,194,224,.15);
      color: var(--accent);
      font-size: .75rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 1px;
    }

    /* ─── 成功送出 Overlay ───────────────────────── */
    .success-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(10,22,40,.92);
      z-index: 9999;
      align-items: center;
      justify-content: center;
    }
    .success-overlay.show { display: flex; }
    .success-card {
      background: var(--secondary);
      border: 1px solid rgba(0,194,224,.3);
      padding: 3rem 2.5rem;
      text-align: center;
      max-width: 420px;
      width: 90%;
    }
    .success-icon {
      font-size: 3rem;
      color: var(--accent);
      margin-bottom: 1rem;
    }
    .success-title {
      font-family: 'Oswald', sans-serif;
      font-size: 1.6rem;
      color: #fff;
      margin-bottom: .6rem;
    }
    .success-sub { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.8rem; }

    /* RWD */
    @media (max-width: 768px) {
      .category-cards { grid-template-columns: 1fr; }
      .hero-countdown-box { margin-top: 1.5rem; }
      .reg-form-wrap { padding: 1.5rem; }
    }
