/* 通用样式 */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0056b3;
  text-decoration: none;
}

/* 头部样式 */
header {
  background-color: #fff;
  color: #333;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header h1 {
  margin: 0;
  font-size: 28px;
  float: left;
}

header nav {
  float: right;
}

header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav ul li {
  display: inline-block;
  margin-left: 20px;
}

header nav ul li a {
  color: #333;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #007bff;
  text-decoration: none;
}

/* 清除浮动 */
header .container::after {
  content: "";
  display: table;
  clear: both;
}

/* 主体内容样式 */
main {
  padding: 20px 0;
}

.hero {
  background-color: #e9f7ff;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 8px;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: #555;
}

.page-header {
  background-color: #f0f8ff;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 8px;
}

.page-header h2 {
  font-size: 36px;
  color: #2c3e50;
  margin: 0;
}

.content-section {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.content-section h3 {
  color: #2c3e50;
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 20px;
}

.content-section p,
.content-section ul {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.content-section ul {
  list-style: disc;
  margin-left: 25px;
}

.articles {
  margin-bottom: 40px;
}

.articles h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
}

.card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.card .read-more {
  font-weight: bold;
}

.adsense-placeholder {
  background-color: #f0f0f0;
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed #ccc;
  margin-bottom: 40px;
  border-radius: 8px;
  color: #666;
  font-size: 18px;
}

.call-to-action {
  background-color: #2c3e50;
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;
}

.call-to-action h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.call-to-action p {
  font-size: 18px;
  margin-bottom: 30px;
}

.call-to-action form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.call-to-action input[type="email"] {
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  width: 300px;
  max-width: 80%;
  font-size: 16px;
}

.call-to-action .button {
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.call-to-action .button:hover {
  background-color: #0056b3;
}

/* 底部样式 */
footer {
  background-color: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
}

footer p {
  margin: 0 0 10px 0;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block; /* For centering */
}

footer ul li {
  display: inline-block;
  margin: 0 10px;
}

footer ul li a {
  color: #fff;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  header h1,
  header nav {
    float: none;
    text-align: center;
  }

  header nav ul li {
    margin: 0 10px;
  }

  .hero h2 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .page-header h2 {
    font-size: 30px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .call-to-action form {
    flex-direction: column;
    align-items: center;
  }

  .call-to-action input[type="email"] {
    width: 90%;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 24px;
  }

  header nav ul li {
    display: block;
    margin: 10px 0;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .content-section {
    padding: 20px;
  }

  .content-section h3 {
    font-size: 24px;
  }

  .adsense-placeholder {
    padding: 30px 10px;
    font-size: 16px;
  }

  .call-to-action {
    padding: 40px 0;
  }

  .call-to-action h2 {
    font-size: 28px;
  }
}
