:root {
  --primary: #2563eb;
  --primary-soft: #e8f0fe;
  --green: #16a34a;
  --green-soft: #e7f6ec;
  --purple: #7c3aed;
  --purple-soft: #f1ebfe;
  --orange: #ea580c;
  --orange-soft: #fff0e6;
  --teal: #0d9488;
  --teal-soft: #e0f7f4;
  --mist: #64748b;
  --mist-soft: #eef1f6;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-hover: 0 10px 30px rgba(16, 24, 40, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* 固定宽度容器，兼容横屏/竖屏 */
.home, .section-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.hidden { display: none !important; }

/* ============ 首页 / Hero ============ */
.hero {
  position: relative;
  margin: 0 -24px 24px;
  padding: 56px 24px 60px;
  background: radial-gradient(1200px 480px at 80% -10%, #dbe7ff 0%, transparent 60%),
              linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  font-size: 13px; letter-spacing: 1px; margin-bottom: 16px;
}
.hero h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: 1px; }
.hero-sub { margin: 12px 0 26px; font-size: 15px; opacity: .92; }

.hero-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 14px; padding: 6px 6px 6px 16px;
  box-shadow: 0 12px 30px rgba(2, 12, 40, .25);
  max-width: 560px; margin: 0 auto;
}
.hero-search .hs-icon { font-size: 18px; opacity: .55; }
.hero-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 15px; padding: 12px 4px; color: var(--text);
}
.hero-search button {
  border: none; cursor: pointer; padding: 12px 22px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600;
  transition: background .15s; flex: 0 0 auto;
}
.hero-search button:hover { background: #1d4ed8; }

/* 公告条 */
.home-ann {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 22px; padding: 12px 16px;
  background: #fff7e6; border: 1px solid #ffe1a8; border-radius: 12px;
  font-size: 13.5px; color: #8a5a00; line-height: 1.5;
}
.ann-tag {
  flex: 0 0 auto; background: #faad14; color: #fff;
  padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
}

/* 目录卡片 */
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.cat-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--primary);
}
.cat-blue::before { background: var(--primary); }
.cat-green::before { background: var(--green); }
.cat-purple::before { background: var(--purple); }
.cat-orange::before { background: var(--orange); }
.cat-teal::before { background: var(--teal); }
.cat-mist::before { background: var(--mist); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-icon {
  width: 54px; height: 54px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: var(--primary-soft);
}
.cat-blue .cat-icon { background: var(--primary-soft); }
.cat-green .cat-icon { background: var(--green-soft); }
.cat-purple .cat-icon { background: var(--purple-soft); }
.cat-orange .cat-icon { background: var(--orange-soft); }
.cat-teal .cat-icon { background: var(--teal-soft); }
.cat-mist .cat-icon { background: var(--mist-soft); }
.cat-body { flex: 1; min-width: 0; }
.cat-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cat-count {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
}
.cat-count.ext { color: #0f766e; background: #e6fffa; border-color: #99e6da; }
.cat-desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.cat-arrow { font-size: 26px; color: var(--border); flex: 0 0 auto; transition: transform .18s, color .18s; }
.cat-card:hover .cat-arrow { color: var(--primary); transform: translateX(4px); }

/* ============ 栏目页 ============ */
.back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 22px 0 14px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  font-size: 14px; cursor: pointer; transition: all .15s;
}
.back-btn:hover { color: var(--primary); border-color: var(--primary); }

.sec-header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sec-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--primary-soft);
}
.sec-warehouse { background: var(--primary-soft); }
.sec-logistics { background: var(--green-soft); }
.sec-staff { background: var(--purple-soft); }
.sec-faq { background: var(--orange-soft); }
.sec-search { background: #eef2ff; }
.sec-titles { flex: 1; min-width: 0; }
.sec-titles h2 { margin: 0; font-size: 20px; font-weight: 800; }
.sec-titles p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.sec-count {
  flex: 0 0 auto; align-self: flex-start;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted);
}

/* 醒目搜索框 */
.sec-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 6px 6px 6px 18px; margin-bottom: 14px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.sec-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.sec-search .ss-icon { font-size: 20px; opacity: .55; }
.sec-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 16px; padding: 14px 4px; color: var(--text);
}

/* 筛选 chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 7px 15px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--primary); border-color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* 结果列表 */
.results { display: flex; flex-direction: column; gap: 12px; }

