﻿/* ============================================================
   骑二手 · 经典二手自行车 · 样式
   ============================================================ */
:root {
  --bg: #f6f1e7;
  --surface: #ffffff;
  --ink: #241f1a;
  --ink-soft: #6b6257;
  --line: #e6ddce;
  --accent: #c0452e;
  --accent-2: #0e7c6b;
  --cream: #efe7d8;
  --shadow: 0 14px 34px rgba(60, 45, 25, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text, .brand-name {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7em 1.25em;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(192, 69, 46, 0.28); }
.btn-primary:hover { background: #a93a26; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 0.45em 0.95em; font-size: 0.85rem; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.35rem; }
.brand-text small { font-family: system-ui, sans-serif; font-size: 0.62rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.12em; }
.nav { margin-left: auto; display: flex; gap: 1.4rem; }
.nav-link { font-size: 0.95rem; color: var(--ink-soft); position: relative; padding: 0.2rem 0; }
.nav-link:hover { color: var(--ink); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.nav-link:hover::after { transform: scaleX(1); }
.header-cta { margin-left: 0.5rem; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 90% -10%, rgba(14, 124, 107, 0.14), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(192, 69, 46, 0.10), transparent 55%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0 3rem; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.28em; color: var(--accent); text-transform: uppercase; font-weight: 700; margin: 0 0 1rem; }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; margin: 0 0 1.2rem; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2.4rem; list-style: none; padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: Georgia, serif; font-size: 1.9rem; color: var(--ink); }
.hero-stats span { font-size: 0.82rem; color: var(--ink-soft); }
.hero-art { position: relative; }
.hero-bike { width: 100%; height: auto; color: var(--accent-2); }
.hero-bike svg { width: 100%; height: auto; display: block; }
.hero-bike .frame { stroke-width: 6; }
.hero-bike .dark .tire { stroke: #2b2b2b; stroke-width: 7; fill: none; }
.hero-bike .dark .rim { stroke: #6b6257; stroke-width: 2; fill: none; }
.hero-bike .dark .hub { fill: #2b2b2b; }
.hero-bike .dark line { stroke: #b7ad9d; stroke-width: 1.2; }
.hero-bike .arc { stroke: rgba(14, 124, 107, 0.16); stroke-width: 1.5; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { margin-top: -1rem; } }

/* ---------- 通用分节 ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 620px; margin-bottom: 2.2rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 0.5rem; }
.section-lead { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }

/* ---------- 筛选区 ---------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: end; }
.filter-row + .filter-row { margin-top: 1rem; }
.search-wrap { flex: 1 1 240px; position: relative; }
.search-icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 1.2rem; }
.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.65rem 1rem 0.65rem 2.3rem;
  font-size: 0.95rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field > label, .field-label { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; }
select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.6rem 2.2rem 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6257' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.filter-tags { align-items: start; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent-2); color: var(--accent-2); }
.chip[aria-pressed="true"] { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

/* ---------- 结果与网格 ---------- */
.result-line { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.empty { color: var(--ink-soft); padding: 3rem 0; text-align: center; }
.list-note { color: var(--ink-soft); font-size: 0.8rem; margin: -0.4rem 0 1.2rem; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand, var(--accent));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(60, 45, 25, 0.12); }
.card-art {
  height: 156px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 9%, #fff), #fff 70%);
  padding: 1rem;
}
.card-art svg { width: 86%; height: auto; }
.card-art .frame { stroke-width: 4.5; fill: none; }
.card-art .bar { stroke-width: 4.5; }
.card-art .seat { stroke: #2b2b2b; stroke-width: 3; }
.card-art .tire { stroke: #2b2b2b; stroke-width: 5; fill: none; }
.card-art .rim { stroke: #9a9184; stroke-width: 1.6; fill: none; }
.card-art .hub { fill: #2b2b2b; }
.card-art line { stroke: #c2b9a9; stroke-width: 0.8; }

.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.card-brand { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--brand, var(--accent)); text-transform: uppercase; }
.card-era { font-size: 0.72rem; color: var(--ink-soft); background: var(--cream); padding: 0.14rem 0.55rem; border-radius: 999px; }
.card-model { font-size: 1.22rem; margin: 0 0 0.5rem; }
.card-model .card-year { font-size: 0.8rem; color: var(--ink-soft); font-family: system-ui, sans-serif; font-weight: 500; }
.card-desc { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 0.9rem; }
.card-specs { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.8rem; font-size: 0.84rem; }
.card-specs span { color: var(--ink-soft); margin-right: 0.35rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); }
.card-price { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; color: var(--accent); }

/* ---------- 品牌墙 ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.brand-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); margin-bottom: 0.4rem; box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.brand-name { font-size: 1.4rem; }
.brand-meta { font-size: 0.8rem; color: var(--ink-soft); }
.brand-tagline { font-size: 0.86rem; color: var(--ink-soft); }
.brand-count { margin-top: auto; font-size: 0.78rem; color: var(--brand, var(--accent)); font-weight: 700; padding-top: 0.6rem; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 2.2rem; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.about-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.about-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.4rem; }
.step { display: flex; gap: 0.9rem; align-items: flex-start; }
.step-num { font-family: Georgia, serif; font-size: 1.8rem; color: var(--accent); line-height: 1; }
.step h4 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
@media (max-width: 760px) { .about-grid, .steps { grid-template-columns: 1fr; } }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 0.8rem; padding: 1rem 1.2rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.faq code { background: var(--cream); padding: 0.12rem 0.4rem; border-radius: 6px; }

.disclaimer { margin-top: 1.8rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.disclaimer h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.disclaimer p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 2.4rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand { font-family: Georgia, serif; font-size: 1.2rem; margin: 0; }
.footer-note { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.footer-top { color: var(--accent); font-size: 0.9rem; margin-top: 0.6rem; }

/* ---------- 弹窗 ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: 760px; width: 92%; border-radius: var(--radius); }
.modal::backdrop { background: rgba(30, 24, 20, 0.45); backdrop-filter: blur(3px); }
.modal-inner { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.modal-art { display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 12%, #fff), #fff 70%); padding: 2rem; }
.modal-art svg { width: 90%; }
.modal-art .frame { stroke-width: 4.5; fill: none; }
.modal-art .bar { stroke-width: 4.5; }
.modal-art .seat { stroke: #2b2b2b; stroke-width: 3; }
.modal-art .tire { stroke: #2b2b2b; stroke-width: 5; fill: none; }
.modal-art .rim { stroke: #9a9184; stroke-width: 1.6; fill: none; }
.modal-art .hub { fill: #2b2b2b; }
.modal-art line { stroke: #c2b9a9; stroke-width: 0.8; }
.modal-close { position: absolute; top: 0.7rem; right: 0.9rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; line-height: 1; z-index: 2; }
.modal-body { padding: 2rem; }
.modal-brand { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand, var(--accent)); font-weight: 700; margin: 0 0 0.3rem; }
.modal-model { font-size: 1.7rem; margin: 0 0 0.6rem; }
.modal-model span { font-size: 1rem; color: var(--ink-soft); font-family: system-ui, sans-serif; font-weight: 500; }
.modal-desc { color: var(--ink-soft); margin: 0 0 1.2rem; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; margin: 0 0 1.2rem; }
.modal-specs div { display: flex; flex-direction: column; }
.modal-specs dt { font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.modal-specs dd { margin: 0; font-weight: 600; }
.modal-specs .modal-price { color: var(--accent); font-family: Georgia, serif; font-size: 1.3rem; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.76rem; background: var(--cream); padding: 0.2rem 0.6rem; border-radius: 999px; color: var(--ink-soft); }
@media (max-width: 640px) { .modal-inner { grid-template-columns: 1fr; } .modal-art { padding: 1.4rem; } .modal-body { padding: 1.4rem; } .modal-specs { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } scroll-behavior: auto; }
