/* ===== CSS Variables ===== */
:root {
  --color-navy: #1a237e;
  --color-navy-dark: #0a1428;
  --color-navy-light: #f0f1f7;
  --color-red: #d32f2f;
  --color-red-dark: #b71c1c;
  --color-bg: #f9f9f9;
  --color-card: #ffffff;
  --color-text-primary: #0a1628;
  --color-text-secondary: #6b7280;
  --color-border: #e8eaed;
  --color-footer-text: #6b7b95;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(26, 35, 126, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 35, 126, 0.12);
  --container-width: 1280px;
  --section-padding: 80px;
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-red);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-red);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-block {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 44px;
  width: auto;
}

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

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: var(--transition);
}

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

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--color-red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
}

.header-phone:hover {
  background-color: var(--color-red-dark);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  background-color: var(--color-navy);
  padding-top: 152px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-red);
  border-radius: 50%;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 22px;
  color: #b8c5e0;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: #9db0d0;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 540px;
}

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

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== Stats ===== */
.stats {
  background-color: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

.stat-item:nth-child(4) .stat-number {
  color: var(--color-red);
}

.stat-item .stat-label {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ===== About ===== */
.about {
  background-color: var(--color-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.about-text p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.services-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--color-text-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--color-navy);
}

.service-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== Industries ===== */
.industries {
  background-color: #fff;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.industry-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.industry-image {
  position: relative;
  overflow: hidden;
}

.industry-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.industry-card:hover .industry-image img {
  transform: scale(1.05);
}

.industry-body {
  padding: 28px;
  flex: 1;
}

.industry-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.industry-tags {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.industry-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.industry-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.industry-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.industry-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 2px;
  background-color: var(--color-red);
  border-radius: 1px;
}

/* ===== Cases ===== */
.cases {
  background-color: #fff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

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

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-content {
  padding: 24px;
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-navy-light);
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 12px;
}

.case-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.case-content p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== News ===== */
.news {
  background-color: var(--color-bg);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
}

.news-more:hover {
  color: var(--color-red);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

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

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 24px;
}

.news-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-red);
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-content p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq {
  background-color: #fff;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  background-color: var(--color-navy-light);
  border-color: #d6dae4;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-navy-light);
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item.active .faq-number {
  background-color: var(--color-red);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px 68px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ===== Contact ===== */
.contact {
  background-color: var(--color-navy);
  color: #fff;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: center;
}

.contact-info .section-label {
  color: var(--color-red);
}

.contact-info .section-title {
  color: #fff;
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 16px;
  color: #b8c5e0;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.contact-phone svg {
  color: var(--color-red);
}

.contact-address {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: #b8c5e0;
}

.contact-qrcode {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qrcode-image {
  width: 120px;
  height: 120px;
  padding: 8px;
  background-color: #fff;
  border-radius: var(--radius-md);
}

.qrcode-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qrcode-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qrcode-text strong {
  font-size: 16px;
  font-weight: 600;
}

.qrcode-text span {
  font-size: 14px;
  color: #9db0d0;
}

.contact-form-wrapper {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--color-text-primary);
}

.contact-form-wrapper h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-navy);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-navy-dark);
  color: #fff;
  padding: 48px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  margin-bottom: 32px;
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-footer-text);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-footer-text);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #4a5a75;
}

/* ===== Mobile CTA ===== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background-color: #fff;
  border-top: 1px solid var(--color-border);
  z-index: 999;
}

.mobile-cta .btn {
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 64px;
  }

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

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 0;
  }

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

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

  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 280px;
  }

  .services-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
  }

  .header {
    height: 64px;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-phone {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-title {
    font-size: 36px;
  }

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

  .section-title {
    font-size: 28px;
  }

  .services-grid,
  .cases-grid,
  .news-grid,
  .stats-container,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

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

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-phone {
    font-size: 22px;
  }
}
