/* ============================================================
   ZHIHONG — Corporate Site Stylesheet
   Visual reference: clean B2B tech style (deep navy + white)
   ============================================================ */

:root {
  --c-navy:      #07263f;
  --c-navy-2:    #0b3457;
  --c-blue:      #1f6feb;
  --c-blue-dark: #0b4ea2;
  --c-bg:        #ffffff;
  --c-bg-alt:    #f3f6fa;
  --c-bg-alt-2:  #e9eef5;
  --c-text:      #1c2733;
  --c-muted:     #5b6b7b;
  --c-line:      #d7dee7;
  --c-accent:    #00b2a9;
  --maxw:        1200px;
  --radius:      6px;
  --shadow:      0 6px 22px rgba(7, 38, 63, 0.10);
  --shadow-hi:   0 12px 34px rgba(7, 38, 63, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; color: var(--c-blue); border-color: var(--c-blue); }
.btn-outline:hover { background: var(--c-blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-navy);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  color: #fff;
}
.brand .dot { color: var(--c-accent); }
.brand:hover { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; list-style: none; }
.main-nav > li > a {
  display: block;
  padding: 26px 16px;
  color: #e7eef6;
  font-size: 15px;
  font-weight: 500;
}
.main-nav > li > a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav > li.has-menu > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 11px;
  opacity: .7;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-hi);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
}
.main-nav > li.has-menu:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 22px;
  color: var(--c-text);
  font-size: 14px;
}
.dropdown a:hover { background: var(--c-bg-alt); color: var(--c-blue); }

.header-utils { display: flex; align-items: center; gap: 14px; }
.search-toggle, .menu-toggle {
  background: none; border: none; color: #fff; cursor: pointer; font-size: 20px; padding: 6px;
}
.menu-toggle { display: none; }

.search-bar {
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--c-navy-2);
  padding: 14px 0;
  display: none;
}
.search-bar.open { display: block; }
.search-bar input {
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; display: block;
  padding: 12px 16px; border: none; border-radius: var(--radius);
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(7,38,63,.55), rgba(7,38,63,.75)),
                    url("../img/Homepage_HeroImage_SemiC_2200x975px_FINAL_0.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-content { max-width: 640px; padding: 80px 0; }
.hero h1 {
  font-size: 54px; line-height: 1.05; margin: 0 0 18px; font-weight: 800;
}
.hero p { font-size: 19px; opacity: .92; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--c-bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  color: var(--c-blue); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: 13px; margin-bottom: 10px;
}
.section-head h2 { font-size: 36px; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--c-muted); font-size: 17px; margin: 0; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; }
.split h2 { font-size: 32px; margin: 0 0 16px; font-weight: 800; }
.split p { color: var(--c-muted); margin: 0 0 22px; }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { margin: 0 0 10px; font-size: 19px; }
.card-body p { color: var(--c-muted); font-size: 14px; margin: 0 0 16px; }
.card-link { font-weight: 600; font-size: 14px; }
.card-link::after { content: " →"; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track-wrap { overflow: hidden; }
.carousel-track { display: flex; gap: 28px; transition: transform .4s ease; }
.carousel-track .card { flex: 0 0 calc((100% - 56px) / 3); }
.carousel-nav {
  display: flex; gap: 12px; justify-content: flex-end; margin-top: 26px;
}
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--c-blue); background: #fff; color: var(--c-blue);
  font-size: 20px; cursor: pointer; transition: all .2s;
}
.carousel-btn:hover { background: var(--c-blue); color: #fff; }
.carousel-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; opacity: .8; }
.logo-strip .pill {
  background: #fff; border: 1px solid var(--c-line); border-radius: 30px;
  padding: 10px 22px; font-weight: 700; color: var(--c-navy);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 42px; font-weight: 800; color: var(--c-blue); }
.stat .lbl { color: var(--c-muted); font-size: 15px; }

/* ---------- News list ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.news-card .tag {
  display: inline-block; align-self: flex-start; margin: 18px 18px 0;
  background: var(--c-bg-alt-2); color: var(--c-navy); font-size: 12px;
  font-weight: 700; padding: 5px 12px; border-radius: 20px; letter-spacing: .5px;
}
.news-card .date { color: var(--c-muted); font-size: 13px; margin: 12px 18px 0; }
.news-card h3 { margin: 8px 18px 14px; font-size: 18px; line-height: 1.35; }
.news-card .card-link { margin: 0 18px 20px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--c-text);
}
.field textarea { min-height: 130px; resize: vertical; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: #c5d2df; padding: 64px 0 28px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-cols h4 { color: #fff; font-size: 15px; margin: 0 0 16px; letter-spacing: .5px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: #c5d2df; font-size: 14px; }
.footer-cols a:hover { color: #fff; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: #9fb1c2; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.footer-social a:hover { background: var(--c-blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #8ca0b3;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0; font-size: 14px; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--c-navy); color: #fff; padding: 70px 0 64px;
}
.page-hero h1 { font-size: 44px; margin: 0 0 12px; font-weight: 800; }
.page-hero p { font-size: 18px; opacity: .9; max-width: 720px; margin: 0; }

/* ---------- Table ---------- */
table.doc { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.doc th, table.doc td { border: 1px solid var(--c-line); padding: 12px 14px; text-align: left; font-size: 15px; }
table.doc th { background: var(--c-bg-alt); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-wrap, .form-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--c-navy); flex-direction: column; align-items: stretch;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav > li > a { padding: 16px 20px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: var(--c-navy-2); border-radius: 0; display: none; }
  .main-nav > li.has-menu.open .dropdown { display: block; }
  .cards, .news-grid, .stats { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 28px; }
}
