/* ========== 全局基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: #333;
}
body {
    position: relative;
    background: #f5f5f5;
}
.container {
    width: 1300px;
    margin: 0 auto;
}
::-webkit-scrollbar {
    width: 2px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #bbbbbb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* ========== 顶部固定区域 ========== */
.top {
    position: fixed;
    top: 0;
    z-index: 999999999;
    width: 100%;
    background-color: #fff;
}
.mar-top110 {
    margin-top: 130px;
}
.mar-top130 {
    margin-top: 150px;
}

/* ========== 顶部小导航 ========== */
.top-nav {
    background: #222;
    color: #fff;
    font-size: 12px;
    height: 30px;
    line-height: 30px;
}
.top-nav .container {
    display: flex;
    justify-content: space-between;
}
.top-nav-right a {
    color: #fff;
    margin-left: 16px;
}
/* 登录后的用户名区域：整块可点击进入个人中心 */
.top-nav-right .user-name-link {
    cursor: pointer;
}
.top-nav-right .user-name-link:hover {
    text-decoration: underline;
}
.top-nav-right img {
    margin-right: 3px;
    position: relative;
    top: 2px;
}
/* 购物车数量角标 */
.cart-badge {
    display: none;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    margin-left: 4px;
    background-color: #de0430;
    color: #fff;
    font-size: 12px;
    border-radius: 8px;
    text-align: center;
    vertical-align: top;
}

/* ========== 头部logo+搜索 ========== */
.header-main {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    width: 200px;
}
/* logo 可点击返回首页，避免 内连元素基线间隙与图片边框 */
.logo a {
    display: block;
    line-height: 0;
}
.logo a img {
    display: block;
    border: none;
}
.search-wrap {
    width: 1000px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 0 5px;
}
.search-input {
    height: 100%;
    width: 923px;
    border: 1px solid #fff;
    border-radius: 30px;
}
.search-btn {
    width: 60px;
    background: #d9d9d9;
    color: #333;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    height: 80%;
}
.search-btn img {
    margin-right: 5px;
    position: relative;
    top: 2px;
}

/* ========== 横幅区域：左侧分类 + 轮播 ========== */
.banner-wrap {
    display: flex;
}
.pos-re {
    position: relative;
    z-index: 1;
}
.wid1300 {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.left-cate {
    width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    position: relative;
    z-index: 999;
}
.left-cate > li:first-child {
    border-radius: 10px 10px 0 0;
}
.left-cate > li:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}
.left-cate > li {
    position: relative;
    height: 42px;
    line-height: 42px;
    padding-left: 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}
.left-cate > li:hover {
    background: #f7f9fc;
}
.left-cate > li > a {
    display: flex;
    justify-content: space-between;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}
.left-cate > li > a:hover {
    color: #de0430;
}
.left-cate > li > a::after {
    content: '\203A';
    font-size: 16px;
    color: #999;
    margin-right: 12px;
}

/* 二级分类弹出面板 */
.cate-flyout-panel {
    display: none;
    position: absolute;
    left: 199px;
    top: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 380px;
    overflow-y: auto;
    z-index: 100;
}
.left-cate > li:hover .cate-flyout-panel {
    display: block;
}
.cate-flyout-item {
    position: relative;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.cate-flyout-item:last-child {
    border-bottom: none;
}
.cate-flyout-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 42px;
    line-height: 42px;
    padding: 0 14px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}
.cate-flyout-item > a:hover {
    background: #f0f4ff;
    color: #de0430;
}
/* 二级分类右侧箭头 */
.arrow-r {
    font-style: normal;
    font-size: 16px;
    color: #bbb;
    margin-left: 8px;
}
.cate-flyout-item:hover > a .arrow-r {
    color: #de0430;
}

