/* 通用 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  color: #333;
}

a {
  color: #07c160;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}


/* 顶部栏 */


/* 英雄区 */
.hero {
  text-align: center;
  padding: 60px 20px
}

.hero h2 {
  margin: 0 0 12px;
  font-size: 32px
}

.hero p {
  margin: 0 0 24px;
  font-size: 18px;
  opacity: .8
}

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #07c160;
  color: #fff;
  border-radius: 8px;
  font-size: 18px
}

/* 文章卡片 */
.post-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05)
}

.post-card h4 {
  margin: 0 0 8px;
  font-size: 20px
}

.post-card .date {
  font-size: 14px;
  opacity: .7
}

/* 底部品牌 */
.site-footer {
  margin: 60px auto 40px;
  text-align: center;
  background: rgba(0, 0, 0, .05);
  border-radius: 12px;
  padding: 30px 20px;
  max-width: 600px
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 20px
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 14px;
  opacity: .8
}


/* 顶部导航栏样式 */
.top-bar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px
}

.top-bar h1 {
  margin: 0;
  font-size: 24px
}

.top-bar nav {
  display: flex;
  gap: 16px;
  font-weight: 500
}

.top-bar .contacts {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 14px
}

.top-bar nav a:hover,
.top-bar .contacts a:hover {
  color: #07c160;
  transform: translateY(-2px);
}

.top-bar .contacts {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.main-content {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.card p {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: .8;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #07c160;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.btn:hover {
  background: #059e4f;
}

.price {
  color: #ff6b6b;
  font-weight: bold;
}

.site-footer {
  margin: 60px auto 40px;
  text-align: center;
  background: rgba(0, 0, 0, .05);
  border-radius: 12px;
  padding: 30px 20px;
  max-width: 600px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 20px;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 14px;
  opacity: .8;
}

.site-footer a {
  color: #07c160;
  font-weight: bold;
  text-decoration: none;
}

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