:root {
  --navy: #12233f;
  --navy-deep: #0c1a2e;
  --navy-soft: #1d3557;
  --gold: #b98d4f;
  --gold-light: #d4b078;
  --ink: #22303f;
  --muted: #5d6b7a;
  --line: #e3e7ec;
  --bg-soft: #f4f6f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 35, 63, 0.08);
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c9d4e2;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}
.topbar a { color: #e8eef5; }
.topbar .note { letter-spacing: 0.4px; }
.topbar .right { display: flex; gap: 18px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px;
  font-family: Georgia, serif;
}
.brand-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1.5px;
  color: var(--navy);
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--muted);
}
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--ink);
  padding: 9px 11px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.main-nav a.active { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a67d42; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-navy-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-navy-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-inner {
  position: relative;
  padding: 110px 24px 96px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 1.25;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(6, 14, 26, 0.55);
}
.hero .ghost {
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 5px;
  color: rgba(212, 176, 120, 0.85);
  margin-top: 18px;
}
.hero .eyebrow {
  margin-top: 14px;
  font-size: 15px;
  color: #d6e0ec;
  letter-spacing: 1px;
}
.hero .actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* page hero (subpages) */
.page-hero {
  background: linear-gradient(0deg, rgba(12,26,46,0.82), rgba(12,26,46,0.82)), var(--navy);
  color: #fff;
  padding: 66px 24px;
  text-align: center;
}
.page-hero h1 { font-family: Georgia, serif; font-size: 36px; font-weight: 700; }
.page-hero .crumbs { margin-top: 10px; font-size: 13px; color: #b9c6d6; letter-spacing: 1px; }
.page-hero .crumbs a { color: var(--gold-light); }
.page-hero p.intro { max-width: 720px; margin: 14px auto 0; color: #d6e0ec; }

/* ---------- sections ---------- */
section.block { padding: 84px 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  color: var(--navy);
  font-weight: 700;
}
.section-head .rule {
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* about split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.split h2 { font-family: Georgia, serif; font-size: 30px; color: var(--navy); margin-bottom: 6px; }
.split .co-name { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 1px; margin-bottom: 12px; }
.split p { color: var(--muted); margin-bottom: 14px; white-space: pre-line; }
.split .img-box {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfe6ee;
}
.split .img-box img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* product cards */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { background: #eef2f7; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 18px 20px; }
.card h3 { font-size: 16px; color: var(--navy); line-height: 1.35; }
.card p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* advantages */
.adv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.adv-card .num {
  width: 42px; height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.adv-card h3 { font-size: 15.5px; color: var(--navy); }
.adv-card p { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* stat band */
.stat-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.stat-band .big {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--gold-light);
}
.stat-band .label {
  margin-top: 12px;
  letter-spacing: 3px;
  font-size: 13px;
  color: #c9d4e2;
}
.stat-band .sub { margin-top: 10px; font-size: 14px; color: #8fa2ba; }

/* clients */
.client-chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 820px; margin: 0 auto; }
.client-chips span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  background: var(--white);
}

/* CTA band */
.cta-band {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2 { font-family: Georgia, serif; font-size: 30px; }
.cta-band p { margin-top: 12px; color: #b9c6d6; }
.cta-band .btn { margin-top: 26px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #e3e9f0;
  border: 1px solid var(--line);
}

/* stats row (factory) */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  padding: 30px 20px;
}
.stat-cell .num { font-family: Georgia, serif; font-size: 30px; font-weight: 700; color: var(--navy); }
.stat-cell .label { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* certificate / value simple cards */
.plain-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.plain-card h3 { font-size: 16px; color: var(--navy); }
.plain-card p { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* forms */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field.full { grid-column: 1 / -1; }
.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; }
.form-msg { font-size: 14px; }
.form-msg.ok { color: #2e7d32; }
.form-msg.err { color: #c62828; }

/* contact page */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 46px; }
.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
}
.contact-card .ic { font-size: 24px; margin-bottom: 10px; color: var(--gold); font-weight: 700; }
.contact-card h3 { font-size: 15px; color: var(--navy); letter-spacing: 0.5px; }
.contact-card p { margin-top: 8px; font-size: 14px; color: var(--muted); word-break: break-all; }

/* footer */
.site-footer { background: var(--navy-deep); color: #9fb0c4; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 {
  color: #e8eef5;
  font-size: 14px;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.site-footer ul li { margin-bottom: 10px; font-size: 13.5px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand .brand-name { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: #7d8fa5;
}

/* floating contact */
.float-contact {
  position: fixed;
  right: 18px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}
.float-contact a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.float-contact a.wa { background: #25a05a; }

/* cookie */
.cookie-bar {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  max-width: 300px;
  font-size: 12.5px;
  color: var(--muted);
  display: none;
}
.cookie-bar.show { display: block; }
.cookie-bar .btn { margin-top: 10px; }

/* ---------- admin ---------- */
body.admin-page { background: var(--bg-soft); }
.admin-shell { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}
.admin-login { max-width: 400px; margin: 90px auto; text-align: center; }
.admin-login h1 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.admin-login .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.admin-topbar h1 { font-size: 20px; color: var(--navy); }
.admin-topbar .actions { display: flex; gap: 10px; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab-bar button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink);
}
.tab-bar button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cms-section { margin-bottom: 26px; }
.cms-section > h3 {
  font-size: 16px;
  color: var(--navy);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 16px;
}
.cms-field { margin-bottom: 16px; }
.cms-field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cms-field input[type="text"], .cms-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.cms-field textarea { min-height: 96px; resize: vertical; }
.cms-field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.img-field { display: flex; gap: 14px; align-items: center; }
.img-field .preview {
  width: 110px; height: 82px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef2f7 center / cover no-repeat;
  flex: none;
}
.img-field .ops { display: flex; flex-direction: column; gap: 8px; }
.img-field .path { font-size: 12px; color: var(--muted); word-break: break-all; }
.uploading { color: var(--gold); font-size: 12px; }
.item-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  background: #fafbfc;
}
.item-card > .item-title { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.5px; margin-bottom: 12px; }
.inq-item { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; background: var(--white); }
.inq-item .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.inq-item .body { font-size: 14px; white-space: pre-line; }
.inq-item button { margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-5, .grid-4, .grid-3, .grid-2, .gallery, .stat-row, .contact-cards, .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-inner { padding: 70px 20px 60px; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
  color: var(--navy);
}
body.nav-open .main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  left: 0; right: 0; top: 74px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px 18px;
  box-shadow: var(--shadow);
}
