/* CSS重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

/* 容器工具类 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 响应式字体大小 */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* 链接样式 */
a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #FFD700;
}

/* 按钮基础样式 */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* 工具类 */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==================== */
/* 导航栏样式 - Task 3 */
/* ==================== */

/* 导航栏样式 */
.navbar {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333333;
}

.brand-name:hover {
  color: #FFD700;
}



/* 响应式导航栏 */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .logo-image {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

}

/* ==================== */
/* 轮播图样式 - Task 5 */
/* ==================== */

/* 轮播图区域样式 */
.carousel-section {
  padding: 4rem 0;
  background-color: #ffffff;
}

/* 轮播容器样式 */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 幻灯片样式 */
.slide {
  display: none;
}

.slide.active {
  display: block;
}

/* 幻灯片内容样式 */
.slide-content {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

/* 图片容器样式 */
.image-container {
  flex: 1;
  overflow: hidden;
}

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

/* 文本内容样式 */
.text-content {
  flex: 1;
  padding: 2rem;
  background-color: #ffffff;
}

.text-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.text-content p {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
}

/* 控制按钮样式 */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: #FFD700;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* 指示点样式 */
.indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.indicator:hover {
  background-color: #FFD700;
  transform: scale(1.2);
}

.indicator.active {
  background-color: #FFD700;
  border-color: #FFD700;
  transform: scale(1.2);
}

/* 响应式设计 - 桌面端 (≥768px) */
@media (min-width: 768px) {
  .carousel-section {
    padding: 6rem 0;
  }

  .slide-content {
    flex-direction: row;
    min-height: 500px;
  }

  .text-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }

  .text-content p {
    font-size: 1.125rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .carousel-prev {
    left: 30px;
  }

  .carousel-next {
    right: 30px;
  }

  .indicators {
    bottom: 30px;
  }

  .indicator {
    width: 14px;
    height: 14px;
  }
}

/* 响应式轮播图 - 移动端 */
@media (max-width: 767px) {
  .carousel-section {
    padding: 2rem 0;
  }

  .slide-content {
    min-height: 500px;
  }

  .text-content {
    padding: 1.5rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }
}

/* 协议链接区域样式 */
.agreements-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.agreements-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.agreements-content h2 {
  color: #333333;
  margin-bottom: 1rem;
}

.section-description {
  color: #666666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* 协议链接卡片 */
.agreement-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.agreement-link {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.agreement-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #FFD700;
}

.agreement-link:hover .link-content h3,
.agreement-link:hover .link-content p {
  color: #ffffff;
}

.agreement-link:hover .link-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

.link-icon {
  font-size: 2rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.link-content {
  flex: 1;
}

.link-content h3 {
  color: #333333;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.link-content p {
  color: #666666;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.link-arrow {
  font-size: 1.5rem;
  color: #FFD700;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* 响应式协议链接 */
@media (min-width: 768px) {
  .agreement-links {
    grid-template-columns: 1fr 1fr;
  }

  .agreement-link {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .agreements-section {
    padding: 2rem 0;
  }

  .agreement-link {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .link-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .link-content {
    margin-bottom: 1rem;
  }
}

/* 协议页面样式 */
.agreement-page {
  padding: 3rem 0;
  background-color: #ffffff;
}

.agreement-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.agreement-header h1 {
  color: #333333;
  margin-bottom: 1rem;
}

.last-updated,
.effective-date {
  color: #666666;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* 协议内容 */
.agreement-content {
  max-width: 800px;
  margin: 0 auto;
}

.agreement-section {
  margin-bottom: 2.5rem;
}

.agreement-section h2 {
  color: #333333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.agreement-section p {
  color: #444444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.agreement-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.agreement-section li {
  color: #444444;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.agreement-section address {
  font-style: normal;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #FFD700;
}

/* 返回链接 */
.back-link {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.back-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #FFD700;
  color: #333333;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #333333;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 页脚 */
.agreement-page .page-footer {
  background-color: #f8f9fa;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.agreement-page .page-footer p {
  color: #666666;
  font-size: 0.9rem;
}

/* 主页页脚样式 */
.page-footer {
  background-color: #333333;
  color: #ffffff;
  padding: 2rem 0;
  text-align: center;
}

.page-footer p {
  margin-bottom: 0.5rem;
}

.page-footer .footer-links a {
  color: #FFD700;
  margin: 0 0.5rem;
}

.page-footer .footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 响应式协议页面 */
@media (max-width: 768px) {
  .agreement-page {
    padding: 2rem 0;
  }

  .agreement-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .agreement-section {
    margin-bottom: 2rem;
  }

  .back-link {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}
