* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #2d2d2d;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #2d2d2d;
  transition: 0.25s ease;
}

ul {
  list-style: none;
}

.container {
  width: 1200px;
  margin: 0 auto;
  padding: 25px;
}

/* 导航栏 */
.nav {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #ff6b00;
  letter-spacing: 1px;
}

.nav-menu a {
  margin-left: 28px;
  font-size: 16px;
  font-weight: 500;
}

.nav-menu a:hover {
  color: #ff6b00;
  transform: translateY(-1px);
}

/* 登录注册卡片 */
.form-box {
  width: 440px;
  margin: 90px auto;
  background: #fff;
  padding: 50px 45px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.form-title {
  text-align: center;
  margin-bottom: 36px;
  font-size: 26px;
  color: #ff6b00;
  font-weight: 600;
}

.form-item {
  margin-bottom: 24px;
}

.form-item label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  color: #555;
  font-weight: 500;
}

.form-item input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: 0.25s;
}

.form-item input:focus {
  border-color: #ff6b00;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-btn {
  width: 100%;
  height: 52px;
  background-color: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

.form-btn:hover {
  background-color: #f55d00;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.25);
}

.form-link {
  text-align: center;
  margin-top: 24px;
  font-size: 15px;
  color: #666;
}

.form-link a {
  color: #ff6b00;
  font-weight: 500;
}

/* 首页商品列表 */
.goods-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.goods-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f2f2f2;
}

.goods-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
}

.goods-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.goods-info {
  padding: 18px;
}

.goods-title {
  font-size: 16px;
  margin-bottom: 10px;
  height: 44px;
  overflow: hidden;
  font-weight: 500;
}

.goods-price {
  color: #ff6b00;
  font-size: 20px;
  font-weight: bold;
}

/* 商品详情 */
.detail-box {
  display: flex;
  gap: 50px;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  margin-top: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.detail-img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-info {
  flex: 1;
}

.detail-title {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.detail-price {
  font-size: 34px;
  color: #ff6b00;
  font-weight: bold;
  margin-bottom: 24px;
}

.detail-desc {
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 36px;
}

.detail-btn {
  display: flex;
  gap: 18px;
}

.collect-btn, .cart-btn {
  width: 160px;
  height: 54px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.collect-btn {
  background-color: #fff;
  border: 1px solid #ff6b00;
  color: #ff6b00;
}

.collect-btn:hover {
  background: #fff3eb;
}

.collect-btn.active {
  background-color: #ff6b00;
  color: #fff;
}

.cart-btn {
  background-color: #ff6b00;
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.25);
}

/* 个人中心 */
.user-box {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  margin-top: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.user-title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

.cart-list {
  margin-top: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #f5f5f5;
  border-radius: 10px;
  transition: 0.2s;
}

.cart-item:hover {
  background: #fafafa;
}

.cart-img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  margin-right: 22px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cart-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.cart-price {
  width: 110px;
  color: #ff6b00;
  font-weight: bold;
  font-size: 18px;
  text-align: right;
}

/* 悬浮购物车 */
.fixed-cart {
  position: fixed;
  right: 35px;
  bottom: 55px;
  width: 68px;
  height: 68px;
  background-color: #ff6b00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);
  cursor: pointer;
  z-index: 999;
  transition: 0.25s;
}

.fixed-cart:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
}
/* 自定义文件上传区域 */
.upload-box {
    position: relative;
    width: 100%;
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.upload-box input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-txt {
    line-height: 46px;
    text-align: center;
    color: #666;
    font-size: 15px;
}