:root {
  --sg-dark: #0d6b3d;
  --sg-mid: #198754;
  --sg-panel: #e9f5d1;
  --sg-hero-top: #5ab3ff;
  --sg-hero-bottom: #2aa6ff;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  background: #f6f7f8;
}

.hero-mini {
  background: linear-gradient(180deg, var(--sg-hero-top), var(--sg-hero-bottom));
  color: #fff;
  border-radius: 0 0 18px 18px;
  padding: 22px 16px 18px;
  position: relative;
  overflow: hidden;
}

.hero-mini h1 {
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-illus {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.phone-card {
  width: 92px;
  height: 120px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  text-align: center;
  padding: 8px;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.tab-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 0.92rem;
  background: #e9ecef;
  color: #222;
}

.tab-btn.active {
  background: var(--sg-mid);
  color: #fff;
}

.slider-wrap {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.slider-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.dot.on {
  background: #fff;
}

.section-title {
  background: var(--sg-dark);
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
}

.section-body {
  background: var(--sg-panel);
  padding: 12px;
  border-radius: 0 0 10px 10px;
}

.query-card {
  border-radius: 14px;
  border: 2px solid var(--sg-mid);
  background: #fff;
  padding: 12px;
}

.query-card input {
  border-radius: 10px;
}

.btn-query-main {
  border-radius: 10px;
  border: 2px solid var(--sg-mid);
  background: #fff;
  color: var(--sg-mid);
  font-weight: 700;
}

.tips-red {
  color: #c92a2a;
  font-weight: 700;
}

.trace-btn {
  border-radius: 12px;
  border: 2px solid #fff;
  background: var(--sg-mid);
  color: #fff;
  font-weight: 700;
  padding: 12px;
}

.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1050;
}

.modal-backdrop-custom.show {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sg-mid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* 后台富文本 / 纯文本：手机端换行、长词折行 */
.cms-content {
  font-size: 0.9375rem;
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #000;
  max-width: 100%;
}

.cms-content p {
  margin-bottom: 0.65rem;
  white-space: pre-line;
}

.cms-content p:last-child {
  margin-bottom: 0;
}

.cms-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0;
}

.cms-content ul,
.cms-content ol {
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4 {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.35;
}

.cms-content--plain {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cms-verify-msg-inner {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.6;
  color: #000;
}

/* 关于我们 / 联系我们：正文卡片留白与行距 */
.cms-text-card .card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.cms-text-card .cms-content,
.cms-text-card .cms-content--plain {
  line-height: 1.8;
  font-size: 0.95rem;
  color: #000;
}

/* 后台粘贴的 HTML 里常见 Bootstrap 灰色类，统一为黑色正文 */
.cms-text-card .cms-content .text-secondary,
.cms-text-card .cms-content .text-muted,
.cms-text-card .cms-content small {
  color: #000 !important;
}

/* 首页弹窗里「关于我们 / 联系我们」正文 */
#cmsModal .cms-content,
#cmsModal .cms-content--plain {
  color: #000;
}

#cmsModal .cms-content .text-secondary,
#cmsModal .cms-content .text-muted,
#cmsModal .cms-content small {
  color: #000 !important;
}

/* 防伪查询结果里产品信息取值（非灰色标签） */
#viewApp #pVariety,
#viewApp #pProducer,
#viewApp #pUnit,
#viewApp #pTraceUrl {
  color: #000;
}

.cms-text-card .cms-content {
  white-space: pre-line;
}

.cms-text-card .cms-content p {
  margin-bottom: 0.75rem;
}

.cms-text-card .cms-content p:last-child {
  margin-bottom: 0;
}

/* 关于我们 / 联系我们 顶部轮播 */
.cms-panel-carousel .carousel-inner {
  background: #e8f5e9;
}

.cms-panel-carousel .carousel-item {
  min-height: 200px;
  background: #e9ecef;
}

.cms-panel-carousel .cms-carousel-img {
  max-height: 220px;
  min-height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.cms-panel-carousel .carousel-indicators {
  position: static;
  margin: 0.5rem 0 0;
}

.cms-panel-carousel .carousel-indicators [type="button"] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* 全站底部技术支持（黑色） */
.site-tech-footer {
  color: #000;
  font-size: 0.8125rem;
  line-height: 1.55;
  text-align: center;
  padding: 14px 10px 10px;
  border-top: 1px solid #dee2e6;
  margin-top: 0.25rem;
}

.site-tech-footer--modal {
  font-size: 0.78rem;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-tech-footer--trace {
  font-size: 0.75rem;
  border-color: #dee2e6;
}

.site-tech-footer-tel {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.site-tech-footer-tel:active {
  color: #000;
}
