/* ===== 现代CSS初始化方案 ===== */

/* 1. 使用更直观的盒模型 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. 重置边距和填充 */
* {
  margin: 0;
  padding: 0;
}
:root {
  --primary-color: #0bb056;
}

/* 3. 根元素字体设置 (响应式基础) */
html {
  font-size: 16px
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* 4. 核心body设置 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 1.6rem; /* 16px */
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}


/* 5. 媒体元素适配 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6. 表单元素重置 */
input, button, textarea, select {
  font: inherit;
  border: none;
  outline: none;
}

/* 7. 按钮重置 */
button {
  cursor: pointer;
  background: none;
}

/* 8. 链接样式 */
a {
  color: inherit;
  text-decoration: none;
}

/* 9. 列表样式 */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 10. 标题重置 */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

/* 11. 可聚焦元素样式 */
:focus-visible {
  outline: 2px solid #007acc;
  outline-offset: 2px;
}

/* 12. 减少动画对于偏好减少动画的用户 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 13. 选择文本样式 */
::selection {
  background-color: #007acc;
  color: white;
}

.container {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.line-2 {
  display: -webkit-box;      /* 使用弹性盒子布局 */
  -webkit-box-orient: vertical;  /* 垂直排列 */
  -webkit-line-clamp: 2;    /* 限制显示行数 */
  overflow: hidden;         /* 隐藏溢出内容 */
  text-overflow: ellipsis;  /* 显示省略号 */
}

.line-3 {
  display: -webkit-box;      /* 使用弹性盒子布局 */
  -webkit-box-orient: vertical;  /* 垂直排列 */
  -webkit-line-clamp: 3;    /* 限制显示行数 */
  overflow: hidden;         /* 隐藏溢出内容 */
  text-overflow: ellipsis;  /* 显示省略号 */
}

