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

body {
  touch-action: manipulation;
  overflow-x: hidden;
  background-color: #f3f4f6;
}

.app-container {
  min-height: 100vh;
  margin: 0 auto;
  transition: all 0.3s ease;
  background-color: white;
  position: relative;
  overflow: hidden; /* 禁止容器内溢出导致的留白 */
}

/* PC 端样式优化 */
@media (min-width: 1025px) {
  .app-container {
    width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
  }
  header.fixed, footer.fixed {
    left: auto;
    right: auto;
    width: 400px;
    margin: 0 auto;
  }
}

/* iframe 核心样式：完全填充，无留白 */
.web-iframe {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 4rem); /* 仅扣除底部导航4rem，顶部无导航不扣除 */
  border: none;
  display: block; /* 消除inline元素默认间隙 */
}

/* 导航样式（若实际无顶部导航，可删除此部分，但保留不影响） */
header.fixed {
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 50;
}
header .h-16 { height: 4rem; }
header .border-b { border-bottom: 1px solid #e5e7eb; }
header .px-4 { padding-left: 1rem; padding-right: 1rem; }
header .flex { display: flex; }
header .items-center { align-items: center; }
header .justify-between { justify-content: space-between; }
header .text-lg { font-size: 1.125rem; }
header .font-medium { font-weight: 500; }

/* 主内容区：无顶部内边距，高度完全填充 */
main {
  background-color: white;
  min-height: calc(100vh - 4rem); /* 100vh - 底部导航4rem */
  height: 100%;
}

/* 底部导航样式 */
footer.fixed {
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 40;
}
footer .h-16 { height: 4rem; }
footer .border-t { border-top: 1px solid #e5e7eb; }
footer .flex { display: flex; }
footer .items-center { align-items: center; }
footer .justify-around { justify-content: space-around; }
footer .text-sm { font-size: 0.875rem; }
footer .text-gray-500 { color: #6b7280; }

/* 底部信息栏：适配底部导航，不被遮挡 */
.foot {
  background: #eee;
  padding: 15px 10px;
  text-align: center;
  color: #858585;
  font-size: 12px;
  line-height: 20px;
  margin-bottom: 4rem; /* 预留底部导航高度 */
}
.foot span { margin: 0 10px; }
.foot i {
  width: 15px;
  height: 15px;
  display: inline-block;
  margin-right: 3px;
  vertical-align: -3px;
}
.foot .i1 { background: url(../images/ico1.png) no-repeat center; background-size: 15px; }
.foot .i2 { background: url(../images/ico2.png) no-repeat center; background-size: 15px; }
.foot .i3 { background: url(../images/ico3.png) no-repeat center; background-size: 15px; }