/* 武汉同创元盛科技有限公司 - 本地静态站 */
:root {
  --brand: #c40000;
  --brand-dark: #9a0000;
  --blue: #64b5f6;
  --text: #333;
  --muted: #999;
  --gray: #666;
  --line: #eee;
  --bg: #f7f7f7;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}
.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.brand-text strong {
  display: block;
  font-size: 22px;
  color: var(--blue);
  letter-spacing: 1px;
}
.brand-text span {
  color: #b3b3b3;
  font-size: 22px;
}
.brand-slogan {
  color: #222;
  font-size: 15px;
  margin-top: 2px;
}
.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  font-size: 15px;
  color: #444;
  border-radius: 2px;
  transition: color .2s, background .2s;
}
.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: #fff5f5;
}

.menu-toggle {
  display: none;
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 12px;
  margin-left: auto;
  cursor: pointer;
}

/* Hero */
.hero {
  height: min(70vh, 560px);
  background: #1a1a1a center/cover no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.15));
}
.page-banner {
  height: 220px;
  background: #222 center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.page-banner .wrap {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-bottom: 28px;
}
.page-banner h1 {
  font-size: 32px;
  font-weight: 700;
}
.page-banner p {
  opacity: .85;
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section.alt { background: var(--bg); }
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head .en {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 2px;
}
.section-head h2 {
  color: var(--brand);
  font-size: 30px;
  margin: 4px 0 10px;
}
.section-head p {
  color: var(--muted);
  font-size: 14px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 10px;
}
.stat .num {
  color: var(--brand);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}
.stat .desc {
  color: var(--gray);
  font-size: 14px;
  margin-top: 8px;
}

/* About preview */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}
.about-copy .label {
  color: var(--muted);
  font-size: 15px;
}
.about-copy h3 {
  color: var(--brand);
  font-size: 28px;
  margin: 4px 0 16px;
}
.about-copy p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 10px;
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.photo-row figure {
  overflow: hidden;
  background: #ddd;
}
.photo-row img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform .4s;
}
.photo-row figure:hover img { transform: scale(1.06); }
.photo-row figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  padding: 8px 0 0;
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  overflow: hidden;
}
.value-card .cover {
  height: 180px;
  background: #eee center/cover no-repeat;
  position: relative;
}
.value-card .cover .title {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 22px;
  color: #222;
  background: rgba(255,255,255,.82);
  padding: 6px 10px;
  line-height: 1.35;
  max-width: 80%;
}
.value-card .body {
  padding: 18px 16px 22px;
}
.value-card .body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.news-item:first-child { padding-top: 0; }
.news-thumb {
  width: 180px;
  height: 120px;
  object-fit: cover;
  background: #e8e8e8;
}
.news-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #222;
}
.news-item h3:hover { color: var(--brand); }
.news-item .summary {
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item .date {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.news-side {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
}
.side-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--gray);
}
.side-list a:hover { color: var(--brand); }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  padding: 16px 12px 20px;
  transition: box-shadow .25s;
}
.product:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.product img {
  height: 220px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 12px;
}
.product h3 {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

/* Help */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.help-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 22px;
}
.help-card h3 {
  color: var(--brand);
  font-size: 18px;
  margin-bottom: 14px;
}
.help-card li {
  color: var(--gray);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
  padding-left: 14px;
  position: relative;
}
.help-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--brand);
}

/* About page */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.story p { color: var(--gray); margin-bottom: 12px; font-size: 15px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.feature {
  background: #fff;
  border-top: 3px solid var(--brand);
  padding: 22px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.feature h4 {
  font-size: 16px;
  margin-bottom: 10px;
}
.feature p {
  color: var(--muted);
  font-size: 13px;
}
.icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.icon-row img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
}

/* Honors */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.honor-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

/* CTA / service strip */
.service-strip {
  background: linear-gradient(135deg, #2a2a2a, #111);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.service-strip h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.service-strip p { color: #bbb; font-size: 14px; }

/* Footer */
.site-footer {
  background: #1f1f1f;
  color: #ccc;
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}
.site-footer p { margin-bottom: 6px; color: #aaa; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }
.copyright {
  border-top: 1px solid #333;
  padding-top: 18px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

.more-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--brand);
  font-size: 14px;
}
.more-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .news-side,
  .story { grid-template-columns: 1fr; }
  .values,
  .help-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .product-grid,
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .icon-row { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-left: 0;
  }
  .nav.open { display: flex; }
  .brand-text strong,
  .brand-text span { font-size: 18px; }
}
@media (max-width: 560px) {
  .news-item { grid-template-columns: 1fr; }
  .news-thumb { width: 100%; height: 160px; }
  .product-grid,
  .honor-grid,
  .stats { grid-template-columns: 1fr; }
  .hero { height: 320px; }
}
