/* =============================================
   26_INDEX.css
   Path: \ext\personal\dave\test\2508\cf\
   Theme: #FDB827  溫暖風格 v4
   ============================================= */

/* ── Root Variables ── */
:root {
  --cf-primary:    #FDB827;
  --cf-primary-dk: #c9920a;
  --cf-primary-lt: #fff4d6;
  --cf-on-primary: #3a2800;
  --cf-accent:     #d64a00;
  --cf-section-bg: #fff8ec;   /* 溫暖米白，不刺眼 */
  --cf-border:     #e8d8b0;
  --cf-card-bg:    #ffffff;
  --cf-text:       #2d1f00;
  --cf-muted:      #7a5c20;
}

/* ── Global ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  color: var(--cf-text);
  background: #fff;
  font-size: 16px;   /* 基礎字級放大 */
}

/* ── Navbar ── */
#cf-navbar {
  background: #fff8ec !important;   /* 同 section-bg */
  border-bottom: 3px solid var(--cf-primary);
  box-shadow: 0 2px 10px rgba(200,140,0,.12);
}

#cf-navbar .nav-link-scroll {
  color: #3a2800;
  font-size: .95rem;
  font-weight: 600;
  padding: .48rem .8rem;
  border-radius: 5px;
  transition: background .18s, color .18s;
  cursor: pointer;
  white-space: nowrap;
}
#cf-navbar .nav-link-scroll:hover {
  background: var(--cf-primary-lt);
  color: var(--cf-primary-dk);
}

#cf-navbar .btn-nav-signup {
  background: var(--cf-primary);
  color: var(--cf-on-primary) !important;
  border-radius: 5px;
  padding: .4rem 1rem;
  font-weight: 700;
  font-size: .93rem;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, transform .12s;
  box-shadow: 0 2px 8px rgba(200,140,0,.3);
}
#cf-navbar .btn-nav-signup:hover {
  background: var(--cf-primary-dk);
  transform: scale(1.03);
}
#cf-navbar .status-badge {
  color: var(--cf-accent);
  font-weight: 700;
  font-size: .93rem;
  padding: .4rem .5rem;
}

/* 報名查詢 */
.query-form-wrap {
  display: flex;
  align-items: center;
  gap: .38rem;
  flex-wrap: nowrap;
}
.query-form-wrap input[type="text"] {
  border: 1px solid #d4b870;
  border-radius: 5px;
  background: #fffdf7;
  color: #3a2800;
  font-size: .82rem;
  padding: .28rem .48rem;
  height: 30px;
}
.query-form-wrap input[type="text"]::placeholder { color: #b08840; }
.query-form-wrap input[type="text"]:focus {
  outline: none;
  border-color: var(--cf-primary);
  box-shadow: 0 0 0 2px rgba(253,184,39,.2);
}
.query-form-wrap .query-label {
  color: #5a3c00;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.query-form-wrap .btn-query {
  background: var(--cf-primary);
  color: var(--cf-on-primary);
  border: none;
  border-radius: 5px;
  padding: .28rem .75rem;
  font-size: .82rem;
  cursor: pointer;
  transition: background .18s;
  height: 30px;
}
.query-form-wrap .btn-query:hover { background: var(--cf-primary-dk); }
.query-form-wrap img { border-radius: 3px; }

/* ── Floating signup ── */
#floating-signup {
  position: fixed;
  right: 1.2rem;
  bottom: 1.5rem;
  z-index: 999;
  background: var(--cf-primary);
  color: var(--cf-on-primary);
  border-radius: 50px;
  padding: .65rem 1.3rem;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 4px 16px rgba(200,140,0,.45);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
  line-height: 1.3;
}
#floating-signup:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 22px rgba(200,140,0,.55);
  color: var(--cf-on-primary);
}

