/* 基础重置 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Arial, "Noto Sans CJK SC", sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* 全屏背景（两页分别指定不同图片） */
.page-welcome,
.page-menu {
  position: relative;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 分别设置两页背景图 */
.page-welcome { background-image: url("../images/T1.png"); }
.page-menu    { background-image: url("../images/T2.jpg"); }

/* 背景遮罩：让文字更清楚 */
.page-welcome::before,
.page-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,.25), rgba(0,0,0,.72));
  pointer-events: none;
}

/* 页面居中容器 */
.center-wrap {
  position: relative;
  z-index: 1;
  min-height: calc(100% - 56px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

/* 半透明玻璃卡片 */
.glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  border-radius: 18px;
}

.card {
  width: min(720px, 100%);
  padding: 26px 22px;
  animation: fadeUp .55s ease both;
}

.card.wide {
  width: min(980px, 100%);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 标题与副标题 */
.title {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: .5px;
}
.subtitle {
  margin: 0 0 18px;
  opacity: .9;
  line-height: 1.6;
}

/* 按钮 */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}

.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: rgba(0, 170, 255, .30);
  border-color: rgba(0, 170, 255, .45);
}

.btn.ghost {
  background: rgba(255,255,255,.10);
}

.btn.small {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* 导航页：头部行 */
.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

/* 导航页：按钮卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .header-row { flex-direction: column; align-items: stretch; }
}

/* 每个跳转 tile */
.tile {
  display: block;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.tile:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,.30);
  border-color: rgba(255,255,255,.26);
}

.tile-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.tile-desc {
  display: block;
  opacity: .9;
  font-size: 14px;
  line-height: 1.5;
}

/* 底部 */
.footer {
  position: relative;
  z-index: 1;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  opacity: .85;
  font-size: 14px;
}

/* 小提示 */
.hint {
  margin: 16px 0 0;
  opacity: .85;
  font-size: 13px;
}

code {
  background: rgba(0,0,0,.25);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
}

/* 欢迎页：卡片内容整体居中 */
.page-welcome .card{
    text-align: center;
  }
  
  /* 欢迎页：按钮行居中（你有多个按钮也会居中排） */
  .page-welcome .btn-row{
    justify-content: center;
  }
  