:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-deep: #0c1f3d;
  --ink: #16243a;
  --ink-2: #51607a;
  --ink-3: #8a96a8;
  --line: #e6eaf0;
  --brand: #0b5cad;
  --brand-dark: #084a8f;
  --brand-soft: #eaf2fb;
  --accent: #12a594;
  --shadow-sm: 0 2px 8px rgba(20, 40, 80, 0.06);
  --shadow: 0 10px 30px rgba(20, 40, 80, 0.10);
  --radius: 14px;
  --maxw: 1180px;
  --nav-h: 68px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; color: var(--brand); font-weight: 600;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; }
.section-head p { font-size: 17px; }

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand .logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: all .2s; line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: var(--brand-soft); color: var(--brand); }
.btn-ghost:hover { background: #dcebfb; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(11,92,173,.12), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(18,165,148,.10), transparent 55%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 96px 0 104px; max-width: 760px; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: 19px; color: var(--ink-2); margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats .stat .n { font-size: 30px; font-weight: 800; color: var(--ink); }
.hero-stats .stat .l { font-size: 14px; color: var(--ink-3); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; }
.card p { font-size: 15px; margin: 0; }

/* ---------- Brand strip ---------- */
.brand-grid .card { text-align: left; }
.brand-logo { font-weight: 800; font-size: 22px; color: var(--brand-dark); letter-spacing: .02em; }
.brand-cn { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }

/* ---------- Products ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.cat-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all .2s;
}
.cat-tabs button.active, .cat-tabs button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product .brand-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 4px 10px; border-radius: 999px;
}
.product h3 { font-size: 17px; margin: 4px 0 0; }
.product .model { font-size: 13px; color: var(--ink-3); font-family: ui-monospace, Menlo, Consolas, monospace; }
.product p { font-size: 14px; margin: 0; }
.product .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.product .tags span { font-size: 12px; color: var(--ink-2); background: var(--bg-soft); padding: 3px 9px; border-radius: 6px; }

/* ---------- Solution ---------- */
.solution { border-left: 3px solid var(--brand); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.solution h3 { font-size: 18px; }
.solution ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.solution ul li { margin-bottom: 4px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,92,173,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.form-msg { font-size: 14px; margin-top: 12px; padding: 10px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e7f7f1; color: #0c7a64; }
.form-msg.err { display: block; background: #fdecec; color: #b42318; }
.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-sm); }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.auth-switch a { color: var(--brand); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 20px; }
.info-item h4 { font-size: 15px; margin: 0 0 2px; }
.info-item p { font-size: 15px; margin: 0; color: var(--ink); }

/* ---------- Member ---------- */
.member-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.member-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.member-side .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,var(--brand),var(--brand-dark)); color:#fff; display:grid; place-items:center; font-size:22px; font-weight:700; margin-bottom: 12px; }
.member-side .uname { font-weight: 700; }
.member-side .umail { font-size: 13px; color: var(--ink-3); word-break: break-all; }
.member-menu { list-style: none; padding: 0; margin: 18px 0 0; }
.member-menu li { padding: 11px 12px; border-radius: 9px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.member-menu li.active, .member-menu li:hover { background: var(--brand-soft); color: var(--brand); }
.member-panel h3 { font-size: 20px; }
.inquiry { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.inquiry .meta { font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; margin-bottom: 6px; }
.badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; }
.upload-preview { font-size: 13px; color: var(--brand); margin-top: 8px; }

/* ---------- Footer ---------- */
#site-footer { background: var(--bg-deep); color: #c9d4e3; padding: 56px 0 28px; }
#site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
#site-footer a { color: #c9d4e3; font-size: 14px; }
#site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: #9fb0c6; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #8295ad; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-beian { background: var(--bg-deep); color: #8295ad; font-size: 13px; text-align: center; padding: 0 0 22px; }
.site-beian a { color: #8295ad; }
.site-beian a:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); background: var(--ink); color:#fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 200; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .member-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 16px; }
  .hero h1 { font-size: 34px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}
