* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #ffffff; color: #2b2b2b; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.gm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* 丹红导航 */
.gm-nav { position: sticky; top: 0; z-index: 60; background: #8f3736; color: #ffffff; }
.gm-nav-row { position: relative; display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.gm-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #ffffff; font-weight: 900; font-size: 20px; flex-shrink: 0; }
.gm-links { display: flex; align-items: center; gap: 28px; }
.gm-links .nav-item { position: relative; display: inline-flex; align-items: center; }
.gm-links a, .gm-links .nav-item > a { position: relative; display: inline-flex; align-items: center; padding: 8px 2px; font-size: 14px; color: rgba(255,255,255,0.88); text-decoration: none; white-space: nowrap; }
.gm-links a:hover, .gm-links a.active, .gm-links .nav-item.active > a { color: #ffffff; font-weight: 700; }
.gm-links a.active::after, .gm-links .nav-item.active > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px; background: #ffffff; }
.gm-links .nav-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 150px; padding: 8px 0; background: #ffffff; border-radius: 6px; box-shadow: 0 12px 26px rgba(0,0,0,0.16); z-index: 80; }
.gm-links .nav-item:hover > .nav-dropdown { display: block; }
.gm-links .nav-dropdown a { display: block; padding: 8px 14px; font-size: 13px; color: #333 !important; }
.gm-links .nav-dropdown a.active::after { display: none; }
.mob-nav-chk { display: none; }
.mob-nav-burger { display: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; padding: 6px; margin-left: auto; }
.mob-nav-burger span { display: block; width: 20px; height: 2px; background: #ffffff; border-radius: 2px; }
@media (max-width: 768px) {
  .mob-nav-burger { display: inline-flex; }
  .gm-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px; background: #8f3736; box-shadow: 0 16px 32px rgba(0,0,0,0.2); z-index: 90; }
  .mob-nav-chk:checked ~ .gm-links { display: flex; }
  .gm-links a, .gm-links .nav-item > a { display: block; width: 100%; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .gm-links a.active::after, .gm-links .nav-item.active > a::after { display: none; }
}

/* 全幅丹红工业 Hero */
.gm-hero { position: relative; background: #7f3130; color: #ffffff; overflow: hidden; }
.gm-hero-main { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 56px 0 42px; }
.gm-hero-l small { display: block; font-size: 28px; font-weight: 800; letter-spacing: 0.14em; opacity: 0.24; font-family: Georgia, serif; }
.gm-hero-l h1 { margin: 4px 0 12px; font-size: 36px; font-weight: 800; line-height: 1.28; }
.gm-hero-l p { margin: 0 0 22px; font-size: 14px; color: rgba(255,255,255,0.84); line-height: 1.75; }
.gm-hero-tags { display: flex; gap: 10px; }
.gm-hero-tags span { padding: 5px 14px; border-radius: 999px; background: #ffffff; color: #8f3736; font-size: 12px; font-weight: 700; }
.gm-hero-r img { width: 100%; border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 18px 36px rgba(0,0,0,0.28); }
.gm-hero-bar { background: #a84240; padding: 14px 0; }
.gm-hero-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; }

/* About us 大衬线体 + 红字 4 列数据 */
.gm-about { padding: 72px 0; background: #ffffff; }
.gm-about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; margin-bottom: 42px; }
.gm-serif { font-family: Georgia, "Times New Roman", serif; font-size: 50px; color: #7a7a7a; margin: 0 0 8px; font-weight: 400; line-height: 1; }
.gm-about-l h3 { margin: 0 0 16px; font-size: 16px; color: #666; font-weight: 600; }
.gm-about-l p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #777; }
.gm-about-r img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.gm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; border-top: 1px solid #eeeeee; }
.gm-kpis strong { display: block; font-size: 34px; font-weight: 800; color: #b84a48; }
.gm-kpis span { font-size: 12px; color: #888; }

/* 全幅丹红产品展示横幅 */
.gm-red-prod { background: #b84a48; color: #ffffff; padding: 64px 0; }
.gm-rp-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.gm-rp-head h2 { margin: 0; font-size: 26px; }
.gm-rp-tabs { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.84); }
.gm-rp-grid { display: grid; grid-template-columns: 0.85fr 1.3fr 0.85fr; gap: 20px; align-items: center; }
.gm-rp-card { position: relative; border-radius: 4px; overflow: hidden; display: block; text-decoration: none; }
.gm-rp-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gm-rp-cap { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(255,255,255,0.94); color: #2b2b2b; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }

/* 工程案例 3 列 */
.gm-cases { padding: 72px 0; background: #ffffff; }
.gm-cases h2 { margin: 0 0 28px; font-size: 24px; color: #2b2b2b; }
.gm-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gm-case-card { position: relative; overflow: hidden; border-radius: 4px; text-decoration: none; display: block; }
.gm-case-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gm-case-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72)); color: #ffffff; font-size: 13.5px; font-weight: 600; }

/* 新闻中心：左白列表 + 右丹红大背景特色图文卡 */
.gm-news { padding: 48px 0 72px; background: #f8f8f8; }
.gm-news-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; background: #ffffff; box-shadow: 0 12px 28px rgba(0,0,0,0.06); }
.gm-news-l { padding: 36px 32px; }
.gm-news-l h2 { margin: 0 0 24px; font-size: 24px; }
.gm-nrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #eeeeee; text-decoration: none; }
.gm-nrow h3 { margin: 0 0 6px; font-size: 14.5px; color: #2b2b2b; }
.gm-nrow p { margin: 0; font-size: 12px; color: #888; }
.gm-news-r { background: #b84a48; color: #ffffff; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.gm-news-r img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 18px; }
.gm-news-r h3 { margin: 0 0 10px; font-size: 18px; }
.gm-news-r p { margin: 0; font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.85); }

/* 全丹红页脚 */
.gm-footer { background: #b84a48; color: rgba(255,255,255,0.86); padding: 48px 0 26px; }
.gm-foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.gm-foot-grid h4 { margin: 0 0 12px; font-size: 14px; color: #ffffff; }
.gm-foot-grid a { display: block; font-size: 12.5px; color: rgba(255,255,255,0.8); text-decoration: none; margin-bottom: 8px; }
.gm-foot-links { padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: rgba(255,255,255,0.75); }
.gm-foot-links a { color: #ffffff; text-decoration: none; }
.gm-foot-bot { padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: rgba(255,255,255,0.72); }

/* 子页面 */
.gm-sub-banner { background: #8f3736; color: #ffffff; padding: 46px 0; }
.gm-sub-banner h1 { margin: 0 0 8px; font-size: 30px; }
.gm-crumb { font-size: 12px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.gm-crumb a { color: #ffffff; text-decoration: none; }
.gm-sec { padding: 56px 0; background: #f8f8f8; }
.gm-panel { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 28px 32px; }
.gm-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gm-pcard { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.gm-pimg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gm-pb { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.gm-pb h3 { margin: 0 0 6px; font-size: 15.5px; color: #2b2b2b; }
.gm-pb p { margin: 0 0 12px; font-size: 12.5px; color: #666; flex: 1; }
.gm-pb a { font-size: 12.5px; font-weight: 700; color: #b84a48; text-decoration: none; }
.gm-art-list { display: grid; gap: 14px; }
.gm-art-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: #ffffff; border: 1px solid #e5e5e5; text-decoration: none; }
.gm-art-row h3 { margin: 0 0 6px; font-size: 16px; color: #2b2b2b; }
.gm-art-row p { margin: 0; font-size: 13px; color: #666; }
.gm-detail-body { font-size: 15px; line-height: 1.85; color: #333; }

@media (max-width: 960px) {
  .gm-hero-main, .gm-about-grid, .gm-rp-grid, .gm-case-grid, .gm-news-grid, .gm-foot-grid { grid-template-columns: 1fr; }
  .gm-kpis, .gm-pgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .gm-pgrid { grid-template-columns: 1fr; } }

/* cms-lang-slot */
.cms-lang-slot {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
}
.cms-lang-slot:empty { display: none; }
.cms-lang-slot .lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(6px);
}
.cms-lang-slot .lang-btn {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.cms-lang-slot .lang-btn:hover { opacity: 1; }
.cms-lang-slot .lang-btn.active {
  background: #b84a48;
  color: #ffffff !important;
  opacity: 1;
}
@media (max-width: 768px) {
  .cms-lang-slot { margin-left: 6px; }
  .cms-lang-slot .lang-btn { padding: 2px 7px; font-size: 11px; }
}
