:root {
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --text-color: #2b2d42;
            --light-color: #f8f9fa;
        }

/* 顶部导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* 顶部logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* 顶部导航栏按钮 */
.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-actions button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.nav-actions button:hover {
    background-color: #2980b9;
}

/* 用户区 */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin:0 15px;  /* 新增右侧间距 */

}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    width: 200px;
    display: none;
    z-index: 100;
}

.user-menu.active {
    display: block;
}

.user-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-menu a:hover {
    background: var(--light-color);
}

.user-menu a i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.25rem 0;
}


/* 主区两栏flex容器 */
.container {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: auto;
    height: 80dvh;
}

/* 主区左侧菜单栏 PC端 */
.sidebar {
    width: auto;
    background-color: #ffffff;
    border-right: 1px solid #e1e4e8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e1e4e8;
    background-color: #f8f9fa;
    flex-shrink: 0; /* ✅头部固定，不会被压缩 */
}

.sidebar-header h2 {
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
}

.sidebar-content {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}


.sidebar-content h3 {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
/*美化滚动条，细灰色，不丑*/
.sidebar-content::-webkit-scrollbar {
    width: 4px;
}
.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 3px;
}
.sidebar-content::-webkit-scrollbar-thumb:hover {
    background-color:#aaaaaa;
}
/* firefox */
.sidebar-content {
    scrollbar-width: thin;
    scrollbar-color:#cccccc transparent;
}

/* 主区右侧内容区 */
.main-content {
    flex: 1 1 auto;
    padding: 1.5rem;
    overflow-y: auto;
}
/* 主内容区滚动条样式，和侧边栏统一 */
.main-content::-webkit-scrollbar {
    width: 4px;
}
.main-content::-webkit-scrollbar-track {
    background: transparent;
}
.main-content::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 2px;
}
.main-content::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}
/* firefox */
.main-content {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* 底部版权信息 */
.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* 垂直居中 */
    align-items: center;     /* 水平居中 */
    gap: 10px;
    text-align: center;      /* 文本居中 */
    margin: 0 auto;          /* 水平居中（当有固定宽度时） */
    width: 100%;             /* 确保占满父容器宽度 */
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: auto;
}

.copyright {
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 移动端菜单按钮基础样式 */
.mobile-menu-btn {
    display: none; /* 默认隐藏，在响应式媒体查询中显示 */
    background: #165DFF;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: move;
    width: 50px;
    height: 50px;
    padding: 0;
    z-index: 1002;
    position: fixed;
    bottom: 30px;
    right: 30px;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
    transition: opacity 0.3s ease, background-color 0.3s ease;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* 侧边栏基础样式增强 */
.sidebar {
    transition: transform 0.3s ease, width 0.3s ease;
}

/* 响应式适配：小屏幕下调整布局 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        transform: translateX(-100%);
        background-color: white;
        z-index: 1001;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        overflow: hidden; /* ✅手机端外层禁止滚动，交给sidebar-content滚动 */
        display: flex;
        flex-direction: column;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        transition: margin-left 0.3s ease;
    }
    
    .main-content.sidebar-active {
        margin-left: 0;
    }
    .pagination {
        gap: 6px;
        padding: 6px 12px;
    }
    .page-number-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .pagination-info {
        font-size: 13px;
        min-width: 140px;
    }
}

/* 超小屏幕（手机）：隐藏分页信息，优先显示页码 */
@media (max-width: 480px) {
    .pagination-info {
        display: none;
    }
}

/* 提交按钮样式 */
.submit-btn {
    background-color: #29cd54;
    color: rgb(255 250 250);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* 模态框底部样式 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e1e4e8;
}

/*价格容器*/
.card-price {
  display: flex;
  gap: 8px;
  align-items: center;
}
/*划掉的原价*/
.old-price {
  font-size:13px;
  color:#999;
  text-decoration: line-through; /*删除线*/
}
/*折后新价*/
.new-price {
  font-size:16px;
  color:#f5222d;
  font-weight:bold;
}
.card-corner-imge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    height: 50px;
    width: auto; /* 保持宽高比 */
}

.card-price {
display: inline-block;
vertical-align: middle;
margin-left: 12px;
color: red;
font-weight: bold;    
font-size: 15px;
margin-bottom: 5px;
}

/*折扣标签*/
.card-discount-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  color: rgba(180, 1, 1, 0.85);
  padding:2px 6px;
  border-radius:4px;
  z-index:9;

  display: flex;
  flex-direction: column; /*垂直上下排列，自动换行*/
  align-items: center;    /*文字居中*/
  gap:2px;                /*两行之间的间距*/
}
.tag-text {
  font-size:12px;
  font-weight:bold;
}
.Btag-text {
  font-size:40px;
  font-weight:bold;
}

/* 弹窗样式 */
    .modal {
        display: none;
        position: fixed;
        z-index: 1001;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.5);
        animation: fadeIn 0.3s ease;
    }
    .modal-content {
        background-color: #fff;
        margin: 5% auto;
        padding: 20px;
        border-radius: 8px;
        width: 90%;
        max-width: 1000px;
        max-height: 90vh;
        overflow-y: auto;
        animation: slideIn 0.3s ease;
    }
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    .modal-title {
        font-size: 24px;
        font-weight: bold;
        color: #333;
    }
    .close {
        color: #aaa;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.3s ease;
    }
    .close:hover {
        color: #333;
    }

.tcloud-footer {
    width: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
    text-align: center;
    font-size: 14px;
    color: #667285;
    line-height: 2.2; /* 行高控制三行间距，和截图对齐 */
}
.tcloud-footer a {
    color: #667285; /* 链接蓝色，腾讯云原生蓝色 */
    text-decoration: none;
}
.tcloud-footer a:hover {
    text-decoration: underline;
}
.police‑icon {
    height: 16px;
    vertical-align: middle;
    margin: 0 4px;
}
.overflow-x-auto {
    overflow-x: auto;
    /* firefox 横向细滚动条 */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* Chrome / Edge / Safari */
.overflow-x-auto::-webkit-scrollbar {
    height: 4px; /* ✅横向滚动条厚度，最小4px */
}
.overflow-x-auto::-webkit-scrollbar-track {
    background: transparent;
}
.overflow-x-auto::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 2px;
}
.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}
