/* ==========================================================================
   鼎旻医药科技有限公司 官网样式
   布局参考经典医药化工企业站：1000px 白色圆角主体 + 深绿导航 + 浅蓝页面背景
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(#9ecfe9 0%, #cfe6f4 320px, #eef6fb 100%) #87c4e5;
  font: 14px/22px "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, Helvetica, sans-serif;
  color: #333;
  min-width: 1040px;
}

a { color: #04775d; text-decoration: none; }
a:hover { color: #e77918; }
img { border: 0; vertical-align: middle; }
ul, ol { list-style: none; }

/* ---------- 主体容器 ---------- */

.main_box {
  width: 1000px;
  margin: 24px auto 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(60, 90, 110, .35);
  overflow: hidden;
}

/* ---------- 页头 ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px 18px;
}

.header .brand { display: flex; align-items: center; gap: 14px; }

.header .brand svg { display: block; }

.header .brand img.logo { display: block; height: 56px; width: auto; }

.header .cn-name {
  font-size: 30px;
  font-weight: bold;
  color: #04775d;
  letter-spacing: 2px;
  line-height: 1.2;
}

.header .en-name {
  font-size: 11px;
  color: #7d9aa4;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.header .head-right { text-align: right; }

.header .hotline { font-size: 12px; color: #7d9aa4; }
.header .hotline strong { display: block; font-size: 22px; color: #04775d; letter-spacing: 1px; }

.header .lang { margin-top: 6px; font-size: 12px; color: #9ab0b8; }
.header .lang a { color: #04775d; margin: 0 4px; }
.header .lang a:hover, .header .lang a.cur { color: #e77918; font-weight: bold; }

/* ---------- 导航 ---------- */

#menu {
  height: 44px;
  background: linear-gradient(#078a6c, #04775d);
  border-top: 1px solid #0a9c7b;
  border-bottom: 3px solid #036249;
}

#menu ul { display: flex; }

#menu li { flex: 1; }

#menu li + li { border-left: 1px solid rgba(255, 255, 255, .18); }

#menu a {
  display: block;
  height: 44px;
  line-height: 44px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background .2s, color .2s;
}

#menu a:hover, #menu a.cur { background: #e77918; color: #fff; }

/* ---------- 首页横幅 ---------- */

