/* 外贸工具网 · 定制样式（在主题 style.min.css 之后加载） */
:root {
    --wm-brand: #1f6feb;
    --wm-brand-2: #0a9396;
    --wm-accent: #ff6a00;
    --wm-card: #fff;
    --wm-text: #282a2d;
    --wm-muted: #6c757d;
    --wm-line: rgba(0, 0, 0, .06);
    --wm-soft: #f4f7fb;
}
.io-black-mode {
    --wm-card: #2c2e2f;
    --wm-text: #e6e6e6;
    --wm-muted: #9aa0a6;
    --wm-line: rgba(255, 255, 255, .08);
    --wm-soft: #252728;
}

/* ---------- 顶部导航「找服务」高亮 ---------- */
.site-menu .wm-nav-hot > a { color: var(--wm-accent) !important; font-weight: 600; }
.site-menu .wm-nav-hot > a::after {
    content: "HOT"; font-size: 10px; line-height: 1; padding: 2px 4px; margin-left: 4px; border-radius: 3px;
    background: var(--wm-accent); color: #fff; vertical-align: top; position: relative; top: 4px;
}

/* ---------- 首页仪表盘 ---------- */
.wm-dash { margin-left: -.5rem; margin-right: -.5rem; }
.wm-panel {
    background: var(--wm-card); border-radius: 12px; padding: 14px 16px; height: 100%;
    box-shadow: 0 0 0 1px var(--wm-line);
}
.wm-panel-title { font-size: 14px; font-weight: 600; color: var(--wm-text); margin-bottom: 10px; display: flex; align-items: center; }
.wm-panel-title i { color: var(--wm-brand); margin-right: 6px; }
.wm-panel-title .wm-sub { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--wm-muted); }
.wm-clock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wm-clock { background: var(--wm-soft); border-radius: 8px; padding: 8px 6px; text-align: center; }
.wm-clock .c { font-size: 12px; color: var(--wm-muted); }
.wm-clock .t { font-size: 18px; font-weight: 700; color: var(--wm-text); font-variant-numeric: tabular-nums; }
.wm-clock .d { font-size: 11px; color: var(--wm-muted); }
.wm-clock.night .t { color: var(--wm-muted); }
.wm-clock.work .t { color: var(--wm-brand-2); }
.wm-rate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; font-size: 13px; }
.wm-rate { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--wm-line); padding: 3px 0; color: var(--wm-text); }
.wm-rate b { font-variant-numeric: tabular-nums; }
.wm-rate span { color: var(--wm-muted); }
.wm-holi { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--wm-line); font-size: 13px; color: var(--wm-text); }
.wm-holi:last-child { border-bottom: 0; }
.wm-holi .n small { color: var(--wm-muted); margin-left: 4px; }
.wm-holi .days { font-weight: 700; color: var(--wm-accent); font-variant-numeric: tabular-nums; }
.wm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wm-quick a {
    font-size: 12px; padding: 4px 10px; border-radius: 20px; background: var(--wm-soft); color: var(--wm-text);
}
.wm-quick a:hover { background: var(--wm-brand); color: #fff; text-decoration: none; }

/* ---------- 站长服务 ---------- */
.wm-svc-wrap {
    border-radius: 14px; padding: 18px; margin-bottom: 1.5rem; color: #fff;
    background: linear-gradient(120deg, #0b3d91 0%, #1f6feb 55%, #0a9396 100%);
}
.wm-svc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.wm-svc-head h3 { font-size: 18px; margin: 0; color: #fff; font-weight: 700; }
.wm-svc-head p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .88) !important; }
.wm-svc-head .wm-svc-cta { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.wm-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; font-size: 13px;
    border: 0; cursor: pointer; white-space: nowrap; line-height: 1.4;
}
.wm-btn:hover { text-decoration: none; filter: brightness(1.05); }
.wm-btn-wx { background: #07c160; color: #fff !important; }
.wm-btn-tb { background: var(--wm-accent); color: #fff !important; }
.wm-btn-ghost { background: rgba(255, 255, 255, .15); color: #fff !important; }
.wm-btn-line { background: transparent; color: var(--wm-brand) !important; box-shadow: inset 0 0 0 1px var(--wm-brand); }
.wm-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wm-svc {
    background: rgba(255, 255, 255, .96); color: #282a2d; border-radius: 10px; padding: 14px; display: flex; flex-direction: column;
}
.io-black-mode .wm-svc { background: rgba(30, 32, 33, .92); color: #e6e6e6; }
.wm-svc .ic { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #e8f0fe; color: var(--wm-brand); font-size: 18px; margin-bottom: 8px; }
.wm-svc h4 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: inherit; }
.wm-svc p { font-size: 12px; color: var(--wm-muted); margin: 0 0 8px; flex: 1; }
.wm-svc .price { font-size: 15px; font-weight: 700; color: var(--wm-accent); }
.wm-svc .go { font-size: 12px; margin-top: 8px; color: var(--wm-brand); cursor: pointer; }

/* ---------- 服务页 ---------- */
.wm-hero { border-radius: 14px; padding: 36px 28px; margin-bottom: 20px; color: #fff; background: linear-gradient(120deg, #0b3d91 0%, #1f6feb 55%, #0a9396 100%); }
.wm-hero h1 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.wm-hero p { font-size: 15px; color: rgba(255, 255, 255, .9) !important; max-width: 720px; }
.wm-hero .wm-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.wm-hero .wm-badges span { background: rgba(255, 255, 255, .16); padding: 4px 10px; border-radius: 20px; font-size: 12px; }
.wm-sec { background: var(--wm-card); border-radius: 14px; padding: 22px; margin-bottom: 20px; box-shadow: 0 0 0 1px var(--wm-line); }
.wm-sec > h2 { font-size: 18px; font-weight: 700; color: var(--wm-text); margin-bottom: 16px; }
.wm-sec > h2 small { font-size: 13px; color: var(--wm-muted); font-weight: 400; margin-left: 8px; }
.wm-svc-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wm-sd { border-radius: 12px; padding: 18px; background: var(--wm-soft); display: flex; flex-direction: column; }
.wm-sd .top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.wm-sd .top .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--wm-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.wm-sd h3 { font-size: 17px; font-weight: 700; margin: 0; color: var(--wm-text); }
.wm-sd .price { margin-left: auto; font-size: 18px; font-weight: 800; color: var(--wm-accent); white-space: nowrap; }
.wm-sd p { color: var(--wm-muted); font-size: 13px; }
.wm-sd ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.wm-sd li { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: var(--wm-card); color: var(--wm-text); }
.wm-sd li::before { content: "✓ "; color: #07c160; }
.wm-sd .act { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.wm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.wm-step { background: var(--wm-soft); border-radius: 10px; padding: 14px; position: relative; }
.wm-step::before { counter-increment: s; content: counter(s); position: absolute; top: 12px; right: 14px; font-size: 26px; font-weight: 800; color: var(--wm-line); }
.wm-step b { display: block; color: var(--wm-text); margin-bottom: 4px; }
.wm-step span { font-size: 12px; color: var(--wm-muted); }
.wm-contact { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.wm-qr-box { text-align: center; }
.wm-qr-box img { width: 200px; height: 200px; object-fit: contain; border-radius: 10px; background: #fff; padding: 6px; box-shadow: 0 0 0 1px var(--wm-line); }
.wm-qr-box .id { margin-top: 8px; font-size: 14px; color: var(--wm-text); }
.wm-form .form-control { font-size: 14px; }
.wm-form label { font-size: 13px; color: var(--wm-muted); margin-bottom: 4px; }
.wm-form .hp { position: absolute; left: -9999px; }
.wm-faq details { border-bottom: 1px solid var(--wm-line); padding: 10px 0; }
.wm-faq summary { cursor: pointer; font-weight: 600; color: var(--wm-text); }
.wm-faq details p { margin: 8px 0 0; color: var(--wm-muted); font-size: 13px; }

/* ---------- 联系弹窗 & 浮动按钮 ---------- */
.wm-float { position: fixed; right: 14px; bottom: 120px; z-index: 1030; display: flex; flex-direction: column; gap: 8px; }
.wm-float a {
    width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column;
    color: #fff !important; font-size: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); text-decoration: none !important;
}
.wm-float a small { font-size: 9px; line-height: 1; margin-top: 2px; }
.wm-float .wx { background: #07c160; }
.wm-float .tb { background: var(--wm-accent); }
.wm-modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1060; display: none; align-items: center; justify-content: center; padding: 16px; }
.wm-modal-bg.show { display: flex; }
.wm-modal { background: var(--wm-card); color: var(--wm-text); border-radius: 14px; width: 100%; max-width: 360px; padding: 22px; text-align: center; position: relative; }
.wm-modal .x { position: absolute; top: 8px; right: 12px; font-size: 22px; color: var(--wm-muted); cursor: pointer; background: none; border: 0; }
.wm-modal h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.wm-modal .tip { font-size: 12px; color: var(--wm-muted); margin-bottom: 12px; }
.wm-modal img { width: 200px; height: 200px; object-fit: contain; border-radius: 8px; background: #fff; }
.wm-modal .row2 { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.wm-modal .kl { margin-top: 12px; font-size: 12px; background: var(--wm-soft); border-radius: 8px; padding: 8px; word-break: break-all; text-align: left; }
.wm-toast { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); background: rgba(0, 0, 0, .8); color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 14px; z-index: 1100; display: none; }

/* ---------- 详情页侧边服务卡 ---------- */
.wm-side-svc { border-radius: 12px; padding: 16px; color: #fff; background: linear-gradient(135deg, #0b3d91, #1f6feb); margin-bottom: 1rem; }
.wm-side-svc h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.wm-side-svc ul { padding-left: 18px; font-size: 12px; margin-bottom: 10px; opacity: .92; }

/* ---------- 懒加载 tab ---------- */
.wm-lazy-loading { padding: 30px; text-align: center; color: var(--wm-muted); width: 100%; font-size: 13px; }

@media (max-width: 991px) {
    .wm-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .wm-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .wm-clock-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .wm-clock .t { font-size: 15px; }
    .wm-svc-head .wm-svc-cta { margin-left: 0; }
    .wm-svc-detail { grid-template-columns: 1fr; }
    .wm-contact { grid-template-columns: 1fr; }
    .wm-hero { padding: 24px 18px; }
    .wm-hero h1 { font-size: 22px; }
    .wm-float { bottom: 110px; right: 10px; }
}
@media (max-width: 480px) {
    .wm-svc-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .wm-svc { padding: 10px; }
    .wm-svc p { display: none; }
    .wm-steps { grid-template-columns: 1fr; }
    .wm-rate-grid { grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; }
}

/* 搜索框上方 LOGO */
#search .text-center img { max-width: 92%; height: auto; max-height: 100px; }
