/* ===== 简集商城 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

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

ul, li {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 顶部通知栏 ===== */
.top-bar {
  background: #f5f5f5;
  font-size: 12px;
  color: #666;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: #666;
  margin-left: 16px;
}
.top-bar a:hover {
  color: #ff5722;
}
.top-bar .login-link {
  color: #ff5722;
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 主导航 ===== */
.main-header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #333;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: #ff5722;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

/* 搜索框 */
.search-box {
  flex: 1;
  display: flex;
  max-width: 600px;
}
.search-box input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border: 2px solid #ff5722;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-size: 14px;
}
.search-box button {
  width: 80px;
  height: 40px;
  background: #ff5722;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
}

/* 头部右侧图标 */
.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  position: relative;
}
.header-action .icon {
  font-size: 20px;
  margin-bottom: 2px;
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== 分类导航 ===== */
.category-nav {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.category-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: #333;
}
.nav-links a.active {
  color: #ff5722;
  font-weight: 500;
}
.nav-links a:hover {
  color: #ff5722;
}
.delivery-info {
  font-size: 13px;
  color: #00b578;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: #999;
}
.breadcrumb a {
  color: #999;
}
.breadcrumb a:hover {
  color: #ff5722;
}
.breadcrumb span {
  margin: 0 8px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: #ff5722;
  color: #fff;
}
.btn-primary:hover {
  background: #f4511e;
}
.btn-outline {
  background: #fff;
  color: #ff5722;
  border: 1px solid #ff5722;
}
.btn-outline:hover {
  background: #fff5f2;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ===== 区块标题 ===== */
.section {
  padding: 40px 0;
}
.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.section-more {
  font-size: 13px;
  color: #ff5722;
  cursor: pointer;
}

/* ===== 商品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.product-card .product-img {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .product-info {
  padding: 12px;
}
.product-card .product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
  height: 39px;
  overflow: hidden;
}
.product-card .product-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.product-card .product-price {
  font-size: 18px;
  color: #ff5722;
  font-weight: 600;
}
.product-card .product-price .old-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  font-weight: normal;
  margin-left: 6px;
}

/* 商品标签 */
.product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
}
.product-tag.hot {
  background: #ff5722;
}
.product-tag.new {
  background: #00b578;
}
.product-tag.discount {
  background: #ff9500;
}
.product-img-wrap {
  position: relative;
}

/* ===== 底部 Footer ===== */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 50px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #999;
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 12px;
  }
  .nav-links {
    display: none;
  }
}
