* {
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"微软雅黑"
}
ul{
  list-style:none
}
a{
  text-decoration:none;
  color:#333
}
.container{
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header {
    background: #2E86AB;
    color: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 9999;
}
/* 左侧Logo */
.logo {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1.5px;
    min-width: 220px;
}
/* 中间导航 */
.nav-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
    padding: 0;
    margin: 0;
}
.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}
.nav-list a:hover {
    color: #e3f2fd;
}
.nav-list a.active {
  background: rgba(255,255,255,0.25) !important;
  border-radius: 8px !important;
  font-weight: bold !important;
}

/* 搜索框*/
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    justify-content: flex-end;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
}
.search-box input {
    width: 220px;
    height: 36px;
    padding: 0 10px;
    border: none;
    border-radius: 18px 0 0 18px;
    outline: none;
}
.search-box button {
    height: 36px;
    padding: 0 15px;
    background: #FFD166;
    border: none;
    border-radius: 0 18px 18px 0;
    cursor: pointer;
}

/* 个人中心右侧按钮样式 */
.user-action {
    display: flex;
    gap: 12px;
    align-items: center;
}
.logout-btn {
    background: #ff4d4f !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: 0.2s !important;
}
.logout-btn:hover {
    background: #e04446 !important;
}

.category-tabs-full {
  display: flex;
  margin: 20px 0;
  padding: 0;
  background-color: #f8f9fa;
  border-radius: 8px;
  width: 100%;
}
.category-tab {
    display: block;
    padding: 16px 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border-left: 3px solid transparent;
    font-size: 16px;
    line-height: 1.4;
}
.category-tab.active {
    background: #e3f2fd;
    color: #409EFF;
    border-left-color: #409EFF;
}
.category-tab:hover {
    background: #f0f0f0;
}

.goods-item{
  border:1px solid #eee;
  border-radius:8px;
  width:23%;
  float:left;
  margin:1%;
  padding:0;
  overflow:hidden;
  cursor:pointer;
  transition: all 0.25s ease;
  background: #fff;
}
.goods-item:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.goods-item img{
  width:100%;
  height:170px;
  object-fit:cover;
  display:block;
}
.goods-text{
  padding:14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.goods-text h4{
  font-size:16px;
  color:#333;
  font-weight:500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  flex: 1;
  margin-left: 10px;
}
.price{
  color:#f56c6c;
  font-weight:bold;
  font-size:18px;
  margin-bottom: 0;
  white-space: nowrap;
}
.goods-text p{
  font-size:14px;
  color:#666;
}

.form-box{
  width:500px;
  margin:30px auto;
  border:1px solid #eee;
  padding:30px;
  border-radius:8px
}
.form-item{
  margin:15px 0
}
.form-item label{
  display:block;
  margin-bottom:6px
}
.form-item input,.form-item select,.form-item textarea{
  width:100%;
  padding:10px;
  border:1px solid #ccc;
  border-radius:4px
}
.btn{
  padding:10px 24px;
  background:#409EFF;
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer
}
.btn-danger{
  background:#f56c6c
}

.admin-wrap{
  display:flex
}
.admin-left{
  width:200px;
  background:#304156;
  color:#fff;
  min-height:calc(100vh - 54px)
}
.admin-left li{
  padding:15px 20px;
  border-bottom:1px solid #435466
}
.admin-left a{
  color:#fff
}
.admin-right{
  flex:1;
  padding:20px
}

.clearfix::after{
  content:"";
  display:block;
  clear:both
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  width: 520px;
  padding: 24px;
  border-radius: 12px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}
.modal-close:hover {
  color: #333;
}
.modal-content h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}
.modal-content img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}
.modal-content p {
  font-size: 15px;
  color: #555;
  margin: 8px 0;
  line-height: 1.6;
}