/* 三级分类弹出面板（与二级面板平级，避免被 overflow 裁剪） */
.cate-sub-panel {
    display: none;
    position: absolute;
    left: 419px;
    top: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 340px;
    overflow-y: auto;
    z-index: 101;
}
.cate-third-item {
    display: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.cate-third-item.active {
    display: block;
}
.cate-third-item:last-child {
    border-bottom: none;
}
.cate-third-item > a {
    display: block;
    padding: 0 14px;
    height: 42px;
    line-height: 42px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}
.cate-third-item > a:hover {
    background: #f0f4ff;
    color: #de0430;
}

/* 分类面板滚动条美化 */
.cate-flyout-panel::-webkit-scrollbar,
.cate-sub-panel::-webkit-scrollbar {
    width: 4px;
}
.cate-flyout-panel::-webkit-scrollbar-thumb,
.cate-sub-panel::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}
.cate-flyout-panel::-webkit-scrollbar-thumb:hover,
.cate-sub-panel::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Banner 轮播 */
.banner {
    flex: 1;
    height: 360px;
    background: #f3f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}
.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.banner-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}
.banner-slide.active {
    opacity: 1;
    z-index: 2;
}
.banner-text {
    position: absolute;
    left: 560px;
    top: 80px;
    z-index: 3;
}
.banner-text h2 {
    font-size: 38px;
    color: #222;
    margin-bottom: 10px;
}
.banner-text p {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
}
.banner-btn {
    padding: 10px 24px;
    background: #222;
    color: #fff;
    border-radius: 20px;
}
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 70px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    font-size: 30px;
    line-height: 70px;
    text-align: center;
    cursor: pointer;
    z-index: 4;
    user-select: none;
}
.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}
.banner-prev { left: 10px; }
.banner-next { right: 10px; }
.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
    z-index: 4;
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* ========== 公告栏 ========== */
.notice {
    background: #fff;
    border: 1px solid #eee;
    padding: 8px 16px;
    font-size: 13px;
    color: #666;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 30px;
}
.notice img {
    position: relative;
    top: 3px;
}

/* ========== 快捷图标入口 ========== */
.quick-entrance {
    display: flex;
    gap: 12px;
    margin: auto;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    justify-content: space-between;
    align-items: center;
}
.quick-item {
    text-align: center;
    font-size: 16px;
    width: 15%;
}
.xian {
    width: 1px;
    height: 80px;
    background: #bbbbbb;
}
.quick-item.active {
    width: 25%;
    padding: 0 20px;
}

/* ========== 活动专区：团购/秒杀/二手/预售 ========== */
.activity-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.activity-card {
    flex: 1;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    border-radius: 10px;
    width: 24%;
}
.act-title span {
    font-weight: lighter;
    font-size: 14px;
    color: #bc8d28;
}
.act-title {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}
.act-body {
    padding: 10px;
    display: flex;
    gap: 10px;
}
.act-goods {
    flex: 1;
    border: 1px solid #eee;
    width: 49%;
}
.act-goods p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333;
}
.act-goods img {
    width: 100%;
    object-fit: contain;
}
.act-goods .price {
    color: #f40;
}

