/* ============================================================
   Tennis Vista — fresh tennis-green theme
   Light airy base, tennis-green accents, rounded cards, soft shadows
   ============================================================ */
:root {
  --bg: #f4f8f1;
  --bg-soft: #eef5ea;
  --surface: #ffffff;
  --surface-tint: #f9fbf7;
  --green: #2e7d32;
  --green-mid: #43a047;
  --green-soft: #7cb342;
  --green-pale: #c8e6c9;
  --green-mist: #e8f5e9;
  --text: #263238;
  --muted: #607d66;
  --line: #dce8d9;
  --accent: #43a047;
  --accent-soft: rgba(67, 160, 71, 0.12);
  --shadow: 0 8px 30px rgba(46, 125, 50, 0.10);
  --shadow-sm: 0 3px 12px rgba(46, 125, 50, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-soft));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 700; font-size: 16.5px; color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-link { font-size: 14px; color: var(--muted); padding: 5px 8px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--green); background: var(--green-mist); }
.lang-select {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lang-select:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(124, 179, 66, 0.16), transparent 42%),
    radial-gradient(circle at 12% 78%, rgba(67, 160, 71, 0.12), transparent 38%),
    linear-gradient(180deg, #eaf6e4 0%, #f4f8f1 100%);
  padding: 70px 22px 56px;
  text-align: center;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--green-pale);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  margin: 18px 0 6px;
  color: #1b3520;
}
.hero-title-line { display: block; }
.accent-text { color: var(--green); }
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 10px auto 24px;
  animation: fadeUp 0.6s 0.12s ease both;
}
.hero-search {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  animation: fadeUp 0.6s 0.2s ease both;
}
.search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.hero-search input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.hero-search input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 30px rgba(67, 160, 71, 0.12);
}
.hero-search input::placeholder { color: var(--muted); }

.stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.stat {
  min-width: 130px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 179, 66, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 13px; color: var(--muted); }

/* ---------- container / filter ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 34px 22px 60px; }
.tab-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--green); border-color: var(--green-pale); }
.tab-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.filter-left { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-label { font-size: 12px; color: var(--muted); letter-spacing: 0.6px; }
.select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-tint);
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.select:focus { border-color: var(--green-mid); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--green); border-color: var(--green-pale); background: var(--green-mist); }
.chip.active {
  background: var(--green-soft);
  border-color: var(--green-soft);
  color: #fff;
}
.count-line { color: var(--muted); font-size: 13.5px; margin: 4px 2px 16px; }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4/3; background: var(--surface-tint); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-size: 17px; font-weight: 700; color: #1b3520; }
.card-sub { font-size: 13px; color: var(--muted); }
.card-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.card-chips span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-mist);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.card-price { font-size: 15px; font-weight: 700; color: var(--green); }
.card-more { font-size: 13px; color: var(--muted); }

.no-results { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface-tint);
  padding: 30px 22px;
}
.footer-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.footer-text { color: var(--muted); font-size: 13px; max-width: 780px; margin: 0 auto 8px; }
.footer-copy { color: var(--muted); font-size: 13px; }

/* ---------- detail ---------- */
.detail-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.detail-back:hover { opacity: 0.75; }
.detail-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #d9eed6, #f4f8f1);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.detail-hero-inner {
  position: relative;
  padding: 34px 30px;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92) 40%);
}
.detail-kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.kicker-chip {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--green-pale);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
}
.detail-title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: #1b3520; line-height: 1.3; }

.detail-body { display: flex; flex-direction: column; gap: 26px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.tile-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; letter-spacing: 0.4px; }
.tile-value { font-size: 15px; font-weight: 700; color: #1b3520; word-break: break-word; }
.tile-value.accent { color: var(--green); }

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1b3520;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--green-mid);
}
.section-text { color: #37474f; font-size: 15px; }
.section-text p + p { margin-top: 12px; }

.steps-list { list-style: none; counter-reset: step; margin-top: 8px; }
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 38px;
  color: #37474f;
  font-size: 15px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-mist);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mistakes-list { list-style: none; margin-top: 8px; }
.mistakes-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: #8d5a4b;
  font-size: 15px;
}
.mistakes-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #c97b60;
  font-weight: 700;
}
.facts-note {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--green-mist);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 13.5px;
}

.owner-source { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); word-break: break-all; }
.owner-source a { color: var(--green); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.source-list { display: flex; flex-direction: column; gap: 6px; }
.source-list a {
  color: var(--green);
  font-size: 13.5px;
  word-break: break-all;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.notfound { text-align: center; padding: 70px 0; }
.notfound h2 { color: #1b3520; font-size: 24px; margin-bottom: 10px; }
.notfound p { color: var(--muted); margin-bottom: 18px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-inner { padding: 10px 14px; }
  .hero { padding: 46px 14px 40px; }
  .container { padding: 24px 14px 46px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .detail-hero { min-height: 220px; }
}
