:root {
  --primary: #0b4f8a;
  --primary-dark: #042f56;
  --accent: #19a7c9;
  --text: #16354d;
  --muted: #677585;
  --surface: #f7fbff;
  --border: #dbe8f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f5fbff 0%, #f0f6fb 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: 100vh;
  background: url('images/hero-cover-page.jpg') center/cover no-repeat;
  color: #111;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.12));
}

.hero-content,
main,
.footer {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  position: absolute;
  top: 32px;
  right: 32px;
  left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  padding: 6px 32px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  z-index: 20;
}

.brand {
  display: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #1d2b43;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
}

.hero-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  padding: 280px clamp(20px, 4vw, 48px) 80px;
}

.hero-copy {
  position: relative;
  background: #fff;
  border-radius: 32px;
  max-width: 760px;
  padding: 44px 42px 40px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  pointer-events: none;
}

.hero-copy .eyebrow {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: #1d4cb2;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #2d3b52;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #111;
}

.hero-divider {
  width: 110px;
  height: 3px;
  margin: 20px 0 20px;
  background: #1d4cb2;
  border-radius: 999px;
}

.lead {
  margin: 0;
  font-size: 1rem;
  color: #3a3f4c;
  letter-spacing: 0.02em;
}

.hero-actions,
.hero-visual,
.hero-visual img {
  display: none;
}

main {
  padding: 0 clamp(20px, 4vw, 48px) 60px;
}

.section {
  padding: 70px 0 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: #111;
}

.section-heading .section-subtitle {
  margin: 10px 0 0;
  color: #61708d;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.qualification-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.business-top-row {
  margin-bottom: 26px;
  display: block;
}

.business-top-card {
  width: 100%;
  background: #eef7ff;
  border: none;
  padding: 32px 28px;
  border-radius: 24px;
}

.business-top-card h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  text-align: left;
}

.business-top-card p {
  margin: 0;
  text-align: left;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.business-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.business-copy {
  padding: 22px 24px 24px;
}

.business-copy h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.business-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.business-carousel {
  position: relative;
  background: #f4fbff;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  min-height: 250px;
  overflow: hidden;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(11, 79, 138, 0.08);
  background: #ffffff;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(11, 79, 138, 0.14);
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  background: #eef6ff;
}

.carousel-dots {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(11, 79, 138, 0.25);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

.back-to-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.3rem;
  box-shadow: 0 16px 28px rgba(11, 79, 138, 0.18);
  z-index: 30;
  transition: transform 0.2s ease, background 0.2s ease;
}

.back-to-top-button:hover {
  transform: translateY(-2px);
  background: #0a3f77;
}

/* ── 典型业绩卡片 ── */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.achievement-card {
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(11, 79, 138, 0.14);
}

.achievement-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.achievement-card-body {
  padding: 14px 16px 18px;
}

.achievement-card-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.achievement-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 典型业绩：折叠/展开 ── */
.achievement-card.hidden-card {
  display: none;
}

.achievement-grid.expanded .achievement-card.hidden-card {
  display: flex;
}

.more-btn {
  display: block;
  margin: 24px auto 0;
  padding: 12px 36px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.more-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ── 典型业绩弹窗 ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 36px 32px;
  position: relative;
  box-shadow: 0 36px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(0,0,0,0.04);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.08);
}

.modal-gallery {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.modal-gallery figure {
  flex: 1 1 240px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-gallery img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.modal-gallery figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.modal-content h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--primary-dark);
  padding-right: 40px;
}

.modal-content #modal-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

.card,
.photo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(11, 79, 138, 0.06);
}

.card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(11, 79, 138, 0.12);
}

.card-large {
  position: relative;
  max-height: 380px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.card-large.expanded {
  max-height: 5000px;
}

.card-large-toggle {
  display: block;
  text-align: center;
  padding: 6px 0 2px;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  letter-spacing: 2px;
  user-select: none;
  background: linear-gradient(transparent, #fff 40%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.card-large-toggle:hover {
  color: var(--secondary);
}

.card-large.expanded .card-large-toggle {
  position: static;
  background: none;
  padding: 10px 0 4px;
}

.card-large.expanded .card-large-toggle .toggle-text-expand {
  display: none;
}

.card-large.expanded .card-large-toggle .toggle-text-collapse {
  display: inline;
}

.card-large .card-large-toggle .toggle-text-collapse {
  display: none;
}

.card-large .card-large-toggle .toggle-text-expand {
  display: inline;
}

.card-large p {
  margin: 0 0 14px;
  color: var(--muted);
}

.stat-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.stat-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(11, 79, 138, 0.06), rgba(25, 167, 201, 0.08));
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
}

