/* =========================================================
   香港地学夏令营 2026 — 第九届「田野之友·自然行动」
   Camp-specific styles. Loads AFTER ../assets/css/style.css
   (the shared YUSY 科学+ stylesheet) and only adds / overrides.
   ========================================================= */

:root {
  /* camp accent palette — nature / geology themed, within YUSY family */
  --camp-ocean:   #0284c7;   /* 万宜水库 · 海岸 */
  --camp-magma:   #ea580c;   /* 粮船湾超级火山 */
  --camp-rock:    #b45309;   /* 火成岩柱状节理 */
  --camp-wetland: #15a34a;   /* 湿地候鸟 / 红树林 */

  --grad-camp-hero:
    radial-gradient(1100px 560px at 82% -8%, rgba(21,163,74,.22), transparent 60%),
    radial-gradient(900px 480px at 8% 8%, rgba(2,132,199,.22), transparent 60%),
    linear-gradient(180deg, #07331f 0%, #06283a 55%, #050d24 100%);

  --grad-ocean:   linear-gradient(135deg, #0c4a6e, #0284c7 55%, #06b6d4);
  --grad-magma:   linear-gradient(135deg, #7c2d12, #ea580c 55%, #f59e0b);
  --grad-rock:    linear-gradient(135deg, #44260a, #b45309 55%, #d97706);
  --grad-wetland: linear-gradient(135deg, #14532d, #15a34a 55%, #84cc16);
}

/* ===== Hero variant (nature green/ocean instead of space blue) ===== */
.hero.camp { background: var(--grad-camp-hero); }
.hero.camp h1 .hl { background: linear-gradient(90deg, #6ee7b7, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sessions-pill {
  display: inline-flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.hero .sessions-pill span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #d9f7e6; font-size: 14px; font-weight: 600;
}
.hero .sessions-pill span b { color: #fff; }

/* Countdown widget (uses main.js data-countdown) */
.countdown {
  display: inline-flex; gap: 10px; margin-top: 26px;
}
.countdown .cd-unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: 62px; padding: 10px 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
}
.countdown .cd-num { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .cd-lbl { margin-top: 5px; font-size: 12px; color: #b6e3c8; }
.countdown-note { margin: 10px 0 0; font-size: 13px; color: #a9c6bf; }

/* ===== Sessions (两期) ===== */
.session-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.session-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 30px; background: #fff;
  transition: transform .2s ease, box-shadow .25s ease;
}
.session-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.session-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--grad-wetland);
}
.session-card.s2::before { background: var(--grad-ocean); }
.session-card .seq {
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  background: var(--c-bg-sky); color: var(--c-brand);
}
.session-card h3 { margin: 12px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: .01em; }
.session-card .dur { color: var(--c-mute); font-size: 14.5px; font-weight: 600; }
.session-card .meet { margin: 14px 0 0; color: var(--c-ink-2); font-size: 14.5px; }
.session-card .meet b { color: var(--c-ink); }

/* ===== Destination highlights (考察地点) — colored cards ===== */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.hl-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 28px 26px;
  color: #fff; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hl-card.ocean   { background: var(--grad-ocean); }
.hl-card.magma   { background: var(--grad-magma); }
.hl-card.rock    { background: var(--grad-rock); }
.hl-card.wetland { background: var(--grad-wetland); }
.hl-card::after {
  content: ""; position: absolute; right: -42px; top: -42px;
  width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1);
}
.hl-card .ico { font-size: 30px; margin-bottom: auto; }
.hl-card .tagline { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; opacity: .92; }
.hl-card h3 { margin: 6px 0 8px; font-size: 21px; font-weight: 800; color: #fff; line-height: 1.25; }
.hl-card p { margin: 0; font-size: 14px; color: rgba(255,255,255,.92); line-height: 1.6; }

/* ===== 5-day itinerary ===== */
.day-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 28px;
}
.day-tabs button {
  border: 1px solid var(--c-line-2); background: #fff;
  border-radius: 999px; padding: 9px 18px; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--c-ink-2);
  font-family: inherit; transition: all .15s ease;
}
.day-tabs button:hover { border-color: var(--c-brand-2); color: var(--c-brand); }
.day-tabs button.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(30,111,217,.3); }

.day { display: none; }
.day.active { display: block; animation: fadeUp .45s ease; }
.day-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 0 0 18px; margin-bottom: 6px;
  border-bottom: 2px solid var(--c-line);
}
.day-head .dno {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-brand); color: #fff; font-size: 20px; font-weight: 800;
}
.day-head h3 { margin: 0; font-size: 22px; font-weight: 800; }
.day-head .day-sub { color: var(--c-mute); font-size: 14px; font-weight: 600; }

.slot {
  display: grid; grid-template-columns: 84px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px dashed var(--c-line);
}
.slot:last-child { border-bottom: none; }
.slot .when {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-top: 2px;
}
.slot .when .badge {
  width: 100%; text-align: center;
  padding: 7px 0; border-radius: 10px;
  font-size: 13.5px; font-weight: 800; color: #fff;
}
.slot .when.am .badge   { background: linear-gradient(135deg, #f59e0b, #f97316); }
.slot .when.pm .badge   { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.slot .when.eve .badge  { background: linear-gradient(135deg, #4338ca, #7c3aed); }
.slot .when .ret { background: linear-gradient(135deg, #15a34a, #65a30d) !important; }

.slot .body .course {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.slot .body .course .cname {
  display: inline-flex; padding: 3px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800;
  background: var(--c-bg-sky); color: var(--c-brand);
}
.slot .body h4 { margin: 6px 0 8px; font-size: 18px; font-weight: 800; color: var(--c-ink); }
.slot .body ul { margin: 0; padding-left: 18px; color: var(--c-ink-2); font-size: 15px; line-height: 1.75; }
.slot .body ul li { margin-bottom: 3px; }
.slot .body p { margin: 0; color: var(--c-ink-2); font-size: 15px; }
.slot .body .slot-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.slot .body .slot-meta .m {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--c-bg-soft); border: 1px solid var(--c-line); color: var(--c-ink-2);
}
.slot .body .slot-meta .m.loc { color: var(--camp-ocean); border-color: #bae6fd; background: #f0f9ff; }
.slot .body .slot-meta .m.guide { color: var(--camp-wetland); border-color: #bbf7d0; background: #f0fdf4; }

/* ===== Requirements list ===== */
.req-list { counter-reset: req; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.req-list li {
  position: relative; padding: 18px 20px 18px 64px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  font-size: 15.5px; color: var(--c-ink-2); line-height: 1.7;
}
.req-list li::before {
  counter-increment: req; content: counter(req);
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-earth); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.req-list li b { color: var(--c-ink); }

/* ===== Fees ===== */
.fee-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  background: var(--grad-brand); color: #fff;
  border-radius: var(--radius-lg); padding: 30px 34px; margin-bottom: 26px;
  box-shadow: var(--shadow-md);
}
.fee-hero .price { font-size: 44px; font-weight: 800; line-height: 1; }
.fee-hero .price small { font-size: 18px; font-weight: 600; opacity: .85; }
.fee-hero .price-note { margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,.85); }
.fee-hero .badge-pub {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  font-size: 13.5px; font-weight: 700;
}
.incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.incl-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 26px; }
.incl-card h4 { margin: 0 0 14px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.incl-card ul { list-style: none; padding: 0; margin: 0; }
.incl-card li { position: relative; padding: 7px 0 7px 26px; font-size: 14.5px; color: var(--c-ink-2); border-bottom: 1px dashed var(--c-line); }
.incl-card li:last-child { border-bottom: none; }
.incl-card.yes li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--c-earth-2); font-weight: 800; }
.incl-card.no  li::before { content: "✕"; position: absolute; left: 0; top: 7px; color: var(--c-magma); font-weight: 800; }

.pay-box {
  margin-top: 24px;
  background: #fbfaf3; border: 1px solid #ece5cc; border-left: 4px solid var(--c-sun);
  border-radius: var(--radius); padding: 22px 24px;
}
.pay-box h4 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #92580e; }
.pay-box .pay-dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px 16px; font-size: 14.5px; }
.pay-box .pay-dl dt { color: var(--c-mute); font-weight: 600; }
.pay-box .pay-dl dd { margin: 0; color: var(--c-ink); font-weight: 600; word-break: break-word; }
.pay-box .pay-dl dd.acct { font-family: "Courier New", ui-monospace, monospace; letter-spacing: .04em; }
.pay-box .pay-tip { margin: 14px 0 0; font-size: 13.5px; color: var(--c-ink-2); }

/* ===== Apply / contact ===== */
.apply-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.apply-step { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 24px; }
.apply-step .sn { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.apply-step h4 { margin: 0 0 6px; font-size: 16.5px; font-weight: 800; }
.apply-step p { margin: 0; color: var(--c-ink-2); font-size: 14.5px; line-height: 1.65; }
.apply-step a { font-weight: 700; }

.contact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  background: var(--c-bg-sky); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.contact-strip .ci .k { font-size: 12.5px; color: var(--c-mute); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-strip .ci .v { margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--c-brand); }
.contact-strip .ci .v a { color: var(--c-brand); }

/* ===== Organizer (主办单位) ===== */
.org-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.org-body p { color: var(--c-ink-2); font-size: 15.5px; line-height: 1.85; margin: 0 0 14px; }
.org-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.org-stat { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; text-align: center; }
.org-stat .n { font-size: 30px; font-weight: 800; color: var(--c-brand); line-height: 1; }
.org-stat .l { margin-top: 6px; font-size: 13.5px; color: var(--c-mute); font-weight: 600; }
.org-timeline { list-style: none; padding: 0; margin: 18px 0 0; }
.org-timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--c-line-2); }
.org-timeline li:last-child { padding-bottom: 0; }
.org-timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-brand-2); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--c-line-2); }
.org-timeline .yr { font-weight: 800; color: var(--c-brand); font-size: 14px; }
.org-timeline .ev { color: var(--c-ink-2); font-size: 14.5px; }

/* ===== Apply page form ===== */
.applicants-tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-line); margin-bottom: 16px; }
table.applicants { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
table.applicants th { background: var(--c-bg-sky); color: var(--c-ink); padding: 12px 12px; text-align: left; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
table.applicants td { padding: 8px 10px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
table.applicants tr:last-child td { border-bottom: none; }
table.applicants input, table.applicants select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--c-line-2); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--c-ink); background: #fff;
}
table.applicants input:focus, table.applicants select:focus { outline: none; border-color: var(--c-brand-2); box-shadow: 0 0 0 3px rgba(30,111,217,.14); }
table.applicants td.rm { width: 44px; text-align: center; }
.row-del { background: #fff; border: 1px solid var(--c-line-2); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--c-mute); font-size: 16px; line-height: 1; }
.row-del:hover { background: #fee2e2; color: var(--c-magma); border-color: var(--c-magma); }

.apply-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }

/* Generated printable form preview */
.form-preview { display: none; }
.form-preview.show { display: block; }
.preview-sheet {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.preview-sheet .ph { text-align: center; margin-bottom: 20px; }
.preview-sheet .ph .org { font-size: 12.5px; color: var(--cert-gold-deep, #9b7026); font-weight: 700; letter-spacing: .14em; }
.preview-sheet .ph h2 { margin: 6px 0 4px; font-size: 22px; font-weight: 800; color: var(--c-brand); }
.preview-sheet .ph p { margin: 0; font-size: 13px; color: var(--c-mute); }
table.preview-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.preview-tbl th, table.preview-tbl td { border: 1px solid #cbd5e1; padding: 9px 12px; text-align: left; }
table.preview-tbl th { background: #f1f5f9; font-weight: 700; font-size: 13px; white-space: nowrap; }
.preview-foot { margin-top: 18px; font-size: 13px; color: var(--c-ink-2); line-height: 1.8; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .site-header .nav-right > .btn { display: none; }
  .session-grid { grid-template-columns: 1fr; }
  .incl-grid { grid-template-columns: 1fr; }
  .org-wrap { grid-template-columns: 1fr; gap: 28px; }
  .fee-hero { padding: 26px; }
}
@media (max-width: 640px) {
  .slot { grid-template-columns: 64px 1fr; gap: 14px; }
  .day-tabs button { padding: 8px 13px; font-size: 13.5px; }
  .pay-box .pay-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .pay-box .pay-dl dt { margin-top: 8px; }
}

/* ===== Print (apply form) ===== */
@media print {
  .site-header, .site-footer, .page-head, .apply-toolbar, .apply-steps,
  .contact-strip, .no-print, .applicants-section { display: none !important; }
  .form-preview { display: block !important; }
  .preview-sheet { border: none; box-shadow: none; padding: 0; }
  body { background: #fff !important; }
}
