/* ===== Jiangnan United Industrial Co., Limited — Bilingual Site ===== */
:root {
  --navy: #0a2540;
  --navy-2: #123a5c;
  --blue: #1e5a8a;
  --cyan: #00b4d8;
  --amber: #f5a623;
  --bg: #f4f7fa;
  --card: #ffffff;
  --ink: #1a2b3c;
  --muted: #5a6b7c;
  --line: #e2e8f0;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
}

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

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

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

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
header.site {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px;
}
.brand .name { font-size: 17px; letter-spacing: .3px; }
.brand .name small { display: block; font-size: 11px; font-weight: 400; color: #9fb6cc; letter-spacing: 1px; }

.nav-right { display: flex; align-items: center; gap: 18px; }
nav.menu { display: flex; gap: 22px; }
nav.menu a {
  color: #cfe0f0; font-size: 15px; font-weight: 500; padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: .2s;
}
nav.menu a:hover, nav.menu a.active { color: #fff; border-bottom-color: var(--cyan); }

.lang-switch {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: 7px 12px; font-size: 14px; cursor: pointer; font-family: inherit;
}
.lang-switch option { color: #1a2b3c; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(0,180,216,.25), transparent),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0e2f4d 100%);
  color: #fff; padding: 72px 0 84px; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.2; margin-bottom: 18px; }
.hero h1 span { color: var(--cyan); }
.hero p.lead { color: #cfe0f0; font-size: 17px; max-width: 560px; margin-bottom: 26px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero .badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #dceaf6;
}
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 600;
  font-size: 15px; transition: .2s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--amber); color: #1a1300; }
.btn-primary:hover { background: #ffb838; color: #1a1300; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 15px; color: var(--cyan); margin-bottom: 14px; letter-spacing: 1px; }
.hero-card .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 14px; }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .row span:first-child { color: #9fb6cc; }
.hero-card .row span:last-child { color: #fff; text-align: right; }

/* ---------- Sections ---------- */
section.block { padding: 70px 0; scroll-margin-top: 80px; }
section.block.alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: 30px; margin: 8px 0 10px; color: var(--navy); }
.section-head p { color: var(--muted); max-width: 680px; margin: 0 auto; }

/* ---------- Intro (More/Less) ---------- */
.intro-wrap { max-width: 880px; margin: 0 auto; }
.intro-text { font-size: 16px; color: var(--ink); }
.intro-text .more-text { display: none; }
.intro-text.expanded .more-text { display: inline; }
.intro-text .dots { display: inline; }
.intro-text.expanded .dots { display: none; }
.toggle-more {
  display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; cursor: pointer;
  background: none; border: 0; font-size: 15px; padding: 0;
}
.toggle-more::after { content: " ▾"; }
.intro-text.expanded + .toggle-more::after,
.toggle-more.expanded::after { content: " ▴"; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow);
}
.stat .num { font-size: 28px; font-weight: 800; color: var(--blue); }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.subsec-title { font-size: 20px; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.subsec-title::before { content: ""; width: 6px; height: 22px; background: var(--cyan); border-radius: 3px; display: inline-block; }
.factcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.factcard h4 { color: var(--navy); margin-bottom: 12px; font-size: 16px; }
.factlist { list-style: none; }
.factlist li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.factlist li:last-child { border-bottom: 0; }
.factlist li span:first-child { color: var(--muted); }
.factlist li b { color: var(--ink); text-align: right; font-weight: 600; }

.func-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.func {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.func h5 { color: var(--blue); font-size: 15px; margin-bottom: 6px; }
.func p { font-size: 14px; color: var(--muted); }

/* ---------- Pillars (一核三翼) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(10,37,64,.14); }
.pillar .thumb { background: linear-gradient(135deg,#eef4fa,#dcebf6); height: 130px; display: grid; place-items: center; }
.pillar .thumb img { width: 76px; height: 76px; }
.pillar .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.pillar .tag { color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.pillar h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.pillar p { font-size: 13.5px; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 30px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 3px; background: linear-gradient(var(--cyan), var(--blue)); border-radius: 3px; }
.tl-item { position: relative; padding: 0 0 22px 26px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); }
.tl-item .date { font-weight: 800; color: var(--blue); font-size: 15px; }
.tl-item .tl-title { font-weight: 600; color: var(--navy); margin: 2px 0 4px; }
.tl-item p { font-size: 14px; color: var(--muted); }

/* ---------- Bars (funding) ---------- */
.bars { margin-top: 26px; display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: max-content 1fr 56px; align-items: center; gap: 14px; }
.bar-row .bar-label { font-size: 14px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.bar-track { background: #e9eff5; border-radius: 999px; height: 16px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.bar-row .bar-pct { font-weight: 800; color: var(--blue); text-align: right; }

/* ---------- Moat (five-dimensional) ---------- */
.moat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 30px; }
.moat-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.moat-item .idx { font-size: 26px; font-weight: 800; color: var(--amber); }
.moat-item h4 { color: var(--navy); font-size: 15px; margin: 8px 0 6px; }
.moat-item p { font-size: 13px; color: var(--muted); }

/* ---------- Loop steps ---------- */
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.loop-step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative;
}
.loop-step .num { font-size: 13px; font-weight: 800; color: #fff; background: var(--blue); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; }
.loop-step h4 { color: var(--navy); font-size: 14.5px; margin-bottom: 6px; }
.loop-step p { font-size: 12.5px; color: var(--muted); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin-top: 18px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--navy); color: #fff; font-weight: 600; }
table.data td { color: var(--ink); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-info h3 { color: var(--cyan); margin-bottom: 18px; }
.contact-info .ci { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.contact-info .ci:last-child { border-bottom: 0; }
.contact-info .ci span { color: #9fb6cc; display: block; font-size: 13px; }
.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-box label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.form-box input, .form-box textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fbfdff;
}
.form-box input:focus, .form-box textarea:focus { outline: none; border-color: var(--cyan); }
.form-box textarea { resize: vertical; min-height: 110px; }
.form-box .btn { margin-top: 18px; width: 100%; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #cfe0f0; padding: 48px 0 26px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer.site h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
footer.site ul { list-style: none; }
footer.site ul li { padding: 5px 0; font-size: 14px; color: #9fb6cc; }
footer.site .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #7e96ad; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .pillars, .moat, .loop { grid-template-columns: repeat(2, 1fr); }
  .func-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  nav.menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 14px 6%; gap: 6px; }
  nav.menu.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .pillars, .moat, .loop, .stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .bar-row { grid-template-columns: 1fr 48px; }
  .bar-row .bar-label { grid-column: 1 / -1; }
  .bar-row .bar-track { grid-column: 1; }
  .bar-row .bar-pct { grid-column: 2; }
}
