/* ===== DTDC 2026 首页 ===== */
:root {
  --primary: #1677ff;
  --ink: #1d2129;
  --text: #4e5969;
  --muted: #86909c;
  --line: #eef0f3;
  --page: #f5f6f8;
  --white: #fff;
  --primary-soft: #e6f0ff;
  --grad: linear-gradient(135deg, #0958d9 0%, #1677ff 55%, #4096ff 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; }

/* ===== 顶部 KV / 轮播 ===== */
.banner {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  background: var(--grad);
}
.banner.is-fallback {
  background: linear-gradient(135deg, #0958d9 0%, #1677ff 55%, #4096ff 100%);
}
.banner-viewport { position: absolute; inset: 0; overflow: hidden; }
.banner-track { display: flex; height: 100%; transition: transform .45s ease; }
.banner-slide { flex: 0 0 100%; width: 100%; height: 100%; display: block; }
.banner-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; user-select: none; -webkit-user-drag: none;
}
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
}
.bd-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: all .25s; cursor: pointer;
}
.bd-dot.is-on { width: 16px; border-radius: 3px; background: #fff; }

/* ===== 内容区 ===== */
.container {
  padding: 0 14px;
  /* 板块之间统一 gap */
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 14px;
  padding-bottom: 32px;
}

/* 滚动公告（多条上下滚动） */
.notice-scroll {
  display: flex; align-items: center; gap: 9px;
  background: var(--white);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: 0 2px 12px rgba(29, 33, 41, .06);
  /* 向上压住 banner 底部 */
  margin-top: -30px;
  position: relative; z-index: 2;
}
.ns-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #f97316; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ns-viewport { flex: 1; height: 20px; overflow: hidden; position: relative; }
.ns-track { position: absolute; left: 0; right: 0; }
.ns-item { height: 20px; line-height: 20px; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-arrow { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 服务宫格 */
.grid-card {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 10px 12px;
  box-shadow: 0 4px 18px rgba(29, 33, 41, .06);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 18px;
}
.g-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 4px 0;
}
.g-item:active .g-ic { transform: scale(.92); }
.g-ic {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.g-ic svg { width: 23px; height: 23px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-label { font-size: 12.5px; color: var(--text); }

.gi-orange { background: #fff3e8; } .gi-orange svg { stroke: #f97316; }
.gi-blue   { background: #e8f1ff; } .gi-blue svg   { stroke: #1677ff; }
.gi-green  { background: #e7f8f0; } .gi-green svg  { stroke: #10b981; }
.gi-pink   { background: #fdeaf3; } .gi-pink svg   { stroke: #ec4899; }
.gi-cyan   { background: #e5f7fb; } .gi-cyan svg   { stroke: #06b6d4; }
.gi-violet { background: #f0ebff; } .gi-violet svg { stroke: #8b5cf6; }
.gi-amber  { background: #fef6de; } .gi-amber svg  { stroke: #eab308; }
.gi-rose   { background: #fde9ec; } .gi-rose svg   { stroke: #f43f5e; }

/* ===== 报名入口卡（底部 CTA） ===== */
.cta-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(29, 33, 41, 0.08);
  display: flex; gap: 12px;
}
.btn-main {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 48px;
  background: var(--grad);
  color: #fff;
  font-size: 15px; font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
  transition: transform .12s, box-shadow .2s;
}
.btn-main:active { transform: scale(.97); }
.btn-main svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sub2 {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px;
  padding: 0 18px;
  font-size: 14px; font-weight: 600;
  color: var(--primary);
  border: 1.5px solid rgba(22, 119, 255, 0.5);
  border-radius: 12px;
  background: #fff;
  transition: transform .12s, background .2s;
}
.btn-sub2 svg { width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sub2:active { background: var(--primary-soft); transform: scale(.97); }

/* ===== 底部 ===== */
.footer {
  text-align: center;
  font-size: 11px;
  color: #b5bac2;
  padding: 0 16px 28px;
}
