@charset "UTF-8";
/* 
 *说明：页面样式
 *时间：2026-10-25 12:53
*/

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333333;
  transition: background-color 0.3s, color 0.3s;
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0; /* 全局文字颜色 */
  }
  section h2 {
    color: #80bfff;
  }
}

/* 子页面顶部导航 */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 88px;
  padding: 1.25rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.page-logo {
  display: flex;
  flex-shrink: 0;
}

.page-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  white-space: nowrap;
}

.page-nav a:hover {
  color: #0078d7;
}

.page-nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.page-header a:focus-visible {
  outline: 2px solid #0078d7;
  outline-offset: 4px;
  border-radius: 4px;
}

/* 保留页面标题语义，视觉布局与参考图一致 */
.page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 主体内容：增加宽度 */
main {
  padding: 2rem;
  max-width: 1000px; /* 增加内容区宽度 */
  margin: auto;
}

section {
  margin-bottom: 2rem;
}

section h2 {
  color: #0078d7;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

section p {
  margin-bottom: 1rem;
  text-align: justify;
  color: #444; /* 明亮模式下文字颜色 */
}

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

ul li {
  list-style-type: disc;
  margin: 0.5rem 0;
  color: #444; /* 明亮模式下文字颜色，与 <p> 一致 */
}


/* 链接样式 */
a {
  color: #0078d7;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0053a1;
}


/* 底部样式 */
footer {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: inherit; /* 遵循全局文字颜色 */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-link {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.footer-link a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-link a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}


/* 响应式设计 */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
  .page-header {
    min-height: 72px;
    padding: 1rem;
    gap: 1rem;
  }
  .page-logo img {
    width: 150px;
  }
  .page-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .page-nav a {
    gap: 0.35rem;
  }
  section h2 {
    font-size: 1.5rem;
  }
  footer {
    flex-direction: column;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .page-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .page-nav {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-color-scheme: dark) {
  .page-header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }
  .page-logo img {
    filter: invert(1);
  }
  .page-nav a:hover {
    color: #80bfff;
  }
  section h2 {
    color: #80bfff;
  }
  section p,
  ul li {
    color: #e0e0e0;
  }
}
