/* ==========================================================================
   内页通用样式
   ========================================================================== */

/* 页面 hero */
.page-hero {
  height: 320px;
  background-color: #155fa8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero.hero-about {
  background: url('../images/banner-about.svg?v=2') center/cover no-repeat;
}
.page-hero.hero-services {
  background: url('../images/banner-services.svg?v=2') center/cover no-repeat;
}
.page-hero.hero-support {
  background: url('../images/banner-support.svg?v=2') center/cover no-repeat;
}
.page-hero.hero-news {
  background: url('../images/banner-news.svg?v=2') center/cover no-repeat;
}
.page-hero.hero-partners {
  background: url('../images/banner-partners.svg?v=2') center/cover no-repeat;
}
.page-hero.hero-contact {
  background: url('../images/banner-contact.svg?v=2') center/cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,30,80,0.25) 0%, rgba(0,30,80,0.45) 100%),
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 40%
    );
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.page-hero-en {
  font-size: 14px;
  letter-spacing: 6px;
  opacity: 0.85;
  text-transform: uppercase;
}

.page-hero-line {
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  margin: 16px auto 0;
}

/* 面包屑 */
.breadcrumb {
  background: var(--color-bg-soft);
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-text-mute);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb a {
  color: var(--color-text-mute);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--color-text-light);
}

/* 侧边栏 */
.with-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin-top: 48px;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  padding-bottom: 14px;
  border-bottom: 3px solid var(--color-primary);
  margin-bottom: 8px;
}

.sidebar-nav li {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-nav a {
  display: block;
  padding: 14px 8px;
  color: var(--color-text-soft);
  font-size: 14px;
  transition: all var(--transition);
  position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--color-primary);
  padding-left: 18px;
}

.sidebar-nav a.active::before,
.sidebar-nav a:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* 内容区 */
.content {
  min-width: 0;
}

.content h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 24px 0 12px;
}

.content p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

.content ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--color-text-soft);
  line-height: 2;
  margin-bottom: 16px;
}

.content ul li {
  margin-bottom: 4px;
}

.content ol {
  list-style: decimal;
  padding-left: 24px;
  color: var(--color-text-soft);
  line-height: 2;
  margin-bottom: 16px;
}

/* 时间轴（发展历程） */
.timeline {
  position: relative;
  margin: 32px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  display: flex;
  margin-bottom: 24px;
  position: relative;
}

.timeline-year {
  width: 100px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 28px;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 28px;
}

.timeline-content {
  padding-left: 32px;
  position: relative;
  flex: 1;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-primary);
}

.timeline-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--color-text-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* 资质卡片 */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.honor-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.honor-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.honor-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}

.honor-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.honor-card p {
  font-size: 12px;
  color: var(--color-text-mute);
}

/* ISO 证书 */
.iso-cert {
  display: block;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  text-align: center;
}

.iso-cert:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.iso-cert img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #fff;
}

.iso-cert-label {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-text-soft);
  background: #fff;
  border-top: 1px solid var(--color-border);
  line-height: 1.6;
}

/* 荣誉牌匾网格 */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.award-item {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.award-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.award-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #fff;
}

.award-caption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-text-soft);
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--color-border);
  line-height: 1.5;
}

/* 业务详情卡片 */
.service-detail {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.service-detail-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(0, 86, 174, 0.18);
}

.service-detail-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
}

.service-detail-en {
  font-size: 13px;
  color: var(--color-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

.service-detail-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--color-bg-soft);
}

.service-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 数据卡 */
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.data-card {
  text-align: center;
  padding: 28px 16px;
  background: linear-gradient(135deg, #f7f9fc 0%, #e9f0fa 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

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

.data-card-num {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 10px;
}

.data-card-num small {
  font-size: 16px;
  font-weight: 400;
  margin-left: 2px;
}

.data-card-label {
  font-size: 13px;
  color: var(--color-text-soft);
}

/* 联系信息 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.contact-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px;
}

.contact-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 14px;
  color: var(--color-text-soft);
}

/* 联系表单 */
.contact-form {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-top: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

/* 响应式 */
@media (max-width: 992px) {
  .with-sidebar {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sidebar {
    position: static;
  }
  .honor-grid,
  .data-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 220px;
  }
  .page-hero-title {
    font-size: 28px;
    letter-spacing: 2px;
  }
  .timeline::before {
    left: 60px;
  }
  .timeline-year {
    width: 60px;
    font-size: 16px;
  }
  .honor-grid,
  .data-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}