:root {
  --navy: #0e2a3f;
  --navy-soft: #16394f;
  --teal: #14735e;
  --teal-light: #e8f3f0;
  --ink: #16202a;
  --ink-2: #44525e;
  --line: #dfe4e6;
  --bg: #ffffff;
  --bg-2: #f5f7f7;
  --radius: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.logo span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.nav { display: flex; gap: 26px; margin-left: auto; }

.nav a {
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav a:hover { color: var(--navy); border-color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0f5d4c; }

.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-2); }

/* hero */
.hero {
  background: linear-gradient(180deg, #f7f9f9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 68px 0 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal);
}

.hero h1 {
  font-size: 44px;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-figure { position: relative; }

.hero-figure img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-badge {
  position: absolute;
  left: -16px;
  bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(14, 42, 63, 0.08);
}

.hero-badge strong { display: block; font-size: 18px; color: var(--navy); }
.hero-badge small { font-size: 12px; color: var(--ink-2); }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
}

.stat {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.stat span { font-size: 13px; color: var(--ink-2); }

/* sections */
section { padding: 76px 0; }

.section-head { max-width: 620px; margin-bottom: 40px; }

.section-head h2 { font-size: 30px; color: var(--navy); margin-bottom: 12px; }

.section-head p { color: var(--ink-2); }

.section-alt { background: var(--bg-2); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover { border-color: #b9c4c8; transform: translateY(-2px); }

.card img { height: 168px; width: 100%; object-fit: cover; }

.card-body { padding: 20px; }

.card-body h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }

.card-body p { font-size: 13.5px; color: var(--ink-2); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
}

/* application list */
.app-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.app-item { background: #fff; padding: 28px 24px; }

.app-item .num {
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 10px;
}

.app-item h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }

.app-item p { font-size: 13.5px; color: var(--ink-2); }

/* projects */
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.project-card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.project-card h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 8px; }

.project-card p { font-size: 13.5px; color: var(--ink-2); }

/* quality band */
.band {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
}

.band h2 { font-size: 28px; margin-bottom: 14px; }

.band p { color: rgba(255, 255, 255, 0.72); max-width: 640px; }

.cert-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cert {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* inquiry */
.inquiry-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.field textarea { resize: vertical; min-height: 96px; }

.form-note { font-size: 12px; color: #7b8a94; margin-top: 12px; }

.form-success {
  display: none;
  background: var(--teal-light);
  border: 1px solid #b9dcd2;
  color: var(--teal);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

/* product page */
.product-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 52px;
}

.crumbs { font-size: 13px; color: #7b8a94; margin-bottom: 18px; }

.product-hero h1 { font-size: 36px; color: var(--navy); margin-bottom: 16px; max-width: 780px; }

.product-hero p { color: var(--ink-2); max-width: 700px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }

.spec-table th, .spec-table td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
}

.spec-table thead th { background: var(--bg-2); color: var(--navy); font-weight: 600; font-size: 13px; }

.spec-table tbody th { font-weight: 500; color: var(--ink-2); background: #fafbfb; width: 210px; }

.feature-list { list-style: none; padding: 0; margin: 0; }

.feature-list li {
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.download-box {
  border: 1px dashed #b9c4c8;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.download-box b { display: block; font-size: 14px; color: var(--navy); }
.download-box small { font-size: 12px; color: var(--ink-2); }

/* footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 56px 0 28px; font-size: 13.5px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }

.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }

.site-footer a:hover { color: #fff; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }

.site-footer li { margin-bottom: 9px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* whatsapp */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  z-index: 60;
}

.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* chat widget */
.chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 26px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 28px;
  background: var(--navy);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 42, 63, 0.24);
  z-index: 70;
}

.chat-toggle .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 370px;
  max-height: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(14, 42, 63, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 80;
}

.chat-panel.open { display: flex; }

.chat-head {
  background: var(--navy);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.chat-head b { display: block; font-size: 14px; }
.chat-head small { font-size: 11.5px; color: rgba(255, 255, 255, 0.66); }

.chat-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.chat-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  background: #fafbfb;
  min-height: 260px;
}

.msg { display: flex; margin-bottom: 12px; }

.msg .bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}

.msg.bot .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 3px; }

.msg.user { justify-content: flex-end; }

.msg.user .bubble { background: var(--teal); color: #fff; border-bottom-right-radius: 3px; }

.msg .bubble b { font-weight: 600; }

.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; background: #fafbfb; }

.chat-quick button {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}

.chat-quick button:hover { border-color: var(--teal); color: var(--teal); }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
}

.chat-input input:focus { outline: none; border-color: var(--teal); }

.chat-input button {
  width: 40px;
  border-radius: 8px;
  border: 0;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.chat-foot { font-size: 10.5px; color: #97a5ae; text-align: center; padding: 0 12px 9px; background: #fff; }

.chat-foot a { text-decoration: underline; }

/* admin */
.admin-head { background: var(--navy); color: #fff; padding: 34px 0; }

.admin-head h1 { font-size: 24px; }
.admin-head p { color: rgba(255, 255, 255, 0.66); font-size: 13.5px; margin-top: 6px; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 { font-size: 15px; color: var(--navy); }

.panel-head .count {
  font-size: 12px;
  color: var(--teal);
  background: var(--teal-light);
  padding: 2px 9px;
  border-radius: 12px;
}

.panel-head .spacer { margin-left: auto; }

.mini-btn {
  font-size: 12.5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-2);
}

.mini-btn:hover { border-color: var(--navy); color: var(--navy); }

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

table.data th, table.data td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data th { background: #fafbfb; color: var(--ink-2); font-weight: 500; font-size: 12px; }

table.data td.wrap-td { white-space: normal; max-width: 360px; }

.empty { padding: 28px 20px; color: #8c9aa3; font-size: 13.5px; text-align: center; }

.tip {
  background: #fffaf0;
  border: 1px solid #f0dcb4;
  color: #7a5b1e;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 24px;
}

.tip b { color: #5c4413; }

@media (max-width: 960px) {
  .hero-inner, .inquiry-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .grid-4, .app-list { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chat-panel { width: calc(100% - 24px); right: 12px; bottom: 84px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-figure img { height: 280px; }
}
