/* ===== 闲鱼风格主题 ===== */

/* -- 全局重置 -- */
body {
  min-width: 320px !important;
  background: #f5f5f5 !important;
  color: #333 !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #333; text-decoration: none; }
a:hover { color: #ff5000; text-decoration: none; }

/* -- 主容器 -- */
.mainwidth {
  background: transparent !important;
}
.pbody { background: #f5f5f5; }

/* -- 顶部导航栏 -- */
.header {
  background: #fff !important;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 0;
}
.headtop {
  display: flex;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
}
.headtop .place { flex: 1; min-width: 200px; }
.headtop .topright { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.headtop .topright a { color: #666; }
.headtop .topright a:hover { color: #ff5000; }

/* 搜索框 - 闲鱼风 */
.search_form {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.search_form:focus-within {
  background: #fff;
  border-color: #ff5000;
  box-shadow: 0 0 0 3px rgba(255,80,0,0.1);
}
.search_input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  color: #333 !important;
  outline: none !important;
  height: auto !important;
  line-height: 20px !important;
  width: auto !important;
}
.search_input::placeholder { color: #bbb; }
.search_button {
  width: 36px !important;
  height: 36px !important;
  background: #ff5000 !important;
  border: none !important;
  border-radius: 50% !important;
  margin: 3px !important;
  cursor: pointer;
  position: relative;
}
.search_button::after {
  content: "🔍";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 14px;
}

/* -- Logo区域 -- */
.logobox {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  margin: 0 auto 8px !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  text-align: center;
  padding: 12px 0 4px;
}
.logobox .logo img { max-width: 140px; max-height: 45px; }

/* -- 导航栏 -- */
.nav {
  background: #ff5000 !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav li { float: none !important; display: inline-block; }
.nav li a {
  display: block !important;
  width: auto !important;
  padding: 10px 18px !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 14px !important;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.nav li a:hover,
.nav li.active a {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
  border-bottom-color: #fff;
  text-decoration: none;
}

/* -- 轮播Banner -- */
.newbanner {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
.newflexslider { margin: 0; }
.newflexslider .newslides img { width: 100%; display: block; }

/* -- 产品区块标题 -- */
.toptitle {
  padding: 20px 0 12px;
  text-align: center;
}
.toptitle .titlein {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  position: relative;
  padding: 0 24px;
}
.toptitle .titlein::before,
.toptitle .titlein::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #ff5000;
  border-radius: 1px;
}
.toptitle .titlein::before { left: 0; }
.toptitle .titlein::after { right: 0; }
.toptitle .en {
  display: block;
  font-size: 12px;
  color: #999;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}

/* -- 产品列表卡片 -- */
.indprolist {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0;
}
.indprolist li {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}
.indprolist li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.indprolist .img {
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 100% !important;
  position: relative;
  overflow: hidden;
  background: #fafafa;
}
.indprolist .img a {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.indprolist .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.indprolist li:hover .img img { transform: scale(1.05); }
.indprolist .title {
  padding: 10px 12px 4px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.indprolist .price {
  padding: 0 12px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #ff5000;
}
.indprolist .price::before { content: "¥"; font-size: 13px; }

/* -- 分类页 -- */
.promenu {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.promenu .cake { display: flex; flex-wrap: wrap; gap: 8px; }
.promenu .cake a {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  transition: all 0.2s;
}
.promenu .cake a.active,
.promenu .cake a:hover {
  background: #ff5000;
  color: #fff;
  text-decoration: none;
}

/* -- 产品列表 (prolist) -- */
.prolist { display: flex; flex-wrap: wrap; }
.prolist li {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.prolist li:hover { transform: translateY(-2px); }

/* -- 详情页 -- */
.alizi-detail-wrap {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.alizi-detail-header {
  background: linear-gradient(135deg, #ff5000, #ff7a45);
  color: #fff;
  padding: 20px;
}
.alizi-detail-header dt { color: #fff !important; font-size: 20px; font-weight: 600; }
.alizi-detail-header .title img { max-width: 120px; max-height: 40px; }
.booking-now {
  display: inline-block;
  background: #fff;
  color: #ff5000 !important;
  padding: 8px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
  text-decoration: none !important;
}
.booking-now:hover {
  background: #fff5f0;
  transform: scale(1.03);
}

/* -- 订单表单 -- */
.alizi-order {
  background: #fff !important;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.alizi-order input[type="text"],
.alizi-order input[type="tel"],
.alizi-order input[type="number"],
.alizi-order textarea,
.alizi-order select {
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: border-color 0.2s;
  background: #fafafa !important;
}
.alizi-order input:focus,
.alizi-order textarea:focus,
.alizi-order select:focus {
  border-color: #ff5000 !important;
  background: #fff !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,80,0,0.08);
}
.alizi-btn {
  background: #ff5000 !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 10px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #fff !important;
  transition: all 0.2s;
  cursor: pointer;
}
.alizi-btn:hover {
  background: #ff6b20 !important;
  box-shadow: 0 4px 12px rgba(255,80,0,0.3);
  transform: translateY(-1px);
}
.alizi-btn:active { transform: scale(0.97); }

/* -- 价格显示 -- */
.price, .alizi-price {
  color: #ff5000 !important;
  font-weight: 700 !important;
}

/* -- 成功/结果页 -- */
.result {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}
.result .order { padding: 30px 20px; }

/* -- 页脚 -- */
.footer {
  background: #333 !important;
  color: #999 !important;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 12px;
}
.footer a { color: #aaa; }
.footer a:hover { color: #fff; }

/* -- 查询页 -- */
.article-content { color: #333; line-height: 1.8; }

/* -- 响应式微调 -- */
@media (max-width: 768px) {
  .toptitle .titlein { font-size: 16px; }
  .indprolist .title { font-size: 13px; min-height: 34px; }
  .indprolist .price { font-size: 16px; }
  .alizi-detail-header { padding: 16px; }
  .alizi-detail-header dt { font-size: 17px; }
  .alizi-order { padding: 16px; }
  .booking-now { padding: 6px 18px; font-size: 14px; }
  .headtop { flex-direction: column; gap: 8px; }
  .header { padding-bottom: 8px; }
}
