body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  background: #fafafa;
}
header {
  background: #ffb6c1;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 2px;
}
.flower-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}
.flower-item {
  background: #fff;
  border-radius: 10px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
  width: 150px;
  text-align: center;
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.flower-item:hover {
  transform: translateY(-5px) scale(1.03);
}
.flower-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.flower-name {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
}
.flower-price {
  color: #e91e63;
  margin-top: 0.2rem;
  font-size: 1rem;
}
/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 90vw;
  width: 320px;
  text-align: center;
  position: relative;
}
.modal-content img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}
@media (max-width: 600px) {
  .flower-list {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .flower-item {
    width: 45vw;
    min-width: 120px;
    padding: 0.5rem 0.2rem;
  }
  .modal-content {
    width: 95vw;
    padding: 1rem 0.2rem;
  }
  .modal-content img {
    width: 90vw;
    height: 90vw;
    max-width: 250px;
    max-height: 250px;
  }
}
.nav-bar {
  background: #fff0f6;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid #ffe4ec;
}
.nav-bar ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 0.5rem;
  list-style: none;
}
.nav-bar li {
  flex: 0 0 auto;
  margin: 0.5rem 0.5rem 0.5rem 0;
}
.nav-bar a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: #fff;
  color: #e91e63;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid #ffe4ec;
  transition: background 0.2s, color 0.2s;
}
.nav-bar a:hover, .nav-bar a:active {
  background: #e91e63;
  color: #fff;
}
@media (max-width: 600px) {
  .nav-bar ul {
    padding: 0 0.2rem;
  }
  .nav-bar a {
    font-size: 0.95rem;
    padding: 0.35rem 0.7rem;
  }
}
/* 顶部横幅 */
.banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.banner-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 2px;
}
.section-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e91e63;
  margin: 1.2rem 0 0.5rem 1rem;
  letter-spacing: 1px;
}
/* 新款推荐区 横向滑动 */
.recommend-list {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0 1rem 1rem 1rem;
}
.recommend-item {
  flex: 0 0 140px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  padding: 0.8rem 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.recommend-item:hover {
  transform: translateY(-3px) scale(1.03);
}
.recommend-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}
.rec-name {
  margin-top: 0.4rem;
  font-weight: bold;
  font-size: 1rem;
}
.rec-price {
  color: #e91e63;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}
/* 分类区 */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1rem 1rem 1rem;
  justify-content: flex-start;
}
.category-item {
  flex: 0 0 45%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  margin-bottom: 0.5rem;
  padding: 0.7rem 0.2rem 0.5rem 0.2rem;
}
.category-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}
.cat-name {
  margin-top: 0.3rem;
  font-weight: bold;
  font-size: 1rem;
}
.cat-desc {
  color: #888;
  font-size: 0.92rem;
  margin-top: 0.1rem;
}
/* 热卖标签 */
.hot-tag {
  display: inline-block;
  background: #e91e63;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 8px;
  padding: 0 0.5em;
  margin-left: 0.3em;
}
.flower-item.hot {
  border: 2px solid #ffe4ec;
}
/* 底部信息区 */
.footer {
  background: #fff0f6;
  color: #e91e63;
  text-align: center;
  padding: 1.2rem 0 0.7rem 0;
  font-size: 1rem;
  margin-top: 2rem;
  border-top: 1px solid #ffe4ec;
}
.footer div {
  margin-bottom: 0.3rem;
}
@media (max-width: 600px) {
  .banner, .banner img {
    height: 120px;
  }
  .banner-text {
    font-size: 1rem;
    bottom: 10px;
  }
  .recommend-list {
    gap: 0.5rem;
    padding: 0 0.5rem 0.7rem 0.5rem;
  }
  .recommend-item {
    flex: 0 0 110px;
    padding: 0.5rem 0.2rem;
  }
  .recommend-item img {
    width: 60px;
    height: 60px;
  }
  .category-list {
    gap: 0.5rem;
    padding: 0 0.5rem 0.7rem 0.5rem;
  }
  .category-item {
    flex: 0 0 48%;
    padding: 0.4rem 0.1rem 0.3rem 0.1rem;
  }
  .category-item img {
    width: 45px;
    height: 45px;
  }
  .footer {
    font-size: 0.92rem;
    padding: 0.7rem 0 0.4rem 0;
  }
}

