/* 公用CSS样式文件 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* 紫色主题色系 */
:root {
  --primary-purple: #663399;
  --primary-purple-dark: #5a2d8a;
  --secondary-purple: #8b5cf6;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --white: #ffffff;
  --black: #000000;
}

/* 公用Header样式 */
.header {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  padding: 12px 0;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.3);
}

/* 公用Footer样式 */
.footer {
  background: var(--dark-gray);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-purple);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  /* color: rgba(255, 255, 255, 0.5); */
  color: #ffffff;
  font-size: 14px;
}

/* 公用内容样式 */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: 36px;
  text-align: center;
  line-height: 1.1;
}

.last-updated {
  text-align: center;
  color: var(--medium-gray);
  font-size: 1.1rem;
  margin-bottom: 40px;
  padding: 12px 24px;
  background: var(--light-gray);
  border-radius: 25px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.content-section {
  margin-bottom: 40px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-purple);
  position: relative;
}

h2::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-purple);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin: 30px 0 15px 0;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin: 25px 0 10px 0;
}

p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

ul {
  margin: 20px 0;
  padding-left: 0;
}

li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

li::before {
  content: "•";
  color: var(--primary-purple);
  font-weight: bold;
  position: absolute;
  left: 0;
}

li p {
  margin-bottom: 8px;
}

strong {
  color: var(--primary-purple);
  font-weight: 600;
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-purple-dark);
  text-decoration: underline;
}

/* Back to Home Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-purple);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(102, 51, 153, 0.3);
}

.back-button:hover {
  background: var(--primary-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 51, 153, 0.4);
  text-decoration: none;
  color: var(--white);
}

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

  .page-title {
    font-size: 2.2rem;
  }

  .header {
    padding: 8px 0;
    min-height: 50px;
  }

  .header-content {
    padding: 0 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 12px;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .footer {
    padding: 30px 20px;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.8rem;
  }

  .header {
    padding: 6px 0;
    min-height: 45px;
  }

  .header-content {
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 4px 8px;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: fadeInUp 0.6s ease-out;
}

.content-section:nth-child(1) {
  animation-delay: 0.1s;
}
.content-section:nth-child(2) {
  animation-delay: 0.2s;
}
.content-section:nth-child(3) {
  animation-delay: 0.3s;
}
.content-section:nth-child(4) {
  animation-delay: 0.4s;
}
.content-section:nth-child(5) {
  animation-delay: 0.5s;
}
.content-section:nth-child(6) {
  animation-delay: 0.6s;
}
.content-section:nth-child(7) {
  animation-delay: 0.7s;
}
.content-section:nth-child(8) {
  animation-delay: 0.8s;
}
.content-section:nth-child(9) {
  animation-delay: 0.9s;
}
.content-section:nth-child(10) {
  animation-delay: 1s;
}
.content-section:nth-child(11) {
  animation-delay: 1.1s;
}
.content-section:nth-child(12) {
  animation-delay: 1.2s;
}
.content-section:nth-child(13) {
  animation-delay: 1.3s;
}
.content-section:nth-child(14) {
  animation-delay: 1.4s;
}
.content-section:nth-child(15) {
  animation-delay: 1.5s;
}
