/* styles.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  background-color: #f5f7fa;
  color: #333;
}

.header {
  background: linear-gradient(90deg, #0078d7, #f5a623);
  color: white;
  text-align: center;
  padding: 1rem;
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.form {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group span {
  font-weight: bold;
  margin-right: 0.5rem;
}

.form-group label input[type="radio"] {
  margin-right: 0.25rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #0078d7;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  background-color: #005fa3;
}

/* 结果容器 */
.result {
  display: none;                  /* 默认不占位、不显示 */
  margin: 1.5rem auto;
  max-width: 100%;
  padding: 1rem;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: none;
  flex-direction: column;
  align-items: center;
}

/* 有结果时，添加 has-result 类，才显示带边框阴影的盒子 */
.result.has-result {
  display: flex;                  /* 从隐藏切换为弹性布局 */
  border: 2px solid #0078d7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.result-item {
  width: 100%;
  text-align: center;
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.result-item .name {
  color: red;
}
.result-tip {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
}

/* 文章区块 */
.articles {
  margin-top: 2rem;
}

.article-con1 {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.subtitle1 {
  font-size: 1.2rem;
  border-bottom: 2px solid #0078d7;
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
}

.subtitle1 span {
  background: #ffffff;
  padding: 0 0.5rem;
  position: relative;
  top: -0.6em;
}

.sub-news1 {
  list-style: none;
  padding-left: 0;
}

.sub-news1 li {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.sub-news1 li a {
  color: #333;
  text-decoration: none;
}

.sub-news1 li a:hover {
  color: #0078d7;
}

/* 标签区块 */
.widge_tags1 {
  margin-top: 0.5rem;
}

.tag-items1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-items1 a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #e6f4ff;
  border: 1px solid #0078d7;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #0078d7;
  text-decoration: none;
}

.tag-items1 a:hover {
  background: #0078d7;
  color: #fff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #777;
}

/* 响应式 */
@media (max-width: 600px) {
  .container {
    padding: 0 0.5rem;
  }
  .result-item {
    font-size: 1.1rem;
  }
  .subtitle1 {
    font-size: 1rem;
  }
  .sub-news1 li {
    font-size: 0.9rem;
  }
  .tag-items1 a {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ---------- 底部样式 ---------- */

/* 整体 footer 容器 */
.site-footer {
  background-color: #f8f9fb;
  color: #666;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* footer 内部 Logo 居中 */
.site-footer .footer-logo-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.site-footer .footer-logo {
  width: 108px;    /* 前端显示大小 */
  height: 78px;
  object-fit: contain;
  display: inline-block;
}


/* 导航链接组 */
.nav-footer1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.nav-footer1 a {
  color: #0078d7;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.nav-footer1 a:hover {
  background-color: #0078d7;
  color: #fff;
  border-radius: 4px;
}

/* 版权信息 */
.copyright-footer1 {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}

.copyright-footer1 p {
  margin-bottom: 0.5rem;
}

.copyright-footer1 a {
  color: #0078d7;
  text-decoration: none;
  margin-left: 0.5rem;
}

.copyright-footer1 a:hover {
  text-decoration: underline;
}

/* 小屏幕调整 */
@media (max-width: 480px) {
  .nav-footer1 {
    gap: 0.5rem 1rem;
  }
  .site-footer {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
}
/* 起名生成器介绍区域 */
.generator-intro {
  padding: 3rem 1rem;
  background-color: #f4f8fc;
  border-top: 1px solid #dce3ea;
}

.intro-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 1rem;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.intro-text {
  max-width: 600px;
  color: #333;
  line-height: 1.8;
}

.intro-text h2 {
  font-size: 1.8rem;
  color: #d81e06;
  margin-bottom: 1rem;
  text-align: center;
}

.intro-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
}



/* 响应式适配 */
@media (max-width: 768px) {
  .intro-container {
    flex-direction: column;
    text-align: center;
  }

  .intro-text h2 {
    font-size: 1.5rem;
  }

  .intro-text {
    padding: 0 1rem;
  }
}
