/* =====================================================================
 *  球场攻略页样式（courses/nansha/）
 *  只放本页专属样式；通用组件见 subpage.css / styles.css
 * ===================================================================== */

/* ---------- 场别 Tab ---------- */
.ns-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px;
}
.ns-tab {
  border: 1px solid rgba(10, 35, 66, 0.14); border-radius: 14px;
  background: var(--white); padding: 12px 8px; cursor: pointer;
  font-size: 16px; font-weight: 800; color: var(--navy-800);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 44px;
}
.ns-tab small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.ns-tab.is-active {
  background: var(--navy-900); color: #fff; border-color: var(--navy-900);
}
.ns-tab.is-active small { color: var(--gold-lt); }
.ns-tab:active { transform: scale(0.98); }

/* ---------- 总览图 ---------- */
.ns-overview {
  position: relative; border: none; padding: 0; width: 100%; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: #eef6f8; display: block;
}
.ns-overview img { width: 100%; display: block; }
.ns-overview span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 9px;
  font-size: 12px; color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(7, 21, 34, 0), rgba(7, 21, 34, 0.82));
}
.ns-loop {
  margin: 14px 0 4px; font-size: 13px; color: var(--muted); line-height: 1.7;
}

/* ---------- 码数表（横向滚动，首列固定） ---------- */
.ns-cardwrap {
  margin: 10px calc(50% - 50vw) 0; /* 顶到屏边，横向可滑 */
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ns-score {
  border-collapse: separate; border-spacing: 0;
  font-size: 12.5px; white-space: nowrap; width: 100%; min-width: 640px;
  background: var(--white);
}
.ns-score th, .ns-score td {
  padding: 7px 6px; text-align: center; min-width: 34px;
  border-bottom: 1px solid rgba(10, 35, 66, 0.06);
}
.ns-score thead th {
  background: var(--navy-900); color: #fff; font-weight: 700;
  position: sticky; top: 0; z-index: 1;
}
.ns-score thead th:first-child { border-radius: 0; }
.ns-score th:first-child, .ns-score td:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--white);
  text-align: left; padding-left: 14px; font-weight: 600; color: var(--navy-800);
  box-shadow: 1px 0 0 rgba(10, 35, 66, 0.08);
}
.ns-score thead th:first-child { background: var(--navy-900); color: #fff; z-index: 3; }
.ns-score .ns-out, .ns-score .ns-in, .ns-score .ns-tot { font-weight: 800; background: rgba(10, 35, 66, 0.045); }
.ns-score .ns-teerow td:first-child { font-weight: 500; }
.ns-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin-right: 5px; vertical-align: 0;
}
.ns-dot--gold { background: #d4a017; }
.ns-dot--blue { background: #2f6fd0; }
.ns-dot--white { background: #fff; border: 1px solid rgba(10, 35, 66, 0.35); }
.ns-dot--red { background: #d43d3d; }
.ns-dot--men { background: var(--navy-800); }
.ns-dot--women { background: #b0528a; }
.ns-score .ns-teerow--event td { color: var(--gold-deep); font-weight: 700; }
.ns-teelegend { margin: 8px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- 洞号网格 ---------- */
.ns-holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ns-hole {
  border: none; padding: 0; cursor: pointer; text-align: left;
  border-radius: 12px; overflow: hidden; background: #eef6f8;
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.07);
}
.ns-hole img {
  width: 100%; height: 120px; object-fit: cover; object-position: top; display: block;
}
.ns-hole span {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--navy-800);
  background: var(--white);
}
.ns-hole span small { font-size: 11px; font-weight: 500; color: var(--muted); }
.ns-hole:active { transform: scale(0.98); }

/* ---------- 单洞详情（sheet 内） ---------- */
.ns-detail__img {
  width: 100%; display: block; border-radius: 12px; cursor: zoom-in;
  background: #eef6f8;
}
.ns-detail__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0;
}
.ns-stat {
  background: var(--white); border: 1px solid rgba(10, 35, 66, 0.08);
  border-radius: 10px; padding: 9px 12px;
  font-size: 14px; font-weight: 700; color: var(--navy-800);
}
.ns-stat small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.ns-detail__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ns-detail__nav .btn { justify-content: center; }

/* ---------- 来源说明 / 返回 ---------- */
.ns-src {
  margin: 18px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.8;
}
.ns-src a { color: var(--navy-800); font-weight: 600; }
.ns-back { padding: 26px 0 10px; text-align: center; }
.ns-back a { color: var(--navy-800); font-size: 14px; font-weight: 600; text-decoration: none; }

@media (min-width: 761px) {
  .ns-cardwrap { margin: 10px 0 0; border-radius: var(--radius); }
  .ns-holes { grid-template-columns: repeat(6, 1fr); }
  .ns-hole img { height: 150px; }
  .ns-detail__stats { grid-template-columns: repeat(4, 1fr); }
}
