:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --card-bg: #ffffff;
  --primary: #2563eb;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "微软雅黑", sans-serif;
  background: #f8fafc;
  background: var(--bg);
  color: #1e293b;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 隐藏WebKit浏览器的滚动条 */
body::-webkit-scrollbar {
  display: none;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8vw;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.nav__logo-image {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 16px;
  font-weight: 600;
}

.nav__links a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__links a.is-active {
  color: var(--text);
  font-weight: 800;
}

.nav__links a.is-active::after {
  width: 100%;
}

.nav__search {
  margin: 0 0 0 8px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(248, 250, 252, 0.9);
}

.nav__search-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  background: url("../images/search.png") center/contain no-repeat;
}

.nav__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  width: 150px;
}

.nav__search input::placeholder {
  color: var(--muted);
}

.hero {
  padding: 56px 0 40px;
  background: radial-gradient(circle at top left, #e5efff 0, #f5f5f7 40%, #ffffff 100%);
}

.hero__content {
  max-width: 680px;
  margin: 32px auto 0;
  text-align: left;
}

.hero__content h1 {
  font-size: 32px;
  margin: 24px 0 12px;
}

.hero__content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.hero__bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero__bullets li + li {
  margin-top: 4px;
}

.hero__carousel {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__carousel--full .carousel__track {
  height: auto;
}

/* 轮播图下方浮动联系栏 */
.hero-contact-bar {
  margin-top: -48px;
  padding: 0 8vw;
  position: relative;
  z-index: 5;
}

.hero-contact-bar__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-contact-bar__item {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 16px;
}

.hero-contact-bar__item:not(:last-child) {
  border-right: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-contact-bar__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hero-contact-bar__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-contact-bar__text strong {
  font-size: 16px;
  color: #1e293b;
}

.hero-contact-bar__desc {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-contact-bar__desc .contact-copy-btn {
  padding: 2px 8px;
  font-size: 12px;
}

.hero-contact-bar__desc .contact-nav-btn {
  color: var(--primary);
  text-decoration: none;
}

.hero-contact-bar__desc .contact-nav-btn:hover {
  text-decoration: underline;
}

.carousel {
  position: relative;
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 8px 8px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.carousel__track {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding-bottom: 56.25%;
  height: 0;
}
@supports (aspect-ratio: 16 / 9) {
  .carousel__track {
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.carousel__slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel__slide.is-active {
  opacity: 1;
}

.carousel__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
}

.carousel__image--one {
  background-image: url("../images/1.jpg");
}

.carousel__image--two {
  background-image: url("../images/2.jpg");
}

.carousel__image--three {
  background-image: url("../images/3.jpg");
}

/* 轮播图切换按钮 */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 200, 200, 0.55);
  border: none;
  border-radius: 50%;
  font-size: 28px;
  color: #1f2937;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.carousel__btn:hover {
  background: rgba(220, 220, 220, 0.85);
}

.carousel__btn:active {
  opacity: 0.8;
}

.carousel__btn--prev {
  left: 16px;
}

.carousel__btn--next {
  right: 16px;
}

/* 轮播图支持拖动与按钮切换 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: #d1d5db;
}

.btn--ghost:hover {
  background: rgba(148, 163, 184, 0.08);
}

.btn--full {
  width: 100%;
}

.section {
  padding: 72px 8vw;
  background: transparent;
}

.section--light {
  background: #ffffff;
}

.section--contact {
  background: #f9fafb;
}

.section__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.section h2 {
  font-size: 26px;
  margin: 0 0 20px;
}

.section p {
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.section-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.honors {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  justify-content: center;
}

.honor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 32px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  min-width: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.honor-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.honor-icon {
  font-size: 28px;
  color: var(--primary);
}

.honor-item span {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.section--slogan {
  text-align: center;
}

.slogan {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}

.slogan-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section--cta {
  text-align: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.section--cta h2 {
  margin-bottom: 12px;
}

.section--cta p {
  margin: 0 0 24px;
  color: var(--muted);
}

.intro-text {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  margin-top: 32px;
}

.timeline__item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.timeline__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline__year {
  min-width: 100px;
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.timeline__content h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.timeline__content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  font-size: 14px;
}

.card--hover {
  position: relative;
  overflow: hidden;
}

.card--hover::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.card--hover:hover::before {
  opacity: 1;
}

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.case-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.case-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: #1d4ed8;
  background: var(--accent-soft);
  margin-bottom: 10px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.project-card__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--primary);
  background: var(--accent-soft);
  margin-bottom: 12px;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.project-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.project-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.project-card p:last-child {
  margin-bottom: 0;
}

.contact-copy-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-copy-btn {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--primary);
  background: var(--accent-soft);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-copy-btn:hover {
  opacity: 0.85;
}

.contact-nav-wrap {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.contact-nav-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-nav-btn:hover {
  opacity: 0.85;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-map {
  margin-top: 32px;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.map-placeholder:hover {
  background: #e2e8f0;
}

.contact-wechat {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  max-width: 560px;
  margin-top: 24px;
}

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

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

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
}

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

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

.contact-form .btn {
  margin-top: 8px;
}

.news-list {
  margin-top: 24px;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.news-date {
  min-width: 80px;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.news-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.news-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section--contact ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section--contact li + li {
  margin-top: 6px;
}

.footer {
  padding: 18px 8vw 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
}

.footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav {
    padding-inline: 5vw;
  }

  .nav__links {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    padding-inline: 0;
    padding-top: 40px;
  }

  .section {
    padding-inline: 5vw;
  }
}

/* 搜索结果页 */
.search-results-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.search-results-list li {
  margin-bottom: 12px;
}

.search-results-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.search-results-list a:hover {
  text-decoration: underline;
}

.search-empty {
  margin-top: 24px;
  color: var(--muted);
}

