/* 基础设置 */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --light-grey: #f8f8f8;
  --text-color: #333;
  --line-height: 1.2;
  --letter-spacing: 0.05em;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.8rem;
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  color: var(--text-color);
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@import url('compliance.css');

/* 布局系统 */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-container {
  display: grid;
  grid-template-columns: 180px 1fr;
  flex: 1;
}

.app-layout {
  display: flex;
  flex-direction: row;
}

/* 侧边栏导航 */
.sidebar {
  background-color: var(--light-grey);
  padding: 2rem 1.5rem;
  border-right: 1px solid #e0e0e0;
}

.sidebar a {
  display: block;
  padding: 1rem 0;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.sidebar a:hover {
  color: var(--secondary-color);
  padding-left: 10px;
}

.sidebar a.active {
  color: var(--secondary-color);
  font-weight: 500;
}

/* 内容区域 */
.content {
  padding: 0rem;
  margin: 0 auto;
}

.page-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 文字排版 */
h1, h2, h3 {
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0;
}

h2 {
  font-size: 1.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* 页脚  */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--primary-color);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 20px 0 25px;
}

.footer-link {
  color:#bdc3c7 ;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #3498db;
}

.footer-link i {
  margin-right: 8px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.7rem;
  color: #bdc3c7;
}

.footer-info p {
  margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    border-right: none;
    padding: 0.2rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .sidebar a {
    display: inline-block;
    margin-right: 1.5rem;
    border-bottom: none;
  }
  
  .content {
    padding: 0rem 0rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1.1rem;
  }
  
  .header {
    padding: 1rem;
  }
  
  .site-title {
    font-size: 1.8rem;
  }
  
  .sidebar a {
    display: block;
    margin-right: 0;
  }
}

