@font-face {
  font-family: slideyouran;
  src: url('../font/pf.woff2');
}
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* 平板横屏（768px-1199px）*/
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .sidebar {
    display: none;
  }
}

/* iPhone5/SE */
@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
}

/* 主流安卓机型 */
@media (min-width: 360px) and (max-width: 414px) {
  .card {
    width: 90vw;
  }
}

/* iPhone Plus系列 */
@media (min-width: 414px) and (max-width: 767px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
html,
body {
  font-family: 'slideyouran';
}

/* 滚动条整体 */
::-webkit-scrollbar {
  width: 10px; /* 垂直滚动条宽度 */
  height: 10px; /* 水平滚动条高度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background: #888;
  border: 3px solid transparent; /* 透明边框实现视觉缩小 */
  border-radius: 8px;
  background-clip: content-box; /* 防止背景溢出 */
}

/* 悬停效果 */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #34495e;
}

/* 基础样式 */
body {
  line-height: 1.8;
  margin: 0;
  padding: 20px;
  background: #f8f9fa;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1 {
  color: var(--primary-color);
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 15px;
  margin-bottom: 30px;
}

h2 {
  color: var(--primary-color);
  margin: 35px 0 20px;
  font-size: 1.5em;
}

.section-group {
  margin-left: 1.5rem;
  border-left: 2px solid #eee;
  padding-left: 1.5rem;
}

/* 可折叠条款 */
.clause {
  margin: 15px 0;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.clause-header {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clause-content {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .clause-header {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    border-radius: 0;
    box-shadow: none;
  }

  h2 {
    font-size: 1.3em;
  }

  .section-group {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
  }
}

/* 特殊元素 */
.definition-list dt {
  font-weight: 600;
  margin-top: 15px;
}

.warning-box {
  background: #fff3f3;
  border: 1px solid #ffd6d6;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

.nav-anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}
