/* ====== Bo Zhi Tech Website - Main Stylesheet ====== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fc;
  --color-bg-soft: #eef3fb;
  --color-surface: #ffffff;
  --color-border: #e3e8f1;
  --color-border-strong: #cdd6e3;
  --color-text: #0f172a;
  --color-text-2: #475569;
  --color-text-3: #94a3b8;
  --color-primary: #1e3a8a;
  --color-primary-2: #2563eb;
  --color-accent: #06b6d4;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --grad-primary: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #06b6d4 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(30, 58, 138, .08), rgba(6, 182, 212, .08));
  --grad-text: linear-gradient(135deg, #1e3a8a, #06b6d4);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-xl: 0 30px 80px rgba(30, 58, 138, .15), 0 8px 24px rgba(15, 23, 42, .06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --header-h: 72px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, "Source Han Sans CN", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --t: 200ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

a { color: var(--color-primary-2); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--color-primary); }

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

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

button { cursor: pointer; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 138, .25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 58, 138, .35);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--color-primary);
  border-color: var(--color-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary-2);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary-2);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ====== Top Bar ====== */
.topbar {
  background: #0b1437;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  padding: 8px 0;
}
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: all var(--t);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, .95);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}
.brand:hover { color: var(--color-text); }
.brand-logo {
  width: auto;
  height: 38px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 8px;
}
.brand-text { line-height: 1.2; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-en { font-size: 11px; color: var(--color-text-3); margin-top: 2px; letter-spacing: .04em; }

.nav-main {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-main a {
  color: var(--color-text-2);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  transition: all var(--t);
}
.nav-main a:hover { color: var(--color-primary); background: var(--color-bg-soft); }
.nav-main a.is-active {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(6, 182, 212, .12), transparent 60%),
    radial-gradient(900px 500px at 0% 50%, rgba(37, 99, 235, .10), transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 138, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, .08);
  color: var(--color-primary-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, .12);
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .2);
}
.hero h1 {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
  margin: 24px 0 20px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-2);
  margin: 0 0 36px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1.1 / 1;
  max-width: 480px;
  margin-left: auto;
}
.hero-orb {
  position: absolute;
  inset: 10% 10%;
  background: var(--grad-primary);
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  animation: float 10s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, -20px) scale(1.05); }
}
.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatSlow 8s ease-in-out infinite;
}
.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
}
.hero-card-text { line-height: 1.3; }
.hero-card-title { font-weight: 700; font-size: 14px; color: var(--color-text); }
.hero-card-desc { font-size: 12px; color: var(--color-text-3); margin-top: 2px; }
.hero-card.c1 { top: 6%; left: -8%; }
.hero-card.c2 { top: 40%; right: -4%; animation-delay: -2s; }
.hero-card.c3 { bottom: 6%; left: 12%; animation-delay: -4s; }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ====== Page Hero (smaller, for inner pages) ====== */
.page-hero {
  padding: 88px 0 56px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(37, 99, 235, .10), transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 138, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 70%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.page-hero p {
  font-size: 17px;
  color: var(--color-text-2);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-3);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--color-text-3); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { opacity: .5; }

