/* ============================================================
   包意科技（上海）有限公司 企业官网
   风格：科技风 · 深空蓝 + 电光蓝 + 青色辉光
   ============================================================ */
:root {
  --primary: #0A2A66;        /* 深空蓝主色 */
  --primary-light: #2E6BFF;  /* 电光蓝 */
  --accent: #00D9FF;         /* 青色辉光 */
  --accent-light: #7FE9FF;
  --accent-deep: #00A3D6;    /* 深青（浅底文字用） */
  --ink: #0D1B2E;            /* 正文深色 */
  --gray: #5C6B85;
  --gray-light: #8B99B0;
  --line: #E3E9F5;
  --bg-soft: #F3F6FD;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 6px 30px rgba(46, 107, 255, 0.08);
  --shadow-hover: 0 14px 40px rgba(46, 107, 255, 0.18);
  --hero-bg: linear-gradient(160deg, #071733 0%, #0A2A66 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: 1px;
}
.brand-name { font-size: 19px; font-weight: 700; color: var(--primary); line-height: 1.25; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: var(--gray-light); letter-spacing: 0.6px; }

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--gray);
  transition: all 0.25s ease;
}
.nav-links a:hover { color: var(--primary-light); background: var(--bg-soft); }
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), #00B4E6);
  box-shadow: 0 4px 14px rgba(46, 107, 255, 0.35);
  font-weight: 500;
}

.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--primary-light);
}
.nav-phone svg { flex: none; }

/* 移动端 */
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav-phone span { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center;
    width: 40px; height: 40px; border: none; background: none; cursor: pointer; gap: 5px;
  }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.3s; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 5%; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* ---------------- Hero（深空科技底） ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(0, 217, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, rgba(46, 107, 255, 0.28), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.025) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.025) 39px 40px),
    var(--hero-bg);
  overflow: hidden;
  padding: 110px 0 100px;
  color: #fff;
}
.hero-inner { display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1.15; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent-light); font-size: 13.5px; letter-spacing: 1px;
  margin-bottom: 26px;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700; line-height: 1.25; color: #fff;
  letter-spacing: 1px;
}
.hero h1 .em {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0, 217, 255, 0.55);
}
.hero p.sub {
  margin: 26px 0 40px;
  font-size: 17px; color: rgba(255, 255, 255, 0.72); max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 34px; border-radius: 999px;
  font-size: 15.5px; font-weight: 500;
  transition: all 0.28s ease; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #2E6BFF, #00B4E6);
  color: #fff; box-shadow: 0 8px 26px rgba(46, 107, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 217, 255, 0.45); }
.btn-ghost { background: transparent; color: var(--primary-light); border: 1.5px solid var(--primary-light); }
.btn-ghost:hover { background: rgba(46, 107, 255, 0.06); transform: translateY(-2px); }
/* 深色 Hero 内的幽灵按钮用白色描边 */
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.hero-visual { flex: 1; display: flex; justify-content: center; }
@media (max-width: 960px) {
  .hero-inner { flex-direction: column; gap: 48px; }
  .hero { padding: 72px 0 64px; }
  .hero-text { text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head .kicker {
  display: inline-block;
  font-size: 13px; letter-spacing: 4px; font-weight: 600;
  color: var(--accent-deep); text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.section-head p { margin-top: 18px; color: var(--gray); font-size: 16px; }

/* ---------------- 数据条（深空底） ---------------- */
.stats-band {
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(0, 217, 255, 0.14), transparent 70%),
    linear-gradient(135deg, #071733, #123A7A);
  color: #fff; padding: 56px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num {
  font-size: 40px; font-weight: 700; color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.stat .num small { font-size: 22px; margin-left: 2px; }
.stat .lab { margin-top: 8px; font-size: 14.5px; opacity: 0.85; letter-spacing: 1px; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- 卡片网格 ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: rgba(0, 217, 255, 0.55);
}
.card .icon {
  width: 54px; height: 54px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(46,107,255,0.10), rgba(0,217,255,0.14));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); margin-bottom: 20px;
}
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--gray); }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card .tags span {
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--primary-light); border: 1px solid var(--line);
}

