/* base.css —— 基础重置、适配、设计变量 */
:root {
  --primary: #2563eb;
  --primary-d: #1e40af;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1a202c;
  --sub: #64748b;
  --warn: #e53e3e;
  --warn-bg: #fff5f5;
  --ok: #16a34a;
  --line: #e6eaf1;
  --radius: 16px;
  --maxw: 480px;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  font-size: clamp(15px, 4.3vw, 18px);
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select {
  font-family: inherit;
  font-size: 1rem;
}
a {
  color: var(--primary);
}
.gs-app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
.gs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gs-header h1 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 600;
}
.gs-header .gs-disc-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 20px;
}
.gs-home-banner {
  background: #ebf4ff;
  color: var(--primary-d);
  font-size: 0.74rem;
  padding: 7px 14px;
  text-align: center;
}
.gs-tabbar {
  position: sticky;
  top: calc(46px + env(safe-area-inset-top));
  z-index: 15;
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gs-tab {
  flex: 0 0 auto;
  padding: 11px 14px;
  font-size: 0.86rem;
  color: var(--sub);
  border: none;
  background: none;
  position: relative;
  white-space: nowrap;
}
.gs-tab.active {
  color: var(--primary);
  font-weight: 600;
}
.gs-tab.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.gs-page {
  padding: 12px;
}
