﻿

/* 基础样式重置与全局定义 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: var(--size-base);
  color: var(--text-body);
  line-height: 1.625; /* 26px / 16px 更易维护，兼容字体大小变化 */
  min-width: 1200px;
  letter-spacing: 1px;
}

/* 基础元素样式统一 */
img {
  border: 0;
  max-width: 100%; /* 防止图片溢出容器 */
  height: auto; /* 保持图片比例 */
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit; /* 继承父级字体大小，避免强制覆盖 */
  font-weight: normal;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: var(--text-body);
  transition: color 0.2s ease; /* 统一链接过渡效果 */
}

a:hover {
  color: var(--link-hover);
}

/* 工具类样式 - 精简冗余 */
.clear {
  clear: both;
}
/* 清除浮动 - 保留一种最优实现（推荐 clearfix） */
.clearfix::after {
  content: "";
  display: table; /* 比 block 更优，避免 margin 折叠 */
  clear: both;
}

.clearfix {
  *zoom: 1; /* 兼容 IE 低版本 */
}

/*常用的几个公共类*/

/*超出部分显示省略号*/
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 阴影效果 - 使用变量简化 */
.shadow {
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

/* 图片缩放动画 - 精简前缀（现代浏览器已支持标准语法） */
.img-zoom-in img {
  transition: transform 0.2s ease-in-out;
}

.img-zoom-in:hover img {
  transform: scale(1.05);
}


/* 容器样式 - 响应式优化 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* 响应式容器调整（启用并优化） */
@media (min-width: 1501px) and (max-width: 1700px) {
 .container { width: 1400px; }
}

@media (min-width: 1701px) {
 .container { width: 1600px; }
}



/* 视频容器样式 - 优化语义和兼容性 */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 视频播放按钮 - 优化定位和交互 */
.video-play {
  position: relative;
  cursor: pointer; /* 整体可点击，而非仅伪元素 */
}

.video-play::before {
  content: '';
  position: absolute;
  inset: 0; /* 替代 left/right/top/bottom:0，更简洁 */
  width: 40px;
  height: 40px;
  margin: auto;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%; /* 替代 20px，自适应尺寸 */
  z-index: 2;
  transition: background 0.2s ease; /* 添加过渡效果 */
}

.video-play:hover::before {
  background: var(--link-hover); /* 复用链接 hover 色变量 */
}

.video-play::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  left: 20px; /* 保持原定位 */
  border: 8px solid transparent;
  border-left-color: #fff; /* 简化写法 */
  z-index: 3;
}