.gallery-grid,
.card-grid,
.business-grid,
.achievement-grid,
.values-grid,
.doc-index-grid {
  display: grid;
  gap: 24px;
}

.card-grid,
.values-grid,
.doc-index-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-card {
  overflow: hidden;
}

/* ── 核心优势首卡：图文环绕 ── */
.strength-hero-card {
  grid-column: 1 / -1;
  padding: 28px;
  overflow: hidden;
}

.strength-hero-img {
  float: left;
  width: 340px;
  max-width: 42%;
  height: auto;
  margin: 0 24px 16px 0;
  border-radius: 16px;
  object-fit: cover;
}

.strength-hero-text h4 {
  margin: 18px 0 6px;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
}

.strength-hero-text h4::before {
  content: '■';
  color: var(--primary);
  font-size: 1em;
  display: inline-block;
  margin-right: 6px;
}

.strength-hero-text p {
  margin: 0 0 12px;
  line-height: 1.75;
  color: var(--text);
}

.strength-hero-text p:last-child {
  margin-bottom: 0;
}

/* ── 竞争力列表 ── */
.competitiveness-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.competitiveness-card {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.competitiveness-card--reverse {
  flex-direction: row-reverse;
}

.competitiveness-media {
  flex: 0 0 45%;
  max-width: 45%;
  background: #f4fbff;
  position: relative;
}

.competitiveness-media .carousel-viewport {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
}

.competitiveness-media .carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.competitiveness-media .carousel-image.active {
  opacity: 1;
}

.competitiveness-media .carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(11, 79, 138, 0.08);
  background: #ffffff;
}

.competitiveness-text {
  flex: 1;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.competitiveness-text h4 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 600;
}

.competitiveness-text h4::before {
  content: '■';
  margin-right: 6px;
  font-size: 1em;
}

.competitiveness-text p {
  margin: 0 0 10px;
  line-height: 1.75;
  color: var(--text);
}

.competitiveness-text p:last-child {
  margin-bottom: 0;
}

.photo-card img,
.feature-card img,
.business-card img {
  height: 220px;
}

.photo-card h3,
.feature-card h3,
.compact-card h3 {
  margin: 14px 16px 8px;
}

.photo-card p,
.feature-card p,
.compact-card p {
  margin: 0 16px 16px;
  color: var(--muted);
}

/* ── 对外交流子标题 ── */
.exchange-gallery-title {
  margin: 32px 0 16px;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

.exchange-gallery-title::before {
  content: '\25a0';
  margin-right: 8px;
  font-size: 1em;
}

.exchange-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.list-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.list-card li + li {
  margin-top: 8px;
}

.qual-main-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 320px;
}

.qual-main-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: contain;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fcff 0%, #eef6fc 100%);
}

.carousel-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
}

.carousel-viewport {
  position: relative;
  flex: 1;
  min-height: 260px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fcff 0%, #eef6fc 100%);
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.carousel-image.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.carousel-btn {
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.carousel-btn:hover {
  background: var(--primary-dark);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #cdd8e3;
  padding: 0;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--primary);
}

.compact-card {
  min-height: 170px;
  background: linear-gradient(180deg, #fff 0%, #f8fcff 100%);
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #0b4f8a 0%, #0e6ca8 100%);
  color: #fff;
  padding: 30px 32px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.9);
}

.footer {
  margin: 40px 0 0;
  padding: 26px clamp(20px, 4vw, 48px);
  background: #06233c;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer a {
  color: #bfe9f7;
}

@media (max-width: 900px) {
  .hero-content,
  .intro-grid,
  .qualification-wrap,
  .card-grid,
  .business-grid,
  .achievement-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .competitiveness-card {
    flex-direction: column;
  }

  .exchange-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .competitiveness-media {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .hero {
    padding-bottom: 52px;
  }

  .topbar,
  .footer,
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-index-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .image-strip,
  .doc-index-grid {
    grid-template-columns: 1fr;
  }

  .exchange-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .strength-hero-img {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
  }

  .modal-content {
    padding: 24px 20px;
    max-height: 90vh;
  }

  .modal-gallery figure {
    flex: 1 1 100%;
  }

  .modal-gallery img {
    max-height: 200px;
  }
}