.banner {
  position: relative;
  height: 280px;
  background: linear-gradient(115deg, rgba(3, 74, 58, .93) 0%, rgba(4, 119, 93, .82) 45%, rgba(10, 156, 123, .6) 100%), url(../images/banner-bg.jpg) center 35% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.banner .banner-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner h2 {
  font-size: 32px;
  letter-spacing: 3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.banner .banner-en {
  font-size: 13px;
  letter-spacing: 2px;
  color: #bfe6d9;
  margin: 6px 0 16px;
}

.banner .banner-sub {
  font-size: 15px;
  color: #e6f7f1;
  max-width: 560px;
  line-height: 1.9;
}

.banner .banner-more {
  margin-top: 18px;
  align-self: flex-start;
  padding: 8px 26px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  transition: background .2s, color .2s;
}

.banner .banner-more:hover { background: #fff; color: #04775d; }

.banner .molecule { position: absolute; z-index: 1; opacity: .3; }

/* ---------- 内页小横幅 ---------- */

.page-banner {
  height: 90px;
  background: linear-gradient(115deg, #036249 0%, #04775d 50%, #0a9c7b 100%);
  display: flex;
  align-items: center;
  padding: 0 34px;
}

.page-banner h2 { color: #fff; font-size: 24px; letter-spacing: 2px; }

.page-banner .crumb {
  margin-left: auto;
  font-size: 12px;
  color: #bfe6d9;
}

.page-banner .crumb a { color: #fff; }
.page-banner .crumb a:hover { color: #ffd9b3; }

/* ---------- 内容区（左栏 + 主栏） ---------- */

.content {
  display: flex;
  padding: 24px 30px 34px;
  gap: 26px;
}

.sidebar { width: 212px; flex: none; }

.side-title {
  height: 34px;
  line-height: 34px;
  background: linear-gradient(#078a6c, #04775d);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding-left: 12px;
  letter-spacing: 1px;
  border-radius: 3px 3px 0 0;
}

.side-box {
  border: 1px solid #d7e4e0;
  border-top: 0;
  background: #fbfdfd;
  padding: 6px 0 10px;
  margin-bottom: 18px;
}

.cat-list .cat {
  border-bottom: 1px dashed #dce8e4;
}

.cat-list .cat > a {
  display: block;
  padding: 9px 12px 8px;
  font-weight: bold;
  color: #2c4a43;
  font-size: 13px;
}

.cat-list .cat > a:hover { color: #e77918; }

.cat-list .cat ul { padding: 2px 0 6px; }

.cat-list .cat li a {
  display: block;
  padding: 3px 12px 3px 26px;
  font-size: 12px;
  color: #55707f;
}

.cat-list .cat li a::before { content: "· "; color: #04775d; font-weight: bold; }

.cat-list .cat li a:hover { color: #e77918; }

.side-contact { font-size: 12px; color: #55707f; line-height: 1.9; padding: 10px 12px; }

.side-contact strong { color: #04775d; font-size: 15px; }

/* ---------- 主栏 ---------- */

.main { flex: 1; min-width: 0; }

.main-title {
  display: flex;
  align-items: baseline;
  border-bottom: 2px solid #04775d;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.main-title h3 { font-size: 19px; color: #04775d; letter-spacing: 1px; }

.main-title .en { margin-left: 10px; font-size: 11px; color: #9ab0b8; text-transform: uppercase; }

.main-title .more { margin-left: auto; font-size: 12px; color: #04775d; }
.main-title .more:hover { color: #e77918; }

.content_main { font-size: 13px; line-height: 24px; color: #444; }

.content_main p { margin-bottom: 10px; text-indent: 2em; }

.content_main p.no-indent { text-indent: 0; }

.content_main h4 { font-size: 15px; color: #2c4a43; margin: 14px 0 6px; }

/* ---------- 首页模块 ---------- */

.home-grid { display: flex; flex-direction: column; gap: 26px; margin-bottom: 26px; }

.home-about { flex: 1; min-width: 0; }

/* 关于我们配图（公司大楼） */
.about-photo {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(4, 90, 70, .14);
}

/* 研发与生产设施图片区 */
.facility-grid { display: flex; gap: 18px; margin-top: 14px; }

.facility-item { flex: 1; min-width: 0; margin: 0; }

.facility-item img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(4, 90, 70, .12);
}

.facility-item img + img {
  margin-top: 10px;
}

.home-news { flex: 1; min-width: 0; }

.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #dce8e4;
  padding: 8px 2px;
}

.news-list a {
  flex: 1;
  color: #444;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list a::before { content: "▪ "; color: #04775d; }
.news-list a:hover { color: #e77918; }

.news-list time { flex: none; margin-left: 12px; font-size: 12px; color: #9ab0b8; }

/* 首页产品卡 */

.prod-cards { display: flex; gap: 18px; margin-bottom: 26px; }

.prod-card {
  flex: 1;
  border: 1px solid #d7e4e0;
  border-top: 3px solid #04775d;
  border-radius: 3px;
  padding: 16px 16px 14px;
  transition: box-shadow .2s, transform .2s;
}

.prod-card:hover {
  box-shadow: 0 6px 16px rgba(4, 119, 93, .18);
  transform: translateY(-3px);
}

.prod-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.prod-card h4 { font-size: 15px; color: #2c4a43; margin-bottom: 6px; }

.prod-card p { font-size: 12px; color: #6b8089; line-height: 1.8; text-indent: 0 !important; }

/* ---------- 产品表格 ---------- */

.prod-section { margin-bottom: 26px; }

.prod-section h4 {
  font-size: 15px;
  color: #fff;
  background: linear-gradient(90deg, #04775d, #0a9c7b);
  padding: 7px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* 产品搜索框 */
.product-search { position: relative; margin: 0 0 14px; }
.product-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 13px;
  color: #444;
  border: 1px solid #c8d8d3;
  border-radius: 3px;
  outline: none;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%2304775d" stroke-width="3"><circle cx="10.5" cy="10.5" r="7.5"/><line x1="16" y1="16" x2="21.5" y2="21.5"/></svg>') no-repeat right 10px center;
}
.product-search input:focus { border-color: #04775d; }
.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #c8d8d3;
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  font-size: 13px;
}
.search-suggestions li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  cursor: pointer;
  line-height: 18px;
}
.search-suggestions li:hover, .search-suggestions li.active { background: #eef6f2; }
.search-suggestions .s-name { flex: 1; min-width: 0; color: #2c4a43; word-break: break-word; }
.search-suggestions .s-cas { color: #04775d; white-space: nowrap; }
.search-suggestions .s-sec { color: #9ab0b8; font-size: 11px; white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
table.prod-table tr.search-hit td { animation: search-flash 1s ease-in-out 3; }
@keyframes search-flash {
  0%, 100% { background: #fdf3ea; }
  50% { background: #f6d9b8; }
}

table.prod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.prod-table th {
  background: #eef6f2;
  color: #2c4a43;
  border: 1px solid #d7e4e0;
  padding: 8px 10px;
  font-size: 13px;
}

table.prod-table td {
  border: 1px solid #e2ece8;
  padding: 7px 10px;
  color: #555;
}

table.prod-table tr:hover td { background: #f7fbf9; }

/* ---------- 通用列表页 ---------- */

.article-list li {
  border-bottom: 1px dashed #dce8e4;
  padding: 12px 2px;
}

.article-list a { font-size: 14px; color: #333; }
.article-list a:hover { color: #e77918; }

.article-list .desc { font-size: 12px; color: #8aa0a8; margin-top: 4px; }

/* ---------- 招聘 ---------- */

.job {
  border: 1px solid #d7e4e0;
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}

.job-head {
  background: #eef6f2;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.job-head h4 { font-size: 15px; color: #2c4a43; flex: 1; }

.job-head .tag {
  font-size: 12px;
  color: #e77918;
  border: 1px solid #f3c9a8;
  border-radius: 12px;
  padding: 1px 10px;
}

.job-body { padding: 10px 14px 12px; font-size: 13px; color: #55707f; }

.job-body p { margin-bottom: 4px; text-indent: 0; }

.job-body b { color: #2c4a43; }

/* ---------- 联系我们 ---------- */

.contact-grid { display: flex; gap: 30px; }

.contact-info { flex: 1.2; }

.contact-info dl { font-size: 13px; }

.contact-info dt {
  float: left;
  clear: left;
  width: 72px;
  color: #04775d;
  font-weight: bold;
  padding: 7px 0;
}

.contact-info dd { padding: 7px 0 7px 84px; color: #555; border-bottom: 1px dashed #dce8e4; }

/* ---------- 质量体系图标行 ---------- */

.quality-items { display: flex; gap: 18px; margin: 18px 0; }

.quality-item {
  flex: 1;
  text-align: center;
  border: 1px solid #d7e4e0;
  border-radius: 4px;
  padding: 18px 12px;
}

.quality-item strong { display: block; color: #04775d; font-size: 15px; margin: 8px 0 4px; }

.quality-item span { font-size: 12px; color: #8aa0a8; }

/* ---------- 页脚 ---------- */

.footer-links {
  background: #f4f9f7;
  border-top: 1px solid #d7e4e0;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8aa0a8;
}

.footer-links a { color: #55707f; margin: 0 6px; }
.footer-links a:hover { color: #e77918; }

.end {
  width: 1000px;
  margin: 0 auto 30px;
  text-align: center;
  color: #5c7683;
  font-size: 12px;
  line-height: 24px;
}

.end a { color: #5c7683; }
.end a:hover { color: #e77918; }

/* ---------- 返回顶部 ---------- */

#sl {
  position: fixed;
  bottom: 60px;
  left: 50%;
  margin-left: 520px;
  width: 30px;
  height: 36px;
  background: #04775d;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sl:hover { background: #e77918; }

/* ---------- 产品页：中间体家族锚点索引与分组 ---------- */

.anchor-index { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 14px; }

.anchor-index a {
  font-size: 12px;
  color: #04775d;
  background: #eef6f2;
  border: 1px solid #d7e4e0;
  border-radius: 12px;
  padding: 2px 10px;
}

.anchor-index a:hover { color: #e77918; border-color: #f3c9a8; background: #fdf3ea; }

.inter-family { margin-bottom: 16px; }

.inter-family h5 {
  font-size: 13px;
  color: #2c4a43;
  border-left: 4px solid #04775d;
  padding-left: 8px;
  margin: 0 0 8px;
}

/* 产品清单整理中占位提示 */
.table-empty {
  border: 1px dashed #c9dcd5;
  border-radius: 4px;
  background: #fbfdfd;
  color: #6b8089;
  font-size: 13px;
  text-align: center;
  padding: 22px 12px;
}

/* ---------- 联系页：销售人员卡片 ---------- */

.contact-people { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 6px; }

.contact-people .contact-info {
  flex: 1 1 210px;
  border: 1px solid #d7e4e0;
  border-top: 3px solid #04775d;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12px;
  color: #55707f;
  line-height: 1.9;
}

.contact-people .contact-info h4 { margin-bottom: 6px; }

.contact-people .contact-info p { margin: 0; }

/* ---------- 新闻列表（无详情页的静态条目） ---------- */

.article-list .t { font-size: 14px; color: #333; }

/* ==========================================================================
   响应式适配：平板与手机（桌面端样式保持不变，以下均为窄屏覆盖）
   汉堡按钮：桌面端隐藏，≤768px 显示
   ========================================================================== */

.menu-toggle { display: none; }

/* 产品表格滚动容器：窄屏下在容器内横向滑动 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ≤1024px：取消 1040px 最小宽度与 1000px 定宽，主体改为流式 */
@media (max-width: 1024px) {
  body { min-width: 0; }

  .main_box { width: auto; max-width: 1000px; margin: 14px 14px 30px; }

  .end { width: auto; max-width: 1000px; padding: 0 14px; }

  #sl { left: auto; right: 16px; bottom: 50px; margin-left: 0; }
}

/* ≤768px：导航收为汉堡菜单，内容单列堆叠（主栏在上、侧栏在下） */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .header { padding: 14px 16px 12px; }

  /* 展开时菜单自然撑高、下推内容，避免溢出覆盖造成的点击/渲染差异 */
  #menu { height: auto; }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, .18);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
  }

  .menu-toggle:hover { background: #e77918; }

  #menu ul { display: none; flex-direction: column; }
  body.menu-open #menu ul { display: flex; }
  #menu li { flex: none; }
  #menu li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  #menu a { height: auto; line-height: 1.5; padding: 11px 0; }

  .banner { height: auto; min-height: 200px; display: flex; align-items: center; }
  .banner .banner-inner { height: auto; padding: 28px 22px; }
  .banner h2 { font-size: 25px; }
  .banner .molecule { opacity: .3; }

  .page-banner { padding: 0 20px; }
  .page-banner h2 { font-size: 20px; }

  .content { flex-direction: column; gap: 22px; padding: 20px 16px 26px; }
  .sidebar { width: auto; order: 2; }
  .main { order: 1; }

  .content_main { font-size: 14px; }

  .home-grid { flex-direction: column; }

  .prod-cards { flex-wrap: wrap; gap: 12px; }
  .prod-card { flex: 1 1 calc(50% - 6px); }

  .facility-grid { flex-wrap: wrap; gap: 12px; }
  .facility-item { flex: 1 1 calc(50% - 6px); }

  .quality-items { flex-wrap: wrap; gap: 12px; }
  .quality-item { flex: 1 1 calc(50% - 6px); }

  .contact-grid { flex-direction: column; gap: 20px; }

  .job-head { flex-wrap: wrap; }

  table.prod-table { min-width: 600px; }

  .footer-links { padding: 12px 16px; }
}

/* ≤480px：手机竖屏，进一步收紧字号与间距 */
@media (max-width: 480px) {
  .main_box { margin: 10px 10px 24px; }

  .header { flex-wrap: wrap; row-gap: 8px; }
  .header .brand svg { width: 40px; height: 40px; }
  .header .brand img.logo { height: 40px; }
  .header .cn-name { font-size: 19px; letter-spacing: 1px; }
  .header .en-name { font-size: 10px; }
  .header .head-right { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .header .hotline { display: flex; align-items: baseline; gap: 6px; }
  .header .hotline strong { display: inline; font-size: 16px; }
  .header .lang { margin-top: 0; }

  .banner { min-height: 0; }
  .banner h2 { font-size: 21px; letter-spacing: 1px; }
  .banner .banner-en { font-size: 11px; letter-spacing: 1px; }
  .banner .banner-sub { font-size: 13px; max-width: none; }
  .banner .molecule { display: none; }

  .about-photo { height: 200px; }

  .page-banner h2 { font-size: 18px; }
  .page-banner .crumb { font-size: 11px; }

  .main-title h3 { font-size: 17px; }

  .prod-card { flex-basis: 100%; }

  .facility-item { flex-basis: 100%; }

  .end { font-size: 11px; line-height: 20px; margin-bottom: 18px; }

  #sl { right: 10px; bottom: 14px; }
}
