/* ==========================================================================
   鲸发卡 · 买家端主题
   视觉令牌对齐原版 pc_main.css：主蓝 #3369ff / 渐变 #2a62ff→#4e7dff /
   正文 #545454 / 次要 #999 / 价格 #3369ff / 库存绿 #0db26a / 标签红 #fb636b
   纯手写，无外部依赖（无 webfont、无图片），离线双击可用
   ========================================================================== */
:root {
    --blue: #3369ff;
    --blue-dark: #2a62ff;
    --blue-light: #4e7dff;
    --blue-soft: #3798f7;
    --text: #545454;
    --text-2: #585963;
    --muted: #999;
    --line: #f0f0f0;
    --line-2: #f7f7f7;
    --green: #0db26a;
    --red: #fb636b;
    --red-soft: #ffebe8;
    --orange: #f26c2a;
}
* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font: 14px/1.6 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text); background: #f7f9fc;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { border: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.hr { border: 0; border-top: 1px solid #eee; margin: 18px 0; }

/* ---------------- 右侧悬浮操作条 ---------------- */
.bangz_box { position: fixed; right: 0; top: 42%; z-index: 90; }
.bangz_box .item { margin-bottom: 6px; }
.bangz_box .item a {
    display: block; width: 44px; padding: 12px 6px; background: #fff; color: var(--text);
    font-size: 12px; text-align: center; line-height: 1.25; border: 1px solid #eee;
    border-right: 0; border-radius: 6px 0 0 6px; box-shadow: -2px 2px 8px rgba(0,0,0,.05);
}
.bangz_box .item a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- 客服 QQ 弹窗 ---------------- */
.qq-modal {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999;
    justify-content: center; align-items: center;
}
.qq-modal.show { display: flex; }
.qq-modal-box {
    position: relative; background: #fff; border-radius: 12px; padding: 26px 26px 22px;
    max-width: 360px; width: 90%; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.qq-modal-x {
    position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; line-height: 24px;
    border-radius: 50%; background: #f5f5f5; color: #999; font-size: 16px; text-align: center;
}
.qq-modal-x:hover { background: #e8e8e8; color: #333; }
.qq-modal-title { font-size: 17px; font-weight: 600; color: #333; margin-bottom: 12px; }
.qq-modal-num { font-size: 26px; font-weight: 700; color: var(--blue); letter-spacing: 1px; }
.qq-modal-tip { font-size: 12px; color: #999; margin: 6px 0 16px; }
.qq-modal-btns { display: flex; gap: 10px; justify-content: center; }
.qq-modal-btns button {
    flex: 1; padding: 10px 16px; border: 0; border-radius: 8px; cursor: pointer; font-size: 14px;
    font-weight: 600; color: #fff; background: linear-gradient(135deg, #3369ff, #4e7dff);
}
.qq-modal-ok { font-size: 12px; color: #52c41a; margin-top: 10px; min-height: 18px; }

/* ---------------- 头部 ---------------- */
.header {
    position: sticky; top: 0; z-index: 99; background: #fff;
    box-shadow: 0 1px 15px 0 rgba(0,0,0,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.header_left, .header_right { display: flex; align-items: center; }
.header_logo {
    display: flex; align-items: center; font-size: 18px; font-weight: 700; color: #535761;
    margin-right: 30px;
}
.header_logo:hover { color: #535761; }
.header_logo_mark { font-size: 26px; margin-right: 10px; }
.online-btn {
    display: inline-block; min-width: 85px; padding: 3px 12px; background: #698df3;
    border: 2px solid #4274ff; border-radius: 12px; font-size: 12px; color: #fff;
    text-align: center; cursor: pointer; box-shadow: 1px 4px 5px 0 hsla(0,0%,66.3%,.2);
}
.header_splt { width: 1px; height: 20px; background: rgba(219,218,218,.7); margin: 0 0 0 20px; }
.header_link { font-size: 14px; color: #535761; margin-left: 20px; }
.header_link:hover { color: var(--blue); }
.header_button {
    display: inline-flex; align-items: center; justify-content: center; width: 132px; height: 44px;
    border-radius: 50px; background: linear-gradient(0deg, #2a62ff, #4e7dff); color: #fff;
    font-size: 14px; letter-spacing: .4px; box-shadow: 0 5px 6px 0 rgba(73,105,230,.22);
}
.header_button:hover { color: #fff; filter: brightness(1.05); }
.header_button span { margin-left: 5px; }

/* ---------------- 主体 ---------------- */
.page-wrap { padding-bottom: 78px; }
.shop-info {
    display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center;
    background: #fff; border-radius: 8px; padding: 14px 18px; margin-top: 16px;
    font-size: 13px; color: var(--text-2); box-shadow: 0 2px 10px rgba(18,52,91,.05);
}
.shop-info-ok { color: var(--blue); font-weight: 600; }
.price-red { color: red; }

/* ---------------- 段落标题（原版带左侧色条） ---------------- */
.section__title-wrap { margin-top: 20px; }
.section__title {
    position: relative; margin: 0; padding-left: 25px;
    font-size: 18px; font-weight: 700; color: var(--text);
}
.section__title:before {
    content: ''; position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px;
    background-color: var(--blue); border-radius: 4px;
}
.section__title--pre:before { background-color: var(--orange); }
.section__title_2 { font-size: 14px; color: var(--text); font-weight: 700; margin: 0; }

/* ---------------- 商品搜索 ---------------- */
.search-bar { display: flex; align-items: center; margin-top: 14px; }
.search-bar .keywords {
    flex: 1; height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px;
    font-size: 14px; color: var(--text); outline: none; background: #fff;
    box-shadow: 0 4px 10px 0 rgba(135,142,154,.07);
}
.search-bar .keywords:focus { border-color: var(--blue); }
.search_button {
    display: inline-flex; align-items: center; justify-content: center; margin-left: 12px;
    width: 132px; height: 46px; border: 0; border-radius: 6px; cursor: pointer;
    background: linear-gradient(0deg, #2a62ff, #4e7dff); color: #fff; font-size: 14px;
}
.search_button span { margin-left: 6px; }
.search_button:hover { filter: brightness(1.05); }

/* ---------------- 商品分类卡 ---------------- */
.category_list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; max-height: 300px; overflow-y: auto; }
.category_box { cursor: pointer; }
.category_box .card {
    position: relative; width: 190px; padding: 14px 16px; background: #fff; border: 1px solid #eef1f5;
    border-radius: 10px; box-shadow: 0 4px 14px rgba(18,52,91,.06); transition: all .18s;
}
.category_box .card h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.category_box .card__s_cateremark { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.category_box.active .card {
    background: linear-gradient(-45deg, #3369ff, #3798f7);
    border-color: #3580fb; box-shadow: 0 7px 10px 0 rgba(54,144,248,.23);
}
.category_box.active .card h3,
.category_box.active .card__s_cateremark { color: #fff; }
.category_box .card:hover { transform: translateY(-2px); }

/* ---------------- 商品卡 ---------------- */
.goods_list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; max-height: 460px; overflow-y: auto; }
.goods_box { cursor: pointer; width: calc(25% - 9px); min-width: 210px; }
.goods_box .card {
    position: relative; height: 100%; padding: 14px 16px; background: #fff;
    border: 2px solid #eef1f5; border-radius: 10px; box-shadow: 0 4px 14px rgba(18,52,91,.06);
    transition: all .18s;
}
.goods_box .card:hover { border-color: #cddbfb; transform: translateY(-2px); }
.goods_box.active .card { border-color: var(--blue); }
.card__detail { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.card__detail h3 {
    margin: 0; font-size: 15px; font-weight: 500; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.card__detail_price { font-size: 18px; font-weight: 600; color: var(--blue); }
.card__detail_stock { font-size: 14px; color: var(--green); }
.card__detail_stock.out { color: var(--red); }
.card__detail_remark {
    background: var(--red-soft); color: var(--red); padding: 2px 8px; border-radius: 3px; font-size: 13px;
}

/* ---------------- 商品描述 / 优惠 ---------------- */
.text_box {
    background: #fff; border: 1px solid #eef1f5; border-radius: 8px; padding: 16px 18px;
    margin-top: 12px; font-size: 14px; color: var(--text-2); line-height: 1.8;
    white-space: pre-wrap; word-break: break-word;
}
.sale_message { background: #fff7ec; border-color: #ffe0bd; color: #b35b12; }

/* ---------------- 下单信息区（原版 ure_info_box） ---------------- */
#order_box .ure_info_box { background: #fff; border-radius: 10px; padding: 22px 24px; box-shadow: 0 7px 29px 0 rgba(18,52,91,.08); }
.ure_info_hide { font-size: 16px; font-weight: 700; color: var(--text); }
.ure_info { padding: 20px 0 22px; border-bottom: 1px solid var(--line-2); }
.ure_info_input_box { margin-top: 18px; }
.ure_info_input_box:first-child { margin-top: 0; }
.ure_info_input_box_hide { font-size: 14px; color: var(--text); font-weight: 700; margin-bottom: 8px; }
.ure_info_input_box_hide .req { color: var(--red); margin-right: 4px; }
.ure_info_input_box .input {
    height: 50px; max-width: 430px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
    box-shadow: 0 4px 10px 0 rgba(135,142,154,.07); overflow: hidden;
}
.ure_info_input_box .input input {
    width: 100%; height: 100%; padding: 0 20px; border: 0; outline: none; font-size: 14px; color: var(--text);
}
.ure_info_input_box .input input:focus { background: #fbfdff; }
.ure_info_input_box .msg { margin-top: 8px; font-size: 12px; color: var(--muted); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.checkbox-row label { font-size: 14px; color: var(--text); cursor: pointer; user-select: none; }
.checkbox-row input[type=checkbox] { margin-right: 5px; vertical-align: -1px; }

.pay_type .pay_type_hide { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.pay_type_box { display: flex; flex-wrap: wrap; gap: 11px; }
.pay_type_leng {
    position: relative; width: 140px; height: 46px; line-height: 42px; text-align: center; cursor: pointer;
    background: #f8f8f8; border: 2px solid #f6f6f6; border-radius: 4px; user-select: none;
}
.pay_type_leng span { font-size: 13px; font-weight: 700; color: var(--text); margin-left: 6px; }
.pay_type_leng .ico { font-size: 16px; vertical-align: middle; }
.pay_type_leng.active { border-color: var(--blue); background: #f2f7ff; }
.pay_type_leng.active span { color: var(--blue); }

/* ---------------- 底部固定结算栏（原版 section_buttom） ---------------- */
.section_buttom {
    position: fixed; left: 0; bottom: 0; width: 100%; height: 62px; z-index: 95;
    background: #fff; box-shadow: 0 -1px 0 0 hsla(0,0%,71%,.18);
}
.section_buttom .bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.section_buttom .goods_name {
    flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shuliang_box { display: flex; align-items: center; }
.shuliang_box .btn {
    width: 30px; height: 30px; line-height: 28px; text-align: center; cursor: pointer;
    background: #f8f8f8; border: 1px solid #f6f6f6; border-radius: 50%; user-select: none;
    font-size: 16px; color: var(--text);
}
.shuliang_box .btn:hover { background: #eef3ff; border-color: #cddbfb; color: var(--blue); }
.shuliang_box .input { margin: 0 18px; width: 80px; height: 37px; background: #f8f8f8; border: 1px solid var(--line); border-radius: 4px; }
.shuliang_box .input input {
    width: 100%; height: 100%; border: 0; background: #f8f8f8; text-align: center;
    font-size: 18px; font-weight: 700; color: var(--text); outline: none;
}
.jiage { display: flex; align-items: center; margin-left: 40px; }
.jiage .lbl { font-size: 12px; font-weight: 700; color: var(--text); }
.jiage .cur { margin-left: 9px; font-size: 22px; font-weight: 700; color: var(--blue); }
.jiage s { margin-left: 10px; font-size: 12px; color: #b7b7b7; }
.queding_btn {
    display: inline-flex; align-items: center; justify-content: center; margin-left: 20px;
    width: 140px; height: 40px; border: 0; border-radius: 50px; cursor: pointer;
    background: var(--blue); color: #fff; font-size: 15px; font-weight: 600;
    box-shadow: 0 5px 6px 0 rgba(73,105,230,.22);
}
.queding_btn:hover { background: var(--blue-dark); }
.queding_btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------------- 空态 ---------------- */
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty .ico { display: block; font-size: 38px; margin-bottom: 10px; opacity: .55; }

/* ---------------- 查单 / 收银台 / 协议 ---------------- */
.panel { background: #fff; border-radius: 10px; padding: 22px 24px; box-shadow: 0 7px 29px 0 rgba(18,52,91,.08); margin-top: 16px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--text); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px;
    border: 1px solid #e3e8ef; border-radius: 6px; background: #fff; color: var(--text);
    font-size: 14px; cursor: pointer;
}
.btn:hover { border-color: #cddbfb; color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-block { width: 100%; }
.input-lg {
    width: 100%; height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px;
    font-size: 15px; color: var(--text); outline: none; background: #fff;
    box-shadow: 0 4px 10px 0 rgba(135,142,154,.07);
}
.input-lg:focus { border-color: var(--blue); }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--text); font-weight: 600; }
.pay-amount { font-size: 34px; font-weight: 700; color: var(--blue); text-align: center; margin: 10px 0 4px; }
.pay-qr { text-align: center; margin: 18px 0; }
.pay-qr img { width: 190px; height: 190px; max-width: 100%; }
.card-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f8fbff;
    border: 1px solid #dbe8ff; border-radius: 8px; margin-bottom: 10px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.card-item .cno { flex: 1; word-break: break-all; }
.card-item .cpw { flex: 1; color: var(--blue); word-break: break-all; }
.copy-btn { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 4px; border: 1px solid #cddbfb; background: #fff; color: var(--blue); cursor: pointer; }
.tip { font-size: 12px; color: var(--muted); }
.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; border: 1px solid transparent; }
.alert-danger { background: #fdeaea; border-color: #f5c6c6; color: #a94442; }
.alert-success { background: #eafaf4; border-color: #b7e6d5; color: #1c7a63; }
.alert-info { background: #eef4ff; border-color: #c9deff; color: #2b5ab5; }

/* ---------------- 页脚 ---------------- */
.site-foot { padding: 22px 0; text-align: center; font-size: 12px; color: var(--muted); }
.site-foot p { margin: 0; }

/* ---------------- 窄屏（仅窄屏生效，宽屏样式不受影响） ---------------- */
@media (max-width: 860px) {
    .header-inner { height: 58px; }
    .header_logo { font-size: 16px; margin-right: 12px; }
    .header_logo_mark { font-size: 22px; margin-right: 6px; }
    .online-btn, .header_splt, .header_link { display: none; }
    .header_button { width: 108px; height: 38px; font-size: 13px; }
    .bangz_box { display: none; }
    .shop-info { font-size: 12px; gap: 6px 16px; padding: 12px 14px; }
    .section__title { font-size: 16px; }
    .goods_box { width: calc(50% - 6px); min-width: 0; }
    .category_box .card { width: 150px; padding: 12px 14px; }
    .ure_info_input_box .input { max-width: 100%; }
    .pay_type_leng { width: calc(50% - 6px); }
    .section_buttom .goods_name { display: none; }
    .shuliang_box { margin-right: 8px; }
    .shuliang_box .input { margin: 0 10px; width: 58px; }
    .jiage { margin-left: 0; }
    .jiage .cur { font-size: 18px; }
    .queding_btn { width: 104px; height: 38px; font-size: 14px; margin-left: 10px; }
    .panel { padding: 16px 14px; }
}
