/* 基础样式 */
* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="200" height="200" fill="%23f1f2f3"/><path d="M0,0 Q100,50 200,0" stroke="%23e8e8e8" stroke-width="0.5" fill="none"/><path d="M0,50 Q100,100 200,50" stroke="%23e8e8e8" stroke-width="0.5" fill="none"/></svg>');
  background-size: 400px 400px;
}

.container {
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "STKaiti", "SimSun", serif;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p{
  opacity: 0.9;
  font-size: 1.1rem;
}

/* 诗词展示区 */
.game-area {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.game-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #8e7d5b, #d4c0a1, #8e7d5b);
}

.mode-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.mode-btn {
  background: #f5f2eb;
  border: 2px solid #d4c0a1;
  padding: 12px 35px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.mode-btn:first-child {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.mode-btn:last-child {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

.mode-btn.active {
  background: #d4c0a1;
  color: #fff;
  font-weight: bold;
}

.mode-btn .emoji {
  margin-right: 10px;
  font-size: 24px;
}

.poem-display {
  text-align: center;
  margin: 30px 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.poem-line {
  font-size: 32px;
  line-height: 1.8;
  color: #5a4a30;
  font-family: "STKaiti", "SimSun", serif;
  margin: 10px 0;
  max-width: 90%;
}

.poem-info {
  font-size: 18px;
  color: #8a7860;
  margin-top: 20px;
  font-style: italic;
}

.answer-area {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}

.answer-input {
  width: 800px;
  padding: 15px 20px;
  font-size: 22px;
  border: 2px solid #d4c0a1;
  border-radius: 8px 0 0 8px;
  outline: none;
  font-family: "STKaiti", "SimSun", serif;
  color: #5a4a30;
}

.answer-input:focus {
  border-color: #8e7d5b;
  box-shadow: 0 0 0 2px rgba(142, 125, 91, 0.2);
}

.submit-btn {
  background: #8e7d5b;
  color: white;
  border: none;
  padding: 0 35px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #7a6b4d;
}

.feedback {
  text-align: center;
  min-height: 60px;
  margin-top: 20px;
  font-size: 20px;
  color: #8a7860;
  display: flex;
  justify-content: center;
  align-items: center;
}

.correct {
  color: #4a7a4a;
}

.incorrect {
  color: #b74a4a;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
  font-size: 18px;
  color: #8a7860;
}

.stat-item {
  display: flex;
  align-items: center;
}

.stat-item .emoji {
  margin-right: 10px;
  font-size: 24px;
}

/* 底部介绍区 */
.features {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 25px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  color: #5a4a30;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #d4c0a1;
  margin: 15px auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #f9f7f2;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid #e8e1d4;
  transition: transform 0.3s;
}

.feature-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 22px;
  color: #5a4a30;
  margin-bottom: 15px;
}

.feature-desc {
  font-size: 16px;
  color: #7a6b56;
  line-height: 1.6;
}

.scenarios {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 25px;
}

.scenario-list {
  margin: 0 auto;
}

.scenario-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px dashed #e8e1d4;
}

.scenario-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border: none;
}

.scenario-icon {
  font-size: 36px;
  margin-right: 20px;
  min-width: 50px;
  text-align: center;
}

.scenario-content h3 {
  font-size: 22px;
  color: #5a4a30;
  margin-bottom: 10px;
}

.scenario-content p {
  font-size: 16px;
  color: #7a6b56;
  line-height: 1.7;
}

/* 页脚 */
footer {
  color: #5a4a30;
  text-align: center;
}

