/* ============ 基础样式 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: white;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ============ 容器 ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 头部 ============ */
header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1f2937;
}

nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}

nav a {
  padding: 8px 12px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

nav a:hover {
  background: #f0f4ff;
  color: #667eea;
}

/* ============ Hero 区 ============ */
.hero {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.7) 0%, rgba(0, 102, 204, 0.7) 100%), url('../img/helo.jpg') center/cover no-repeat;
  min-height: 800px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-inner {
  color: white;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 52px;
  margin-bottom: 20px;
  color: white;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  margin-bottom: 50px;
}

.btn-primary, .btn-outline {
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-outline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-outline:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: #ff6b35;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background: #e55a24;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: #0066cc;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Hero Bento 卡片 */
.hero-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.hero-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  opacity: 0;
  animation: fadeInScale 0.6s ease-out forwards;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-card[data-delay="0.2"] { animation-delay: 0.8s; }
.hero-card[data-delay="0.3"] { animation-delay: 1.0s; }
.hero-card[data-delay="0.4"] { animation-delay: 1.2s; }
.hero-card[data-delay="0.5"] { animation-delay: 1.4s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
  animation: bounce 2s ease-in-out infinite;
}

.hero-card-text {
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============ 分区标题 ============ */
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #1f2937;
}

.lead {
  font-size: 16px;
  color: #666;
  text-align: center;
  line-height: 1.8;
}

/* ============ 分区通用 ============ */
section {
  padding: 60px 0;
}

section:nth-child(odd) {
  background: #fff;
}

section:nth-child(even) {
  background: #f9f9f9;
}

/* ============ 关于区域 ============ */
.about-section {
  background: white;
  padding: 80px 0;
}

.about-intro {
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  margin: 0 auto 24px;
  max-width: 900px;
  text-align: center;
}

/* ============ 物流流程导图 ============ */
.process-map-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 0;
}

.process-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
  max-width: 1400px;
  margin: 50px auto 0;
}

.process-map-item {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.process-map-item[data-step="1"] { animation-delay: 0.2s; }
.process-map-item[data-step="2"] { animation-delay: 0.4s; }
.process-map-item[data-step="3"] { animation-delay: 0.6s; }
.process-map-item[data-step="4"] { animation-delay: 0.8s; }

.process-map-item:hover {
  transform: translateY(-10px) rotateY(180deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.process-map-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.process-map-image {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.process-map-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  backface-visibility: hidden;
}

.process-map-item:hover .process-map-image img {
  transform: scale(1.1) rotateY(180deg);
}

.process-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backface-visibility: hidden;
}

.process-map-item:hover .process-map-overlay {
  opacity: 1;
  transform: rotateY(180deg);
}

.process-map-icon {
  font-size: 48px;
  animation: bounce 2s ease-in-out infinite;
}

.process-map-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px 0;
}

.process-map-content p {
  font-size: 14px;
  color: #666;
  margin: 0 0 10px 0;
}

.process-details-toggle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.process-details-toggle:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.process-details-toggle .toggle-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.process-map-item.details-open .process-details-toggle .toggle-icon {
  transform: rotate(180deg);
}

.process-map-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-map-item.details-open .process-map-content ul {
  max-height: 200px;
  margin-top: 10px;
}

.process-map-content li {
  font-size: 13px;
  color: #555;
  padding: 6px 0 6px 20px;
  position: relative;
}

.process-map-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 700;
}

