/* 全局重置 & 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: #0066cc;
}
a:hover {
  text-decoration: underline;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
}

/* ====================== 头部样式（参考示例） ====================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo 样式 */
.logo .logo-img {
  height: 36px; /* 可根据实际Logo调整 */
  width: auto;
  display: block;
}

/* 一级导航样式（参考示例） */
.main-nav {
  display: flex;
  gap: 1px;
}
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  background-color: #f1f3f5;
  color: #212529;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px 4px 0 0;
  transition: background-color 0.2s;
}
.dropdown-toggle:hover {
  background-color: #e9ecef;
}
/* 下拉菜单样式（参考示例） */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  border: 1px solid #e9ecef;
  border-radius: 0 4px 4px 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #212529;
  font-size: 14px;
}
.dropdown-menu a:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* ====================== 修复后的H1标题区样式（匹配参考图片） ====================== */
.page-title-wrapper {
  background-color: #f8f9fa;
  padding: 20px 25px;
  margin: 0 auto;
  max-width: 1200px;
}
.page-title-wrapper h1 {
  font-size: 32px;
  color: #212529;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.page-title-wrapper p {
  font-size: 18px;
  color: #6c757d;
  margin: 0 0 12px 0;
}
.page-title-wrapper .page-subdesc {
  font-size: 14px;
  color: #495057;
  line-height: 1.6;
  margin: 0;
  max-width: 900px;
}

/* ====================== 核心内容区 ====================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.section {
  background-color: #ffffff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.section h2 {
  font-size: 22px;
  color: #212529;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f5;
}
.section p {
  margin-bottom: 12px;
  color: #495057;
}
.section ul, .section ol {
  margin-left: 20px;
  margin-bottom: 15px;
}
.section ul li {
  list-style: disc;
  margin-bottom: 6px;
}
.section ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

/* 文本框样式 */
textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin: 10px 0;
}
textarea:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* 按钮组样式 */
.btn-group {
  margin: 10px 0;
}
.action-btn {
  margin-top: 10px;
}
button {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0 5px 5px 0;
  transition: background-color 0.2s;
}
button:hover {
  background-color: #0069d9;
}

/* 安全提示样式 */
.security-note {
  background-color: #f8f9fa;
  padding: 15px;
  border-left: 4px solid #007bff;
  margin-top: 20px;
  font-size: 14px;
  color: #495057;
}

/* ====================== 底部样式（修复错乱，参考示例） ====================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e9ecef;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-column {
  padding: 0 10px;
}
.footer-heading {
  font-size: 16px;
  color: #212529;
  margin-bottom: 15px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f5;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #6c757d;
  font-size: 14px;
}
.footer-links a:hover {
  color: #0066cc;
  text-decoration: none;
}

/* 版权栏 */
.footer-copyright {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 13px;
}

/* ====================== 响应式适配 ====================== */
@media (max-width: 768px) {
  /* 头部适配 */
  .header-container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .main-nav {
    width: 100%;
    flex-wrap: wrap;
  }
  .dropdown-toggle {
    width: 100%;
    text-align: left;
  }
  .dropdown-menu {
    width: 100%;
  }

  /* H1标题区适配 */
  .page-title-wrapper h1 {
    font-size: 24px;
  }
  .page-title-wrapper p {
    font-size: 16px;
  }

  /* 底部适配 */
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-column {
    padding: 0;
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 20px;
  }
  .footer-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 576px) {
  /* 核心内容区适配 */
  .section {
    padding: 15px;
  }
  button {
    width: 100%;
    margin: 0 0 8px 0;
  }
}