/* 基础重置与布局 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 标题样式 */
h1 {
  text-align: center;
  font-size: 1.5em;
  line-height: 1.2;
  margin:10px 0;
  font-weight: bold;
  color: #333;
}

/* 内容区域 */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 0 15px;
  margin-bottom: 50px;
}

/* 固定底部导航 */
.nav-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  line-height: 50px;
  padding: 0 15px;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
}

/* 链接样式 */
.nav-bottom a {
  text-decoration: none;
  color: #333;
  display: inline-block;
  max-width: 40%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 单个链接居左 */
.nav-bottom.left a {
  margin-right: auto;
}

/* 单个链接居右 */
.nav-bottom.right a {
  margin-left: auto;
}

/* 适配安全区域 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .nav-bottom {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(50px + env(safe-area-inset-bottom));
  }
  
  .content {
    margin-bottom: calc(50px + env(safe-area-inset-bottom));
  }
} 