/**
---------------------------------------弹窗购买部分CSS:Start-----------------------------------------------
 */
.open-commodity, .open-query {
    padding: 50px;
}

.commodity-di .general, .draft_status {
    font-size: 14px;
    color: #000000;
}

.commodity_name {
    text-align: center;        
    font-weight: bold;
    font-size: 1.5rem;
    padding-bottom: 1px;
    border-bottom: 2px dashed #183153;
    margin-bottom: 1px;
    color: #000000;
    line-height: 1.2;    /* 调整行间距 */
}

.layui-layer[type=page] {
    background: #fff !important;
    border-radius: 20px !important;
    width: 800px !important;    /* 👉 这里就是宽度，想多大写多大 */
  max-width: 95% !important;  /* 小屏幕自动适配 */
}

.layui-layer {
  box-shadow: rgba(24, 49, 83, 0.35) 0px 7px 29px 0px !important;

  background: -moz-linear-gradient(top, #ffffff 0%, #ffffff 100%) !important;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #ffffff)) !important;
  background: -webkit-linear-gradient(top, #ffffff 0%, #ffffff 100%) !important;
  background: -o-linear-gradient(top, #ffffff 0%, #ffffff 100%) !important;
  background: -ms-linear-gradient(top, #ffffff 0%, #ffffff 100%) !important;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 100%) !important;
}


.layui-layer-hui{
    font-weight: bold !important;
    color: #6793e8 !important;
    border-radius: 20px !important;
}

.layui-layer-content{
    border-radius: 20px !important;
}

.share_url {
    color: #8e8eefbd;
    cursor: pointer;
    font-size: 14px;
}

.description {
    font-size: 16px;
    color: #000000;
}

.description p {
    font-size: 16px !important;
    margin-bottom: 0 !important;
}

.seckill_end_time {
    color: #4caf50 !important;
}

.seckill_start_time {
    color: orangered !important;
}

.commodity-di .price {
    color: green;
    font-weight: bold;
    font-size: 14px !important;
}

.commodity-di .price_tips {
    color: #6772e5;
}

.delivery_way_hand {
    color: white;
    background: #ff000066;
    padding: 2px 4px;
    border-radius: 5px;
    font-size: 12px;
}

.delivery_way_auto {
    color: white;
    background: #00800078;
    padding: 2px 4px;
    border-radius: 5px;
    font-size: 12px;
}

.layui-layer-page input[type=text], .commodity-di input[type=number], .commodity-di input[type=password], .commodity-di input[type=email] {
    display: inline-block !important;
    width: 240px;
    height: 28px;
    background: rgba(255, 255, 255) !important;
    border-radius: 5px !important;
    padding-left: 6px !important;
    border: none;
}

.layui-layer-page textarea {
    background: rgba(255, 255, 255, .5);
    border-radius: 10px;
}

.layui-layer-page textarea:focus {
    outline: none;
}

.layui-layer-page input::placeholder {
    color: #6c6a6a !important;
}

.layui-layer-page input:focus {
    outline: none;
}


.purchase_num {
    width: 80px !important;
}

.card_count {
    color: #0fb183;
}

.card_count_general {
    color: #a5620f !important;
}

.card_count_immediately {
    color: #f16868 !important;
}


.card_count_unknown {
    color: #35b98e !important;
}

.card_count_empty {
    color: #d1d2d6 !important;
}

.purchase_count {
    display: none;
    color: #26fbdd;
}

.captcha-input {
    width: 120px !important;
}

.commodity-di .captcha {
    position: relative;
    top: -2px;
    cursor: pointer;
}

.trade_amount {
    font-weight: bold;
    color: #e72451;
}

.qq-service {
    color: #2aa2e3;
    padding: 0 4px 0 0;
    font-size: 12px;
    margin: 0 4px 0 0;
    border-radius: 5px;
}

.web-service {
    color: #183153;
    padding: 0 4px 0 4px;
    margin: 0;
    font-size: 12px;
    border-radius: 5px;
}

.pay-content {
    border-top: 1px dashed #183153;
    margin-top: 20px;
    padding-top: 10px;
}

.pay-content label {
    font-size: 16px;
    color: #bba0a3;
}

.pay-button {
    position: relative;
    margin: 0 4px 8px 0;
    background-color: rgba(70, 166, 255, 0.42);
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 2px 5px;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    -webkit-box-shadow: 0 1px 4px 0 #183153;
    box-shadow: 0 1px 4px 0 #183153;
    color: grey;
}

.pay-button:hover {
    color: white;
    background-color: rgba(227, 165, 165, 0.53);
}


.pay-button img {
    height: 22px;
    border-radius: 6px;
}

.pay_list {
    padding-top: 10px;
}

.draft_status {
    display: none;
}

.draft_status button[type=button] {
    border-radius: 5px;
    background-color: #183153;
    color: white;
    cursor: pointer;
    padding: 1px 5px 1px 5px;
    border: none;
}

.draft_status button[type=button]:focus {
    outline: none;
}

.draft_status button[type=button]:disabled {
    background-color: rgba(239, 239, 239, 0.3);
    color: grey;
}

.draft_premium {
    color: red;
}

.draft_status table {
    margin: 10px 0 5px 0;
}

.draft_status .draftCard label {
    font-size: 14px;
    color: grey;
}


.need-login {
    margin-top: 10px;
    font-size: 14px;
    color: #ed8181;
    font-weight: bold;
}

.need-login a {
    color: #526ccb;
}

/* 设置滚动条的样式 */
::-webkit-scrollbar {
    width: 5px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(246, 193, 193, 0.3);
    border-radius: 10px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(245, 196, 196, 0.1);
    -webkit-box-shadow: inset 0 0 6px rgba(236, 186, 186, 0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255, 0, 0, 0.2);
}

.lot {
    font-size: 12px;
    list-style-type: none;
    padding: 0;
    color: #0fb183;
}

.open-query .search-query {
    border: none;
    font-size: 14px;
    color: white;
    background: #e9b4ed;
    padding: 2px 10px;
    border-radius: 5px;
}

.open-query .search-value {
    width: 280px;
}

.open-query .search-query:focus {
    outline: none;
}

.open-query .search-page {
    border-bottom: 1px dashed #183153;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.open-query .hr-top {
    border-bottom: 1px dashed #183153;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.open-query .getCard {
    cursor: pointer;
    color: white;
    background: #183153;
    padding: 1px 5px;
    font-size: 14px;
    border-radius: 5px;
}

.open-query .card-textarea {
    border: 1px solid #f3c0c066;
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .open-commodity, .open-query {
        padding: 20px;
    }

    .layui-layer[type=page] {
        border-radius: 0 !important;
    }
}


/**
---------------------------------------弹窗购买部分CSS:End-----------------------------------------------
 */

.race-click {
    margin-right: 8px;
    padding: 1px 8px;
    text-align: center;
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 20%);
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    user-select: none;
    transition: all .3s ease;
}

.race-click.checked {
    border: 1px solid #03a9f4;
}

.category-list table tr th:nth-child(4), .category-list table tr td:nth-child(4) {
    position: relative;
    right: 0;
    width: 80px;
    text-align: center;
}

.category-list table tr th:nth-child(3), .category-list table tr td:nth-child(3) {
    position: relative;
    right: 0px;
    width: 80px;
    text-align: center;
}

.category-list table tr th:nth-child(2), .category-list table tr td:nth-child(2) {
    position: relative;
    right: 0px;
    width: 80px;
    text-align: center;
    margin: 0 20px;
}

@media screen and (max-width: 768px) {
    .category-list table tr th:nth-child(2), .category-list table tr td:nth-child(2) {
        right: 0;
    }

    .category-list table tr th:nth-child(3), .category-list table tr td:nth-child(3) {
        right: 0;
    }
}

.category-list table .head {
}

.category-list table .item {
    border-bottom: 1px solid #efefef;
}

.category-list table .item:nth-last-child(1) {
    border-bottom: none;
}


.category-list table .head th {
    padding: 10px 0;
    font-weight: bold !important;
    font-size: 14px;
}

.category-list table .item td {
    padding: 10px 0;
    font-size: 15px;
    font-weight: bolder;
}

.category-list table .head th:nth-child(1) {
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.category-list table .head th:nth-child(4) {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

.category-list table .item td:nth-child(1) {
    font-weight: bolder;
}

.category-list table .item td:nth-child(2) {
    color: #fd0000;
    padding-right: 2px;
}

.category-list table .item td:nth-child(3) {
    color: #2ec25d;
    padding-right: 5px;
}

.category-list table .item td:nth-child(4) a {
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 2px 5px;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    -webkit-box-shadow: 0 1px 4px 0 #183153;
    box-shadow: 0 1px 4px 0 #183153;
    color: grey;
}

p {
    font-size: 14px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  background: #f1f1f1;
  padding: 20px 15px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 999;
}

.sidebar .logo {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
  
}

.sidebar .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .nav-list li {
  margin: 12px 0;
}

.sidebar .nav-list li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.sidebar .nav-list li a:hover {
  color: #000;
  text-decoration: underline;
}

.content-wrapper {
  margin-left: 220px; /* 留出侧边栏宽度 */
  padding: 20px;
}
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .content-wrapper {
    margin-left: 0;
  }
}
/* 左侧导航栏宽度 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;   /* 根据你自己的导航宽度来定 */
  height: 100%;
  background: #f1f1f1;
  overflow-y: auto;
  z-index: 999;
}

/* 右侧主体内容 */
.content-wrapper {
  margin-left: 220px;  /* 留出侧栏宽度 */
  padding: 20px 40px;  /* 左右上下 padding，自由调 */
  box-sizing: border-box;
}

/* 卡片样式示例，可自定义 */
.card {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.card-title {
  font-weight: bold;
  font-size: 20px;
}

/* 手机端隐藏侧栏，右侧全宽 */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .content-wrapper {
    margin-left: 0;
    padding: 20px 20px; /* 可根据需要调小左右 padding */
  }
}
/* 公告卡片往上顶一点 */
.content-wrapper {
  margin-left: 220px;
  padding: 10px 40px; /* 上下留小一点，左右留着防止内容贴边 */
}

.content-wrapper .card:first-child {
  margin-top: 0;
}
.navbar .container {
  display: flex;
  align-items: center;
}

.navbar-brand {
  padding-left: 20px;
}

.header-nav-right {
  margin-left: auto;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .content-wrapper {
    margin-left: 0;   /* ✅ 这句是关键！手机端把留给侧栏的空位去掉 */
    padding: 20px;    /* ✅ 给点左右内边距，防止内容贴边 */
  }
}

/* 手机端：还原 padding */
@media (max-width: 768px) {
  .navbar-brand {
    padding-left: 20px !important; /* 或 10px，随你 */
  }
}

.sidebar-actions {
  margin: 10px 0;
  text-align: center;
}

.sidebar-actions a {
  display: inline-block;
  margin: 5px 8px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.sidebar-actions i {
  margin-right: 4px;
}


/* 分类菜单字体放大 */
.nav-list li a {
  font-size: 18px;
}

.nav-list a i {
  font-size: 18px;
  margin-right: 6px;
}

/* 上方快捷按钮也放大（可选） */
.sidebar-actions a {
  font-size: 18px;
}

.sidebar-actions i {
  font-size: 18px;
}
/* LOGO区 */
.logo {
  text-align: center;
  margin: 30px 0 20px;
}

.logo-title {
  font-size: 18px;
  font-weight: bold;
}

.logo-subtitle {
  font-size: 14px;
  margin-top: 4px;
  color: #000;
}

/* 快捷按钮区 */
.sidebar-actions {
  text-align: center;
  margin-bottom: 20px;
}

.sidebar-actions a {
  display: inline-block;
  background: #fff;         /* 可选：加底色小圆角 */
  color: #000;
  padding: 6px 12px;
  margin: 4px 6px;
  border-radius: 20px;      /* 圆角按钮 */
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-actions a:hover {
  background: #f0f0f0;
}

/* 分类导航区 */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 8px 0;
}

.nav-list li a {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #000;
  text-decoration: none;
  margin: 10px 0;       /* 保留行距 */
  padding-left: 15px;   /* 整个项目缩进 */
}

.nav-list li a i {
  margin-right: 8px;
  font-size: 16px;
}


.logo {          /* 这个是大图logo，可以用这个控制侧边栏 */
  text-align: center;
  margin: 20px 0 20px;
}

.logo-title {
  font-size: 22px;
  font-weight: bold;
}

.logo-subtitle {
  font-size: 18px;
  margin-top: 4px;
  color: #000;
}


.sidebar {
  padding: 0px 0;         /* 上下留 20px */
  display: flex;
  flex-direction: column;  /* 垂直排列 */
  justify-content: flex-start; /* 内容靠上 */
}

/* 输入框：美化带边框和阴影 */
.layui-layer-page input[type="text"],
.layui-layer-page input[type="number"],
.layui-layer-page input[type="email"],
.layui-layer-page input[type="password"] {
  display: inline-block;
  width: 240px;
  height: 32px;
  font-size: 15px;
  padding-left: 10px;
  border-radius: 6px !important;
  border: 1px solid #ddd !important;    /* ✅ 淡灰色边框 */
  background: #fff !important;           /* ✅ 白色背景 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* ✅ 轻微阴影 */
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* 获得焦点时更明显 */
.layui-layer-page input[type="text"]:focus,
.layui-layer-page input[type="number"]:focus {
  border-color: #6793e8 !important;     /* ✅ 获得焦点时高亮 */
  box-shadow: 0 0 5px rgba(103, 147, 232, 0.4);
  outline: none;
}

/* 占位符颜色 */
.layui-layer-page input::placeholder {
  color: #aaa !important;
  font-size: 14px;
}
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .content-wrapper {
    margin-left: 0;
    padding: 20px;
  }
}

/* 小屏幕下隐藏库存 */
@media screen and (max-width: 768px) {
  /* 表头第3列（库存） */
  .category-list table tr.head th:nth-child(3),
  /* 数据行第3列（库存） */
  .category-list table tr.item td:nth-child(3) {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

.row .nav-link {
  margin-left: 0px;   /* 所有链接间距 */
  font-size: 15px;     /* 所有链接字体大小 */
  text-decoration: none;
  color: #333;         /* 颜色自己调 */
}

@media (min-width: 992px) {
  .row {
    padding-left: 20px;
  }
}

.category-list table tr.item {
  transition: all 0.1s;
}

.category-list table tr.item:hover {
  background-color: #f2f7ff;
  box-shadow: 0 2px 8px rgba(24, 49, 83, 0.1);
}

/* 整个商品表格：去掉默认 table 的线 */
.layui-table,
.layui-table td,
.layui-table th {
  border: none; /* 去掉原来的表格线 */
}

/* 每行商品块加一条柔和底线 */
.category-list table tr.item {
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease; /* 平滑过渡 */
}

/* 最后一行去掉底线，避免双线 */
.category-list table tr.item:last-child {
  border-bottom: none;
}

/* 鼠标悬停效果：加淡灰背景 + 小阴影（可选） */
.category-list table tr.item:hover {
  background: #f0f8ff;  /* 浅灰背景 */
  /* box-shadow: 0 1px 3px rgba(0,0,0,0.05); 可选小阴影 */
  cursor: pointer; /* 鼠标形状改成可点击 */
}

/* 默认隐藏，手机端显示 */
.mobile-only { display: none; }
@media screen and (max-width: 768px) {
  .mobile-only { display: block; }
}

/* 默认显示（电脑端） */
.pc-only {
  display: block;
}

/* 手机端隐藏 */
@media screen and (max-width: 768px) {
  .pc-only {
    display: none !important;
  }
}
