/* ========================================
   开悦供应链官网 - 全站公共样式
   设计调性: 商务简约·科技质感·文创美学
   主色: 企业蓝 #1a5cb5 | 辅色: 暖橙 #e8832a
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-primary: #1a5cb5;
  --blue-dark: #13468a;
  --blue-light: #2d7ae6;
  --blue-bg: #f0f5fc;
  --orange-primary: #e8832a;
  --orange-light: #f5a623;
  --orange-bg: #fff8f0;
  --text-dark: #1a1a1a;
  --text-body: #444;
  --text-light: #888;
  --bg-white: #fff;
  --bg-gray: #f7f8fa;
  --border-color: #e5e5e5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: all 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

ul, ol {
  list-style: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--bg-gray);
}

.section--blue {
  background: var(--blue-bg);
}

.section--dark {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  color: #fff;
}

/* --- Typography --- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section--dark .section-title h2 {
  color: #fff;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--orange-primary);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 16px;
}

.section--dark .section-title p {
  color: rgba(255,255,255,0.8);
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.header__logo span {
  color: var(--orange-primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__nav a {
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--blue-primary);
  background: var(--blue-bg);
}

.header__cta {
  padding: 9px 22px;
  background: var(--orange-primary);
  color: #fff !important;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.header__cta:hover {
  background: var(--orange-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,131,42,0.35);
}

/* Mobile menu toggle */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  border-radius: 1px;
}

/* --- Hero Banner --- */
.hero {
  padding-top: var(--header-height);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 50%, var(--blue-light) 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(232,131,42,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__content {
  flex: 1;
  max-width: 600px;
}

.hero__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 18px;
}

.hero__title em {
  font-style: normal;
  color: var(--orange-light);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--orange-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--orange-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,131,42,0.4);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn--blue {
  background: var(--blue-primary);
  color: #fff;
}

.btn--blue:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,92,181,0.35);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.88rem;
}

.hero__visual {
  flex: 1;
  max-width: 480px;
}

.hero__card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hero__stat {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}

.hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange-light);
}

.hero__stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* --- Cards & Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

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

.card__img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--blue-bg), var(--bg-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card__body {
  padding: 20px;
}

.card__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.card__body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Feature card */
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  background: var(--blue-bg);
  color: var(--blue-primary);
}

.feature-card__icon--orange {
  background: var(--orange-bg);
  color: var(--orange-primary);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Advantages / Steps --- */
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.advantage-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.advantage-item__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.advantage-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.advantage-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue-bg);
}

.timeline__item {
  position: relative;
  padding-bottom: 32px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-primary);
  border: 3px solid var(--blue-bg);
}

.timeline__item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.timeline__item span {
  font-size: 0.82rem;
  color: var(--orange-primary);
  font-weight: 500;
}

.timeline__item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* --- Page Banner --- */
.page-banner {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.page-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  position: relative;
}

.page-banner__breadcrumb {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  position: relative;
}

.page-banner__breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.page-banner__breadcrumb a:hover {
  color: #fff;
}

/* --- Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-body);
  transition: var(--transition);
  background: var(--bg-white);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(26,92,181,0.1);
}

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

/* --- Footer --- */
.footer {
  background: #1a1d23;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer__brand h3 span {
  color: var(--orange-primary);
}

.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--transition);
}

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

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* --- Back to Top --- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-blue { color: var(--blue-primary); }
.text-orange { color: var(--orange-primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 400px;
  }

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

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

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

  .section {
    padding: 48px 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .header__menu-btn {
    display: flex;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-banner h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero__stat-num {
    font-size: 1.4rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
