/* 2026 台美城市產業商機媒合會：共用議程樣式 */
:root {
    --agenda-blue: #123a78;
    --agenda-blue-2: #0c5ca8;
    --agenda-red: #c40000;
    --agenda-gold: #ef5b2a;
    --agenda-ink: #223047;
    --agenda-muted: #667085;
    --agenda-line: #e5e7eb;
    --agenda-bg: #f6f8fb;
    --agenda-card: rgba(255,255,255,.96);
  }
  body { overflow-x: hidden; }
  .agenda-page {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto 72px;
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    color: var(--agenda-ink);
  }
  .blue-btn {background: var(--agenda-blue-2) !important;color:#FFF}
  .agenda-hero {
    background: linear-gradient(135deg, rgba(18,58,120,.96), rgba(12,92,168,.9));
    color: #fff;
    border-radius: 28px;
    padding: 42px 44px;
    box-shadow: 0 22px 48px rgba(18,58,120,.22);
    margin: 12px auto 24px;
    overflow: hidden;
    position: relative;
  }
  .agenda-hero:after {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
  }
  .agenda-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: .95rem;
    letter-spacing: .05em;
    margin-bottom: 16px;
  }
  .agenda-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 4vw, 3.05rem);
    line-height: 1.18;
    letter-spacing: .02em;
  }
  .agenda-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255,255,255,.9);
  }
  .hero-actions, .page-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }
  .agenda-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(196,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .btn-red{float: inline-end;margin-left: 30px;}
  .agenda-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(196,0,0,.24); color: #fff; }
  .agenda-btn.secondary { background: #fff; color: var(--agenda-blue); box-shadow: none; }
  .agenda-btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); box-shadow: none; }
  .agenda-btn.outline { background: #fff; color: var(--agenda-blue); border: 1px solid #cbd5e1; box-shadow: none; }
  .page-switcher { margin: 0 0 28px; }
  .page-switcher .agenda-btn { border-radius: 16px; }
  .quick-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 34px;
  }
  .info-chip {
    background: var(--agenda-card);
    border: 1px solid var(--agenda-line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
  }
  .info-chip span { display: block; color: var(--agenda-muted); font-size: .9rem; margin-bottom: 6px; }
  .info-chip strong { display: block; font-size: 1.08rem; line-height: 1.45; }
  .section-block { margin: 42px 0; }
  .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }
  .section-title-wrap h2 {
    margin: 0 0 8px;
    color: var(--agenda-blue);
    font-size: clamp(1.45rem, 2.8vw, 2.05rem);
    display: inline-block;
  }
  .section-title-wrap p { margin: 0; color: var(--agenda-muted); line-height: 1.7; }
  .overview-grid, .day-grid, .forum-grid {
    display: grid;
    gap: 18px;
  }
  .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-line {
      margin: 18px 0;
      padding: 12px 18px;
      color: #FFF;
      background: var(--agenda-red);
      border-radius: 14px;
      font-size: 1.25rem;
      font-weight: 800;
    }
  .route-card, .day-card, .forum-card, .session-card, .notice-card {
    background: var(--agenda-card);
    border: 1px solid var(--agenda-line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15,23,42,.07);
  }
  .route-card { display: flex; flex-direction: column; min-height: 320px; }
    .route-card .tag,
    .session-card .tag {
      display: inline-flex;
      width: fit-content;
      padding: 6px 10px;
      border-radius: 999px;
      color: #eaf2ff;
      background: var(--agenda-blue);
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 14px;
    }
    .forum-card .tag{
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: #eaf2ff;
    background: var(--agenda-red);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 14px;
  }
  .route-card h3, .day-card h3, .forum-card h3, .session-card h3 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.45;
  }
  .route-card p, .day-card p, .forum-card p, .session-card p, .notice-card p {
    margin: 0;
    color: var(--agenda-muted);
    line-height: 1.75;
  }
  .route-card ul, .day-card ul, .forum-card ul, .session-card ul, .notice-card ul {
    margin: 16px 0 0;
    padding-left: 1.2em;
    color: #334155;
    line-height: 1.3;
  }
  .route-card .agenda-btn { margin-top: auto; align-self: flex-start; }
  .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 16px;
  }
  .meta-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: .95rem;
  }
  .timeline-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
  }
  .timeline-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
  }
  .timeline-item time { color: var(--agenda-red); font-weight: 800; line-height: 1.45; }
  .timeline-item strong { display: block; color: var(--agenda-ink); margin-bottom: 4px; line-height: 1.5; }
  .timeline-item span { display: block; color: var(--agenda-muted); line-height: 1.6; }
  .forum-card .talk-list, .session-card .speaker-list { list-style: none; padding: 0; font-size: 1.1rem;}
  .talk-list li, .speaker-list li {
    border-top: 1px solid #eef2f7;
    padding: 13px 0;
  }
  .talk-list li:first-child, .speaker-list li:first-child { border-top: none; }
  .talk-type {
    display: block;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--agenda-red);
  }
  .speaker {
    display: block;
    color: #475569;
    margin-top: 4px;
    line-height: 1.55;
  }
  .filter-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    margin: 0 0 22px;
    border: 1px solid var(--agenda-line);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 28px rgba(15,23,42,.07);
    backdrop-filter: blur(8px);
  }
  .filter-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--agenda-blue);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
  }
  .filter-btn.active { background: var(--agenda-blue); color: #fff; border-color: var(--agenda-blue); }
  .session-list { display: grid; gap: 16px; }
  .session-card { display: grid; grid-template-columns: 190px 1fr; gap: 22px; }
  .session-side {
    border-right: 1px solid var(--agenda-line);
    padding-right: 18px;
  }
  .session-side .date { color: var(--agenda-muted); font-weight: 700; margin-bottom: 8px; }
  .session-side .time { color: var(--agenda-red); font-size: 1.2rem; font-weight: 900; line-height: 1.4; }
  .session-side .venue { color: var(--agenda-blue); font-weight: 900; margin-top: 10px; font-size: 1.05rem; }
  .session-card h3 { margin-top: 2px; }
  .en-title { color: var(--agenda-gold); font-weight: 800; margin-bottom: 6px; }
  .break-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 18px;
    padding: 15px 18px;
    color: #475569;
    font-weight: 700;
  }
  .empty-message { display: none; color: var(--agenda-muted); padding: 20px; border: 1px dashed #cbd5e1; border-radius: 16px; }
  .agenda-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    line-height: 1.7;
  }
  @media screen and (max-width: 980px) {
    .quick-info, .overview-grid, .day-grid, .forum-grid { grid-template-columns: 1fr 1fr; }
    .route-card { min-height: auto; }
  }
  @media screen and (max-width: 768px) {
    .agenda-page { width: min(100% - 22px, 680px); margin-bottom: 48px; }
    .agenda-hero { padding: 30px 22px; border-radius: 22px; }
    .quick-info, .overview-grid, .day-grid, .forum-grid { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .timeline-item { grid-template-columns: 1fr; }
    .session-card { grid-template-columns: 1fr; gap: 14px; }
    .session-side { border-right: 0; border-bottom: 1px solid var(--agenda-line); padding: 0 0 14px; }
    .filter-bar { position: relative; top: auto; }
    .filter-btn { flex: 1 1 calc(50% - 10px); }
  }
  @media screen and (max-width: 360px) {
    .agenda-hero h1 { font-size: 1.55rem; }
    .route-card, .day-card, .forum-card, .session-card, .notice-card { padding: 18px; }
    .filter-btn { flex-basis: 100%; }
  }


  /* seminar.html：採用 2026agendaV2.html 的 202／203 廳並排排列方式 */
  .legacy-seminar .section-note {
    margin: 0 0 22px;
    color: var(--agenda-muted);
    line-height: 1.75;
  }

  .legacy-seminar .sub-title {
    margin: 0 0 18px;
    padding: 12px 18px;
    color: var(--agenda-bg);
    background: var(--agenda-blue);
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 800;
  }

  .legacy-seminar .session-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
  }

  .legacy-seminar .session-card {
    display: block;
    overflow: hidden;
    padding: 0;
    background: var(--agenda-card);
    border: 1px solid var(--agenda-line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  }

  .legacy-seminar .session-head {
    padding: 18px 20px 16px;
    background: #f4f8ff;
    border-bottom: 1px solid var(--agenda-line);
  }

  .legacy-seminar .session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--agenda-blue);
    font-size: .98rem;
    font-weight: 700;
  }

  .legacy-seminar .pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    background: #eaf2ff;
    border-radius: 999px;
  }

  .legacy-seminar .session-card h3 {
    margin: 0 0 5px;
    color: var(--agenda-blue);
    font-size: 1.42rem;
    line-height: 1.45;
    font-weight: 900;
  }

  .legacy-seminar .session-topic {
    color: var(--agenda-ink);
    font-size: 1.12rem;
    line-height: 1.65;
    font-weight: 700;
  }

  .legacy-seminar .session-body {
    padding: 18px 20px 22px;
  }

  .legacy-seminar .speaker-title {
    margin: 0 0 8px;
    color: var(--agenda-red);
    font-size: 1rem;
    font-weight: 900;
  }

  .legacy-seminar .speaker-list {
    margin: 0;
    padding-left: 1.35em;
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
    list-style: decimal;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .legacy-seminar .speaker-list li {
    margin: 0 0 4px;
    border-top: 0;
    padding: 0;
  }

  .legacy-seminar .break-card {
    display: block;
    margin: 0 0 20px;
    padding: 14px 18px;
    color: #475569;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 900;
  }

  .legacy-seminar .parallel-hint {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    line-height: 1.75;
  }

  @media screen and (max-width: 980px) {
    .legacy-seminar .session-grid {
      grid-template-columns: 1fr;
    }
  }

  @media screen and (max-width: 768px) {
    .legacy-seminar .speaker-list {
      grid-template-columns: 1fr;
    }
    .anchor-section {
    scroll-margin-top: 76px;
  }
  .section-title-wrap h2{display: block;}
  .btn-red{display: block;margin-left: 0;float: none;text-align: center;}
    .overview-opening {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
    }
    .overview-opening .title {
      grid-column: 1 / -1;
    }
  }


/* 單頁版錨點與 hero 分頁補強：保留原本樣式，只增加同頁跳轉需要的距離與狀態 */
html {
  scroll-behavior: smooth;
}

.anchor-section {
  scroll-margin-top: 110px;
}

.hero-actions .agenda-btn.secondary {
  background: #fff;
  color: var(--agenda-blue);
}

.hero-actions .agenda-btn.ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}

.overview-opening {
  display: grid;
  grid-template-columns: 160px 1fr 130px;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 24px;
  color: var(--agenda-red);
  font-size: 1.8rem;
  font-weight: 800;
}
.overview-opening .time {
  white-space: nowrap;
}
.overview-opening .title {
  text-align: left !important;
  white-space: nowrap;
  padding-left:20px
}
.overview-opening .room {
  min-width: 58px;
  padding: 2px 10px;
  color: #fff;
  background: var(--agenda-blue);
  border: 1px solid var(--line);
  border-radius: 99px;
  text-align: center;
}