/* 顶部绿色导航栏 */
.main-nav {
  background: #8dc21f;
  width: 100%;
  overflow-x: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
}
.main-nav li {
  flex: 0 0 auto;
  margin: 0.5rem 0.7rem 0.5rem 0;
}
.main-nav a {
  color: #fff;
  font-weight: bold;
  font-size: 1.08rem;
  text-decoration: none;
  padding: 0.3rem 1.1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.main-nav a:hover, .main-nav a:active {
  background: #fff;
  color: #8dc21f;
}

/* 三栏布局 */
.container {
  display: flex;
  max-width: 1300px;
  margin: 1.2rem auto 0 auto;
  gap: 1.2rem;
  padding: 0 1rem;
}
.sidebar {
  background: #f7fbe9;
  border-radius: 8px;
  padding: 1rem 0.7rem;
  min-width: 180px;
  max-width: 220px;
  font-size: 0.98rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.sidebar.left {
  margin-right: 0.5rem;
}
.sidebar.right {
  margin-left: 0.5rem;
}
.sidebar-title {
  font-weight: bold;
  color: #8dc21f;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}
.order-box {
  background: #fff;
  border-radius: 6px;
  padding: 0.7rem 0.5rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.order-title {
  color: #e67c1a;
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.order-phone .highlight {
  color: #e60012;
  font-weight: bold;
}
.quick-buy, .flower-type-list, .flower-purpose-list, .flower-target-list, .flower-knowledge-list {
  background: #fff;
  border-radius: 6px;
  padding: 0.5rem 0.3rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.quick-list, .flower-type-list, .flower-purpose-list, .flower-target-list, .flower-knowledge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin-bottom: 0.2rem;
}
.quick-list span, .flower-type-list span, .flower-purpose-list span, .flower-target-list span, .flower-knowledge-list span {
  background: #eaf6d5;
  color: #5a8c0a;
  border-radius: 3px;
  padding: 0.13rem 0.6rem;
  font-size: 0.97rem;
  margin-bottom: 0.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.quick-list span:hover, .flower-type-list span:hover, .flower-purpose-list span:hover, .flower-target-list span:hover, .flower-knowledge-list span:hover {
  background: #8dc21f;
  color: #fff;
}

/* 主内容区 */
.main-content {
  flex: 1 1 0;
  min-width: 0;
}
.recommend-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.7rem;
  justify-content: flex-start;
}
.recommend-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  padding: 0.7rem 0.5rem 0.5rem 0.5rem;
  width: 170px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.recommend-item:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.recommend-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.main-ad {
  margin: 0.7rem 0 1.1rem 0;
  text-align: center;
}
.main-ad img {
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.main-section {
  margin-bottom: 1.2rem;
}
.section-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #e67c1a;
  margin-bottom: 0.5rem;
  margin-left: 0.2rem;
}
.product-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.product-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  padding: 0.7rem 0.5rem 0.5rem 0.5rem;
  width: 170px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0.5rem;
}
.product-item:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.product-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 右侧栏 */
.sidebar.right {
  background: #f7fbe9;
  border-radius: 8px;
  padding: 1rem 0.7rem;
  min-width: 180px;
  max-width: 220px;
  font-size: 0.98rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.side-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.side-product-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 0.5rem 0.3rem;
  text-align: center;
}
.side-product-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.2rem;
}

/* 响应式布局 */
@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    gap: 0.7rem;
  }
  .sidebar.left, .sidebar.right {
    max-width: 100%;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.7rem 0.3rem;
  }
  .main-content {
    order: 2;
  }
  .sidebar.left {
    order: 1;
  }
  .sidebar.right {
    order: 3;
  }
}
@media (max-width: 600px) {
  .main-nav ul {
    padding: 0 0.2rem;
  }
  .main-nav a {
    font-size: 0.97rem;
    padding: 0.25rem 0.7rem;
  }
  .container {
    padding: 0 0.2rem;
  }
  .recommend-row, .product-row {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .recommend-item, .product-item {
    width: 46vw;
    min-width: 120px;
    padding: 0.4rem 0.1rem 0.3rem 0.1rem;
  }
  .recommend-item img, .product-item img {
    width: 70px;
    height: 70px;
  }
  .main-ad img {
    width: 100%;
    max-width: 100%;
  }
  .sidebar.left, .sidebar.right {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.1rem;
  }
  .side-product-item img {
    width: 45px;
    height: 45px;
  }
}

/* 红色主题鲜花买花网站样式 */
.simple-nav {
  background: linear-gradient(90deg, #e60012 60%, #ff4b6e 100%);
  width: 100%;
  box-shadow: 0 4px 16px rgba(230,0,18,0.10);
  border-radius: 0 0 18px 18px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
}
.simple-nav ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 1.2rem 3rem 1rem 2rem;
  list-style: none;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.simple-nav ul::-webkit-scrollbar {
  display: none;
}
.simple-nav li {
  margin: 0 0.5rem;
  flex: 0 0 auto;
}
.simple-nav a {
  color: #fff;
  font-weight: bold;
  font-size: 1.08rem;
  text-decoration: none;
  /* padding: 0.45rem 1.5rem; */
  border-radius: 22px;
  /* background: rgba(255,255,255,0.08); */
  /* box-shadow: 0 2px 8px rgba(230,0,18,0.08); */
  /* border: 1.5px solid #fff0f2; */
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: inline-block;
  margin-bottom: 0.1rem;
  letter-spacing: 1px;
}
.simple-nav a:hover, .simple-nav a:active {
  background: #fff;
  color: #e60012;
  box-shadow: 0 4px 16px rgba(230,0,18,0.18);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 700px) {
  .simple-nav ul {
    padding: 0.2rem 0.2rem;
    gap: 0.2rem;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .simple-nav li {
    margin: 0 0.2rem;
  }
  .simple-nav a {
    font-size: 0.97rem;
    padding: 0.32rem 0.9rem;
    border-radius: 16px;
    margin-bottom: 0;
  }
}

.simple-flower-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2.5rem 1rem 1.5rem 1rem;
}
.simple-flower-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(230,0,18,0.10);
  width: 240px;
  text-align: center;
  padding: 2rem 1rem 1.2rem 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.simple-flower-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 32px rgba(230,0,18,0.18);
}
.simple-flower-item img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.flower-title {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.flower-price {
  color: #e60012;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.simple-footer {
  background: #fff0f2;
  color: #e60012;
  text-align: center;
  padding: 2rem 0 1.2rem 0;
  margin-top: 2rem;
  border-top: 1px solid #ffd6db;
}
.simple-footer h3 {
  color: #e60012;
  margin-bottom: 1rem;
}
.simple-footer ol {
  display: inline-block;
  text-align: left;
  margin: 0 auto 1rem auto;
  padding-left: 1.2em;
  color: #444;
}
.footer-note {
  color: #bbb;
  font-size: 0.98rem;
  margin-top: 0.7rem;
}

@media (max-width: 900px) {
  .simple-flower-list {
    gap: 1rem;
    padding: 1.5rem 0.2rem 1rem 0.2rem;
  }
  .simple-flower-item {
    width: 44vw;
    min-width: 160px;
    padding: 1rem 0.2rem 0.7rem 0.2rem;
  }
  .simple-flower-item img {
    width: 100px;
    height: 100px;
  }
}
@media (max-width: 600px) {
  .simple-flower-list {
    gap: 0.7rem;
    padding: 1.2rem 0.2rem 0.7rem 0.2rem;
  }
  .simple-flower-item {
    width: 90vw;
    min-width: 120px;
    padding: 0.7rem 0.1rem 0.5rem 0.1rem;
  }
  .simple-flower-item img {
    width: 70vw;
    height: 70vw;
    max-width: 180px;
    max-height: 180px;
  }
}

.circle-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 1.2rem 0 1.5rem 0;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 0 1rem;
}
.circle-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e60012 70%, #ff4b6e 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(230,0,18,0.10);
  border: 2.5px solid #fff0f2;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 0.1rem;
  user-select: none;
}
.circle-nav-btn:hover, .circle-nav-btn:active {
  background: #fff;
  color: #e60012;
  box-shadow: 0 4px 16px rgba(230,0,18,0.18);
  transform: translateY(-2px) scale(1.08);
  border-color: #e60012;
}
@media (max-width: 700px) {
  .circle-nav {
    gap: 0.5rem;
    padding: 0 0.2rem;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .circle-nav-btn {
    width: 54px;
    height: 54px;
    font-size: 0.97rem;
    border-width: 2px;
  }
} 