/* 中药供应链博览会 H5 · 移动优先，桌面居中显示 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #f5f6f8;
  color: #333;
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 70px;
  min-height: 100vh;
  background: #f5f6f8;
}
a { color: inherit; text-decoration: none; }

/* 底部导航 */
#tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 50;
}
#tabbar a {
  flex: 1;
  text-align: center;
  padding: 10px 0 calc(8px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: #8a9399;
}
#tabbar a.active { color: #0e7a4a; font-weight: 600; }

/* 通用 */
.card {
  background: #fff;
  border-radius: 12px;
  margin: 12px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 24px;
  background: #0e7a4a;
  color: #fff;
  font-size: 16px;
  padding: 12px;
  cursor: pointer;
}
.btn:disabled { opacity: 0.6; }
.btn-ghost { background: #fff; color: #666; border: 1px solid #ddd; }
.tag {
  display: inline-block;
  font-size: 12px;
  color: #0e7a4a;
  background: rgba(14,122,74,0.1);
  border-radius: 6px;
  padding: 2px 8px;
}
.tag-demand { color: #b8860b; background: rgba(184,134,11,0.12); }
.muted { color: #999; font-size: 13px; }
.empty { text-align: center; color: #999; padding: 48px 0; font-size: 14px; }
.sec-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

/* 表单 */
.form-item { background: #fff; border-radius: 10px; padding: 14px; margin: 0 12px 12px; }
.form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  font-family: inherit;
}
.form-item textarea { min-height: 72px; resize: vertical; }

/* 首页 */
.banner {
  color: #fff;
  padding: 48px 24px 36px;
  background: #0e7a4a;
}
.banner h1 { font-size: 22px; margin-bottom: 8px; }
.banner p { font-size: 13px; opacity: 0.85; }

/* 首页轮播 */
.carousel { position: relative; overflow: hidden; }
.carousel .slides { display: flex; transition: transform 0.5s ease; }
.carousel .slide {
  flex: 0 0 100%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.carousel .slide-text {
  width: 100%;
  padding: 40px 20px 28px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
}
.carousel .slide-text h1 { font-size: 20px; margin-bottom: 4px; }
.carousel .slide-text p { font-size: 13px; opacity: 0.9; }
.carousel .dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.carousel .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.carousel .dots i.on { background: #fff; }
.cd-bar {
  background: #fff8e7;
  color: #b8860b;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}
.cd-bar b { font-size: 18px; margin: 0 2px; }
.menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.menu a { display: block; }
.menu .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}
.menu span { font-size: 13px; }
.news-item { display: block; padding: 12px 0; border-top: 1px solid #f0f0f0; }
.news-item .t { font-size: 15px; display: block; margin-bottom: 4px; }

/* 列表页 */
.search-bar { padding: 12px 12px 0; }
.search-bar input {
  width: 100%;
  border: none;
  border-radius: 22px;
  padding: 10px 18px;
  font-size: 14px;
  outline: none;
}
.chips { display: flex; overflow-x: auto; padding: 12px 6px 4px; gap: 8px; }
.chips button {
  flex-shrink: 0;
  border: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 13px;
  background: #fff;
  color: #666;
  cursor: pointer;
}
.chips button.on { background: #0e7a4a; color: #fff; }
.exh .name { font-size: 16px; font-weight: 600; }
.exh .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.load-more { margin: 4px 12px 12px; }

/* 供需 */
.tabs { display: flex; background: #fff; }
.tabs button {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 0;
  font-size: 15px;
  color: #666;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tabs button.on { color: #0e7a4a; font-weight: 600; border-bottom-color: #0e7a4a; }
.demand .head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.demand .t { font-size: 16px; font-weight: 600; }
.demand .c { color: #555; font-size: 14px; margin-bottom: 10px; }
.demand .foot { display: flex; justify-content: space-between; align-items: center; }
.call {
  border: none;
  background: #0e7a4a;
  color: #fff;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
}
.fab-wrap { position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; }

/* 日程 */
.days { display: flex; background: #fff; }
.days button { flex: 1; border: none; background: none; padding: 12px 0; font-size: 14px; color: #666; border-bottom: 2px solid transparent; cursor: pointer; }
.days button.on { color: #0e7a4a; font-weight: 600; border-bottom-color: #0e7a4a; }
.tl { padding: 12px; }
.tl-item { display: flex; gap: 12px; margin-bottom: 16px; }
.tl-time { width: 62px; text-align: right; font-weight: 600; font-size: 14px; }
.tl-time .muted { font-weight: 400; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: #0e7a4a; margin-top: 6px; flex-shrink: 0; }
.tl-body { flex: 1; background: #fff; border-radius: 10px; padding: 12px; }
.tl-body .t { font-weight: 600; margin-bottom: 4px; }

/* 文章 */
.article { background: #fff; padding: 20px 16px; min-height: 60vh; margin: 12px; border-radius: 12px; }
.article h1 { font-size: 20px; line-height: 1.4; margin-bottom: 8px; }
.article .meta { color: #999; font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.article p { font-size: 15px; line-height: 2; margin-bottom: 16px; text-align: justify; }

/* 门票 */
.ticket-no { font-size: 28px; font-weight: 700; color: #0e7a4a; letter-spacing: 2px; margin: 8px 0; }
.header { background: #0e7a4a; color: #fff; padding: 24px 16px; }
.header .expo { font-size: 13px; opacity: 0.85; }

/* 提示浮层 */
#toast {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 99;
  display: none;
}
