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

:root {
  --primary-color: #1e50ae;
  --primary-dark: #153d82;
  --primary-light: #2a6ed4;
  --accent-gold: #c9a962;
  --accent-gold-light: #e5d4a1;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(30, 80, 174, 0.98);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.logo img {
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.logo-text span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

/* ==================== 页面标题区域 ==================== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 30px);
  }
}

.page-hero h1 {
  font-size: 48px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

/* ==================== 首页轮播区域 ==================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d2245 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 56px;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: var(--accent-gold);
  display: block;
}

.hero-text p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
}

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

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

.hero-visual {
  position: relative;
}

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

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.hero-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--accent-gold-light)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.hero-card h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ==================== 服务卡片区域 ==================== */
.features-section {
  padding: 100px 0;
  background: var(--bg-light);
}

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

.section-header h2 {
  font-size: 40px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-gray);
}

.section-header .line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-color));
  margin: 20px auto 0;
  border-radius: 2px;
}

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

.feature-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
}

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

.feature-card p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ==================== 产品展示区域 ==================== */
.products-section {
  padding: 100px 0;
  background: var(--bg-white);
}

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

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

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #e8ecf1, #d1d9e6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(30, 80, 174, 0.8), transparent);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  font-size: 80px;
  color: var(--primary-color);
  opacity: 0.3;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.product-info p {
  font-size: 14px;
  color: var(--text-gray);
}

/* ==================== 内容详情页面 ==================== */
.content-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

.content-main h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-weight: 700;
}

.content-main h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin: 32px 0 16px;
  font-weight: 600;
}

.content-main p {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-main ul {
  margin: 20px 0;
  padding-left: 24px;
}

.content-main li {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 12px;
  position: relative;
}

.content-main li::marker {
  color: var(--accent-gold);
}

.content-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent-gold);
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-item {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.demo-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.demo-item .product-image {
  height: 200px;
}

.demo-item .product-info {
  padding: 16px;
}

/* ==================== 视频播放区域 ==================== */
.video-section {
  padding: 40px 0;
}

/* 大视频区域 - 页面主要位置 */
.video-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  padding: 60px 0;
  margin-bottom: 40px;
}

.video-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .video-hero .container {
    grid-template-columns: 1fr;
  }
}

.video-hero-text h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
}

.video-hero-text p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.video-hero-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  aspect-ratio: 16/9;
  height: 280px;
  width: 100%;
}

.video-hero-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hero-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-hero-wrapper:hover .video-hero-cover {
  opacity: 0.85;
}

.video-hero .play-btn {
  width: 100px;
  height: 100px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 15px 50px rgba(201, 169, 98, 0.6);
}

.video-hero .play-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 0 20px 35px;
  border-color: transparent transparent transparent var(--primary-dark);
  margin-left: 8px;
}

.video-hero-wrapper:hover .play-btn {
  transform: scale(1.15);
}

/* 侧边栏视频区域 */
.video-wrapper {
  position: relative;
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-wrapper:hover .video-cover {
  opacity: 0.8;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(201, 169, 98, 0.5);
}

.play-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent var(--primary-dark);
  margin-left: 5px;
}

.video-wrapper:hover .play-btn {
  transform: scale(1.1);
}

/* ==================== 联系页面 ==================== */
.contact-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.contact-info h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-item p {
  font-size: 15px;
  color: var(--text-gray);
}

.contact-form {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.contact-form h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid #e8ecf1;
  border-radius: 10px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(30, 80, 174, 0.1);
}

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

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 80, 174, 0.4);
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--primary-dark);
  padding: 60px 0 30px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand h3 span {
  color: var(--accent-gold);
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-links h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 15px;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

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

  .content-sidebar {
    position: static;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    display: block;
    padding: 15px;
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .page-hero h1 {
    font-size: 36px;
  }

  .features-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==================== 视频弹窗 ==================== */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  padding: 40px;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==================== 图片弹窗 ==================== */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}

.image-modal.active {
  display: flex;
}

.image-modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ==================== 动画效果 ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}
