/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #2c3e50;
  background: #0d3b6f;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== 全屏背景（原图，完整保留 logo / 标题 / 图标 / 雪山） ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('./assets/bg.webp?v=2');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: #0d3b6f;
}

/* ===== 页面切换 ===== */
.page {
  display: none;
  position: relative;
  z-index: 1;
  width: 100%;
}
.page.is-active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 启动页：邀请函全屏，上滑揭示首页 ===== */
.page-cover {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: block;
  background: #0063BE;  /* 与邀请函主色一致，覆盖 contain 留白 */
  overflow: hidden;
  touch-action: pan-y;
  transition: transform .45s cubic-bezier(.32,.94,.48,1.05), opacity .35s ease;
}
.page-cover.is-exit {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/cover.webp?v=5');  /* 邀请函完整图（边缘修复版）；2026-08-26 替换 */
  background-color: #0063BE;                          /* 与图片主色一致，避免 contain 时边缘色差 */
  background-size: contain;                            /* 完整保留，纵向比例下保证所有文字可见 */
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform .45s cubic-bezier(.32,.94,.48,1.05);
}

.cover-hint {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.95);
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  pointer-events: none;
  transition: opacity .25s ease;
}
.hint-arrow {
  animation: hintBounce 1.6s ease-in-out infinite;
}
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50%    { transform: translateY(-8px); opacity: .5; }
}

/* ===== 首页：透明热区（覆盖在背景图原有图标上） ===== */
.page-home {
  height: 100vh;
  height: 100dvh;
}
.page-home.is-active {
  display: block;
  animation: fadeIn .45s ease both;
}
.hotspots { position: relative; width: 100%; height: 100%; }

.hotspot {
  position: absolute;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 22px;
  transition: background .15s ease;
}
/* 按压瞬间的轻反馈：半透明白雾，松手消失，不改变背景观感 */
.hotspot:active {
  background: rgba(255, 255, 255, .22);
}

/* ===== 子页面：固定为视口大小，内容超高时在页面内部向下滚动 ===== */
.page-sub {
  position: fixed;
  inset: 0;
  z-index: 2;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: none;
}

/* 固定背景层，滚动时保持不动（视差效果） */
.sub-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('./assets/sub_bg.webp?v=2');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #0d3b6f;
}

.sub-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px calc(env(safe-area-inset-left, 0px) + 16px);
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(13,59,111,.55) 0%, rgba(13,59,111,0) 100%);
  pointer-events: none; /* 仅让返回按钮接收点击 */
}
.sub-header > * { pointer-events: auto; }
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: background .2s ease, transform .15s ease;
}
.back-btn:active { background: rgba(255,255,255,.35); transform: scale(.94); }
.sub-title {
  display: none; /* 背景图顶部已有标题，避免重叠 */
}

.sub-content {
  position: relative;
  z-index: 1;
  padding: 32vh 18px 90px;
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
}