/* ========== 推荐商品板块 ========== */
.goods-section {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}
.section-tab {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.section-tab a {
    padding: 4px 10px;
    font-size: 16px;
}
.tuijian {
    background: #e6212a;
    color: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 16px;
}
.section-tab a.active {
    color: #e6212a;
    font-weight: bold;
}
/* 红标「推荐商品」本身即推荐视图入口，固定红底白字（需覆盖上方 active 的红色文字） */
.section-tab a.tuijian {
    color: #fff;
    font-weight: normal;
}
.section-tab a.tuijian:hover {
    color: #fff;
}
.goods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}
.goods-card {
    border: 1px solid #eee;
    width: 19%;
}
.goods-card img {
    width: 100%;
    object-fit: contain;
}
.goods-card-a {
    border: 1px solid #eee;
    width: 19%;
}
.goods-card-a img {
    width: 100%;
}
.goods-info {
    padding: 3px;
}
.goods-name {
    font-size: 16px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.goods-price {
    color: #f40;
    font-size: 16px;
}
/* 推荐区空态提示（未配置推荐分组 / 所选分类暂无商品） */
.goods-empty-tip {
    flex: 1;
    padding: 30px 10px;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* ========== 底部三个功能入口 ========== */
.bottom {
    display: flex;
    gap: 12px;
}
.bottom-entrance {
    margin: 30px 0;
    margin: auto;
    background: #fff;
    padding: 30px 0;
}
.bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ========== 页脚 ========== */
footer {
    border-top: 1px solid #eee;
    padding: 20px 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    background: #fff;
}

/* ========== 右侧浮动工具栏 ========== */
.right-box {
    position: fixed;
    top: 60%;
    right: 50px;
    transform: translateY(-50%);
    z-index: 9999999 !important;
}
.right-box img {
    width: 50px;
    height: 40px;
}
.right-a {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    width: 80px;
    height: 80px;
    text-align: center;
    overflow: hidden;
    padding-top: 10px;
    margin-bottom: 1px;
}
.right-b {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    width: 80px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 1px;
}
.right-c {
    margin-top: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    width: 80px;
    height: 80px;
    text-align: center;
    overflow: hidden;
    padding-top: 10px;
    margin-bottom: 1px;
}

/* 右侧浮动栏用 <a> 包裹时，需还原原先 div 的块级盒子与文字颜色 */
a.right-a,
a.right-b,
a.right-c {
    display: block;
    color: #000;
}

/* ========== 购物车页面 ========== */
.wodedingdan-box {
    width: 100%;
    min-height: 78vh;
}
.ddnr-1300 {
    width: 1300px;
    margin: auto;
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}
.yndh {
    width: 1300px;
    margin: auto;
    margin-bottom: 10px;
}
.mar-bo7vh {
    margin-bottom: 7vw;
}
.po-ab {
    position: fixed;
    bottom: 0;
}
.bjfff {
    background-color: #fff;
    width: 100%;
}
.w1300 {
    width: 1300px;
    margin: auto;
}

/* 购物车商品列表 */
.gwc-box {
    width: 100%;
    line-height: 30px;
    font-size: 14px;
}
.gwc-tit {
    width: calc(100% - 20px);
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    line-height: 30px;
}
.gwc-text1 {
    width: 10%;
}
.gwc-text2 {
    width: calc(50% - 10px);
    padding: 0 5px;
    color: #000;
}
.gwc-text3 {
    width: 10%;
}
.gwc-text4 {
    width: 10%;
}
.gwc-text5 {
    width: 10%;
}
.gwc-text6 {
    width: 10%;
}
.textcs {
    color: #7e7e7e;
}
.custom-checkbox {
    background-color: #de0430;
    margin-right: 10px;
}
.gwc-tita1 {
    width: calc(100% - 20px);
    padding: 20px 10px;
    border: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.gwc-text1 img {
    width: 80px;
    height: 80px;
}
.gwc-text2-a {
    width: calc(50% - 10px);
    padding: 0 5px;
    color: #000;
    line-height: 20px;
}
.gwc-text3-a {
    width: 10%;
    line-height: 20px;
}
.gwc-text4-a {
    width: 10%;
    line-height: 20px;
    display: flex;
}
.gwc-text4-a div {
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    width: 20px;
    text-align: center;
}
.gwc-text4-a div:last-child {
    border-right: 1px solid #ccc;
}
.gwc-text4-a div:nth-child(2) {
    width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 购物车数量输入框（占中间格） */
.gwc-text4-a .qty-input {
    width: 100%;
    border: none;
    outline: none;
    text-align: center;
    font-size: 14px;
    color: #000;
    background: transparent;
}
/* 加减按钮可点击感 */
.gwc-text4-a .qty-minus,
.gwc-text4-a .qty-plus {
    cursor: pointer;
    user-select: none;
}
.gwc-text4-a .qty-minus:hover,
.gwc-text4-a .qty-plus:hover {
    background-color: #f2f2f2;
}
/* 商品名称链接 */
.cart-goods-name {
    color: #000;
}
.cart-goods-name:hover {
    color: #de0430;
    text-decoration: underline;
}
/* 失效商品行：置灰不可勾选 */
.cart-item-invalid {
    opacity: 0.55;
}
.gwc-off {
    display: inline-block;
    padding: 0 6px;
    margin-left: 6px;
    background-color: #999;
    color: #fff;
    font-size: 12px;
    border-radius: 2px;
    vertical-align: middle;
}
/* 删除选中/结算等可点击文本 */
.del-btn,
.del-selected-btn,
.classa7 {
    cursor: pointer;
    user-select: none;
}
/* 空购物车占位 */
.gwc-empty {
    padding: 80px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}
.gwc-empty-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 30px;
    background-color: #de0430;
    color: #fff !important;
    border-radius: 3px;
}
.gwc-empty-btn:hover {
    background-color: #c00428;
}
.gwc-text5-a {
    width: 10%;
    line-height: 20px;
}
.gwc-text6-a {
    width: 10%;
    line-height: 20px;
    color: #de0430;
}
.gwc-text6-a span {
    color: #000;
}

/* 购物车底部结算栏 */
.classalast {
    width: calc(100% - 20px);
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.classalast-a {
    display: flex;
}
.classalast-b {
    color: #de0430;
    margin-left: 10px;
}
.classalast-c {
    display: flex;
    line-height: 40px;
    align-items: baseline;
}
.classalast-d {
    margin-right: 10px;
}
.classalast-d span {
    color: #de0430;
    font-size: 28px;
}
.classa7 {
    width: 150px;
    height: 40px;
    background-color: #de0430;
    border: 1px solid #de0430;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    line-height: 40px;
}

/* ========== 登录页面 ========== */
.dlbox {
    display: flex;
    height: 100vh;
    background-image: url(/img/dlimg.jpg);
    background-size: 100% 100%;
}
.left-banner {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
}
.dl-banner-text {
    z-index: 2;
    text-align: center;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}
.dl-banner-text h1 {
    font-size: 42px;
    margin-bottom: 16px;
}
.dl-banner-text p {
    font-size: 20px;
}
.right-login {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-card {
    width: 420px;
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.login-card .logo-area {
    margin-bottom: 32px;
}
.login-card .logo-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.login-card h2 {
    font-size: 32px;
    margin-bottom: 32px;
}
.login-card .form-item {
    margin-bottom: 20px;
}
.login-card .form-item input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 22px;
    font-size: 16px;
    outline: none;
}
.login-btn {
    width: 100%;
    height: 44px;
    background-color: #185ba5;
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 24px;
}
.login-btn:hover {
    background-color: #1c5088;
}
.bottom-link {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.bottom-link a {
    color: #ed3833;
    text-decoration: none;
}
.bottom-link span {
    color: #ed3833;
    cursor: pointer;
}

/* ========== 个人中心 ========== */
/* 主体布局：左侧边栏 + 右侧内容 */
.main-wrap {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* 左侧侧边栏 */
.sidebar-left {
    width: 200px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    /* 菜单项数量会变化，高度自适应，避免末项被裁切 */
    min-height: 330px;
    height: auto;
}
.sidebar-title {
    background: #f8f0f0;
    color: #c82423;
    padding: 10px 16px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}
.sidebar-title img {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    position: relative;
    top: 2px;
    margin-left: 30px;
}
.sidebar-menu img {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    position: relative;
    top: 2px;
    margin-left: 30px;
}
.sidebar-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    text-decoration: none;
}
.sidebar-menu li.active a {
    background: #f2f2f2;
    color: #000;
    font-weight: bold;
}
.sidebar-menu li a:hover {
    background: #f5f5f5;
    color: #c82423;
}

/* 右侧内容容器 */
.content-right {
    flex: 1;
    min-height: 74vh;
}

/* 用户信息+积分行 */
.user-info-row { display: flex; gap: 10px; margin-bottom: 15px; width: 100%; }
.user-card {
    flex: 1;
    background: #fce8e8;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    width: 49.5%;
}
.user-avatar { width: 60px; height: 60px; margin-right: 12px; border-radius: 50%; overflow: hidden; }
.user-avatar img { width: 100%; }
.user-name { font-weight: bold; font-size: 15px; }
.user-tag { background: #f7b8b8; color: #c82423; font-size: 12px; padding: 2px 6px; border-radius: 10px; margin-left: 6px; }
.user-phone { margin: 4px 0; font-size: 14px; color: #444; }
.user-tip { font-size: 13px; color: #666; }
.edit-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
}
.edit-btn img {
    position: relative;
    top: 4px;
}
.point-card { display: flex; gap: 8px; width: 49.5%; }
.point-item {
    flex: 1;
    background: #e7fcff;
    border-radius: 4px;
    text-align: center;
    padding: 12px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}
.point-item:nth-child(2) {
    background: #e7feec;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}
.point-item:nth-child(3) {
    background: #f0f0ff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}
.point-item .num { font-size: 22px; font-weight: bold; color: #222; }
.point-item .desc { font-size: 12px; color: #555; margin-top: 4px; }
.sign-card {
    flex: 0 0 100px;
    background: #fff5e6;
    border-radius: 4px;
    text-align: center;
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}
.sign-card .sign-tip { font-size: 12px; color: #b26a2e; }
.sign-btn { margin-top: 6px; background: #ff7849; color: #fff; border: none; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.point-earn-tip { width: 49.5%; margin-top: 8px; font-size: 12px; color: #999; }

/* 我的订单模块 */
.order-block {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    width: 49.5%;
    height: 130px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}
.block-title { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: bold; margin-bottom: 12px; }
.more-link { color: #999; font-weight: normal; }
.order-type-list { display: flex; gap: 10px; }
.order-item { flex: 1; text-align: center; font-size: 13px; cursor: pointer; }
.order-item img {
    width: 24px;
    height: 24px;
    margin-top: 10px;
    margin-bottom: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 我的收藏模块 */
.collect-block {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    width: 49.5%;
    height: 130px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}
.collect-list { display: flex; gap: 12px; }
.collect-item { width: 100px; text-align: center; font-size: 12px; color: #555; }
.collect-item img { width: 50px; height: 50px; margin-bottom: 2px; }
.collect-more {
    position: absolute;
    right: 12px;
    top: 40px;
    background: #f54242;
    color: #fff;
    padding: 6px 4px;
    font-size: 12px;
    border-radius: 2px;
    writing-mode: vertical-rl;
}

/* 推荐商品 */
.goods-block { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 15px; box-shadow: 0 5px 10px rgba(0, 0, 0, .1); }
.red-title { color: #c82423; font-weight: bold; }
.more-right { font-size: 16px; color: #666; font-weight: normal; }
.grzxgoods-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.grzxgoods-card { border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.grzxgoods-card img {
    width: 100%;
    object-fit: contain;
    background: #fff;
}
.grzxgoods-name { font-size: 16px; padding: 6px 8px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grzxgoods-price { font-size: 16px; color: #c82423; padding: 0 8px 8px; }

.grzx-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== 注册页 ===== */
.zcbox {
    background-color: #ffffff;
    color: #333;
    min-height: 100vh;
}
.zcbox header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 200px;
    box-shadow: 0 2px 6px #ddd;
}
.zcbox .header-right {
    font-size: 14px;
}
.zcbox .header-right a {
    color: #ed3833;
    text-decoration: none;
}
/* 注册主体 */
.register-wrap {
    width: 600px;
    margin: 60px auto 0;
}
.tab-group {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin-bottom: 40px;
}
.tab-item {
    font-size: 24px;
    cursor: pointer;
    padding-bottom: 8px;
}
.tab-item.active {
    border-bottom: 2px solid #ed3833;
}
.register-wrap .form-item {
    margin-bottom: 20px;
}
.register-wrap .form-item input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    box-sizing: border-box;
}
.register-wrap .form-item select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}
.form-row-phone {
    display: flex;
    gap: 8px;
}
.form-row-phone input {
    flex: 1;
}
.get-code-btn {
    width: 120px;
    height: 44px;
    background: #185ba5;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 2px;
    flex: 0 0 auto;
}
.get-code-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}
.tip-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
.tip-red {
    font-size: 12px;
    color: #ed3833;
    margin-top: 4px;
}
.valid-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.valid-date-row label {
    width: 100px;
    flex: 0 0 auto;
    font-size: 14px;
}
.valid-date-row input[type="date"] {
    flex: 1;
}
.radio-group { display: flex; align-items: center; }
.radio-group label {
    font-size: 14px;
    margin-right: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.form-itemzc {
    margin-top: 10px;
}
.form-itemzc input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    accent-color: #ed3833;
}
.register-error {
    color: #ed3833;
    font-size: 13px;
    margin-bottom: 12px;
}
.submit-btn {
    width: 100%;
    height: 48px;
    background: #185ba5;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 40px;
    margin-bottom: 80px;
}
.submit-btn:hover {
    background: #1c5088;
}
.submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ========== 商品详情页 ========== */
.shangpin-box {
    width: 100%;
    height: 78vh;
}
.nr-1300 {
    width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.sp-left {
    width: 50%;
    height: 38vw;
    overflow-y: auto;
}
.sp-right {
    background-color: #fff;
    border-radius: 10px;
    width: 50%;
    position: relative;
    padding: 20px;
}
/* 商品轮播图 */
.goods-main {
    width: 100%;
    margin: auto;
}
/* 大图容器 */
.main-img-box {
    position: relative;
    width: 100%;
    height: 420px;
    background-color: #f5f5f5;
    overflow: hidden;
}
.main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* 左右箭头 */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
}
.arrow:hover {
    background: rgba(0, 0, 0, 0.4);
}
.arrow.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}
.arrow.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}
.arrow.disabled {
    display: none;
}
/* 缩略图区域 */
.thumb-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    width: 100%;
}
.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.thumb-item.active {
    border-color: #c40000;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 滚动条美化 */
.thumb-list::-webkit-scrollbar {
    height: 4px;
}
.thumb-list::-webkit-scrollbar-thumb {
    background: #c82423;
    border-radius: 2px;
}
.sp-gmbutt {
    position: absolute;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    width: calc(100% - 40px);
}
.sp-xx {
    display: flex;
    justify-content: space-between;
}
.sp-name {
    font-weight: bold;
    width: 90%;
}
.sp-sc {
    width: 12%;
    text-align: right;
    font-size: 16px;
    cursor: pointer;
}
.sp-sc img {
    position: relative;
    top: 2px;
    margin-right: 5px;
}
/* 已收藏高亮态 */
.sp-sc.favored {
    color: #c82423;
}
.spxx-a {
    color: #c82423;
    line-height: 30px;
}
.spxx-b {
    color: #444;
    line-height: 30px;
}
.sp-jiage {
    background-color: #eee;
}
.sp-jiage1 {
    background-color: #dd3534;
    color: #fff;
    padding: 8px 10px;
    width: 100%;
    margin-top: 10px;
}
.sp-jiage2 {
    padding: 8px 10px;
    color: #444;
}
.sp-jiage2 span {
    text-decoration-line: line-through;
}
.sp-jiage3 {
    padding: 0 10px 10px 10px;
    color: #444;
}
.sp-jiage3 span {
    color: #dd3543;
    font-size: 24px;
}
/* 积分商品：兑换价中的「+ N 积分」部分 */
.sp-jiage3 .pts {
    color: #ff5a3c;
    font-size: 18px;
    font-weight: bold;
    margin-left: 4px;
}
.sp-csbox {
    color: #333;
    margin-top: 15px;
    display: flex;
}
.sp-cs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 85%;
}
.sp-cs2 {
    width: 15%;
    line-height: 30px;
}
.sp-cs1 {
    border: 1px solid #888;
    padding: 5px 10px;
    cursor: pointer;
}
.sp-cs .on {
    border: 1px solid #dd3534;
    color: #dd3534;
}
/* 无货规格：置灰、不可选中 */
.sp-cs1.out {
    border-color: #ddd;
    color: #bbb;
    background: #f7f7f7;
    cursor: not-allowed;
}
.sp-slbox {
    display: flex;
    margin-top: 15px;
}
.spsl {
    width: 15%;
    line-height: 30px;
}
.spsltj {
    width: 85%;
    display: flex;
}
.spsltj1 {
    border: 1px solid #888;
    line-height: 30px;
    padding: 0 10px;
    cursor: pointer;
    user-select: none;
}
.spsltj2 {
    border: 1px solid #888;
    border-left: none;
    border-right: none;
    width: 100px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    outline: none;
}
.spsltj3 {
    border: 1px solid #888;
    line-height: 30px;
    padding: 0 12px;
    cursor: pointer;
    user-select: none;
}
/* 数量加减按钮禁用态（已达库存上限 / 无货） */
.spsltj1.disabled,
.spsltj3.disabled {
    border-color: #ddd;
    color: #bbb;
    background: #f7f7f7;
    cursor: not-allowed;
}
.spsltj4 {
    line-height: 30px;
    margin-left: 10px;
    color: #666;
}
.sp-jrgwc {
    width: 49%;
    background-color: #fff;
    border: 1px solid #dd3543;
    line-height: 40px;
    color: #dd3534;
    cursor: pointer;
}
.sp-jrgwc:hover {
    background-color: #fff5f5;
}
.sp-ligm {
    width: 49%;
    background-color: #dd3543;
    border: 1px solid #dd3543;
    color: #fff;
    line-height: 40px;
    cursor: pointer;
}
.sp-ligm:hover {
    background-color: #c40000;
}
.spxq {
    width: calc(100% - 8px);
    background-color: #fff;
    margin-top: 30px;
    padding: 15px;
}
.spxq-pj {
    width: calc(100% - 30px);
    background-color: #fff;
    margin-top: 30px;
    padding: 15px;
}
.spxq-a {
    display: flex;
    border-bottom: 2px solid #ccc;
}
.spxq-a1 {
    border-bottom: 2px solid #fff;
    padding: 5px 0;
    margin: 0 10px;
}
.spxq-a2 {
    border-bottom: 2px solid #dd3543;
}
.spxq-tab {
    cursor: pointer;
}
/* 评价整体容器 */
.comment-container {
    background: #fff;
}
.comment-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 18px;
}
.comment-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
}
.username {
    font-size: 14px;
    color: #666;
}
.comment-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.tag {
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
    color: #dd3534;
}
.tag.good,
.tag.mid,
.tag.bad {
    background: #ffe5e5;
    border-radius: 5px;
}
.star-wrap {
    color: #ffb800;
    font-size: 16px;
}
.time {
    font-size: 12px;
    color: #999;
}
.comment-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}
.comment-imgs {
    display: flex;
    gap: 10px;
}
.comment-img-item {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}
.comment-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.more-comment {
    text-align: center;
    margin-top: 24px;
}
.more-comment button {
    padding: 8px 24px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.more-comment button:hover {
    border-color: #999;
}
/* 全部评价弹窗 */
.open-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
.mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.popup-box {
    width: 1300px;
    max-width: 92%;
    height: 80vh;
    background: #fff;
    border-radius: 8px;
    position: relative;
    padding: 20px;
    top: 5vh;
}
.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.close-btn:hover {
    color: red;
}
.popup-content {
    margin-top: 10px;
    height: 71vh;
    overflow-y: auto;
}
.mask.show {
    display: flex;
}
.qj-fl {
    display: flex;
    align-items: center;
}
.pj-a {
    border: 1px solid #999;
    padding: 5px 10px;
    margin-right: 5px;
    margin-top: 10px;
    margin-bottom: 25px;
    cursor: pointer;
}
.pj-xz {
    border: 1px solid #dd3534;
    color: #dd3534;
}
.sp-pjbox {
    display: flex;
    justify-content: space-between;
}

/* ===== 消息通知中心 ===== */
.main-wrap-tongzhi {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 20px 24px 26px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .06);
    margin-bottom: 30px;
}
.main-wrap-tongzhi .page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.main-wrap-tongzhi .page-title h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}
.main-wrap-tongzhi .mark-all-read {
    padding: 6px 16px;
    border: 1px solid #dd3534;
    background: #fff;
    color: #dd3534;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.main-wrap-tongzhi .mark-all-read:hover {
    background: #dd3534;
    color: #fff;
}
.main-wrap-tongzhi .mark-all-read:disabled {
    border-color: #ccc;
    color: #bbb;
    cursor: not-allowed;
    background: #fff;
}
.main-wrap-tongzhi .tabs {
    display: flex;
    gap: 28px;
    padding: 16px 0 6px;
    border-bottom: 1px solid #eee;
}
.main-wrap-tongzhi .tabs .tab-item {
    font-size: 15px;
    color: #666;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
}
.main-wrap-tongzhi .tabs .tab-item.active {
    color: #dd3534;
    border-bottom: 2px solid #dd3534;
}
.main-wrap-tongzhi .tabs .tab-item .tab-count {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    margin-left: 4px;
    border-radius: 8px;
    background: #dd3534;
    color: #fff;
    font-size: 11px;
    text-align: center;
}
.main-wrap-tongzhi .notify-list {
    margin-top: 6px;
}
.main-wrap-tongzhi .notify-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 4px 18px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.main-wrap-tongzhi .notify-item:hover {
    background: #fafafa;
}
/* 未读：靠左侧红点 + 标题加粗区分 */
.main-wrap-tongzhi .notify-left {
    flex-shrink: 0;
    padding-top: 0;
    margin-right: 12px;
    position: relative;
}
/* 未读红点：压在类型块左上角 */
.main-wrap-tongzhi .red-dot {
    position: absolute;
    left: -4px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff3b30;
    z-index: 1;
}
/* 类型标签：实心色块 + 白字 */
.main-wrap-tongzhi .notify-type {
    display: inline-block;
    padding: 9px 11px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.1;
    color: #fff;
    background: #999;
    white-space: nowrap;
}
.main-wrap-tongzhi .notify-type.order {
    color: #fff;
    background: #2b8cf0;
}
.main-wrap-tongzhi .notify-type.system {
    color: #fff;
    background: #dd3534;
}
.main-wrap-tongzhi .notify-type.activity {
    color: #fff;
    background: #ff7a1a;
}
.main-wrap-tongzhi .notify-right {
    flex: 1;
    min-width: 0;
}
.main-wrap-tongzhi .notify-title {
    font-size: 17px;
    color: #222;
    line-height: 1.4;
    margin-bottom: 8px;
    word-break: break-all;
}
.main-wrap-tongzhi .notify-item.unread .notify-title {
    font-weight: bold;
}
.main-wrap-tongzhi .notify-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.main-wrap-tongzhi .notify-time {
    font-size: 12px;
    color: #bbb;
    margin-top: 10px;
}
.main-wrap-tongzhi .notify-empty {
    text-align: center;
    color: #999;
    padding: 48px 0;
    font-size: 14px;
}
.main-wrap-tongzhi .notice-page {
    text-align: center;
    margin-top: 18px;
}
.main-wrap-tongzhi .notice-page button {
    padding: 5px 10px;
    margin: 0 4px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}
.main-wrap-tongzhi .notice-page button.active {
    background: #dd3534;
    color: #fff;
    border-color: #dd3534;
}
.main-wrap-tongzhi .notice-page button:disabled {
    color: #bbb;
    cursor: not-allowed;
}
/* 消息详情弹窗 */
.detail-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .45);
    z-index: 99999999;
    align-items: center;
    justify-content: center;
}
.detail-modal.show {
    display: flex;
}
.detail-modal .detail-box {
    width: 520px;
    max-width: 92%;
    max-height: 76vh;
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.detail-modal .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #333;
}
.detail-modal .detail-close {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #999;
}
.detail-modal .detail-close:hover {
    color: #dd3534;
}
.detail-modal .detail-body {
    padding: 18px 20px;
    overflow-y: auto;
}
.detail-modal .detail-body h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px;
    word-break: break-all;
}
.detail-modal .detail-content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
}
/* 通知正文内嵌图片 */
.detail-modal .detail-content .notice-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 4px;
    border: 1px solid #eee;
    cursor: pointer;
}
.detail-modal .detail-footer {
    padding: 10px 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}