/* ── Section titles ── */
.cf-section-title {
  color: var(--cf-text);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .04em;
  position: relative;
  padding-bottom: .4rem;
  margin-bottom: 1.2rem;
  margin-top: 0;
}
.cf-section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--cf-primary);
  border-radius: 2px;
  margin: .35rem auto 0;
}

/* ── Section 1: Hero ── */
#sec-hero {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 0;
  font-size: 0;
}
#sec-hero img.hero-img,
#sec-hero img {
  width: 100%;
  height: auto;         /* 不裁切，完整顯示 */
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
  vertical-align: top;
}

/* ── Section 2: Activity Introduction ── */
#sec-intro {
  background: var(--cf-section-bg);
  padding: 4rem 0 3.5rem;
}
.intro-content {
  font-size: 1.18rem;    /* 放大 */
  line-height: 2.1;
  color: var(--cf-text);
}

/* ── Section 3: Agenda ── */
#sec-agenda {
  background: #fff;
  padding: 4rem 0 3.5rem;
}
.agenda-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;       /* 放大 */
}
.agenda-wrap table th,
.agenda-wrap table td {
  border: 1px solid var(--cf-border);
  padding: .75rem 1rem;
  vertical-align: top;
}
.agenda-wrap table th {
  background: var(--cf-primary);
  color: var(--cf-on-primary);
  font-weight: 700;
  font-size: 1.05rem;
}
.agenda-wrap table tr:nth-child(even) td { background: #fffbf0; }
.agenda-wrap table tr:hover td { background: #fff3cc; }

.agenda-wrap .agenda-row {
  display: flex;
  gap: 1.2rem;
  border-bottom: 1px solid var(--cf-border);
  padding: .9rem 0;
  align-items: flex-start;
  font-size: 1rem;
}
.agenda-wrap .agenda-time {
  min-width: 120px;
  font-weight: 700;
  color: var(--cf-primary-dk);
  font-size: .95rem;
  flex-shrink: 0;
}
.agenda-wrap .agenda-topic {
  flex: 1;
  font-size: 1.05rem;    /* 字體加大 */
}
.agenda-wrap .agenda-speaker {
  min-width: 200px;      /* 加寬，從 agenda-topic 取空間 */
  color: var(--cf-muted);
  font-size: .95rem;
  text-align: left;
  flex-shrink: 0;
}

/* Break row 背景 */
.agenda-wrap .agenda-break {
  background: #fffbe8;
  border-radius: 6px;
  padding-left: .5rem;
}

/* 手機版議程：垂直堆疊 */
@media(max-width:640px){
  .agenda-wrap .agenda-header { display: none; }
  .agenda-wrap .agenda-row {
    flex-direction: column;
    gap: .35rem;
    padding: .9rem .2rem;
  }
  .agenda-wrap .agenda-time {
    min-width: unset;
    font-size: .88rem;
    text-align: left;
  }
  .agenda-wrap .agenda-topic {
    text-align: center;
    font-size: .95rem;
    width: 100%;
  }
  .agenda-wrap .agenda-speaker {
    min-width: unset;
    width: 100%;
    font-size: .88rem;
    color: var(--cf-muted);
    text-align: center;  /* 手機置中 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 讓內部 block/inline 元素都置中 */
  }
  .agenda-wrap .agenda-speaker strong,
  .agenda-wrap .agenda-speaker span {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* ── Section 4: Speakers ── */
#sec-speakers {
  background: var(--cf-section-bg);
  padding: 4rem 0 3.5rem;
}
.speaker-card {
  background: var(--cf-card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8d8b0;
  box-shadow: 0 2px 10px rgba(200,140,0,.1);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;     /* 全卡片置中 */
}
.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(200,140,0,.22);
  border-color: var(--cf-primary);
}
.speaker-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.speaker-card .card-body { padding: 1.2rem 1rem 1.1rem; flex: 1; }
.speaker-card .speaker-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--cf-text);
  margin: 0 0 .3rem;
  letter-spacing: .04em;
}
.speaker-card .speaker-org {
  font-size: .95rem;
  color: var(--cf-muted);
  margin-bottom: .15rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: left;
}
.speaker-card .speaker-title {
  display: block;
  background: none;
  color: var(--cf-muted);
  font-weight: 600;
  font-size: .95rem;
  padding: 0;
  border-radius: 0;
  margin-bottom: .5rem;
  text-align: left;
}
.speaker-card .speaker-bio {
  font-size: .88rem;
  color: #5a4020;
  line-height: 1.7;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.speakers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}
.speakers-grid .speaker-col {
  flex: 0 0 calc(33.333% - 1.4rem);
  max-width: calc(33.333% - 1.4rem);
  box-sizing: border-box;
}
@media(max-width:991px){
  .speakers-grid .speaker-col {
    flex: 0 0 calc(50% - 1.4rem);
    max-width: calc(50% - 1.4rem);
  }
}
@media(max-width:575px){
  .speakers-grid .speaker-col { flex: 0 0 100%; max-width: 100%; }
}

/* ── Section 5: Partners ── */
#sec-partners {
  background: #fff;
  padding: 4rem 0 3.5rem;
}
.partner-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--cf-border);
  padding: 1.4rem 0;
  gap: 1.4rem;
}
.partner-row:last-child { border-bottom: none; }
.partner-label {
  min-width: 100px;
  font-weight: 700;
  color: var(--cf-on-primary);
  font-size: .95rem;
  text-align: center;
  background: var(--cf-primary);
  border-radius: 6px;
  padding: .45rem .65rem;
  flex-shrink: 0;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  align-items: center;
}
.partner-logos img {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: opacity .2s, transform .2s;
}
.partner-logos img:hover { opacity: .85; transform: scale(1.05); }
.partner-logos a { display: inline-flex; align-items: center; }
@media(max-width:767px){
  .partner-row {
    flex-direction: column;
    align-items: center;   /* 手機板置中 */
    text-align: center;
  }
  .partner-label {
    width: 100%;
    text-align: center;
  }
  .partner-logos { justify-content: center; }
}