/* 议程 */
.agenda-day {
  background: rgba(13,59,111,.58);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 16px 16px 10px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.agenda-day h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffe7a0;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.agenda-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(255,255,255,.18);
}
.agenda-item:first-of-type { border-top: none; }
.agenda-time { color: #ffe7a0; font-weight: 600; font-size: 13px; }
.agenda-event { font-size: 14px; line-height: 1.55; color: #fff; }

/* 地点 */
.venue-card {
  background: rgba(13,59,111,.58);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.venue-card h3 { font-size: 16px; margin-bottom: 8px; color: #ffe7a0; }
.venue-card p { font-size: 14px; line-height: 1.7; opacity: .95; }
.venue-map {
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c9e3f5 0%, #aed4ee 100%);
  position: relative;
  overflow: hidden;
  margin: 12px 0 0;
  border: 1px solid rgba(255,255,255,.25);
}
.venue-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 30px 30px;
}
.venue-map .pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 28px; height: 28px;
  background: #e74c3c;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 4px 8px rgba(0,0,0,.3);
}
.venue-map .pin::after {
  content: "";
  position: absolute; left: 8px; top: 6px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
}
.venue-map .pin-label {
  position: absolute; left: 50%; top: calc(50% + 14px);
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 会议地点：可点击地图区块 + 导航按钮 */
a.venue-map-link { display: block; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: rgba(255,255,255,.2); }
a.venue-map-link:active { filter: brightness(.92); }
.venue-map .nav-go {
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  background: #1a6dd6;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  white-space: nowrap;
  letter-spacing: 1px;
}
.nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.nav-btn {
  flex: 1;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 10px;
  background: rgba(26,109,214,.85);
  border: 1px solid rgba(255,255,255,.3);
  -webkit-tap-highlight-color: rgba(255,255,255,.2);
}
.nav-btn:active { filter: brightness(.9); }

/* 政策 / 项目 公共卡片 */
.card {
  background: rgba(13,59,111,.58);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h4 {
  font-size: 15px;
  color: #ffe7a0;
  margin-bottom: 8px;
  font-weight: 600;
}
.card p {
  font-size: 13.5px;
  line-height: 1.7;
  opacity: .96;
}
.card .tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,231,160,.18);
  color: #ffe7a0;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* 项目 */
.project-card .project-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.project-card .project-money {
  font-size: 13px; color: #ffe7a0; font-weight: 600;
}
.project-card .progress {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.18);
  overflow: hidden; margin: 10px 0 6px;
}
.project-card .progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ffe7a0, #ffb84a);
  border-radius: 3px;
}

/* 招商项目清单 */
.gold { color: #ffe7a0; }
.dl-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #f5b53a, #e8891a);
  color: #241500;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  letter-spacing: 1px;
  -webkit-tap-highlight-color: rgba(255,255,255,.2);
}
.dl-btn:active { filter: brightness(.92); }
.dl-tip { font-size: 11.5px; opacity: .7; margin-top: 8px; text-align: center; }
/* 大类：可折叠（点击标题展开/收起） */
details.cat { margin: 18px 0 10px; }
details.cat > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255,255,255,.2);
}
details.cat > summary::-webkit-details-marker { display: none; }
details.cat > summary:active { opacity: .72; }
details.cat > summary .cat-title { margin: 0; }
details.cat[open] > summary { margin-bottom: 10px; }
.cat-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: #ffe7a0;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(11,44,86,.96), rgba(24,82,148,.96));
  border: 1px solid rgba(255,231,160,.45);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.cat-arrow {
  font-style: normal;
  font-size: 12px;
  color: #ffd977;
  margin-left: 2px;
  transition: transform .25s ease;
}
details.cat:not([open]) > summary .cat-arrow { transform: rotate(-90deg); }
.cat-title .cat-no {
  background: linear-gradient(135deg, #f5b53a, #e8891a); color: #241500;
  border-radius: 7px; padding: 2px 9px; font-size: 12px; font-weight: 700;
}
.cat-title b { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.88); font-weight: 400; }
details.cat[open] > summary .cat-title { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
details.proj {
  background: rgba(13,59,111,.58);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
details.proj summary {
  list-style: none;
  padding: 12px 14px;
  cursor: pointer;
  display: block;
  -webkit-tap-highlight-color: rgba(255,255,255,.2);
}
details.proj summary::-webkit-details-marker { display: none; }
details.proj summary .proj-top { display: flex; align-items: flex-start; gap: 8px; }
details.proj .proj-idx {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,231,160,.2); color: #ffe7a0;
  font-size: 12px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
details.proj .proj-name { font-size: 14px; font-weight: 600; line-height: 1.45; color: #fff; }
details.proj .proj-meta {
  display: block;
  font-size: 12px; color: rgba(255,255,255,.72);
  margin-top: 6px; padding-left: 30px;
}
details.proj[open] summary { border-bottom: 1px dashed rgba(255,255,255,.15); }
details.proj .proj-detail { padding: 10px 14px 12px; font-size: 12.5px; line-height: 1.65; opacity: .95; }
details.proj .proj-detail p { margin-bottom: 6px; }
details.proj .proj-detail em { font-style: normal; color: #ffe7a0; margin-right: 6px; }
/* 政策详情内表格（矿种目录 / 奖补标准） */
.ptable-wrap { overflow-x: auto; margin: 8px 0 6px; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; border-collapse: collapse; font-size: 11.5px; line-height: 1.5; }
.ptable th, .ptable td {
  border: 1px solid rgba(255,231,160,.28);
  padding: 5px 6px; text-align: left; vertical-align: top;
  color: rgba(255,255,255,.92); min-width: 52px;
}
.ptable th { background: rgba(11,44,86,.92); color: #ffe7a0; font-weight: 600; white-space: nowrap; }
.ptable tr:nth-child(even) td { background: rgba(255,255,255,.05); }

/* 照片直播 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.photo-grid .ph {
  aspect-ratio: 1/1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(13,59,111,.78), rgba(79,155,212,.85));
  border: 1px solid rgba(255,255,255,.22);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease;
}
.photo-grid .ph:active { transform: scale(.96); }
.photo-grid .ph::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), transparent 50%);
}
.photo-grid .ph .label {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 10px; color: #fff; background: rgba(0,0,0,.4);
  padding: 1px 5px; border-radius: 4px;
}

/* 联系 */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(13,59,111,.58);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none; color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease;
}
.contact-item:active { background: rgba(13,59,111,.78); }
.contact-item .c-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe7a0, #ffb84a);
  color: #0d3b6f;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .c-ico svg { width: 22px; height: 22px; }
.contact-item .c-text .c-title { font-size: 13px; opacity: .85; }
.contact-item .c-text .c-val { font-size: 15px; font-weight: 600; margin-top: 2px; }

/* ===== 小屏适配 ===== */
@media (min-width: 768px) {
  .sub-content { padding: 34vh 24px 100px; }
}
@media (max-width: 360px) {
  .sub-content { padding: 30vh 14px 80px; }
}
@media (max-height: 640px) {
  .sub-content { padding-top: 28vh; }
}