.item {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 16px 18px; transition: box-shadow .15s, border-color .15s;
}
.item:hover { box-shadow: var(--shadow-hover); }
.item-head {
  width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
  padding: 0; font: inherit; color: inherit; display: block;
}
.item-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-hint {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 12.5px; color: var(--primary); cursor: pointer; user-select: none;
  background: rgba(29, 78, 216, 0.08); border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 999px; padding: 3px 12px;
}
.item-hint .chev { font-size: 11px; transition: transform .2s; }
.item.open .item-hint .chev { transform: rotate(180deg); }
.item-sub { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.item-sub a { color: var(--primary); text-decoration: none; }
.item-sub.role { color: var(--text); font-weight: 600; }
.item-note {
  font-size: 12.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; padding: 5px 10px; margin-top: 8px; line-height: 1.5;
}
.item-fee { font-size: 13.5px; color: #b45309; font-weight: 600; margin-top: 4px; }

.item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ibtn {
  padding: 6px 13px; border: 1px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--muted); font-size: 12.5px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; transition: all .15s; white-space: nowrap;
}
.ibtn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.ibtn.nav { border-color: var(--green); color: var(--green); }
.ibtn.nav:hover { background: var(--green-soft); border-color: var(--green); color: var(--green); }

.item-detail { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.wh-row { display: flex; gap: 10px; font-size: 13px; margin: 6px 0; line-height: 1.55; }
.wh-k { flex: 0 0 96px; color: var(--muted); font-weight: 600; }
.wh-v { flex: 1; color: var(--text); word-break: break-word; white-space: pre-line; }
.wh-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.wh-fig { margin: 0; flex: 1 1 150px; max-width: 220px; }
.wh-fig img { width: 100%; border-radius: 8px; border: 1px solid var(--border); display: block; cursor: zoom-in; }
.wh-fig figcaption { font-size: 11.5px; color: var(--muted); margin-top: 4px; text-align: center; }

.tag {
  font-size: 11.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border-radius: 6px; padding: 2px 8px;
}

/* 物流商条目 */
.lg-item .item-head2 { cursor: default; }
.lg-item { border-left: 4px solid var(--green); }

/* 人员条目 */
.staff-item { border-left: 4px solid var(--purple); }
.staff-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--purple), #a78bfa); color: #fff;
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.duties { display: flex; flex-wrap: wrap; gap: 6px; }
.duty-tag { background: var(--purple-soft); color: #6d28d9; padding: 3px 10px; border-radius: 6px; font-size: 12px; }
.staff-group { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.sg-label {
  flex: 0 0 auto; font-size: 12px; line-height: 1; padding: 5px 10px;
  border-radius: 999px; margin-top: 1px; white-space: nowrap;
}
.sg-buy { color: #185fa5; background: #e6f1fb; border: 1px solid #b5d4f4; }
.sg-sale { color: #3b6d11; background: #eaf3de; border: 1px solid #c0dd97; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }

/* FAQ */
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: 14.5px;
}
.faq-q .arrow { transition: transform .2s; color: var(--muted); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); font-size: 13.5px; white-space: pre-line; }
.faq-item.open .faq-a { display: block; }

/* 空状态 / 搜索分组 */
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.es-icon { font-size: 40px; margin-bottom: 12px; }
.es-title { font-size: 16px; font-weight: 600; color: var(--text); }
.es-sub { font-size: 13px; margin-top: 6px; }

.search-group { margin-bottom: 22px; }
.sg-title { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sg-title span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.sg-more { font-size: 12.5px; color: var(--muted); text-align: center; padding: 10px; }

/* 深链高亮 */
.item.highlight { animation: hl 2.6s ease-in-out; }
@keyframes hl { 0%,100% { box-shadow: var(--shadow); } 15%,60% { box-shadow: 0 0 0 3px rgba(37,99,235,.45); } }

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .home, .section-page { padding: 0 16px 40px; }
  .hero { margin: 0 -16px 20px; padding: 40px 16px 46px; }
  .hero h1 { font-size: 25px; }
  .hero-search { flex-wrap: nowrap; }
  .hero-search input { font-size: 14px; }
  .hero-search button { padding: 11px 16px; }
  .catalog { grid-template-columns: 1fr; gap: 14px; }
  .sec-header { padding: 14px 16px; gap: 12px; }
  .sec-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
  .sec-titles h2 { font-size: 18px; }
  .sec-search input { font-size: 15px; padding: 12px 4px; }
  .wh-k { flex-basis: 84px; }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .catalog { grid-template-columns: repeat(2, 1fr); }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 28px 16px 32px; }
  .hero h1 { font-size: 22px; }
  .hero-sub { margin: 8px 0 18px; }
}

/* =========================================================================
 * 使用说明页（#/guide，站内路由渲染，内容在 guide-content.js）
 * 类名统一 g- 前缀，避免与门户现有样式冲突
 * ========================================================================= */
.guide-page { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }

.g-hero {
  position: relative; overflow: hidden;
  margin: 0 0 20px; padding: 34px 20px 38px;
  border-radius: 18px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
  box-shadow: 0 8px 22px rgba(30, 58, 138, .18);
}
.g-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 78% -20%, rgba(255,255,255,.28), transparent 60%);
}
.g-hero > * { position: relative; z-index: 1; }
.g-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 12px;
  letter-spacing: .5px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32);
}
.g-hero h1 { margin: 12px 0 6px; font-size: 22px; line-height: 1.3; font-weight: 700; color: #fff; }
.g-hero p { margin: 0; opacity: .9; font-size: 14px; color: #fff; }
.g-iconbox {
  width: 68px; height: 68px; margin: 14px auto 0; border-radius: 20px;
  background: linear-gradient(145deg, #eaf2ff, #dbeafe);
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.g-card {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
  padding: 20px; margin-bottom: 16px;
}
.g-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.g-dot {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.g-n { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }

.g-ways { display: flex; flex-direction: column; gap: 12px; }
.g-way {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
}
.g-no {
  width: 26px; height: 26px; border-radius: 50%; flex: none; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.g-way h4 { margin: 0 0 4px; font-size: 15px; }
.g-steps { margin: 6px 0 0; padding-left: 0; list-style: none; font-size: 13.5px; color: #374151; }
.g-steps li { position: relative; padding-left: 16px; margin-top: 4px; }
.g-steps li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: #c7d2fe;
}
.g-tag {
  display: inline-block; padding: 1px 8px; border-radius: 6px;
  background: #eef2ff; color: #3730a3; font-size: 12.5px; margin: 0 1px;
}
.g-dev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.g-devbtn {
  flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; color: #374151;
}
.g-devbtn b { font-size: 12px; color: var(--muted); font-weight: 600; }

.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .g-grid { grid-template-columns: 1fr; } }
.g-mod {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; border-left: 4px solid var(--primary);
}
.g-mod h4 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.g-cnt {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted);
  background: #f3f4f6; padding: 1px 8px; border-radius: 999px;
}
.g-mod p { margin: 0; font-size: 13px; color: var(--muted); }
.g-keys { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.g-keys i { font-style: normal; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: #f3f4f6; color: #4b5563; }

.g-tips { margin: 0; padding: 0; list-style: none; }
.g-tips li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.g-tips li:first-child { border-top: 0; padding-top: 0; }
.g-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 15px; background: #eef2ff;
}
.g-tips b { display: block; font-size: 14px; }
.g-tips span { font-size: 13px; color: var(--muted); }

.g-qa { margin: 0; }
.g-qa dt { font-weight: 600; font-size: 14px; margin-top: 12px; }
.g-qa dt:first-child { margin-top: 0; }
.g-qa dd { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

.g-footer { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 26px; }

/* 钉钉环境拦截页 */
.dt-block {
  max-width: 360px;
  margin: 18vh auto 0;
  padding: 32px 26px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.12);
}
.dt-logo {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
}
.dt-block h1 { font-size: 20px; color: #143b3a; margin: 0 0 12px; }
.dt-block p { font-size: 14px; line-height: 1.7; color: #4b5563; margin: 0 0 18px; }
.dt-block b { color: #0d9488; }
.dt-tip { font-size: 12.5px; color: #94a3b8; background: #f1f5f9; border-radius: 10px; padding: 8px 12px; }

/* 站内图片灯箱（点击放大，不跳浏览器） */
.lb-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 15, 25, .9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 18px;
  animation: lbIn .18s ease-out;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-mask img {
  max-width: 100%; max-height: 76vh; object-fit: contain;
  border-radius: 10px; background: #fff;
}
.lb-cap { color: #e8f1f0; margin-top: 14px; font-size: 14px; }
.lb-close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  border: none; font-size: 19px; line-height: 1; cursor: pointer;
}
.lb-tip { position: absolute; bottom: 20px; color: rgba(255,255,255,.55); font-size: 12px; }
.wh-img { cursor: zoom-in; }

/* 说明页懒加载占位 */
.g-loading { padding: 48px 16px; text-align: center; color: #94a3b8; font-size: 14px; }
