@charset "UTF-8";

/* ============================================
   昇磁霍尔商城 - 全站公共样式 common.css
   说明:
   1. 设计 token 全部用 CSS 变量集中管理，后期整体换色只需改 :root。
   2. 布局/结构参考 trae-v3 设计稿；色调沿用原站品牌色。
   3. 本文件在 layout 中于 mall.css 之后加载，覆盖其共享类。
   ============================================ */

:root {
    /* 品牌色 */
    --brand: #16587E;
    --brand-dark: #05476D;
    --brand-light: #EBF3FC;
    /* 强调色 */
    --accent: #EA580C;
    --accent-dark: #C84A0A;
    /* 文字 */
    --text: #1A202C;
    --text-2: #4A5568;
    --text-3: #718096;
    --text-4: #b6bac3;
    /* 边框 / 背景 */
    --border: #D8DEE6;
    --bg: #F5F7FA;
    --bg-card: #fff;
    /* 深色块（顶栏/页脚 - 设计稿海军蓝 #152341） */
    --topbar-bg: #16587E;
    --footer-bg: #152341;
    /* 圆角 */
    --radius: 4px;
    --radius-lg: 8px;
    /* 容器宽度（plan A：侧200 + banner750+20 + rightbar240 = 1210） */
    --container: 1210px;
}

/* ---- 基础重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; line-height: 1.5; color: var(--text); }
body { font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif; background: var(--bg); min-width: var(--container); }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; vertical-align: middle; border: none; }
input, button, select { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: none; }
.clearfix::after { content: ""; display: table; clear: both; }
.container { width: var(--container); margin: 0 auto; position: relative; padding: 0; }
.fl { float: left; }
.fr { float: right; }

/* ============================================
   顶部工具栏（原站深蓝，沿用）
   ============================================ */
.top-bar {
    background: var(--topbar-bg);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    line-height: 36px;
    height: 36px;
    display: flex;
    align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.85); transition: color .2s; }
