/* 首页样式（参考移动端界面：浅绿底、圆角卡片、底部导航） */
.home-body {
  margin: 0;
  background: linear-gradient(180deg, #e9f5ec 0%, #f4f9f5 40%, #eef6f8 100%);
  font-family: "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

.phone-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px 76px;
  box-sizing: border-box;
}

/* 顶栏 */
.home-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px 14px;
}
.home-header .logo { font-size: 18px; font-weight: bold; color: #173d2b; }
.admin-entry { font-size: 12px; color: #4d8a68; text-decoration: none; border: 1px solid #bfe0cd; border-radius: 12px; padding: 3px 10px; background: #fff; }

/* 地图预览卡 */
.map-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(31, 90, 60, .12);
  background: #fff;
}
#minimap { height: 300px; width: 100%; }
.map-card-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -60px 50px -30px rgba(255,255,255,.95), inset 0 40px 40px -30px rgba(255,255,255,.6); }
.map-card-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
}
.map-card-bar b { font-size: 17px; color: #173d2b; display: block; }
.map-card-bar small { color: #7ca68d; font-size: 12px; }

.btn-primary {
  background: linear-gradient(135deg, #35c58e, #1fa87a);
  color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 20px; font-size: 14px;
  box-shadow: 0 4px 10px rgba(31, 168, 122, .35);
  white-space: nowrap;
}

/* 功能入口 */
.func-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 18px 0;
}
.func-item {
  background: #fff; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 4px 10px; font-size: 12px; color: #2c4a3b;
  text-decoration: none; box-shadow: 0 3px 10px rgba(31, 90, 60, .07);
}
.func-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.func-item.soon { opacity: .55; cursor: not-allowed; }

/* 渔场卡片列表 */
.section-title { display: flex; align-items: center; margin: 6px 2px 10px; color: #173d2b; }
.section-title .bar { width: 4px; height: 16px; border-radius: 2px; background: #35c58e; margin-right: 8px; }
.section-title .more { margin-left: auto; font-size: 12px; color: #7ca68d; text-decoration: none; }
.section-title small { color: #9ab5a5; font-weight: normal; }

.g-card {
  display: flex; gap: 12px;
  background: #fff; border-radius: 16px;
  padding: 12px; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(31, 90, 60, .08);
}
.g-cover {
  width: 108px; height: 84px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff;
}
.g-info { flex: 1; min-width: 0; }
.g-name { font-size: 15px; font-weight: bold; color: #1d3329; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-meta { font-size: 12px; color: #8aa596; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-tags { margin: 4px 0 8px; }
.g-tag {
  display: inline-block; font-size: 11px; border-radius: 8px; padding: 1px 8px; margin-right: 6px;
  background: #e8f6ef; color: #1fa87a;
}
.g-tag.pos { background: #fdf3e7; color: #d98a1f; }
.g-enter {
  display: inline-block; background: linear-gradient(135deg, #35c58e, #1fa87a);
  color: #fff; font-size: 12px; text-decoration: none;
  border-radius: 14px; padding: 5px 14px;
}
.g-empty { text-align: center; color: #9ab5a5; padding: 30px 0; font-size: 13px; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #e3efe7;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: #8aa596;
}
.tab-item i { font-style: normal; font-size: 20px; }
.tab-item.active { color: #1fa87a; font-weight: bold; }
.tab-item.soon { opacity: .5; }
a.tab-item { text-decoration: none; color: #8aa596; }

/* 小屏适配 */
@media (max-width: 380px) {
  #minimap { height: 240px; }
  .g-cover { width: 90px; height: 76px; font-size: 28px; }
}

/* v7.14 顶栏用户卡 + 布局优化 */
.header-right { display: flex; align-items: center; gap: 8px; }
.user-chip {
  font-size: 12px; color: #33544a; background: linear-gradient(135deg, #f0f9f4, #e6f4ec);
  border: 1px solid #cde8d8; border-radius: 14px; padding: 4px 12px; white-space: nowrap;
}
.user-chip a { text-decoration: none; }
.home-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(20,60,45,.08); }
.func-item { transition: transform .15s, box-shadow .15s; }
.func-item:not(.soon):hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(24,160,88,.15); }

/* v7.14 窄屏顶栏防挤压 */
@media (max-width: 480px) {
  .home-header { flex-wrap: nowrap; gap: 6px; padding: 8px 10px; }
  .home-header .logo { font-size: 15px; }
  .home-header .logo small { display: inline; font-size: 10px; font-weight: normal; color: #4d8a68; margin-left: 2px; }
  .user-chip { font-size: 11px; padding: 3px 8px; }
}

/* ============ v7.19 顶栏防错乱：窄屏不换行挤压 ============ */
.home-header { flex-wrap: nowrap; }
.home-header .logo { white-space: nowrap; flex-shrink: 0; }
.header-right { flex-shrink: 1; min-width: 0; justify-content: flex-end; }
.admin-entry { white-space: nowrap; flex-shrink: 0; }
.user-chip {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 52vw; flex-shrink: 1; min-width: 0;
}
@media (max-width: 480px) {
  .user-chip { max-width: 46vw; font-size: 11px; }
  .user-chip .chip-switch { display: none; }
  .admin-entry { padding: 3px 8px; font-size: 11px; }
}

/* ============ v7.69 全国视野省份聚合 + 城市切换 + 钓友社群 ============ */
.prov-bubble-wrap { background: none; border: none; }
.prov-bubble {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(30, 136, 229, .88); color: #fff;
  border: 2px solid #fff; box-shadow: 0 3px 10px rgba(20, 80, 160, .4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; box-sizing: border-box;
}
.prov-bubble b { font-size: 16px; line-height: 1; }
.prov-bubble span { font-size: 10px; transform: scale(.9); white-space: nowrap; max-width: 52px; overflow: hidden; }

.city-bar { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; }
#city-select {
  flex: 1; max-width: 240px; padding: 7px 10px; font-size: 13px;
  border: 1px solid #cfe4d6; border-radius: 12px; background: #fff; color: #2c4a3b;
  outline: none;
}
#city-select:focus { border-color: #35c58e; }
.city-bar small { color: #9ab5a5; font-size: 11px; }

/* 钓友社群 */
#community-section { margin-top: 4px; }
.p-item {
  background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(31, 90, 60, .07);
}
.p-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.p-ava {
  width: 28px; height: 28px; border-radius: 50%; background: #e8f6ef;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.p-head b { font-size: 13px; color: #1d3329; }
.p-ground { font-size: 11px; color: #1fa87a; background: #e8f6ef; border-radius: 8px; padding: 1px 8px; }
.p-head small { margin-left: auto; color: #9ab5a5; font-size: 11px; }
.p-body { font-size: 13px; color: #33544a; line-height: 1.6; word-break: break-all; }
.p-imgs { display: flex; gap: 6px; margin-top: 8px; }
.p-imgs img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
.p-foot { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: #8aa596; align-items: center; }
.p-like {
  border: none; background: none; font-size: 12px; color: #8aa596; cursor: pointer; padding: 2px 4px;
}
.p-like:active { transform: scale(1.15); }

.p-compose {
  display: flex; gap: 8px; align-items: flex-end; background: #fff;
  border-radius: 14px; padding: 10px; margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(31, 90, 60, .07);
}
.p-compose textarea {
  flex: 1; border: 1px solid #e3efe7; border-radius: 10px; padding: 8px;
  font-size: 13px; resize: none; outline: none; font-family: inherit; box-sizing: border-box;
}
.p-compose textarea:focus { border-color: #35c58e; }
.p-send {
  background: linear-gradient(135deg, #35c58e, #1fa87a); color: #fff; border: none;
  border-radius: 12px; padding: 9px 16px; font-size: 13px; flex-shrink: 0;
}
.p-send:disabled { opacity: .6; }
.p-login-tip {
  display: block; text-align: center; font-size: 12px; color: #1fa87a;
  background: #f0f9f4; border: 1px dashed #bfe0cd; border-radius: 12px;
  padding: 10px; margin-bottom: 12px; text-decoration: none;
}

/* ============ v7.71 首页页签区：五页签 + 自动轮播 ============ */
.tab-zone { background: transparent; }
.tz-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tz-tabs::-webkit-scrollbar { display: none; }
.tz-tab {
  flex-shrink: 0; border: 1px solid #d8eadf; background: #fff;
  color: #4d7263; font-size: 13px; padding: 7px 13px; border-radius: 20px;
  white-space: nowrap; cursor: pointer; transition: all .2s;
}
.tz-tab.active {
  background: linear-gradient(135deg, #1fa87a, #157a5b); color: #fff;
  border-color: transparent; box-shadow: 0 3px 10px rgba(31, 168, 122, .35);
  font-weight: 700;
}
.tz-panes { position: relative; }
.tz-pane { display: none; animation: tzFade .3s ease; }
.tz-pane.active { display: block; }
@keyframes tzFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tz-pane-head { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 2px 4px 8px; }

/* 页签3：玩法规则 */
.rules-box { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(20,60,45,.06); }
.rules-box b { display: block; font-size: 14px; color: #173d2b; margin: 10px 0 4px; }
.rules-box b:first-child { margin-top: 0; }
.rules-box p { font-size: 12px; color: #4d7263; line-height: 1.7; margin: 0; }

/* 页签4：天气信息 */
.wx-card {
  background: linear-gradient(150deg, #e8f4fd, #f4f9f5);
  border: 1px solid #d5e8f5; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
}
.wx-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wx-top b { font-size: 14px; color: #173d2b; }
.wx-top small { font-size: 10px; color: #7a998b; }
.wx-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #33544a; }
.wx-grid span b { color: #1e88e5; font-weight: 700; }
.wx-tip {
  margin-top: 8px; font-size: 11px; border-radius: 8px; padding: 6px 10px;
  background: #e8f6ef; color: #157a5b;
}
.wx-tip.warn { background: #fdf3e7; color: #b07818; }

/* 页签5：技巧学习 */
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip-item {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: #fff; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(20,60,45,.06);
}
.tip-item b { font-size: 13px; color: #173d2b; display: block; }
.tip-item small { font-size: 11px; color: #7a998b; }
.tip-item > span { margin-left: auto; color: #b9cdc3; font-size: 18px; }

/* v7.72 玩法规则页签：海报与动画 */
.rules-media { margin-bottom: 10px; }
.rules-media img, .rules-media video {
  width: 100%; border-radius: 12px; display: block; margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(20,60,45,.12); background: #000;
}
