/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: #e0e0e0; display: flex; justify-content: center; }
img { display: block; }

/* ===== 容器（手机宽度模拟） ===== */
.container {
  width: 100%;
  max-width: 414px;
  min-height: 100vh;
  height: 100vh;
  background: #f5f5f5;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* ===== 页面滚动容器 ===== */
.page {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg, #f5f5f5);
  display: flex;
  flex-direction: column;
}

/* ===== 底部导航 TabBar ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 6px 0 20px;
  background: var(--card-bg, #fff);
  border-top: 0.5px solid var(--rule, #e5e5e5);
  z-index: 100;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 2px 12px;
  cursor: pointer;
}
.tab-item.active .tab-text {
  color: var(--ink, #171717);
  font-weight: 600;
}
.tab-icon {
  font-size: 22px;
}
.tab-text {
  font-size: 10px;
  color: var(--muted, #999);
}
.float-publish-btn {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent, #f59e0b);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
  z-index: 99;
}
.float-publish-btn .publish-plus {
  font-size: 28px;
  color: #fff;
  font-weight: bold;
}
.publish-icon {
  font-size: 24px;
  color: #fff;
  font-weight: 300;
}
.tab-publish:active {
  transform: scale(0.9);
}

/* ===== 底部留白 ===== */
.bottom-space {
  height: 70px;
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.toast.show {
  opacity: 1;
}