/* ====== Section ====== */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head.left { text-align: left; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--color-primary-2);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.section-head h2 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p {
  font-size: 17px;
  color: var(--color-text-2);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-head.left p { margin: 0; }

.bg-alt { background: var(--color-bg-alt); }
.bg-soft { background: var(--color-bg-soft); }

/* ====== Stats ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.stat .value {
  font-size: 36px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat .label { color: var(--color-text-2); font-size: 14px; margin-top: 4px; }

/* ====== Cards ====== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, .25);
}
.card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary-soft);
  color: var(--color-primary-2);
  margin-bottom: 20px;
  transition: all var(--t);
}
.card:hover .icon-wrap {
  background: var(--grad-primary);
  color: #fff;
  transform: scale(1.05);
}
.card h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.card .summary { color: var(--color-text-2); font-size: 15px; margin: 0 0 12px; }
.card .details { color: var(--color-text-2); font-size: 14px; line-height: 1.7; }
.card .tagline {
  display: inline-block;
  font-size: 12px;
  color: var(--color-primary-2);
  font-weight: 600;
  margin-bottom: 12px;
  padding: 2px 10px;
  background: rgba(37, 99, 235, .08);
  border-radius: 999px;
}

/* ====== Tech Grid (3 cols) ====== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ====== Service Grid (3 cols, detailed) ====== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-grid .card { padding: 32px; }
.service-grid .icon-wrap { width: 64px; height: 64px; border-radius: 16px; }
.service-grid h3 { font-size: 20px; }
.service-list { list-style: none; padding: 0; margin: 16px 0 0; }
.service-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--color-text-2);
  font-size: 14px;
  border-top: 1px dashed var(--color-border);
}
.service-list li:first-child { border-top: 0; }
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  background: var(--grad-primary-soft);
  border-radius: 4px;
}
.service-list li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 16px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--color-primary-2);
  border-bottom: 2px solid var(--color-primary-2);
  transform: rotate(-45deg);
}
.case-card {
  margin-top: 16px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.case-card .case-name { font-weight: 700; color: var(--color-primary); font-size: 14px; margin-bottom: 4px; }
.case-card .case-summary { font-size: 13px; color: var(--color-text-2); line-height: 1.6; }

/* ====== Industry Grid ====== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.industry {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--t);
}
.industry:hover {
  border-color: var(--color-primary-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.industry .name { font-weight: 700; color: var(--color-primary); font-size: 16px; }
.industry .desc { font-size: 12px; color: var(--color-text-3); margin-top: 4px; line-height: 1.5; }

/* ====== Team ====== */
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 180px;
  height: 220px;
  border-radius: 18px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.team-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(6, 182, 212, .4), transparent 50%);
}
.team-avatar span { position: relative; z-index: 1; }
.team-info h3 { font-size: 26px; margin: 0 0 4px; font-weight: 800; }
.team-info .title {
  display: inline-block;
  padding: 4px 12px;
  background: var(--grad-primary-soft);
  color: var(--color-primary-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.team-info p { color: var(--color-text-2); font-size: 15px; line-height: 1.8; margin: 0 0 12px; }
.team-info .label { color: var(--color-text); font-weight: 700; }

/* ====== Publications ====== */
.pub-list { display: grid; gap: 12px; }
.pub-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  transition: all var(--t);
}
.pub-item:hover {
  border-color: var(--color-primary-2);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.pub-year {
  background: var(--grad-primary-soft);
  color: var(--color-primary-2);
  border-radius: 8px;
  padding: 6px 0;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.pub-info .title { font-weight: 700; color: var(--color-text); font-size: 16px; margin-bottom: 4px; }
.pub-info .authors { color: var(--color-text-2); font-size: 14px; margin-bottom: 4px; }
.pub-info .venue { color: var(--color-text-3); font-size: 13px; font-style: italic; }
.pub-info .ref { color: var(--color-text-3); font-size: 13px; margin-top: 4px; font-family: var(--font-mono); }
/* 论文标题外链（后台填了「论文链接」才渲染） */
.pub-info .title a.pub-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--color-border);
  transition: color var(--t), border-color var(--t);
}
.pub-info .title a.pub-link:hover {
  color: var(--color-primary-2);
  border-bottom-color: var(--color-primary-2);
}
.pub-link .ext {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  opacity: .55;
  transform: translateY(-1px);
}

/* ====== News ====== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--t);
}
.news-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary-2); }
.news-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.news-tag {
  font-size: 12px;
  padding: 2px 10px;
  background: var(--grad-primary-soft);
  color: var(--color-primary-2);
  border-radius: 999px;
  font-weight: 600;
}
.news-date { color: var(--color-text-3); font-size: 13px; }
.news-card h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.4; }
.news-card p { color: var(--color-text-2); font-size: 14px; line-height: 1.7; margin: 0; }

/* ====== Contact ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--t);
}
.contact-card:hover { border-color: var(--color-primary-2); box-shadow: var(--shadow-md); }
.contact-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-primary-soft);
  color: var(--color-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card .label { font-size: 13px; color: var(--color-text-3); margin-bottom: 4px; }
.contact-card .value { font-weight: 600; color: var(--color-text); font-size: 16px; word-break: break-all; }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; color: var(--color-text-2); font-weight: 600; }
.form-field label .req { color: var(--color-error); }
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--color-bg);
  transition: border var(--t), box-shadow var(--t);
  font-size: 15px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary-2);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; align-items: center; }
.form-msg { font-size: 14px; }
.form-msg.ok { color: var(--color-success); }
.form-msg.err { color: var(--color-error); }

/* ====== CTA Banner ====== */
.cta-banner {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, .4), transparent 50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.cta-banner p { font-size: 17px; opacity: .92; margin: 0 0 28px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.cta-banner .btn-primary:hover { background: #fff; color: var(--color-primary); transform: translateY(-2px); }

/* ====== About extra sections ====== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-intro .text { font-size: 16px; color: var(--color-text-2); line-height: 1.9; }
.about-intro .text p { margin: 0 0 16px; }
.about-intro .text .quote {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--grad-primary-soft);
  border-left: 4px solid var(--color-primary-2);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature .name { font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.feature .desc { color: var(--color-text-2); font-size: 14px; line-height: 1.6; }

/* ====== Footer ====== */
.site-footer {
  background: #0b1437;
  color: rgba(255, 255, 255, .75);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { text-align: center; }
.footer-brand .brand { display: inline-flex; flex-direction: column; align-items: center; }
.footer-brand .brand-name {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 16px 0 0; }
.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: .04em;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; font-size: 14px; }
.footer-contact span { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .beian { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ====== Reveal Animations ====== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}
.js-on .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.js-on .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ====== Responsive ====== */
@media (max-width: 980px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 40px; }
  .hero-subtitle { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 24px; margin-top: -32px; }
  .stat .value { font-size: 28px; }
  .tech-grid, .service-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .team-card { grid-template-columns: 1fr; text-align: center; }
  .team-avatar { margin: 0 auto; width: 140px; height: 170px; font-size: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 30px; }
  section { padding: 56px 0; }
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 24px; }
  .nav-toggle { display: flex; }
  /* On mobile, hide the topbar (contact info is in footer & contact page) so the
     mobile menu can drop from a clean header edge. */
  .topbar { display: none; }
  /* Remove backdrop-filter on mobile so position:fixed nav escapes the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .98); }
  .nav-main {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0;
    padding: 16px 16px 32px;
    transform: translateX(100%);
    transition: transform var(--t);
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
  }
  .nav-main.is-open { transform: none; }
  .nav-main a { width: 100%; padding: 14px 16px; border-radius: 12px; font-size: 17px; font-weight: 700; }
  .topbar-info { gap: 16px; font-size: 12px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pub-item { grid-template-columns: 60px 1fr; gap: 12px; padding: 16px; }
  .pub-year { font-size: 14px; padding: 4px 0; }
  .hero-card { padding: 12px 14px; }
  .hero-card-title { font-size: 12px; }
  .hero-card-desc { font-size: 11px; }
}

/* ===== Captcha ===== */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-img {
  height: 40px; width: auto; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--color-border); background: #eef2f7; display: block;
}
.captcha-row .btn-sm { white-space: nowrap; }
