/* style.css */

/* ==== 1. 定义配色变量 ==== */
:root {
  /* 整个页面背景渐变色 */
  --bg-gradient-start: #565b55;
  --bg-gradient-mid:   #5c9b49;
  --bg-gradient-end:   #57c935;

  /* 导航卡片（内框）的背景色，不想要白框时可设为 transparent */
  --card-background:        rgba(255, 255, 255, 0.85);
  /* 卡片圆角 */
  --card-border-radius:     16px;
  /* 卡片阴影颜色（主要用于 box-shadow）*/
  --card-box-shadow:        rgba(0, 0, 0, 0.12);

  /* 标题文字颜色 */
  --text-title: #6d2a4a;
  /* 副标题文字颜色 */
  --text-subtitle: #6d2a4a;
  /* 按钮背景色 默认粉色 */
  --btn-bg:            #387f06;
  /* 按钮悬停时的深色 */
  --btn-bg-hover:      #ff5fa3;
  /* 按钮文字颜色 */
  --btn-text-color:    #ffffff;
  /* 公告栏背景 */
  --announcement-bg:   rgba(255, 126, 185, 0.15);
  /* 公告栏边框色 */
  --announcement-border: rgba(255, 255, 255, 0.4);
  /* 公告文本颜色 */
  --announcement-text: #6d2a4a;
}


/* ==== 2. 全局重置与基础字体 ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-tap-highlight-color: transparent;
  /* 背景渐变色 */
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start),
    var(--bg-gradient-mid),
    var(--bg-gradient-end)
  );
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==== 3. 容器（卡片）样式 ==== */
.nav-container {
  width: 100%;
  max-width: 450px;
  background: var(--card-background);
  border-radius: var(--card-border-radius);
  /* 参考 box-shadow: 0 8px 20px rgba(0,0,0,0.12) */
  box-shadow: 0 8px 20px var(--card-box-shadow);
  padding: 28px;
  text-align: center;
  position: relative;
}

/* ==== 4. 标题/副标题样式 ==== */
.nav-container h1 {
  font-size: 2.4rem;
  color: var(--text-title);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.nav-container p.subtitle {
  font-size: 1rem;
  color: var(--text-subtitle);
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ==== 5. 公告栏样式 ==== */
.announcement {
  background: var(--announcement-bg);
  border: 1px solid var(--announcement-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  text-align: left;
}
.announcement p {
  color: var(--announcement-text);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* ==== 6. 按钮网格 ==== */
.btn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 576px) {
  .btn-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==== 7. 按钮样式 ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 0;
  background: var(--btn-bg);
  color: var(--btn-text-color);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn:hover {
  background: var(--btn-bg-hover);
}
.btn i {
  font-size: 1.2rem;
}

/* ==== 8. 底部图片样式 ==== */
.app-image {
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ==== 9. 底部装饰（可选） ==== */
.decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.2)" fill-opacity="1" d="M0,224L48,218.7C96,213,192,203,288,181.3C384,160,480,128,576,138.7C672,149,768,203,864,229.3C960,256,1056,256,1152,229.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  z-index: 0;
}
