/* style.css */

/* ===== 全局重置与基础样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding-bottom: 80px; /* 为底部固定 footer 留出空间 */
}

/* ===== 头部导航 ===== */
header {
  background-color: #7F58FC;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===== 主内容区 ===== */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* 首页 Hero 区域 */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #7F58FC;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* 联系页面信息卡片 */
.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-info h2 {
  margin-bottom: 1.5rem;
  color: #7F58FC;
  text-align: center;
}

.contact-item {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.contact-item strong {
  display: inline-block;
  min-width: 80px;
  color: #7F58FC;
}

.contact-item a {
  color: #1abc9c;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ===== 底部固定栏 ===== */
footer {
  background-color: #7F58FC;
  color: #ecf0f1;
  text-align: center;
  padding: 1.2rem 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 0.9rem;
  z-index: 90;
}

footer a {
  color: #1abc9c;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== 响应式适配 ===== */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  nav a {
    margin: 0 0.8rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .contact-item strong {
    display: block;
    margin-bottom: 0.3rem;
    min-width: auto;
  }
}