/* ── Section 6: Traffic ── */
#sec-traffic {
  background: var(--cf-section-bg);
  padding: 4rem 0 3rem;
}
/* iframe 響應式：直接 width:100% height 固定，讓 iframe 自填容器 */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.1);
  line-height: 0;
}
.map-wrap iframe {
  width: 100% !important;
  height: 420px;
  display: block;
  border: none !important;
}
@media(max-width:575px){
  .map-wrap iframe { height: 260px; }
}
.traffic-info {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--cf-text);
  margin-top: 1rem;
}
.traffic-info strong { color: var(--cf-primary-dk); }

/* ── Section 7: Registration form ── */
#sec-register {
  background: #fff;
  padding: 3rem 0 2.5rem;
}
.btn-register {
  background: var(--cf-primary);
  color: var(--cf-on-primary);
  border: none;
  border-radius: 8px;
  padding: .95rem 3.2rem;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, transform .15s, box-shadow .18s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(200,140,0,.4);
  letter-spacing: .05em;
}
.btn-register:hover {
  background: var(--cf-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200,140,0,.5);
  color: var(--cf-on-primary);
}
.status-full, .status-closed {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cf-accent);
}

/* ── Section 8: 參加辦法 ── */
#sec-howto {
  background: var(--cf-section-bg);
  padding: 3.5rem 0 3rem;
}
.howto-list p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--cf-text);
  margin-bottom: .5rem;
}

/* ── Footer ── */
#cf-footer {
  background: #2a1800;
  color: rgba(255,255,255,.75);
  padding: 2rem 0;
  font-size: .9rem;
}
#cf-footer img { filter: brightness(0) invert(1); opacity: .85; }
#cf-footer a { color: rgba(255,220,100,.7); text-decoration: none; }
#cf-footer a:hover { color: var(--cf-primary); }