.top-bar a:hover { color: #fff; }
.top-bar .sep { margin: 0 12px; color: rgba(255,255,255,0.3); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; align-items: center; gap: 12px; }
.top-phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.top-phone img { width: 14px; height: 14px; }
.top-phone em { font-style: normal; font-weight: 600; }
.top-label { background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 2px; font-size: 11px; }
/* 顶部导航右侧「手机商城」hover 显示二维码（设计稿：手机扫码入口） */
.top-qrcode { position: relative; display: inline-block; }
.top-qrcode-trigger { color: rgba(255,255,255,0.85); cursor: pointer; transition: color .2s; }
.top-qrcode-trigger:hover { color: #fff; }
.top-qrcode-pop {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 6px;
    width: 150px; padding: 14px 12px 12px; background: #fff; border-radius: 6px;
    box-shadow: 0 6px 22px rgba(0,0,0,.16); z-index: 1000; text-align: center;
}
/* 透明桥接，避免鼠标从触发文字移到弹层时经过 6px 间隙导致闪烁 */
.top-qrcode-pop::after { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.top-qrcode:hover .top-qrcode-pop { display: block; }
.top-qrcode-pop img { width: 120px; height: 120px; display: block; margin: 0 auto 8px; }
.top-qrcode-pop em { font-style: normal; font-size: 12px; color: #333; line-height: 1.4; }
/* 弹层小三角 */
.top-qrcode-pop::before {
    content: ''; position: absolute; top: -6px; right: 22px;
    width: 12px; height: 12px; background: #fff; transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0,0,0,.05);
}

/* ============================================
   头部 Header
   ============================================ */
.header { background: #fff; padding: 25px 0 25px; position: relative; z-index: 100; }
.header-inner { display: flex; align-items: center; }
.header .logo { width: 200px; flex-shrink: 0; display: flex; align-items: center; }
.header .logo img { max-height: 56px; width: auto; }
.header .search-wrap { flex: 1; margin-left: 40px; position: relative; }
.header .search-box { display: flex; border: 2px solid var(--brand); border-radius: 4px; overflow: hidden; }
.header .search-box input { flex: 1; height: 44px; border: none; padding: 0 16px; font-size: 14px; color: var(--text); }
.header .search-box input::placeholder { color: var(--text-3); }
.header .search-box button { width: 75px; height: 44px; background: var(--brand); color: #fff; font-size: 18px; border: none; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.header .search-box button:hover { background: var(--brand-dark); }
.search-form { display: flex; flex-direction: column; gap: 7px; }
.header .hot-keywords { position: absolute; bottom: -25px; left: 0; font-size: 12px; color: var(--text-3); }
.header .hot-keywords a { color: var(--text-3); margin-right: 10px; }
.header .hot-keywords a:hover { color: var(--brand); }
.header .cart-btn { margin-left: 30px; flex-shrink: 0; padding: 0 20px; height: 48px; line-height: 44px; border-radius: 4px; color: var(--brand); font-size: 14px; background: #fff; transition: all .2s; display: inline-flex; align-items: center; box-sizing: border-box; }
.header .cart-btn:hover { background: var(--brand-light); }
.header .cart-btn .fa { font-size: 18px; margin-right: 6px; }
.header .cart-btn .badge { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; height: 16px; line-height: 16px; padding: 0 5px; border-radius: 8px; margin-left: 4px; vertical-align: middle; }

/* ============================================
   主导航 Nav
   ============================================ */
.main-nav { background: #fff; height: 50px; line-height: 50px; box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.02); position: relative; z-index: 100; }
.main-nav .main-nav-inner { display: flex; align-items: center; height: 100%; }
.main-nav .nav-all { width: 200px; background: var(--brand); color: #fff; text-align: center; font-size: 15px; font-weight: 500; cursor: pointer; position: relative; height: 44px; line-height: 44px; border-radius: 4px; flex: 0 0 200px; }
.main-nav .nav-all i { margin-right: 6px; }
.main-nav .nav-list { display: flex; flex: 1; justify-content: flex-start; }
.main-nav .nav-list li { float: none; }
.main-nav .nav-list > li { width: 120px; text-align: center; }
.main-nav .nav-list > li > a { padding: 0; text-align: center; }
.main-nav .nav-list a { display: block; padding: 0 22px; font-size: 15px; font-weight: 700; color: #333; transition: color .2s; height: 50px; line-height: 50px; box-sizing: border-box; position: relative; }
.main-nav .nav-list a:hover { color: var(--brand); text-decoration: none; }
/* 顶部导航点击不显示聚焦黑框（覆盖 bootstrap a:focus 默认 outline） */
.main-nav .nav-list a:focus,
.main-nav .nav-list a:active,
.main-nav .nav-all:focus,
.main-nav .nav-all:active { outline: none; }
.main-nav .nav-list a.active { color: #16587E; font-weight: 700; background: transparent; }
.main-nav .nav-list a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: calc(100% - 44px);
    height: 2px;
    background: #16587E;
}
.main-nav .nav-extra { margin-left: auto; line-height: 50px; }
.main-nav .nav-extra a { color: var(--text-3); font-size: 14px; padding: 0 12px; }
.main-nav .nav-extra a:hover { color: var(--brand); }
.main-nav .nav-extra i { margin-right: 4px; }

/* ============================================
   页脚 Footer（原站深蓝，沿用）
   ============================================ */
.footer { background: var(--footer-bg); color: #B6BAC3; padding: 60px 0 0; margin-top: 0; }
/* 首页灰块紧贴 footer(margin-top:0)；非首页(商品列表/文章详情等)补 30px 内容区到 footer 间距，避免内容贴底 */
body:not(.home-page) .footer { margin-top: 30px; }
.footer .footer-main { display: flex; justify-content: space-between; padding-bottom: 40px; border-bottom: 1px solid #1B3A5C; }
.footer .footer-brand { width: 260px; }
.footer .footer-brand .logo-footer { margin-bottom: 16px; }
.footer .footer-brand .logo-footer img { max-height: 50px; background: #fff; padding: 4px 8px; border-radius: 2px; }
.footer .footer-brand p { font-size: 13px; line-height: 1.8; color: #b6bac3; }
.footer .footer-links { display: flex; flex: 1; gap: 80px; padding-left: 40px; justify-content: center; }
.footer .footer-links dl dt { font-size: 15px; color: #fff; margin-bottom: 12px; font-weight: 500; }
.footer .footer-links dl dd { margin-bottom: 8px; }
.footer .footer-links dl dd a { color: #b6bac3; font-size: 13px; transition: color .2s; }
.footer .footer-links dl dd a:hover { color: var(--brand); }
.footer .footer-qrcode { display: flex; gap: 30px; align-items: flex-start; }
.footer .footer-qrcode .qrcode-item { text-align: center; }
.footer .footer-qrcode .qrcode-img { width: 100px; height: 100px; background: #fff; padding: 4px; border-radius: 2px; margin-bottom: 8px; }
.footer .footer-qrcode .qrcode-img img { width: 100%; height: 100%; }
.footer .footer-qrcode p { font-size: 13px; color: #fff; margin: 0; }
.footer .copyright { text-align: center; padding: 16px 0; font-size: 12px; color: #b6bac3; border-top: 1px solid #1B3A5C; }
.footer .copyright a { color: #b6bac3; }
.footer .copyright a:hover { color: #fff; }

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb { padding: 20px 0 0; font-size: 13px; color: var(--text-2); background: var(--bg); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-3); }
.breadcrumb .current { color: var(--text); }
/* 面包屑与下方内容的间距统一由 .list-breadcrumb 包裹层 margin 控制（5px），.breadcrumb 自身 padding-bottom 已归零避免叠加（全站统一） */
.list-breadcrumb { margin-bottom: 5px !important; }
/* 复合选择器特异性(0,2,0)+!important 覆盖包裹层自带的 .mb-2(0,1,0)+!important，与加载顺序无关，杜绝叠加 */
.list-breadcrumb.mb-2 { margin-bottom: 5px !important; }

/* ============================================
   通用按钮
   ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 20px; border-radius: var(--radius); font-size: 12px; line-height: 28px; cursor: pointer; transition: all .2s; text-align: center; border: none; vertical-align: middle; }
.btn-primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--brand); box-shadow: 0 0 0 1px var(--border); }
.btn-outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.btn-orange { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-orange:hover { background: var(--accent-dark); }
.btn-small { height: 25px; padding: 0 14px; font-size: 12px; line-height: 23px; }
.btn-block { display: block; width: 100%; height: 30px; }
/* 图标型链接按钮（如购物车删除）保持自然高度，不参与 30px 统一 */
.btn-link { height: auto; padding: 6px 12px; line-height: 1; font-size: 14px; background: none; border: none; }

/* ============================================
   价格样式
   ============================================ */
.price { color: var(--accent); font-weight: 600; font-size: 14px; }
.price small { font-size: 12px; margin-right: 2px; font-weight: normal; }
.price .currency { font-size: 12px; margin-right: 2px; }
.price .num { font-size: 16px; }
.price-big .num { font-size: 22px; }

/* ============================================
   数量加减器
   ============================================ */
.quantity-box { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.quantity-box button { width: 28px; height: 28px; background: var(--bg); border: none; font-size: 14px; color: var(--text-2); cursor: pointer; }
.quantity-box button:hover { background: #e8e8e8; }
.quantity-box input { width: 50px; height: 28px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 13px; }

/* ============================================
   区块标题（首页/列表页通用）
   ============================================ */
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; position: relative; }
.section-header h2 { font-size: 18px; font-weight: 600; color: var(--text); padding-left: 12px; position: relative; }
.section-header h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 18px; background: var(--brand); border-radius: 2px; }
.section-header .more { font-size: 13px; color: var(--brand); }
.section-header .more:hover { text-decoration: underline; }


/* ============================================
   工具类
   ============================================ */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.bg-white { background: #fff; }
.text-center { text-align: center; }

/* ============================================
   主导航 - 下拉子菜单（原 mall.css，common 未覆盖）
   ============================================ */
.main-nav .nav-list .sub-menu { display: none; position: absolute; top: 50px; left: 0; min-width: 140px; background: #fff; border: 1px solid var(--border); border-top: none; box-shadow: 0 2px 8px rgba(0,0,0,0.08); z-index: 100; }
.main-nav .nav-list li:hover .sub-menu { display: block; }
.main-nav .nav-list .sub-menu li { display: block; }
.main-nav .nav-list .sub-menu li a { display: block; padding: 10px 16px; line-height: 1.4; font-size: 14px; white-space: nowrap; }
.main-nav .nav-list .sub-menu li a:hover { background: var(--bg); }

/* 分类下拉 - Mega Menu 左侧一级右侧二级 */
.cat-dropdown { display: none; position: absolute; top: 50px; left: 0; z-index: 1000; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 0 0 6px 6px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14); overflow: hidden; }

/* 首页(含 hero 分类栏)不需要顶部"全部商品"入口；首页导航保持居中 */
.home-page .nav-all { display: none; }
.home-page .main-nav .nav-list { justify-content: center; }
.cat-dropdown-inner { display: flex; min-height: 370px; max-height: 480px; }

/* 左侧一级分类（与首页 sidebar 样式一致） */
.mega-sidebar { width: 200px; flex-shrink: 0; background: #F5F7FA; border-right: 1px solid rgba(216, 222, 230, 0.5); overflow-y: auto; }
.mega-sidebar-item { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 74px; cursor: pointer; color: var(--text); font-size: 14px; transition: all .15s; position: relative; border-bottom: 1px solid #F0F2F5; }
.mega-sidebar-item:last-child { border-bottom: none; }
.mega-sidebar-item a { display: flex; align-items: center; width: 100%; height: 100%; color: inherit; border-left: 3px solid transparent; padding-left: 13px; margin-left: -16px; transition: all .2s; }
.mega-sidebar-item:hover, .mega-sidebar-item.is-active { background: var(--brand-light); color: var(--brand); }
.mega-sidebar-item:hover a, .mega-sidebar-item.is-active a { border-left-color: var(--brand); }
.mega-sidebar-item .fa-angle-right { color: var(--text-4); font-size: 12px; flex-shrink: 0; }
.mega-sidebar-item:hover .fa-angle-right, .mega-sidebar-item.is-active .fa-angle-right { color: var(--brand); }

/* 右侧二级分类面板 */
.mega-content { flex: 1; overflow-y: auto; padding: 16px 20px; }
.mega-content-panel { display: none; }
.mega-content-panel.is-active { display: block; }
.mega-sub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mega-sub-item { display: block; padding: 8px 12px; color: var(--text-2); font-size: 13px; border-radius: 3px; transition: all .15s; line-height: 1.4; }
.mega-sub-item:hover { background: var(--brand-light); color: var(--brand); }

/* ============================================
   通用按钮 - 补充变体（.btn-default 原 mall.css 独有）
   ============================================ */
.btn-default { background: #fff; border: 1px solid var(--border); color: var(--text-2); }
.btn-default:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================
   服务特色栏
   ============================================ */
.service-bar { background: #fff; border-bottom: 0px solid var(--border); }
.service-list { display: flex; justify-content: space-between; }
.service-item { display: flex; align-items: center; gap: 12px; }
.service-icon { width: 48px; height: 48px; background: var(--brand-light); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.service-icon i { font-size: 24px; color: var(--brand); }
.service-text h4 { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.service-text p { font-size: 12px; color: var(--text-3); }

/* ============================================
   页面标题区
   ============================================ */
.page-header { background: #fff; padding: 16px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 18px; color: var(--text); font-weight: 600; }
.page-header .page-header-extra { float: right; }

/* ============================================
   卡片通用样式
   ============================================ */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.card-header { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); font-weight: 600; }
.card-body { padding: 16px; }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg); }

/* ============================================
   表单通用样式
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.form-control { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); background: #fff; transition: all .2s; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(30,111,156,0.1); }
.form-control::placeholder { color: var(--text-4); }
.form-error { color: #E53E3E; font-size: 12px; margin-top: 4px; }

/* ============================================
   分页样式 —— 三元素极简：页码 | 跳转+每页条数 | 总数
   注意：addon(mall/css/common.css) 有 .pager li > span (0,1,3)，需更高优先级覆盖
   ============================================ */
.pagination { display: flex; justify-content: center; flex-wrap: nowrap; gap: 6px; margin: 0; }
.pager .pagination a,
.pager .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; font-size: 13px; border: 1px solid var(--border); background: #fff; color: var(--text-2); border-radius: var(--radius); transition: all .2s; }
.pager .pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pager .pagination li.active span,
.pager .pagination li.active a { background: #fff; border-color: var(--brand); color: var(--brand); font-weight: 500; }
.pagination .disabled { color: var(--text-4); cursor: not-allowed; }
/* 隐藏 prev/next 箭头 */
.pager .pagination > li:first-child,
.pager .pagination > li:last-child { display: none; }

/* 列表页富分页容器（对齐 portal：上方分隔线） */
.pager { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }

/* 搜索三区分页：外框复用 .pager（含顶部分隔线），.zone-pager 仅作内部数字容器 */
.zone-pager { display: flex; margin-top: 0; }
.zone-pager .pagination { margin-top: 0; }
.pager-total { color: var(--text-4); font-size: 13px; white-space: nowrap; }

/* 分页：紧凑右对齐，三元素一排 */
.pager .pager-row { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; }
.pager .pager-left, .pager .pager-right { display: flex; align-items: center; }
.pager .pager-right { gap: 12px; }
.pager .pager-mid { display: flex; margin-top: 0; }
/* 极简跳转器：input + GO 按钮 */
.pager-jump { display: inline-flex; align-items: center; gap: 4px; }
.pager .page-jumper { width: 48px; padding: 4px 6px; height: 30px; font-size: 13px; text-align: center; color: var(--text-1); background-color: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.pager .page-jumper:focus { border-color: var(--brand); outline: none; }
.pager .page-jumper::-webkit-outer-spin-button, .pager .page-jumper::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 每页条数 select：紧凑，选项自带"条"后缀 */
.pager .page-size-select { width: auto; padding: 4px 22px 4px 8px; height: 30px; line-height: 22px; font-size: 13px; color: var(--text-1); background-color: #fff; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%2394A3B8' d='M0 0l5 6 5-6z'/></svg>"); background-repeat: no-repeat; background-position: right 6px center; }
.pager .page-size-select:focus { border-color: var(--brand); outline: none; }
.pager .page-jump-btn { padding: 4px 10px; height: 30px; line-height: 20px; font-size: 13px; background: #fff; color: var(--brand); border: 1px solid var(--brand); border-radius: var(--radius); }
.pager .page-jump-btn:hover { background: var(--brand); color: #fff; }
@media (max-width: 767px) { .pager .pager-row { flex-direction: column; align-items: stretch; } .pager .pager-mid { justify-content: center; } .pager .pager-total { white-space: normal; } }

/* ============================================
   用户中心 - 布局
   ============================================ */
.user-center { padding: 24px 0; background: var(--bg); min-height: calc(100vh - 400px); }
.user-center .user-container { display: flex; gap: 20px; align-items: flex-start; width: var(--container); max-width: none; margin: 0 auto; padding-left: 0; padding-right: 0; }

/* 用户中心 - 侧边栏 */
.user-sidebar { width: 220px; flex-shrink: 0; }
.user-sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.user-sidebar-title { font-size: 15px; font-weight: 600; color: var(--text); padding: 14px 16px; border-bottom: 1px solid var(--brand-light); background: #FAFCFD; position: relative; }
.user-sidebar-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; background: var(--brand); border-radius: 0 2px 2px 0; }
.user-sidenav-list { list-style: none; padding: 8px 0; }
.user-sidenav-list li { list-style: none; }
.user-sidenav-list li a { display: flex; align-items: center; padding: 10px 16px 10px 20px; font-size: 14px; color: var(--text-2); transition: all .2s; border-left: 3px solid transparent; }
.user-sidenav-list li a:hover { background: var(--brand-light); color: var(--brand); }
.user-sidenav-list li.active a { background: var(--brand-light); color: var(--brand); border-left-color: var(--brand); font-weight: 500; }
.user-sidenav-list li a i { font-size: 16px; margin-right: 10px; width: 18px; text-align: center; }

/* 用户中心 - 内容区 */
.user-content { flex: 1; min-width: 0; }
.user-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.user-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--brand-light); }
.user-card-header h2 { font-size: 16px; font-weight: 600; color: var(--text); padding-left: 12px; position: relative; margin: 0; }
.user-card-header h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; background: var(--brand); border-radius: 2px; }
.user-card-body { padding: 20px; }

/* 用户信息卡片 */
.user-info-card { background: linear-gradient(135deg, var(--footer-bg) 0%, var(--brand) 100%); color: #fff; padding: 24px; border-radius: var(--radius); display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; margin-bottom: 16px; }
.user-info-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.06)"/><circle cx="40" cy="80" r="2.5" fill="rgba(255,255,255,0.05)"/></svg>'); background-size: 160px 160px; opacity: 0.5; }
.user-avatar-wrap { position: relative; z-index: 1; flex-shrink: 0; }
.user-avatar-wrap img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); background: #fff; }
.user-info-main { position: relative; z-index: 1; flex: 1; }
.user-info-main h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; color: #fff; }
.user-info-main .user-bio { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.user-info-stats { display: flex; gap: 24px; }
.user-stat-item { display: flex; flex-direction: column; gap: 4px; }
.user-stat-item .stat-num { font-size: 20px; font-weight: 600; color: #fff; }
.user-stat-item .stat-label { font-size: 12px; color: rgba(255,255,255,0.7); }

/* 数据统计卡片 */
.user-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.user-stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; transition: all .2s; }
.user-stat-card:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(30,111,156,0.1); }
.user-stat-card .stat-icon { width: 48px; height: 48px; margin: 0 auto 12px; background: var(--brand-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.user-stat-card .stat-icon i { font-size: 22px; color: var(--brand); }
.user-stat-card .stat-num { font-size: 24px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.user-stat-card .stat-label { font-size: 13px; color: var(--text-3); }

/* 表单统一样式 */
.profile-form .form-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.profile-form .form-label { width: 100px; flex-shrink: 0; text-align: right; padding-right: 16px; line-height: 40px; font-size: 14px; color: var(--text-2); font-weight: 400; }
.profile-form .form-control-wrap { flex: 1; min-width: 0; }
.form-input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); background: #fff; outline: none; transition: border-color .2s; box-sizing: border-box; }
.form-input:focus { border-color: var(--brand); }
.form-input[disabled] { background: #F7F8FA; color: var(--text-4); cursor: not-allowed; }
.input-group { display: flex; align-items: stretch; }
.input-group .form-input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-btn { display: flex; align-items: stretch; }
.input-group-btn .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: none; height: 40px; line-height: 38px; padding: 0 16px; font-size: 14px; }

/* 图片工具类 */
.img-circle { border-radius: 50%; }
.img-responsive { max-width: 100%; height: auto; }

/* ============================================
   登录/注册页（auth-page，原 mall.css 独有）
   ============================================ */
html.auth-page, body.auth-page { margin: 0; padding: 0; }
body.auth-page { padding-top: env(safe-area-inset-top); min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
body.auth-page.is-user-center { background: var(--bg); }
body.auth-page:not(.is-user-center) .main-content { flex: 1; display: flex; align-items: center; align-items: safe center; justify-content: center; min-height: calc(100vh - 80px); }
body.auth-page.is-user-center .main-content { flex: none; display: block; padding: 0; }
body.auth-page:not(.is-user-center) .main-content { width: 100% !important; max-width: none !important; }
body.auth-page:not(.is-user-center) .auth-container { min-height: auto; padding: 40px 20px; box-sizing: border-box; width: 100%; max-width: none; }
body.auth-page:not(.is-user-center) .auth-card { max-width: 820px !important; width: 100% !important; }
.auth-header { background: var(--footer-bg); padding: 10px 0; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 13px; position: relative; z-index: 100; }
.auth-header-inner { max-width: var(--container); width: 100%; margin: 0 auto; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.auth-header-left { display: flex; align-items: center; gap: 16px; }
.auth-header-phone { display: flex; align-items: center; gap: 6px; }
.auth-header-phone i { font-size: 14px; }
.auth-header-service { background: var(--brand); padding: 4px 12px; border-radius: 2px; font-size: 12px; }
.auth-header-right { display: flex; align-items: center; gap: 16px; }
.auth-header-right a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13px; }
.auth-header-right a:hover { color: #fff; }
.auth-header-right .cart { display: flex; align-items: center; gap: 4px; }
.auth-footer { padding: 16px 0; text-align: center; font-size: 12px; color: var(--text-4); flex-shrink: 0; }

/* ============================================
   响应式（基础）
   ============================================ */
@media (max-width: 1200px) {
    body { min-width: auto; }
    .container { width: 100%; padding: 0 20px; }
}

/* ============================================
   portal 栏目筛选树（对齐 EyouCMS 栏目导航树）
   ============================================ */
.portal-tree,
.portal-tree ul { list-style: none; margin: 0; padding: 0; }
.portal-tree-root { padding: 2px 0; }
/* 窄栏下列表更紧凑，缩进减小以容纳多级嵌套 */
.portal-tree-children { margin-left: 10px; border-left: 1px solid #e6edf5; padding-left: 4px; }
.portal-tree-node { margin: 2px 0; }
.portal-tree-row {
    display: flex; align-items: center;
    width: 100%;
    padding: 7px 10px; cursor: pointer;
    border-radius: 6px; color: #334155;
    font-size: 13px; line-height: 1.4; position: relative;
    transition: background .18s ease, color .18s ease;
    user-select: none;
}
/* 悬浮：浅底色 + 箭头变品牌色，明确可点 */
.portal-tree-row:hover { background: var(--brand-light); color: var(--brand); }
.portal-tree-row:hover .portal-tree-caret { color: var(--brand); }
/* 选中：品牌色填充 + 左侧高亮竖条，清晰定位当前栏目 */
.portal-tree-row.active { background: var(--brand); color: #fff; font-weight: 600; }
.portal-tree-row.active::before {
    content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--accent, #EA580C);
}
.portal-tree-row.active .portal-tree-caret { color: #fff; }
.portal-tree-caret {
    width: 18px; height: 18px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; color: #94a3b8;
    transition: transform .2s ease, color .18s ease;
}
.portal-tree-caret.is-open { transform: rotate(90deg); }
.portal-tree-caret-empty { visibility: hidden; }
.portal-tree-label {
    margin-left: 4px; flex: 1 1 auto; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 全局：鼠标点击不显示聚焦黑框（覆盖 Bootstrap 默认 a:focus/.btn:focus outline），
   键盘 Tab 导航仍显示品牌色可见焦点（:focus-visible 最佳实践） */
a:focus,
a:active,
button:focus,
button:active,
.btn:focus,
.btn:active,
[tabindex]:focus,
[tabindex]:active {
  outline: none;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
