/* ========================================
   黑龙江省理程科技有限责任公司 官网样式
   ======================================== */

:root {
  --primary: #1e5eff;
  --primary-dark: #0d3fbf;
  --primary-light: #e8f0ff;
  --accent: #00b8a9;
  --dark: #1f2937;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(30, 94, 255, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 15px;
  color: var(--gray);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 94, 255, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 94, 255, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #eef4ff 0%, #f6fbff 55%, #eafaf7 100%);
  overflow: hidden;
  padding: 90px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(30, 94, 255, 0.08);
  top: -160px;
  right: -100px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(0, 184, 169, 0.10);
  bottom: -120px;
  left: -80px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 94, 255, 0.10);
  color: var(--primary);
  border: 1px solid rgba(30, 94, 255, 0.18);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 50px;
}

.hero-stats .stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}

.hero-stats .stat-label {
  font-size: 14px;
  color: var(--gray);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  width: 280px;
  background: #fff;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  border: 6px solid #1f2937;
}

.phone-screen {
  border-radius: 24px;
  background: linear-gradient(160deg, #f0f6ff, #eafaf7);
  padding: 20px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.checkin-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.checkin-date {
  font-size: 13px;
  color: var(--gray);
}

.checkin-days {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.checkin-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
}

.phone-tip {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
  font-size: 13px;
  color: var(--gray);
}

.phone-tip strong {
  color: var(--primary);
}

.float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.float-card-1 {
  top: 8%;
  left: -4%;
}

.float-card-2 {
  bottom: 12%;
  right: -2%;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--gray);
  font-size: 16px;
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light), #e6f7f5);
  color: var(--primary);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--gray);
  font-size: 15px;
}

/* ---------- 关于/介绍 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 80px;
}

.split-content h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
}

.split-content p {
  color: var(--gray);
  margin-bottom: 18px;
  font-size: 16px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gray);
}

.feature-list .check {
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- 产品页特色 ---------- */
.product-hero {
  background: linear-gradient(135deg, #eef4ff, #f6fbff, #eafaf7);
  padding: 80px 0 70px;
}

.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.product-hero h1 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 18px;
}

.product-hero p {
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 30px;
}

.mock-phone {
  width: 260px;
  margin: 0 auto;
  background: #1f2937;
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.mock-phone .phone-screen {
  background: #f7f9fc;
  border-radius: 22px;
  padding: 20px;
  min-height: 420px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.step-num {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.step-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-item p {
  color: var(--gray);
  font-size: 14px;
}

/* ---------- 场景 ---------- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scene-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: transform 0.25s;
}

.scene-card:hover {
  transform: translateY(-4px);
}

.scene-card .emoji {
  font-size: 34px;
  margin-bottom: 14px;
}

.scene-card h3 {
  margin-bottom: 10px;
}

.scene-card p {
  color: var(--gray);
  font-size: 15px;
}

/* ---------- 提醒流程 ---------- */
.alert-flow {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #fff;
  padding: 90px 0;
}

.alert-flow .section-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.alert-flow .section-head h2 {
  color: #fff;
}

.alert-flow .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.timeline {
  max-width: 760px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-dot {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 联系方式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--gray);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.12);
  background: #fff;
}

.form-tip {
  font-size: 13px;
  color: var(--gray);
  margin-top: 10px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 16px;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
}

/* ---------- 页面横幅（内页） ---------- */
.page-banner {
  background: linear-gradient(135deg, #eef4ff, #f6fbff, #eafaf7);
  padding: 70px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 14px;
}

.page-banner p {
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero .container,
  .product-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-list {
    text-align: left;
    display: inline-block;
  }

  .card-grid,
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s;
    gap: 20px;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .card-grid,
  .scene-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .float-card-1 {
    left: 0;
  }

  .float-card-2 {
    right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-banner h1,
  .product-hero h1 {
    font-size: 32px;
  }
}

/* 简单动效 */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