/* 连接线 */
.process-map-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.process-map-connector:nth-child(2) { animation-delay: 0.3s; }
.process-map-connector:nth-child(4) { animation-delay: 0.5s; }
.process-map-connector:nth-child(6) { animation-delay: 0.7s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.connector-arrow {
  font-size: 32px;
  color: #667eea;
  font-weight: 700;
  animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes slideRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* CTA 区域 */
.cta-section {
  background: white;
  padding: 60px 0;
}

.home-cta {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 50px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid rgba(102, 126, 234, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.home-cta h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
}

.home-cta p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.home-cta button {
  padding: 14px 40px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.home-cta button:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ============ 关于区 ============ */
.home-about {
  background: white;
}

.home-about-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1f2937;
}

.home-about-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

/* ============ 网格布局 ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1f2937;
}

.card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ============ 服务区 ============ */
.services {
  padding: 60px 0;
}

.services h2 {
  margin-bottom: 40px;
}

/* ============ 查询区 ============ */
.query {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.query input,
.query button {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 150px;
}

.query input {
  background: white;
  color: #333;
}

.query input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.query button {
  background: #667eea;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.query button:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ============ 弹窗 ============ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal-box {
  background: white;
  border-radius: 8px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #1f2937;
}

.modal-box p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.modal-box input:focus,
.modal-box textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-box textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-box .submit {
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-box .submit:hover {
  background: #5568d3;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #333;
}

/* ============ 页脚 ============ */
footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
}

footer p {
  margin: 8px 0;
  font-size: 14px;
}

/* ============ CTA 区 ============ */
.home-cta {
  padding: 40px;
  border-radius: 8px;
  text-align: center;
}

.home-cta h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.home-cta p {
  margin-bottom: 20px;
  color: #666;
}

.home-cta button {
  padding: 12px 30px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.home-cta button:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

/* ============ 物流流程区 ============ */
.logistics-section {
  background: #f9fafb;
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.toggle-gallery-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #667eea;
  transition: all 0.3s ease;
}

.toggle-gallery-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.logistics-process {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 20px;
}

.process-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 0 10px;
}

.process-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 物流图片占位符 - 实际部署时替换为真实图片 */
.logistics-img-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logistics-img-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.logistics-img-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.logistics-img-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.process-step h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1f2937;
}

.process-step p {
  font-size: 14px;
  color: #6b7280;
}

.process-arrow {
  font-size: 32px;
  color: #d1d5db;
  margin: 0 10px;
}

/* ============ 视频介绍区 ============ */
.media-gallery {
  margin-top: 60px;
}

.video-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #1f2937;
}

.gallery-section {
  margin-bottom: 60px;
}

.gallery-section h4 {
  font-size: 22px;
  margin-bottom: 30px;
  color: #1f2937;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
  display: inline-block;
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.video-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-placeholder:hover .play-overlay {
  opacity: 1;
}

.play-button {
  font-size: 48px;
  color: white;
  background: rgba(102, 126, 234, 0.9);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.video-placeholder:hover .play-button {
  background: rgba(102, 126, 234, 1);
  transform: scale(1.1);
}

.video-desc {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

/* ============ 图片库展示 ============ */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay,
.gallery-item.expanded .overlay {
  opacity: 1;
}

.gallery-item .overlay p {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.gallery-item:hover,
.gallery-item.expanded {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============ 统览模式 ============ */
.media-gallery.gallery-mode .gallery-item {
  grid-column: span 1;
}

.media-gallery.gallery-mode .image-gallery {
  grid-template-columns: repeat(6, 1fr);
}

.media-gallery.gallery-mode .video-container {
  grid-template-columns: repeat(3, 1fr);
}

/* ============ 视频播放弹窗 ============ */
.video-modal-box {
  width: 90%;
  max-width: 900px;
}

/* ============ 客服聊天窗口 ============ */
.chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  color: white;
}

.chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 360px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
  display: none;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

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

.chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.chat-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-header-sub {
  margin: 4px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-close:hover {
  transform: scale(1.2);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9fafb;
}

.chat-message {
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

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

.user-message {
  align-self: flex-end;
  background: #667eea;
  color: white;
  border-radius: 8px 8px 0 8px;
}

.service-message {
  align-self: flex-start;
  background: white;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 8px 8px 8px 0;
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  background: white;
}

.chat-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: #667eea;
}

.chat-send {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 14px;
}

.chat-send:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

/* ============ 聊天工具栏 ============ */
.chat-tools {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: white;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.chat-tool-btn {
  flex: 1;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-tool-btn:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.export-menu {
  position: absolute;
  bottom: 50px;
  right: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.export-menu button {
  padding: 12px 20px;
  border: none;
  background: white;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.export-menu button:hover {
  background: #f3f4f6;
}

.export-menu button:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner h1 {
    font-size: 32px;
  }

  .hero-inner p {
    font-size: 16px;
  }

  nav {
    flex-wrap: wrap;
  }

  nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .query {
    flex-direction: column;
  }

  .query input,
  .query button {
    width: 100%;
    min-width: auto;
  }

  .logistics-process {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .chat-window {
    width: 90vw;
    height: 70vh;
    bottom: 80px;
    right: 5vw;
    left: auto;
  }

  .section-header {
    flex-direction: column;
    gap: 20px;
  }

  .media-gallery.gallery-mode .image-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-gallery.gallery-mode .video-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
}
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .modal-box {
    padding: 20px;
  }
}

/* ============ Bento Grid 样式 ============ */
#services {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 0;
  position: relative;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin: 0 auto 50px;
  max-width: 800px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  height: 200px;
  display: flex;
  align-items: flex-end;
}

.bento-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* 背景层 */
.bento-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.bento-item:hover .bento-bg {
  transform: scale(1.1);
}

/* 内容层 */
.bento-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.3s ease;
}

.bento-item:hover .bento-content {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.bento-icon {
  font-size: 32px;
  margin-bottom: 12px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.bento-content h3 {
  font-size: 22px;
  margin: 0 0 8px 0;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bento-content p {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* 优势卡片特殊样式 */
.bento-advantage {
  grid-column: span 1;
  grid-row: span 1;
  animation: slideUp 0.6s ease-out;
}

.bento-advantage:nth-child(1) {
  animation-delay: 0.1s;
}

.bento-advantage:nth-child(2) {
  animation-delay: 0.2s;
}

.bento-advantage:nth-child(3) {
  animation-delay: 0.3s;
}

.bento-advantage:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* ============ Hero 服务区域 ============ */
.hero-services {
  margin-top: 60px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-services-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-services-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-service-card {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  cursor: pointer;
  opacity: 0;
  animation: fadeInScale 0.6s ease-out forwards;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 180px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-service-card[data-delay="0.8"] { animation-delay: 0.8s; }
.hero-service-card[data-delay="1.0"] { animation-delay: 1.0s; }
.hero-service-card[data-delay="1.2"] { animation-delay: 1.2s; }
.hero-service-card[data-delay="1.4"] { animation-delay: 1.4s; }

.hero-card-front,
.hero-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-card-front {
  transform: rotateY(0deg);
}

.hero-card-back {
  transform: rotateY(180deg);
}

.hero-service-card:hover .hero-card-front {
  transform: rotateY(180deg);
}

.hero-service-card:hover .hero-card-back {
  transform: rotateY(360deg);
}

.hero-service-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-service-front-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-service-back-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-service-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-service-front-content h4,
.hero-service-back-content h4 {
  font-size: 18px;
  margin: 0 0 8px 0;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-service-back-content p {
  font-size: 13px;
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-service-back-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.hero-service-back-content li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ================= 新闻动态样式 ================= */
.news-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.news-header {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.news-card:hover .news-header img {
  transform: scale(1.1);
}

.news-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.news-badge.hot {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.news-badge.eco {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 4px 12px rgba(67, 233, 123, 0.4);
}

.news-body {
  padding: 25px;
}

.news-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-date,
.news-category {
  font-size: 13px;
  color: #666;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0 0 15px 0;
}

.news-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 15px;
}

.news-card.expanded .news-content {
  max-height: 800px;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-content p {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
  text-align: justify;
}

.news-content p:last-child {
  margin-bottom: 0;
}

.news-toggle {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.news-toggle:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.news-card.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-header {
    height: 200px;
  }
  
  .news-body {
    padding: 20px;
  }
  
  .news-title {
    font-size: 18px;
  }
}