/* 产品卡片（带图形） */
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all 0.3s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-visual {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
}
.product-visual svg { opacity: 0.9; }
.pv-a { background: linear-gradient(135deg, #EAF1FF, #D9E8FF); }
.pv-b { background: linear-gradient(135deg, #E6F8FF, #CCF1FF); }
.product-card .body { padding: 24px 26px 28px; }
.product-card h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--gray); }

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--primary-light), var(--accent));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 34px 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary-light);
}
.tl-item .year { font-size: 15px; font-weight: 700; color: var(--accent-deep); letter-spacing: 1px; }
.tl-item h3 { font-size: 17px; margin: 6px 0 6px; }
.tl-item p { font-size: 14.5px; color: var(--gray); }

/* ---------------- 价值/文化列表 ---------------- */
.value-list { display: grid; gap: 18px; }
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .no {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), #00B4E6);
  color: #fff; box-shadow: 0 6px 16px rgba(46, 107, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.value-item h3 { font-size: 17px; margin-bottom: 4px; }
.value-item p { font-size: 14.5px; color: var(--gray); }

/* ---------------- 联系页 ---------------- */
.contact-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.info-card .top {
  background:
    radial-gradient(400px 160px at 90% 0%, rgba(0, 217, 255, 0.25), transparent 70%),
    linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 30px 32px;
}
.info-card .top h3 { font-size: 20px; margin-bottom: 8px; }
.info-card .top p { font-size: 14px; opacity: 0.85; }
.info-rows { padding: 10px 0; }
.info-row { display: flex; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-row:last-child { border-bottom: none; }
.info-row .ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft); color: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.info-row .lab { font-size: 12.5px; color: var(--gray-light); letter-spacing: 2px; margin-bottom: 3px; }
.info-row .val { font-size: 15.5px; color: var(--ink); font-weight: 500; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px 34px;
}
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card .hint { font-size: 14px; color: var(--gray); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13.5px; color: var(--gray); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: var(--bg-soft); transition: all 0.25s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary-light); background: #fff; box-shadow: 0 0 0 4px rgba(46,107,255,0.12);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ---------------- CTA ---------------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(0, 217, 255, 0.22), transparent 60%),
    linear-gradient(135deg, #071733 0%, #2E6BFF 100%);
  color: #fff; padding: 80px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: 1px; margin-bottom: 16px; }
.cta-band p { font-size: 16px; opacity: 0.85; margin-bottom: 34px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.28); }
.cta-band .btn-primary:hover { background: var(--accent); color: #06263F; box-shadow: 0 12px 32px rgba(0, 217, 255, 0.5); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #050D1F; color: #B9C6D8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name small { color: #7E93B3; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; opacity: 0.85; }
.footer-col h4 {
  color: #fff; font-size: 15px; letter-spacing: 2px; margin-bottom: 18px; font-weight: 600;
}
.footer-col li { margin-bottom: 11px; font-size: 14px; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
.footer-col .contact-line svg { flex: none; margin-top: 3px; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0 14px; font-size: 13px; opacity: 0.6;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ICP 备案号 */
.footer-icp {
  text-align: center;
  padding: 0 0 26px;
  font-size: 12.5px;
  color: #7E93B3;
}
.footer-icp a {
  color: #B9C6D8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-icp a:hover { color: #fff; text-decoration: underline; }
.footer-icp .sep { margin: 0 10px; opacity: 0.5; }

/* ---------------- 动画 ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.anim { animation: fadeUp 0.8s ease both; }
.d1 { animation-delay: 0.12s; } .d2 { animation-delay: 0.24s; } .d3 { animation-delay: 0.36s; }

/* 浮动装饰 */
.float-slow { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Logo 显示优化 */
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 860px) {
  .brand-logo { height: 36px; }
}
