/* AI智慧生重点项目 */

:root {
  --red: #e60012;
  --red-dark: #c40010;
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #e5e5e5;
  --bg: #fff;
  --bg-soft: #f5f5f5;
  --footer-bg: #f0f0f0;
  --container: 1200px;
  --header-h: 72px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand-text {
  display: block;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand img {
  width: 52px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 12px;
  flex: 1;
}

.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  transition: color 0.2s;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

.search {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  height: 36px;
}

.search input {
  width: 240px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  padding: 0 10px;
  outline: none;
  color: var(--text);
  background: #fff;
  font-size: 12px;
}

.search input::placeholder {
  font-size: 12px;
  color: #999;
}

.search input:focus {
  border-color: var(--red);
}

.search button {
  border: none;
  background: var(--red);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: background 0.2s;
}

.search button:hover {
  background: var(--red-dark);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  height: clamp(420px, 52vw, 560px);
  background: #1a1f2e;
  overflow: hidden;
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 16, 28, 0.42);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-content h1 {
  margin: 0 0 36px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  padding: 0 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat strong {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-stat span {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.92;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 0 32px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: #fff;
  color: #1a1a1a;
}

/* Sections */

.section {
  padding: 72px 0 64px;
}

.section-title {
  margin: 0 0 40px;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* Cases */

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

.case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-cover {
  width: 100%;
  aspect-ratio: 415 / 240;
  overflow: hidden;
  border: 1px dashed #cfcfcf;
  background: var(--bg-soft);
  margin-bottom: 16px;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-cover img {
  transform: scale(1.04);
}

.case-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.case-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 42px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 14px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

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

.more-link {
  display: block;
  margin-top: 36px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  transition: color 0.2s;
}

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

/* Featured */

.featured {
  background: #fafafa;
  padding-bottom: 72px;
}

.featured-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 48px;
}

.tab {
  position: relative;
  border: none;
  background: none;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

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

.tab.is-active {
  color: var(--red);
  font-weight: 600;
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

.featured-arrows {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s, opacity 0.2s;
}

.arrow-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow-btn:hover {
  transform: scale(1.06);
}

.arrow-prev {
  opacity: 0.85;
}

.featured-panels {
  position: relative;
}

.featured-panel {
  display: none;
  position: relative;
  min-height: 360px;
  background: #fff;
  border: 1px dashed #d0d0d0;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.35s ease forwards;
}

.featured-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-bg {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center right;
}

.featured-copy {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(42%, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 48px 56px;
  background: linear-gradient(90deg, #fff 70%, rgba(255, 255, 255, 0));
}

.featured-copy h3 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
}

.featured-copy p {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
}

/* Journey CTA */

.journey {
  padding: 88px 0 96px;
  text-align: center;
}

.journey-title {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #7b2ff7 0%, #c41e8a 45%, #e60012 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.journey-sub {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--text);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 48px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.btn-solid:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  padding: 40px 0 48px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}

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

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

.footer-meta p {
  margin: 0 0 6px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-right {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  flex-shrink: 0;
}

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

.phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--red);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.qr img {
  width: 96px;
  height: 96px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px;
}

/* Floating bar */

.float-bar {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.float-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #555;
  border-bottom: 1px solid #eee;
  transition: color 0.2s, background 0.2s;
}

.float-bar a:last-child {
  border-bottom: none;
}

.float-bar a:hover {
  color: var(--red);
  background: #fff5f5;
}

/* Responsive */

@media (max-width: 1024px) {
  .nav {
    gap: 18px;
    margin-left: 8px;
  }

  .search input {
    width: 200px;
    font-size: 11px;
  }

  .search input::placeholder {
    font-size: 11px;
  }

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

  .featured-arrows {
    position: static;
    transform: none;
  }

  .featured-toolbar {
    flex-wrap: wrap;
  }

  .featured-copy {
    width: min(50%, 380px);
    padding: 36px 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .nav,
  .search {
    display: none;
  }

  .nav.is-open,
  .search.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding: 10px 0;
    gap: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav.is-open {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 8px 0 12px;
    gap: 4px;
    border-top: 1px solid var(--border);
  }

  .search.is-open {
    order: 4;
    width: 100%;
    margin-bottom: 8px;
  }

  .search.is-open input {
    flex: 1;
    width: auto;
  }

  .section {
    padding: 48px 0 40px;
  }

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

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tabs {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .featured-panel {
    min-height: 420px;
  }

  .featured-bg {
    min-height: 420px;
    object-position: 70% center;
  }

  .featured-copy {
    width: 100%;
    padding: 28px 24px 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 55%, rgba(255, 255, 255, 0.72));
    justify-content: flex-start;
  }

  .featured-copy h3 {
    font-size: 22px;
  }

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

  .journey-sub {
    font-size: 15px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
  }

  .float-bar {
    right: 8px;
    transform: translateY(-40%);
  }

  .float-bar a {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 380px;
    height: 56vw;
    max-height: 480px;
  }

  .hero-content h1 {
    margin-bottom: 24px;
    letter-spacing: 0.04em;
  }

  .hero-stats {
    margin-bottom: 28px;
    width: 100%;
    max-width: 420px;
  }

  .hero-stat {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
  }

  .hero-stat span {
    font-size: 12px;
  }
}
