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

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1a1d21;
  --text-2: #666e7a;
  --text-3: #9aa1ab;
  --line: #ecedf0;
  --primary: #3b6ef5;
  --red: #e5484d;
  --orange: #f5a524;
  --green: #30a46c;
  --gray: #b6bac1;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 84px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.app-main { padding-top: 12px; padding-bottom: 24px; }

.board-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.board-head h2 { font-size: 15px; font-weight: 600; }
.board-head a { font-size: 12px; color: var(--primary); }

.board-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.board-bar span { display: block; height: 100%; min-width: 2px; }

.board-legend {
  display: flex;
  gap: 16px;
  margin-top: 13px;
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.board-legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.search-box { margin-top: 12px; }
.search-box input {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #fff;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  outline: none;
}
.search-box input::placeholder { color: var(--text-3); }

.chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 15px;
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
  color: var(--text-2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.chip.active { background: var(--primary); color: #fff; font-weight: 500; }

.selects { display: flex; gap: 8px; margin-top: 10px; }
.selects select {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 10px;
  background-color: #fff;
  padding: 0 32px 0 13px;
  font-size: 13px;
  color: var(--text-2);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' fill='none' stroke='%239aa1ab' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.fund-list { margin-top: 12px; }

.fund-item {
  position: relative;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px 13px 20px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.fund-item .status-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.fund-top { display: flex; align-items: flex-start; gap: 10px; }
.fund-name {
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}
.fund-code {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--gray);
  padding: 0;
  font-family: inherit;
}
.star.on { color: #f5a524; }

.fund-quota {
  display: flex;
  gap: 22px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.fund-quota em {
  font-style: normal;
  color: var(--text-3);
  font-size: 12px;
  margin-right: 6px;
}
.fund-quota .none { color: var(--text-3); }

.empty-tip {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  padding: 40px 0;
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
}
.tabbar-inner { max-width: 780px; margin: 0 auto; display: flex; }
.tabbar a {
  flex: 1;
  text-align: center;
  padding: 11px 0 13px;
  font-size: 13px;
  color: var(--text-3);
}
.tabbar a:hover { text-decoration: none; }
.tabbar a.active { color: var(--primary); font-weight: 600; }

footer.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  padding: 24px 0;
  font-size: 12px;
  line-height: 1.9;
}
footer .footer-strong { color: var(--text); font-weight: 600; font-size: 13px; }
footer.site-footer a { color: var(--text-2); }

.page-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  margin-top: 12px;
}
.page-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.page-card h3 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.page-card p { color: var(--text-2); font-size: 13.5px; margin-bottom: 10px; }
.page-card ul { padding-left: 18px; color: var(--text-2); font-size: 13.5px; }
.page-card li { margin-bottom: 6px; }

.info-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.info-table th { background: #f8f9fb; font-weight: 500; width: 140px; color: var(--text-2); }

.notice {
  background: #fff9ec;
  border: 1px solid #f3dfae;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #6b5320;
  margin-top: 14px;
}

.news-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item h3 { font-size: 15px; margin-bottom: 6px; }
.news-item .meta { font-size: 12px; color: var(--text-3); margin-bottom: 7px; }
.news-item p { font-size: 13.5px; color: var(--text-2); margin-bottom: 0; }

@media (max-width: 480px) {
  .fund-name { font-size: 13.5px; }
  .fund-quota { gap: 16px; }
  .board-legend { gap: 12px; }
}
