/* ============ 合肥光谱物联科技有限公司 - 全站样式 ============ */
:root {
  --primary: #0a4bb3;
  --primary-dark: #082d6e;
  --primary-deep: #061c44;
  --accent: #14b8d4;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f5f7fa;
  --border: #e5e9f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(10, 45, 110, 0.08);
  --shadow-hover: 0 14px 40px rgba(10, 45, 110, 0.16);
}

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

html { scroll-behavior: smooth; }

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

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 40px; height: 40px; }
.logo-name { font-size: 18px; font-weight: 700; color: var(--primary-deep); line-height: 1.2; }
.logo-name small { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-light); letter-spacing: 0.4px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: #eef3fb; }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-cta { margin-left: 10px; }

/* 移动端菜单按钮 */
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--primary-deep); margin: 5px 0; transition: 0.3s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: #eef3fb; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 55%, #0e3f8f 100%);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 130px;
}
.hero-bg { position: absolute; inset: 0; opacity: 0.5; }
.hero-content { position: relative; max-width: 720px; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #bfe3ff;
}
.hero h1 { font-size: 46px; line-height: 1.25; letter-spacing: 1px; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(90deg, #59d4ff, #14b8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 通用 Section ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; color: var(--primary-deep); letter-spacing: 1px; }
.section-head p { color: var(--text-light); margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- 卡片 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf3ff, #dcf3fa);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 19px; color: var(--primary-deep); margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--text-light); }
.card ul { margin-top: 16px; }
.card ul li { font-size: 14px; color: var(--text-light); padding: 6px 0 6px 22px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* 大业务卡 */
.biz-card {
  position: relative;
  border-radius: 18px;
  padding: 44px 38px;
  color: #fff;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.biz-card.one { background: linear-gradient(135deg, #061c44, #0a4bb3 90%); }
.biz-card.two { background: linear-gradient(135deg, #05324a, #0e8aa8 90%); }
.biz-card::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  border-radius: 50%;
}
.biz-card .num { font-size: 15px; opacity: 0.7; letter-spacing: 3px; margin-bottom: auto; }
.biz-card h3 { font-size: 24px; margin: 24px 0 12px; }
.biz-card p { font-size: 14.5px; color: rgba(255,255,255,0.85); max-width: 420px; }
.biz-card .link { margin-top: 18px; color: #7fe3ff; font-weight: 600; font-size: 14.5px; }

/* ---------- 数据亮点 ---------- */
.stats-band { background: var(--primary-deep); color: #fff; padding: 70px 0; }
.stats-band .grid-4 { gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat .val { font-size: 42px; font-weight: 700; background: linear-gradient(90deg, #59d4ff, #14b8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .val sup { font-size: 20px; }
.stat .label { margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,0.75); }

/* ---------- 服务流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.step .no {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h4 { font-size: 17px; color: var(--primary-deep); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 行业应用 ---------- */
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.chip {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: all 0.3s;
}
.chip:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.chip .ci { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #eef3fb; display: flex; align-items: center; justify-content: center; }
.chip .ci svg { width: 26px; height: 26px; }
.chip h4 { font-size: 16.5px; color: var(--primary-deep); }
.chip p { font-size: 13px; color: var(--text-light); }

/* ---------- 关于我们 ---------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-intro h2 { font-size: 30px; color: var(--primary-deep); margin-bottom: 20px; }
.about-intro p { color: var(--text-light); margin-bottom: 14px; font-size: 15px; }
.about-visual { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }

.values .card h3 { display: flex; align-items: center; gap: 10px; }

/* 时间线 */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); }
.tl-item { position: relative; padding: 0 0 34px 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -28px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
}
.tl-item .year { font-size: 20px; font-weight: 700; color: var(--primary); }
.tl-item h4 { font-size: 16.5px; color: var(--primary-deep); margin: 6px 0; }
.tl-item p { font-size: 14px; color: var(--text-light); }

/* ---------- 页面 Banner（内页顶部） ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 60%, #0e3f8f 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner h1 { font-size: 34px; letter-spacing: 2px; }
.page-banner p { margin-top: 12px; color: rgba(255,255,255,0.75); font-size: 15px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--border); }
.info-item:last-child { border-bottom: none; }
.info-item .ii-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: #eef3fb;
  display: flex; align-items: center; justify-content: center;
}
.info-item .ii-icon svg { width: 24px; height: 24px; }
.info-item h4 { font-size: 15px; color: var(--primary-deep); }
.info-item p { font-size: 14px; color: var(--text-light); }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 20px; color: var(--primary-deep); margin-bottom: 6px; }
.form-card .sub { font-size: 13.5px; color: var(--text-light); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary-deep); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 75, 179, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg { font-size: 14px; margin-top: 14px; display: none; padding: 10px 14px; border-radius: 8px; }
.form-msg.ok { display: block; background: #e8f7ee; color: #157347; border: 1px solid #bfe8d0; }
.form-msg.err { display: block; background: #fdeeee; color: #b02a37; border: 1px solid #f2c6c9; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: calc(100vh - 72px - 260px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; background: var(--bg-light); }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-hover);
  padding: 42px 38px;
}
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.auth-tabs button {
  flex: 1; padding: 12px; background: none; border: none;
  font-size: 16px; font-weight: 600; color: var(--text-light);
  cursor: pointer; border-bottom: 2.5px solid transparent;
  transition: 0.2s;
}
.auth-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-card h1 { font-size: 22px; color: var(--primary-deep); margin-bottom: 4px; }
.auth-card .sub { font-size: 13.5px; color: var(--text-light); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-light); }
.user-box { display: none; align-items: center; gap: 12px; }
.user-box.show { display: flex; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 14px; color: var(--primary-deep); font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { background: none; border: none; color: var(--text-light); font-size: 13px; cursor: pointer; padding: 4px; }
.link-btn:hover { color: var(--primary); }

/* 我的留言 */
.my-messages { margin-top: 18px; }
.my-messages .msg-item { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.my-messages .msg-item p { font-size: 14px; color: var(--text); }
.my-messages .msg-item .meta { font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, #0e6ad1 60%, var(--accent) 130%);
  border-radius: 20px;
  color: #fff;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--primary-deep); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer .flogo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.site-footer .flogo .logo-name { color: #fff; }
.site-footer .flogo .logo-name small { color: rgba(255,255,255,0.55); }
.site-footer p, .site-footer a { font-size: 13.5px; line-height: 2; color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #7fe3ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.vis { opacity: 1; transform: none; }

/* ---------- Logo 图片 ---------- */
.logo img { height: 46px; width: auto; display: block; }
.flogo-chip {
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  display: inline-block;
  margin-bottom: 14px;
}
.flogo-chip img { height: 34px; width: auto; display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4, .chip-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .grid-2, .grid-3, .grid-4, .chip-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
  .hero h1 { font-size: 28px; }
  .logo img { height: 38px; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
}
