/* 基础设置 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  background-color: #f3f4f6;
}

body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* 布局容器 */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  font-size: 11px;
  color: #6b7280;
  /* letter-spacing: 0.1em; */
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #1f2933;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav-list a {
  color: #1f2933;
  padding: 8px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #2563eb, #4f46e5);
  transition: width 0.2s ease-out;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  padding: 80px 0 80px;
  background: radial-gradient(circle at top left, #dbeafe 0, transparent 55%),
    radial-gradient(circle at bottom right, #e0f2fe 0, transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.9);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: #2563eb;
}

.hero-desc {
  max-width: 520px;
  margin-bottom: 24px;
  color: #4b5563;
  font-size: 14px;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #111827;
  position: relative;
  overflow: hidden;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.6), rgba(196, 181, 253, 0.6), rgba(251, 207, 232, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-ghost:hover::before {
  opacity: 1;
}

.btn-ghost:hover {
  background: rgba(249, 250, 251, 1);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #6b7280;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(209, 213, 219, 0.8);
  transition: all 0.3s ease;
}

.hero-meta span:nth-child(1) {
  border-color: rgba(134, 239, 172, 0.6);
  background: rgba(220, 252, 231, 0.85);
}

.hero-meta span:nth-child(2) {
  border-color: rgba(165, 180, 252, 0.6);
  background: rgba(224, 231, 255, 0.85);
}

.hero-meta span:nth-child(3) {
  border-color: rgba(251, 207, 232, 0.6);
  background: rgba(252, 231, 243, 0.85);
}

.hero-meta span:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.6);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.9);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #22c55e;
}

.hero-card-body {
  padding: 14px 16px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 12px;
  color: #e5e7eb;
}

.code-line {
  margin: 2px 0;
}

.code-line.indent {
  padding-left: 16px;
}

/* 通用板块 */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #f9fafb;
}

.section-inner {
  max-width: 940px;
  margin: 0 auto;
}

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

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

.section-header p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9ca3af;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid rgba(209, 213, 219, 0.8);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.section-alt .highlight-item {
  background: #ffffff;
}

.highlight-title {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 500;
}

.highlight-item:nth-child(1) .highlight-title {
  color: #7c3aed;
  background: rgba(243, 232, 255, 0.8);
}

.highlight-item:nth-child(2) .highlight-title {
  color: #0891b2;
  background: rgba(207, 250, 254, 0.8);
}

.highlight-item:nth-child(3) .highlight-title {
  color: #db2777;
  background: rgba(252, 231, 243, 0.8);
}

/* 服务卡片 */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #2563eb, #4f46e5);
  transition: all 0.3s ease;
}

.card:nth-child(1)::before {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.card:nth-child(2)::before {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.card:nth-child(3)::before {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

.card:hover::before {
  height: 5px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card:nth-child(1) h3 {
  color: #0891b2;
}

.card:nth-child(2) h3 {
  color: #7c3aed;
}

.card:nth-child(3) h3 {
  color: #db2777;
}

.card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #4b5563;
}

.card-list {
  font-size: 13px;
  color: #374151;
}

.card-list li {
  position: relative;
  padding-left: 14px;
}

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

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

.card:nth-child(1) .card-list li::before {
  color: #0891b2;
}

.card:nth-child(2) .card-list li::before {
  color: #7c3aed;
}

.card:nth-child(3) .card-list li::before {
  color: #db2777;
}

/* 案例 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-item {
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  transition: all 0.3s ease;
}

.case-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.case-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
  margin-bottom: 6px;
  font-weight: 500;
}

/* 不同类型的标签使用不同颜色 */
.case-item:nth-child(1) .case-tag { /* 供应链金融 */
  background: rgba(220, 252, 231, 0.9);
  color: #047857;
}

.case-item:nth-child(2) .case-tag { /* 供应链平台 */
  background: rgba(254, 243, 199, 0.9);
  color: #b45309;
}

.case-item:nth-child(3) .case-tag { /* 系统运维 */
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
}

.case-item:nth-child(4) .case-tag { /* 定制开发 */
  background: rgba(243, 232, 255, 0.9);
  color: #7c3aed;
}

.case-item:nth-child(5) .case-tag { /* 系统集成 */
  background: rgba(255, 237, 213, 0.9);
  color: #c2410c;
}

.case-item:nth-child(6) .case-tag { /* 竞拍系统 */
  background: rgba(252, 231, 243, 0.9);
  color: #be185d;
}

.case-item:nth-child(7) .case-tag { /* 跨境商城 */
  background: rgba(207, 250, 254, 0.9);
  color: #0e7490;
}

.case-item:nth-child(8) .case-tag { /* 国际官网 */
  background: rgba(224, 242, 254, 0.9);
  color: #075985;
}

.case-item:nth-child(9) .case-tag { /* 二奢平台 */
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
}

.case-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.case-item p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

/* 优势 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.adv-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.adv-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: all 0.3s ease;
}

.adv-item:nth-child(1)::before {
  background: linear-gradient(to bottom, #06b6d4, #0891b2);
}

.adv-item:nth-child(2)::before {
  background: linear-gradient(to bottom, #8b5cf6, #7c3aed);
}

.adv-item:nth-child(3)::before {
  background: linear-gradient(to bottom, #ec4899, #db2777);
}

.adv-item:nth-child(4)::before {
  background: linear-gradient(to bottom, #10b981, #059669);
}

.adv-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.adv-item:hover::before {
  width: 6px;
}

.adv-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.adv-item:nth-child(1) h3 {
  color: #0891b2;
}

.adv-item:nth-child(2) h3 {
  color: #7c3aed;
}

.adv-item:nth-child(3) h3 {
  color: #db2777;
}

.adv-item:nth-child(4) h3 {
  color: #059669;
}

.adv-item p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

/* 联系我们 */
.contact-section {
  background: radial-gradient(circle at top, #eff6ff 0, transparent 55%), #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr);
  gap: 0;
  align-items: stretch;
}

.contact-info p {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 14px;
  color: #4b5563;
}

.contact-list {
  font-size: 14px;
  margin-top: 6px;
}

.contact-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.contact-label {
  min-width: 72px;
  color: #6b7280;
}
.contact-info {
  padding: 20px 22px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.08);
}

.contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.8), rgba(196, 181, 253, 0.8), rgba(251, 207, 232, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.8);
  background: #f9fafb;
  padding: 18px 0;
  font-size: 12px;
  color: #6b7280;
}

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

.footer-left p {
  margin: 0;
  line-height: 1.8;
}

.footer-sub {
  margin-top: 6px;
}

.footer-beian {
  margin-top: 6px;
  font-size: 12px;
}

.footer-beian a {
  color: #4b5563;
}

.footer-beian a:hover {
  color: #2563eb;
}

.footer-dot {
  margin: 0 4px;
}

.beian-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .grid-2,
  .cards-3,
  .cases-grid,
  .advantages-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    position: relative;
  }

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

  .nav-list {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(209, 213, 219, 0.5);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .nav-list.open {
    max-height: 300px;
    opacity: 1;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(209, 213, 219, 0.3);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a:active {
    background: rgba(37, 99, 235, 0.05);
  }

  .hero {
    padding: 60px 0 64px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .section {
    padding: 52px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-card {
    max-width: 100%;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
