:root{
  --blue:#0D65F4; --blue-d:#0a54cc; --blue-l:#eaf1ff;
  --text:#1c2430; --sub:#6b7686; --line:#e6ebf3; --bg:#f5f7fb; --w:#fff;
}
*{box-sizing:border-box}
.hide{display:none!important}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
a{text-decoration:none;color:inherit}
em{font-style:normal}

/* 顶栏 */
.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:26px;padding:0 24px;position:sticky;top:0;z-index:30}
.tb-left{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.logo{width:34px;height:34px;border-radius:8px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;letter-spacing:1px}
.brand{font-size:16px;font-weight:600;white-space:nowrap}
.brand em{color:var(--sub);font-weight:400;font-size:14px;margin-left:4px}
.tb-menu{display:flex;gap:4px;flex:1;overflow-x:auto;scrollbar-width:none}
.tb-menu::-webkit-scrollbar{display:none}
.tb-menu a{padding:7px 13px;border-radius:16px;color:#4a5666;font-size:14.5px;white-space:nowrap}
.tb-menu a:hover{color:var(--blue)}
.tb-menu a.on{background:var(--blue-l);color:var(--blue);font-weight:600}
.tb-right{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.bal{font-size:14px;color:#4a5666;background:#f7f9fd;border-radius:14px;padding:5px 12px}
.bal b{color:var(--blue)}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px}
.link{color:var(--sub);font-size:14px}
.link:hover{color:var(--blue)}

/* 登录 / 注册 */
.gate{min-height:calc(100vh - 64px);display:flex;align-items:center;justify-content:center;padding:30px 16px}
.gate-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:34px 32px;width:380px;box-shadow:0 12px 34px rgba(13,101,244,.08)}
.gate-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600;margin-bottom:20px}
.gate-tabs{display:flex;gap:6px;background:#f3f6fb;border-radius:9px;padding:4px;margin-bottom:18px}
.gate-tabs a{flex:1;text-align:center;padding:8px;border-radius:7px;color:#5a6678;font-size:14.5px}
.gate-tabs a.on{background:#fff;color:var(--blue);font-weight:600;box-shadow:0 2px 6px rgba(13,101,244,.08)}
.gate-body input{width:100%;height:44px;border:1px solid var(--line);border-radius:9px;padding:0 14px;font-size:15px;outline:none;margin-bottom:12px}
.gate-body input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(13,101,244,.08)}
.gate-body .btn{width:100%;height:44px;font-size:16px}
.gate-msg{color:#e34d59;font-size:14px;min-height:20px;margin-top:10px}
.gate-foot{color:#98a2b3;font-size:13px;border-top:1px dashed var(--line);padding-top:12px;margin-top:6px}

/* 布局 */
.layout{display:flex;align-items:flex-start}
.side{width:198px;flex:0 0 198px;background:#fff;border-right:1px solid var(--line);min-height:calc(100vh - 64px);padding:16px 12px;position:sticky;top:64px}
.side-group{color:#98a2b3;font-size:13px;padding:14px 12px 6px}
.side-item{display:block;padding:9px 12px;border-radius:8px;color:#3a4658;margin-bottom:2px;font-size:14.5px}
.side-item:hover{background:#f4f7fd}
.side-item.on{background:var(--blue-l);color:var(--blue);font-weight:600}
.side-tip{margin-top:20px;padding:12px;background:#f8fafd;border-radius:9px;color:#9aa4b2;font-size:13px;line-height:1.7}
.main{flex:1;padding:22px 26px 50px;min-width:0}

/* 卡片 */
.card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px 22px;margin-bottom:18px}
.card-hd{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.card-hd h3{margin:0;font-size:17.5px}
.muted{color:#98a2b3;font-size:13.5px}

/* 数据卡 */
.stats{display:grid;gap:14px}
.stats.two{grid-template-columns:repeat(2,1fr)}
.stats.three{grid-template-columns:repeat(3,1fr)}
.stats.four{grid-template-columns:repeat(4,1fr)}
.stat{background:#f8fafd;border-radius:11px;padding:18px 8px;text-align:center}
.stat b{display:block;font-size:27px;color:var(--blue);line-height:1.25}
.stat span{color:var(--sub);font-size:13.5px}
.quicks{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.quick{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;border:1px solid var(--line);border-radius:11px;transition:.18s}
.quick:hover{border-color:var(--blue);box-shadow:0 6px 16px rgba(13,101,244,.1)}
.quick i{width:42px;height:42px;border-radius:50%;background:var(--blue-l);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:600}
.quick span{font-size:14px;color:#3a4658}

/* 标签页 */
.tabs{display:flex;gap:6px;background:#f3f6fb;padding:4px;border-radius:10px;overflow-x:auto}
.tab{padding:7px 14px;border-radius:7px;color:#5a6678;font-size:14px;white-space:nowrap}
.tab.on{background:#fff;color:var(--blue);font-weight:600;box-shadow:0 2px 6px rgba(13,101,244,.08)}

/* 工具条 */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.toolbar input,.toolbar select{height:38px;border:1px solid var(--line);border-radius:9px;padding:0 12px;background:#fff;outline:none;font-size:14px}
.toolbar input{width:240px}
.toolbar input:focus,.toolbar select:focus{border-color:var(--blue)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 18px;border-radius:9px;border:0;cursor:pointer;font-size:14.5px;background:var(--blue);color:#fff}
.btn:hover{background:var(--blue-d)}
.btn.primary{background:var(--blue)}
.btn.light{background:#eef3fb;color:var(--blue)}
.btn.light:hover{background:var(--blue-l)}
.btn.tiny{height:28px;padding:0 12px;font-size:13.5px;border-radius:7px}
.btn.ghost{background:#fff;color:var(--sub);border:1px solid var(--line)}
.btn em{font-style:normal;background:var(--blue);color:#fff;border-radius:9px;padding:0 7px;font-size:12.5px;margin-left:2px}

/* 报价筛选面板 */
.filter-panel{border:1px solid var(--line);border-radius:11px;padding:6px 16px;margin-bottom:12px;background:#fcfdff}
.f-row{display:flex;align-items:flex-start;gap:14px;padding:11px 0;border-bottom:1px dashed #eef1f7}
.f-row:last-child{border-bottom:0}
.f-label{flex:0 0 94px;background:var(--blue);color:#fff;border-radius:6px;padding:4px 0;text-align:center;font-size:14.5px;margin-top:1px}
.tb .tag{white-space:nowrap}
.f-opts{flex:1;display:flex;flex-wrap:wrap;gap:6px 8px;min-width:0}
.f-opt{padding:3px 10px;border-radius:5px;font-size:14.5px;color:#5a6678;white-space:nowrap}
.f-opt:hover{color:var(--blue);background:var(--blue-l)}
.f-opt.on{background:var(--blue-l);color:var(--blue);font-weight:600}
.f-more{flex:0 0 auto;color:var(--blue);font-size:14px;padding:3px 9px;border-radius:5px;background:var(--blue-l)}
.filter-selected{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:14.5px;margin-bottom:12px;min-height:26px}
.fchip{background:#fff;border:1px solid #dfe7f5;border-radius:12px;padding:2px 10px;color:#3a4658}
.fchip a{color:#98a2b3;margin-left:6px}
.fclear{color:#d9463e;font-size:14.5px}
.pricerange{display:inline-flex;align-items:center;gap:6px}
.pricerange input{width:96px!important}
.pricerange i{color:#98a2b3;font-style:normal}
.quote-tb{min-width:846px}
.quote-tb th[data-sort]{cursor:pointer;user-select:none}
.quote-tb th[data-sort]:hover{color:var(--blue)}
.quote-tb th[data-sort] .arr{font-style:normal;font-size:12px;margin-left:3px;color:#c3ccd9}
.quote-tb th[data-sort] .arr.on{color:var(--blue);font-weight:600}
.quote-tb th:first-child,.quote-tb td:first-child{position:sticky;left:0;background:#fff;z-index:2}
.quote-tb tr:hover td:first-child{background:#fafcff}
.quote-tb th,.quote-tb td{padding-left:7px;padding-right:7px}
.quote-tb .remark{color:#98a2b3}
.wbadge{display:inline-block;min-width:24px;text-align:center;background:#eef3fb;color:#3c5f96;border-radius:5px;padding:1px 4px;font-size:13px}
.geo-dot{display:inline-block;width:16px;height:16px;line-height:16px;text-align:center;background:var(--blue);color:#fff;border-radius:50%;font-size:12px;vertical-align:middle;margin-left:2px}
.fav{color:#c8d2e0;font-size:16px}
.fav.on{color:#0D65F4}
.btn.tiny.on{background:var(--blue);color:#fff}

/* 表格 */
.table-wrap{overflow-x:auto}
.tb{width:100%;border-collapse:collapse;font-size:14px}
.tb th{text-align:left;color:#8592a5;font-weight:500;font-size:13.5px;padding:0 10px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.tb td{padding:12px 10px;border-bottom:1px solid #f2f5fa;vertical-align:middle}
.tb tr:hover td{background:#fafcff}
.mt{font-weight:600;color:#233043}
.ms{color:#98a2b3;font-size:13px;margin-top:2px}
.price{color:var(--blue)}
.tag{background:#eef3fb;color:#4b5d78;border-radius:6px;padding:2px 8px;font-size:13px}
.pill{display:inline-block;padding:2px 10px;border-radius:11px;font-size:13px}
.pill.wait{background:#fff4e5;color:#c47d10}
.pill.ok{background:#e8f7ee;color:#12a25a}
.pill.fail{background:#fdecec;color:#d9463e}
.lnk{color:var(--blue)}
.empty{text-align:center;color:#9aa4b2;padding:40px 0!important}

/* 分页 */
.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;flex-wrap:wrap}

/* 表单 */
.field{margin-bottom:16px}
.field label{display:block;font-size:14px;color:#4a5666;margin-bottom:7px}
.field input,.field textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:11px 13px;font-size:14.5px;outline:none;font-family:inherit;background:#fff}
.field input:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(13,101,244,.08)}
.field textarea{resize:vertical;line-height:1.7}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;background:#eef3fb;border-radius:8px;padding:6px 10px;font-size:13.5px}
.chip b{color:var(--blue)}
.chip u{text-decoration:none;background:#fff;color:#7a8699;border-radius:4px;padding:0 5px;font-size:12px}
.submit-bar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;gap:10px}
.submit-bar .btn{height:42px;min-width:120px;font-size:15.5px}

/* 充值 */
.pay-box{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.amt-quick{display:flex;gap:8px;margin:-6px 0 16px;flex-wrap:wrap}
.amt-quick a{border:1px solid var(--line);border-radius:8px;padding:6px 16px;font-size:14px;color:#4a5666}
.amt-quick a:hover{border-color:var(--blue);color:var(--blue)}
.pay-right{background:#f8fafd;border-radius:11px;padding:18px 20px}
.pay-right h4{margin:0 0 8px;font-size:16px}
.pay-right p{margin:0 0 10px;color:#4a5666;font-size:14px;line-height:1.8}
.pay-ways{margin:0;padding-left:18px;color:#4a5666;font-size:14px;line-height:2}

@media (max-width:1000px){
  .layout{display:block}
  .side{width:100%;flex:none;position:static;min-height:0;display:flex;flex-wrap:wrap;gap:4px;padding:10px;border-right:0;border-bottom:1px solid var(--line)}
  .side-group{width:100%;padding:6px 8px 2px}
  .side-tip{display:none}
  .main{padding:14px}
  .stats.two,.stats.three,.stats.four{grid-template-columns:repeat(2,1fr)}
  .quicks{grid-template-columns:repeat(2,1fr)}
  .row2,.pay-box{grid-template-columns:1fr}
  .toolbar input{width:100%}
  .tb-menu{display:none}
  .topbar{gap:12px;padding:0 14px}
}



.btn.tiny{white-space:nowrap}



.qr-row{display:flex;gap:14px;margin:12px 0 14px}
.qr-item{background:#f8fafd;border:1px solid var(--line);border-radius:10px;padding:8px;text-align:center;width:112px}
.qr-item img{width:94px;height:94px;border-radius:6px;display:block;margin:0 auto 6px;background:#fff;object-fit:contain}
.qr-item span{display:block;color:#4a5666;font-size:13.5px}

/* 添加稿件（富文本） */
.ed-tabs{display:flex;align-items:center;gap:2px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px 8px;margin-bottom:14px;flex-wrap:wrap}
.ed-tab{padding:7px 16px;border-radius:6px;color:#3a4658;font-size:14.5px}
.ed-tab.on{background:var(--blue-l);color:var(--blue);font-weight:600}
.ed-batch{margin-left:auto;background:var(--blue);color:#fff;border-radius:7px;padding:7px 14px;font-size:14px;font-weight:600;position:relative}
.ed-batch em{font-style:normal;background:#ff6b3d;color:#fff;font-size:11.5px;border-radius:8px;padding:0 5px;position:absolute;top:-8px;right:-6px}
.ed-card{padding:18px 22px}
.ed-row{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px dashed #eef2f8}
.ed-row:last-of-type{border-bottom:0}
.ed-label{flex:0 0 92px;color:#4a5666;font-size:14.5px;padding-top:9px}
.ed-label .req{color:#ff6b3d;font-style:normal;font-size:11px;vertical-align:2px;margin-right:4px}
.ed-ctrl{flex:1;min-width:0}
.ed-ctrl input{width:100%;height:40px;border:1px solid var(--line);border-radius:8px;padding:0 12px;font-size:14px;outline:none;background:#fff}
.ed-ctrl input:focus{border-color:var(--blue)}
.ed-with-btn{display:flex;gap:10px}
.ed-with-btn .btn{flex:0 0 auto;height:40px}
.ed-box{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}
.ed-tools{display:flex;align-items:center;gap:2px;flex-wrap:wrap;padding:6px 8px;border-bottom:1px solid #eff3f9;background:#fbfcfe}
.ed-tools a{padding:4px 9px;border-radius:5px;color:#5a6678;font-size:13.5px;cursor:pointer}
.ed-tools a:hover{background:var(--blue-l);color:var(--blue)}
.ed-tools select{height:26px;border:1px solid var(--line);border-radius:5px;font-size:13px;color:#5a6678;background:#fff}
.ed-body{min-height:320px;max-height:540px;overflow:auto;padding:14px 16px;font-size:14.5px;line-height:1.9;outline:none}
.ed-body:empty:before{content:attr(placeholder);color:#a6b0bf}
.ed-body img{max-width:100%}
.ed-status{display:flex;justify-content:space-between;color:#9aa4b2;font-size:12.5px;padding:6px 12px;border-top:1px solid #eff3f9;background:#fbfcfe}
.ed-actions{display:flex;gap:10px;padding-top:16px}
.ed-pick{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:0 0 14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.ed-pick-t{color:#8592a5;font-size:13.5px;flex:0 0 auto}
.ed-pick .chips{margin:0;display:flex;gap:8px;flex-wrap:wrap}
.notice{background:#fff8f1;border:1px solid #ffe2c9;border-radius:10px;padding:12px 16px;color:#8a4d1f;font-size:13.5px;line-height:1.8;margin-bottom:14px}
.notice b{color:#e2651a;margin-right:8px}
.ed-foot{position:sticky;bottom:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 -6px 18px rgba(13,101,244,.07);font-size:14px;color:#4a5666;flex-wrap:wrap}
.ed-foot b{color:var(--blue)}
.modal{position:fixed;inset:0;background:rgba(16,28,45,.45);display:flex;align-items:center;justify-content:center;z-index:99}
.modal.hide{display:none}
.modal-card{background:#fff;border-radius:12px;width:min(760px,92vw);max-height:82vh;display:flex;flex-direction:column;overflow:hidden}
.modal-hd{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}
.modal-hd h3{margin:0;font-size:16.5px}
.modal-x{color:#98a2b3;font-size:20px;line-height:1}
.modal-body{padding:18px;overflow:auto;font-size:14.5px;line-height:1.9}
.preview-hd{color:#8592a5;font-size:13px;margin-bottom:12px}
.his-item{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed #eef2f8;font-size:14px}
.his-item em{font-style:normal;color:#98a2b3;font-size:12.5px}


/* 报价工具条与表格统一排版 */
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.toolbar input,.toolbar select{height:36px;border:1px solid var(--line);border-radius:8px;padding:0 12px;font-size:14.5px;background:#fff;outline:none}
.toolbar input{width:220px}
.toolbar .btn,.toolbar .btn.tiny{height:36px;padding:0 16px;font-size:14.5px;border-radius:8px}
.pricerange{display:inline-flex;align-items:center;gap:6px}
.pricerange input{width:100px!important}
.quote-tb th{font-size:14.5px;font-weight:600;color:#67758c;padding:0 10px 12px}
.quote-tb td{font-size:15px}
.quote-tb th:nth-child(2),.quote-tb td:nth-child(2),
.quote-tb th:nth-child(4),.quote-tb td:nth-child(4),
.quote-tb th:nth-child(6),.quote-tb td:nth-child(6),
.quote-tb th:nth-child(7),.quote-tb td:nth-child(7),
.quote-tb th:nth-child(8),.quote-tb td:nth-child(8),
.quote-tb th:nth-child(9),.quote-tb td:nth-child(9){text-align:center}
.quote-tb td:nth-child(2) .tag{background:none;padding:0;color:#4a5666;font-size:15px}
.quote-tb .fav{font-size:20px;line-height:1}
.quote-tb .price{font-size:15.5px}
@media (max-width:1000px){.toolbar input{width:100%}}

.quote-tb .geo-cell{font-size:14px;line-height:1.6;color:#5a6678}

.quote-tb th:first-child,.quote-tb td:first-child{box-shadow:8px 0 10px -8px rgba(16,28,45,.25)}



.quote-tb .mt{display:flex;align-items:flex-start;gap:4px;flex-wrap:nowrap}
.quote-tb .mt .geo-dot{flex:0 0 auto;margin-top:3px}
.quote-tb .ms{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.55}

.quote-tb{table-layout:fixed}
.quote-tb .tname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:#22314a;font-weight:600}
.quote-tb th{white-space:nowrap}

.quote-tb td:nth-child(5) .ms{white-space:nowrap}

.quote-tb td:nth-child(5) .ms{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}

.quote-tb td:nth-child(5){white-space:nowrap;font-size:13px}


/* 报价表：格子线网格（对齐 meijieku 表格观感） */
.quote-tb{border-collapse:collapse;border:1px solid #e6ecf5}
.quote-tb th{background:#f7f9fd;color:#5d6b80;border-right:1px solid #e2e9f4;border-bottom:1px solid #e2e9f4;padding:13px 10px}
.quote-tb td{border-right:1px solid #edf2f9;border-bottom:1px solid #edf2f9}
.quote-tb th:first-child,.quote-tb td:first-child{box-shadow:none;border-right:1px solid #e2e9f4}
.quote-tb tr:hover td{background:#f5f9ff}
.quote-tb td{border-right:1px solid #e2eaf5;border-bottom:1px solid #e6edf7}
.quote-tb th{border-right:1px solid #dde6f4;border-bottom:1px solid #dde6f4;background:#f5f8fe}


/* 报价表：单元格统一顶对齐 + 行业/可发GEO 居中，时间列收窄 */
.quote-tb td{vertical-align:top}
.quote-tb th:nth-child(2),.quote-tb td:nth-child(2),
.quote-tb th:nth-child(3),.quote-tb td:nth-child(3){text-align:center}
.quote-tb td:nth-child(5){font-size:12.5px}
.quote-tb .geo-nw{white-space:nowrap}
.quote-tb .geo-etc{white-space:nowrap;color:#9aa6b8}
.quote-tb .geo-cell .ms{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center}
.quote-tb td.tm .ms{display:block;white-space:nowrap;overflow:hidden;font-size:12.5px}
.quote-tb td.tm .ms{font-size:14px}


/* 报价表：除媒体名称外，所有单元格内容上下左右居中 */
.quote-tb th:nth-child(n+2){text-align:center}
.quote-tb td:nth-child(n+2){text-align:center;vertical-align:middle}

/* 报价表分页条（对齐 meijieku 样式） */
.pager{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:14px 0 2px!important}
.pg-total{font-size:14.5px;color:#4a5666;margin-right:6px}
.pg-sub{font-size:13px;color:#98a2b3;margin-left:8px}
.pg-num,.pg-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 6px;border:1px solid #e2e9f4;border-radius:6px;font-size:14.5px;color:#40506b;background:#fff;box-sizing:border-box}
.pg-num.on{border-color:#0D65F4;color:#0D65F4;font-weight:700}
.pg-num:hover,.pg-arrow:hover{border-color:#0D65F4;color:#0D65F4}
.pg-arrow.dis{color:#c8d2e0;background:#f7f9fd;pointer-events:none}
.pg-dot{color:#98a2b3;padding:0 4px}
.pg-size{height:34px;border:1px solid #e2e9f4;border-radius:6px;font-size:14.5px;padding:0 6px;color:#40506b;background:#fff;margin-left:4px}
.quote-tb td.geo-cell .ms{font-size:15px;line-height:1.6}

.quote-tb td.tm .ms{font-size:12.5px}


/* 报价分页：整体靠左紧凑，不撑满 */
#quotePager{justify-content:flex-start!important;gap:4px!important}
#quotePager .pg-num,#quotePager .pg-arrow{flex:0 0 auto}
