/* ============================================================
   鲜花店大全 - 响应式样式
   ============================================================ */

/* ---------- 重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #f7f8fa;
}
a { color: #e91e63; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 20px;
  font-weight: bold;
  color: #e91e63;
}
.logo:hover { text-decoration: none; }
.nav {
  display: flex;
  gap: 20px;
}
.nav a {
  color: #333;
  font-size: 15px;
  padding: 6px 0;
}
.nav a:hover { color: #e91e63; text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* ---------- 主体 ---------- */
main.container {
  padding-top: 20px;
  padding-bottom: 40px;
  min-height: 60vh;
}

/* ---------- 搜索框 ---------- */
.search-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}
.search-box form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e91e63;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  outline: none;
}
.search-box button {
  padding: 12px 30px;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  cursor: pointer;
}
.search-box button:hover { background: #d0185a; }

/* ---------- 区块 ---------- */
.section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.section h2 {
  font-size: 18px;
  margin-bottom: 15px;
  border-left: 4px solid #e91e63;
  padding-left: 10px;
  color: #333;
}

/* ---------- 城市标签 ---------- */
.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.city-tags a {
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 20px;
  color: #333;
  font-size: 14px;
}
.city-tags a:hover {
  background: #e91e63;
  color: #fff;
  text-decoration: none;
}

/* ---------- 省份列表 ---------- */
.province-list { display: flex; flex-direction: column; gap: 10px; }
.letter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}
.letter-group:last-child { border-bottom: none; }
.letter {
  font-weight: bold;
  color: #e91e63;
  width: 24px;
  font-size: 15px;
}
.letter-group a {
  padding: 4px 10px;
  background: #f7f8fa;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
}
.letter-group a:hover {
  background: #e91e63;
  color: #fff;
  text-decoration: none;
}

/* ---------- 花店卡片网格 ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}
.shop-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  transition: all .2s;
  color: #333;
}
.shop-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-2px);
  text-decoration: none;
  border-color: #e91e63;
}
.shop-card h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-card p {
  font-size: 14px;
  color: #666;
  margin: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-card .phone {
  color: #e91e63;
  font-weight: 500;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #999;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #e91e63; }

/* ---------- 筛选条 ---------- */
.filter-bar {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
  align-items: center;
  font-size: 14px;
}
.filter-row > span:first-child {
  color: #999;
  min-width: 50px;
}
.filter-row a {
  padding: 4px 12px;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
}
.filter-row a:hover { background: #f0f0f0; text-decoration: none; }
.filter-row a.active {
  background: #e91e63;
  color: #fff;
}

/* ---------- 详情页 ---------- */
.shop-detail {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.shop-detail h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.4;
}
.shop-info p {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 15px;
  color: #555;
}
.shop-info p:last-child { border-bottom: none; }
.shop-info strong { color: #333; min-width: 80px; display: inline-block; }
.shop-info a { color: #e91e63; font-weight: 500; }
.shop-content {
  padding: 15px 0;
  color: #555;
  line-height: 1.8;
  font-size: 15px;
}
.btn-call {
  display: block;
  text-align: center;
  background: #e91e63;
  color: #fff;
  padding: 14px;
  border-radius: 4px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
}
.btn-call:hover {
  background: #d0185a;
  text-decoration: none;
  color: #fff;
}

/* ---------- 分页 ---------- */
.pagination {
  text-align: center;
  margin: 30px 0;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
}
.pagination a:hover {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
  text-decoration: none;
}
.pagination a.active {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}
.pagination span {
  border: none;
  background: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #333;
  color: #999;
  padding: 25px 15px;
  margin-top: 40px;
  font-size: 13px;
  text-align: center;
  line-height: 1.8;
}
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links { margin-bottom: 10px; }
.site-footer .disclaimer {
  color: #888;
  font-size: 12px;
  max-width: 700px;
  margin: 10px auto;
}
.site-footer p { margin: 4px 0; }

/* ---------- 手机端 ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav a:last-child { border-bottom: none; }

  .shop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .shop-card { padding: 12px; }
  .shop-card h3 { font-size: 14px; }
  .shop-card p { font-size: 12px; }

  .shop-detail { padding: 18px; }
  .shop-detail h1 { font-size: 20px; }

  .search-box { padding: 20px 15px; }
  .search-box input { font-size: 15px; padding: 10px 12px; }
  .search-box button { padding: 10px 20px; font-size: 15px; }

  .section { padding: 15px; }
  .section h2 { font-size: 16px; }

  .filter-row > span:first-child { width: 100%; }
}

@media (max-width: 400px) {
  .shop-grid { grid-template-columns: 1fr; }
  .logo { font-size: 18px; }
}