/* ============================================================
   广州跨境电子商务贸易公共服务平台 —— 原型样式
   风格还原自 https://gz.gd.singlewindow.cn/cbec2/login
   主色：#4697ce（导航/高亮）  页脚：#021f3c  内容区：70% 宽、min-width 1024px
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  min-width: 1024px;
}
a { text-decoration: none; color: #333; }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* ---------- 原站布局快捷样式 ---------- */
.main-contain { width: 70%; min-width: 1024px; margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-x-center { display: flex; justify-content: center; }
.flex-y-center { display: flex; align-items: center; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-md { gap: 10px; }
.gap-lg { gap: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-md { margin-top: 20px; margin-bottom: 20px; }
.border-bottom { border-bottom: 1px solid #ddd; }
.text-center { text-align: center; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* ---------- 顶部 Logo 区（还原原站） ---------- */
.site-head { padding: 12px 0 8px; }
.site-head table { border-collapse: collapse; }
.site-head .logo-td { width: 75px; }
.site-head .logo-td img { width: 100%; display: block; }
.site-head h1 { font-size: 30px; color: #333; font-weight: bold; letter-spacing: 1px; }
.site-head h3 { font-size: 20px; color: #555; font-weight: normal; margin-top: 4px; letter-spacing: 2px; }

/* ---------- 导航栏（还原原站：#4697ce） ---------- */
.navbar-wrapper {
  display: flex;
  font-size: 16px;
  color: #fff;
  background-color: #4697ce;
}
.navbar-nav-item { position: relative; }
.navbar-nav-item a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  color: #fff;
  transition: all 0.2s;
  white-space: nowrap;
}
.navbar-wrapper .navbar-nav-item:hover a { color: #4697ce; background-color: #fff; }
.navbar-nav-item.active a { font-weight: 600; color: #4697ce; background-color: #fff; }
/* 新增 tab 的“新”角标 */
.navbar-nav-item .new-badge {
  position: absolute; top: 4px; right: 2px;
  background: #e4562e; color: #fff; font-size: 10px; line-height: 1;
  padding: 2px 4px; border-radius: 3px 3px 3px 0; transform: scale(.9);
}

/* ---------- 横幅图（还原原站 middle-logo.png） ---------- */
.banner-middle {
  background-image: url("../img/middle-logo.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 360px;
  position: relative;
}
/* 子页面页头横幅：复用同一张图 + 半透明遮罩放标题 */
.page-banner {
  background-image: url("../img/middle-logo.png");
  background-size: cover;
  background-position: center;
  height: 200px;
  position: relative;
}
.page-banner .banner-mask {
  position: absolute; inset: 0;
  background: rgba(2, 31, 60, 0.45);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff;
}
.page-banner h1 { font-size: 32px; letter-spacing: 3px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.page-banner p { margin-top: 10px; font-size: 14px; opacity: .9; letter-spacing: 1px; }
/* 横幅内入口按钮 */
.banner-entry {
  display: inline-block; margin-top: 20px; padding: 9px 30px;
  background: rgba(255,255,255,.92); color: #021f3c;
  border-radius: 22px; font-size: 15px; font-weight: 600; letter-spacing: 1px;
  transition: all .2s; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.banner-entry:hover { background: #fff; transform: translateY(-2px); }

/* ---------- 通知/政策 Tab（还原原站样式） ---------- */
.tab { display: flex; height: 40px; align-items: center; }
.tab-item { position: relative; padding: 5px 10px; cursor: pointer; font-size: 18px; font-weight: bold; }
.tab-line { display: inline-block; width: 1px; height: 100%; margin: 0 20px; border-right: 1px dashed #333; }
.tab_active, .tab-item:hover { color: #4697ce; border-bottom: 2px solid #4697ce; }
.middle-contain { display: flex; align-items: flex-start; margin: 0 0 30px 25px; }
.middle-contain h2 { color: #bbb; font-weight: normal; border: 1px solid #ddd; padding: 0 5px; }
.middle-contain a { font-weight: bold; font-size: 18px; }
.middle-contain p { font-size: 12px; }
.middle-list { flex-direction: column; margin-left: 10px; }
.middle-list > div { align-items: center; padding: 5px 0 15px 0; }
.middle-list a { display: flex; }
.middle-list img { width: 20px; height: 20px; margin-left: 20px; position: relative; top: 3px; }

/* ---------- 知名企业 Tab ---------- */
.sub-tab { display: flex; margin-left: 30px; }
.sub-tab-item { padding: 5px 15px; margin: 0 10px; cursor: pointer; transition: all 0.2s; font-weight: bold; }
.sub-tab-item.active { transform: scale(1.05); color: #4697ce; }
.sub-tab-item:hover { color: #4697ce; }
.sub-tab-pane { padding: 10px; }
.sub-tab-pane-item { display: flex; flex-wrap: wrap; }
.item-img-wrapper { padding: 5px; cursor: pointer; }
.item-img {
  width: 139px; height: 52px;
  border: 1px solid #e5e5e5; background: #f8f8f8;
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: 14px; letter-spacing: 1px;
}

/* ---------- 页脚（还原原站 #021f3c） ---------- */
.footer {
  display: flex; flex-direction: column;
  color: #fefefe; background-color: #021f3c;
  font-size: 12px; padding: 10px; margin-top: 40px;
}
.footer .org-img { width: 45px; height: 35px; }
.footer a { color: #fefefe; }

/* ============================================================
   以下为「生态服务商 / 服务商入驻」两个新增 tab 页样式
   （沿用原站配色与方角表单风格）
   ============================================================ */

/* ---------- 面包屑 ---------- */
.crumb { padding: 14px 0; font-size: 13px; color: #999; }
.crumb a { color: #666; }
.crumb a:hover { color: #4697ce; }
.crumb .sep { margin: 0 8px; color: #ccc; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 8px 20px; font-size: 14px;
  border: 1px solid transparent; border-radius: 4px; cursor: pointer;
  transition: all .2s; line-height: 1.5; text-align: center;
}
.btn-primary { background: #4697ce; border-color: #3b83b4; color: #fff; }
.btn-primary:hover { background: #3b83b4; }
.btn-outline { background: #fff; color: #4697ce; border-color: #4697ce; }
.btn-outline:hover { background: #eef6fb; }
.btn-ghost { background: #fff; color: #666; border-color: #ddd; }
.btn-ghost:hover { color: #4697ce; border-color: #4697ce; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-lg { padding: 12px 40px; font-size: 16px; }

/* ---------- 标签 ---------- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 2px; font-size: 12px; line-height: 1.7; }
.tag-blue { background: #eef6fb; color: #4697ce; border: 1px solid #cfe4f2; }
.tag-green { background: #ecf7f0; color: #3d9e6c; border: 1px solid #cde8d9; }
.tag-orange { background: #fdf3e7; color: #d68a2c; border: 1px solid #f3ddc0; }
.tag-gray { background: #f5f5f5; color: #666; border: 1px solid #e5e5e5; }

/* ---------- 卡片 ---------- */
.panel { background: #fff; border: 1px solid #e5e5e5; padding: 22px 26px; margin-bottom: 20px; }
.panel-title {
  font-size: 17px; font-weight: bold; color: #333; margin-bottom: 16px;
  padding-left: 10px; border-left: 4px solid #4697ce; line-height: 1.4;
}
.panel-title .sub { font-size: 12px; color: #999; font-weight: normal; margin-left: 10px; }

/* ---------- 免责声明 ---------- */
.disclaimer-body p { font-size: 13px; color: #666; line-height: 1.9; margin-bottom: 8px; }
.disclaimer-body p:last-child { margin-bottom: 0; }

/* ---------- 分类筛选 ---------- */
.filter-bar { background: #f8f8f8; border-bottom: 1px solid #e5e5e5; padding: 12px 0; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-row .lab { font-size: 14px; color: #666; flex-shrink: 0; width: 70px; }
.chip {
  padding: 5px 16px; font-size: 13px; cursor: pointer;
  background: #fff; color: #666; border: 1px solid #ddd; border-radius: 20px;
  transition: all .2s; user-select: none;
}
.chip:hover { color: #4697ce; border-color: #4697ce; }
.chip.on { background: #4697ce; color: #fff; border-color: #4697ce; font-weight: 600; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 14px; }
.toolbar .count { font-size: 14px; color: #666; }
.toolbar .count b { color: #4697ce; font-size: 18px; }

/* ---------- 服务商卡片列表 ---------- */
.prov-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 30px; }
.prov-card {
  background: #fff; border: 1px solid #e5e5e5; padding: 22px;
  display: flex; flex-direction: column; position: relative;
  transition: all .25s;
}
.prov-card:hover { border-color: #4697ce; box-shadow: 0 6px 18px rgba(70, 151, 206, .18); }
.prov-card .new-flag {
  position: absolute; top: 14px; right: -1px; background: #e4562e; color: #fff;
  font-size: 12px; padding: 3px 12px; border-radius: 3px 0 0 3px;
}
.prov-top { display: flex; gap: 14px; }
.prov-logo {
  width: 60px; height: 60px; flex-shrink: 0;
  background: #4697ce; color: #fff; font-size: 26px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.prov-info h3 { font-size: 17px; color: #333; }
.prov-info .full { font-size: 12px; color: #999; margin-top: 2px; }
.prov-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #666; margin-top: 7px; }
.prov-meta .stars { color: #f5a623; }
.prov-auth { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.prov-desc { font-size: 13px; color: #666; line-height: 1.8; margin: 13px 0; }
.prov-services { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.prov-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed #e0e0e0; padding-top: 12px; margin-top: auto;
}
.prov-foot .region { font-size: 12px; color: #999; }
.prov-foot .ops { display: flex; gap: 8px; }
.empty-tip { text-align: center; padding: 70px 0; color: #999; grid-column: 1 / -1; }
.empty-tip .icon { font-size: 46px; margin-bottom: 10px; }

/* ---------- 服务商详情 ---------- */
.detail-wrap { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 20px; }
.detail-main { flex: 1; min-width: 0; }
.detail-side { width: 320px; flex-shrink: 0; }
.detail-head { display: flex; gap: 18px; }
.detail-logo {
  width: 80px; height: 80px; flex-shrink: 0;
  background: #4697ce; color: #fff; font-size: 36px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.detail-head h2 { font-size: 22px; color: #333; }
.detail-head .full { color: #999; font-size: 13px; margin-top: 2px; }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #666; margin-top: 7px; }
.detail-head .meta .stars { color: #f5a623; }
.detail-head .auth { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table td { padding: 11px 8px; border-bottom: 1px dashed #e5e5e5; vertical-align: top; }
.info-table td.k { width: 120px; color: #999; }
.info-table tr:last-child td { border-bottom: none; }
.svc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.review-item { border-bottom: 1px dashed #e5e5e5; padding: 14px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .rv-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.review-item .rv-user { font-weight: 600; }
.review-item .rv-user .stars { color: #f5a623; margin-left: 8px; font-size: 12px; }
.review-item .rv-date { color: #999; }
.review-item p { font-size: 13px; color: #666; }
.side-card { text-align: center; }
.side-card h3 { font-size: 17px; color: #333; }
.side-card .price { font-size: 13px; color: #999; margin: 10px 0 16px; }
.side-ops { display: flex; flex-direction: column; gap: 10px; }
.side-ops .btn { width: 100%; }
.side-stat { display: flex; justify-content: space-around; padding: 16px 0 4px; }
.side-stat .v { font-size: 20px; font-weight: 700; color: #4697ce; }
.side-stat .l { font-size: 12px; color: #999; }
.side-note {
  font-size: 12px; color: #666; margin-top: 14px; line-height: 1.8; text-align: left;
  background: #eef6fb; border: 1px solid #cfe4f2; padding: 10px 12px;
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 999; align-items: center; justify-content: center;
}
.modal-mask.open { display: flex; }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; }
.modal-head {
  padding: 14px 20px; border-bottom: 1px solid #e5e5e5;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { font-size: 16px; color: #333; }
.modal-close { font-size: 22px; color: #999; cursor: pointer; line-height: 1; }
.modal-body { padding: 20px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid #e5e5e5; text-align: right; }
.modal-foot .btn + .btn { margin-left: 8px; }

/* ---------- 表单（还原原站方角 form-control） ---------- */
.form-label { font-size: 14px; color: #333; font-weight: 600; margin-bottom: 6px; display: block; }
.form-label .req { color: #e4562e; margin-right: 4px; }
.form-control {
  width: 100%; padding: 8px 12px; font-size: 14px; color: #333;
  border: 1px solid #ccc; border-radius: 0; outline: none; background: #fff;
  font-family: inherit;
}
.form-control:focus { border-color: #4697ce; box-shadow: none; }
textarea.form-control { resize: vertical; min-height: 84px; }
.form-hint { font-size: 12px; color: #999; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- 入驻步骤条 ---------- */
.steps-bar { background: #f8f8f8; border-bottom: 1px solid #e5e5e5; }
.steps-bar .main-contain { display: flex; justify-content: center; padding: 16px 0; }
.stp { display: flex; align-items: center; }
.stp .dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: #e0e0e0; color: #999; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.stp .lbl { margin-left: 9px; font-size: 15px; color: #999; }
.stp .line { width: 80px; height: 0; border-top: 1px dashed #ccc; margin: 0 14px; }
.stp.on .dot { background: #4697ce; color: #fff; }
.stp.on .lbl { color: #4697ce; font-weight: 600; }
.stp.done .dot { background: #3d9e6c; color: #fff; }
.stp.done .lbl { color: #3d9e6c; }

.join-wrap { padding: 10px 0 40px; }
.step-tip {
  background: #eef6fb; border: 1px solid #cfe4f2; padding: 12px 16px;
  font-size: 13px; color: #2a6a95; margin-bottom: 20px; line-height: 1.8;
}
.type-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.type-card {
  background: #fff; border: 2px solid #e5e5e5; padding: 22px 12px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.type-card:hover { border-color: #4697ce; }
.type-card.on { border-color: #4697ce; background: #eef6fb; }
.type-card .ic { font-size: 32px; margin-bottom: 8px; }
.type-card h4 { font-size: 15px; color: #333; }
.type-card p { font-size: 11px; color: #999; margin-top: 5px; line-height: 1.6; height: 35px; overflow: hidden; }
.type-card .check {
  width: 20px; height: 20px; border-radius: 50%; background: #4697ce; color: #fff;
  font-size: 12px; display: none; align-items: center; justify-content: center; margin: 8px auto 0;
}
.type-card.on .check { display: flex; }

.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-item {
  display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 20px;
  padding: 5px 14px; cursor: pointer; font-size: 13px; color: #666; background: #fff;
  transition: all .15s; user-select: none;
}
.check-item:hover { border-color: #4697ce; color: #4697ce; }
.check-item.on { background: #4697ce; border-color: #4697ce; color: #fff; }
.radio-line { display: flex; gap: 20px; padding-top: 6px; font-size: 14px; color: #666; }
.radio-line label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }

.upload-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.upload-box {
  border: 1px dashed #b9d3e6; background: #f8fbfd; padding: 20px; text-align: center;
  color: #666; cursor: pointer; font-size: 13px; transition: all .2s; line-height: 1.8;
}
.upload-box:hover { border-color: #4697ce; background: #eef6fb; }
.upload-box .icon { font-size: 24px; display: block; margin-bottom: 4px; }

.agreement-box {
  background: #fafafa; border: 1px solid #e5e5e5; padding: 14px 16px;
  font-size: 13px; color: #666; line-height: 1.9; margin-top: 18px;
}
.agreement-box a { color: #4697ce; }
.agreement-box .agr-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: #333; font-weight: 600; }
.form-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

.success-panel { text-align: center; padding: 30px 0 10px; }
.success-panel .big { font-size: 56px; }
.success-panel h2 { font-size: 22px; color: #3d9e6c; margin: 12px 0 8px; }
.success-panel p { color: #666; }
.success-panel .next { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.audit-flow { display: flex; justify-content: center; margin: 30px 0 10px; }
.audit-flow .node { text-align: center; width: 150px; position: relative; }
.audit-flow .node .dot {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: #fff; border: 2px solid #3d9e6c; color: #3d9e6c;
}
.audit-flow .node.wait .dot { border-color: #ccc; color: #aaa; }
.audit-flow .node.wait { color: #999; }
.audit-flow .node span { font-size: 13px; color: #666; }
.audit-flow .node::after {
  content: ""; position: absolute; top: 21px; left: 64px; width: 78px;
  border-top: 2px dashed #ccc;
}
.audit-flow .node:last-child::after { display: none; }

/* 分页（原型占位） */
.pager { display: flex; justify-content: center; gap: 6px; padding: 10px 0 30px; }
.pager .pg {
  min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #ddd; background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; color: #666;
}
.pager .pg.on { background: #4697ce; border-color: #4697ce; color: #fff; }
.pager .pg:hover:not(.on) { color: #4697ce; border-color: #4697ce; }
