/* 浙江甲子软件有限公司 - 企业官网样式 */

:root {
  --primary: #0d2b4a;
  --primary-light: #1a3d66;
  --accent: #1e88e5;
  --accent-hover: #1565c0;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --border: #e8ecf0;
  --shadow: 0 4px 20px rgba(13, 43, 74, 0.08);
  --shadow-hover: 0 8px 30px rgba(13, 43, 74, 0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--accent-hover);
  text-decoration: none;
}

/* Preloader */
.pre-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pre-loader .load-con {
  text-align: center;
}

.pre-loader .logo-text {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.pre-loader .spinner {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pre-loader .spinner > div {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.pre-loader .spinner .bounce1 { animation-delay: -0.32s; }
.pre-loader .spinner .bounce2 { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Navbar */
.navbar-corporate {
  background: transparent;
  border: none;
  margin-bottom: 0;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar-corporate .navbar-brand {
  padding: 0;
  height: auto;
}

.navbar-corporate .brand-text {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  transition: var(--transition);
}

.navbar-corporate .navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  padding: 10px 18px;
  transition: var(--transition);
}

.navbar-corporate .navbar-nav > li > a:hover,
.navbar-corporate .navbar-nav > li > a:focus {
  color: #fff;
  background: transparent;
}

.navbar-corporate .navbar-nav > li > a.btn-contact {
  background: var(--accent);
  border-radius: 4px;
  margin-left: 10px;
  padding: 8px 20px;
}

.navbar-corporate .navbar-nav > li > a.btn-contact:hover {
  background: var(--accent-hover);
  color: #fff;
}

.navbar-corporate .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.navbar-corporate .navbar-toggle .fa {
  color: #fff;
}

.navbar-corporate.scrolled {
  background: rgba(13, 43, 74, 0.97);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-corporate.scrolled .brand-text {
  font-size: 20px;
}

/* Hero */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0a4a7a 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: 80px;
}

#home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(30, 136, 229, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

#home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-white), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 0;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.3;
}

.hero-content .subtitle {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-weight: 300;
}

.hero-content .intro {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 35px;
  line-height: 1.8;
}

.hero-buttons .btn {
  margin-right: 15px;
  margin-bottom: 10px;
  padding: 12px 30px;
  font-size: 15px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-primary-corporate {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
}

.btn-primary-corporate:hover,
.btn-primary-corporate:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-outline-corporate {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline-corporate:hover,
.btn-outline-corporate:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

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

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.hero-stat .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Section Common */
.section {
  padding: 80px 0;
}

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

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-heading .divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 20px;
}

.section-heading p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About */
.about-intro {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 40px;
  text-align: justify;
}

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--accent);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item .year {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}

.timeline-item .desc {
  font-size: 15px;
  color: var(--text-light);
}

.about-cards {
  margin-top: 40px;
}

.about-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

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

.about-card i {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 15px;
}

.about-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* Services */
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}

.service-card .icon-wrap {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent), #42a5f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card .icon-wrap i {
  font-size: 28px;
  color: #fff;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* Technology */
.tech-item {
  text-align: center;
  padding: 30px 20px;
}

.tech-item .tech-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tech-item:hover .tech-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.tech-item:hover .tech-icon i {
  color: #fff;
}

.tech-item .tech-icon i {
  font-size: 32px;
  color: var(--accent);
  transition: var(--transition);
}

.tech-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.tech-item p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* Products */
.product-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.product-box h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-box h3 span {
  color: var(--accent);
}

.product-box .product-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 25px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.product-feature {
  background: var(--bg-light);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text);
}

.product-feature i {
  color: var(--accent);
  margin-right: 6px;
}

/* Contact */
#contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

#contact .section-heading h2 {
  color: #fff;
}

#contact .section-heading p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 35px;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 15px;
  font-size: 14px;
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-submit {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 12px 35px;
  font-size: 15px;
  border-radius: 4px;
  transition: var(--transition);
}

.contact-form .btn-submit:hover {
  background: var(--accent-hover);
}

.contact-info {
  padding: 20px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-item .icon i {
  font-size: 20px;
  color: var(--accent);
}

.contact-item .info h4 {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 5px;
  font-weight: 400;
}

.contact-item .info p,
.contact-item .info a {
  font-size: 16px;
  color: #fff;
  margin: 0;
}

.contact-item .info a:hover {
  color: var(--accent);
}

/* Footer */
footer {
  background: #061a2e;
  padding: 40px 0 25px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

footer .footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

footer .social-links {
  margin-bottom: 20px;
}

footer .social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  line-height: 40px;
  margin: 0 8px;
  color: #fff;
  transition: var(--transition);
}

footer .social-links a:hover {
  background: var(--accent);
  color: #fff;
}

footer .rights p {
  font-size: 13px;
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.6);
}

footer .rights a {
  color: rgba(255, 255, 255, 0.7);
}

footer .rights a:hover {
  color: var(--accent);
}

/* Scroll animations - 默认可见，避免 JS 未加载时白屏 */
.scrollpoint {
  opacity: 1;
}

.js .scrollpoint:not(.active) {
  opacity: 0;
}

.scrollpoint.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content .subtitle {
    font-size: 18px;
  }

  .hero-stats {
    gap: 25px;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading h2 {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .navbar-corporate {
    background: var(--primary);
    padding: 10px 0;
  }

  .navbar-corporate .navbar-collapse {
    background: var(--primary);
    margin-top: 10px;
    border-radius: var(--radius);
    padding: 10px;
  }

  .navbar-corporate .navbar-nav > li > a.btn-contact {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
    display: block;
  }

  #home {
    min-height: auto;
    padding: 100px 0 80px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-content .subtitle {
    font-size: 16px;
  }

  .hero-stat .number {
    font-size: 28px;
  }

  .contact-form {
    margin-bottom: 30px;
  }

  .product-box {
    padding: 25px;
  }
}
