/* ===== 翼飞高尔夫学院 · 新小程序静态页面公共样式 ===== */
:root {
  --navy: #1e2a78;          /* 主色 深蓝 */
  --navy-deep: #16205e;
  --navy-light: #2c3a99;
  --gold: #c9a468;          /* 点缀 金色 */
  --gold-light: #e8d5b0;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-sub: #8a8fa8;
  --line: #eef0f6;
  --green: #2fb47c;
  --red: #e5604f;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(30, 42, 120, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #e9ebf2;
  color: var(--text);
  font-size: 15px;
}

/* 手机容器 */
.phone {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: 76px; /* tabbar 高度 */
  box-shadow: 0 0 40px rgba(0, 0, 0, .12);
}
.phone.no-tab { padding-bottom: 30px; }

a { text-decoration: none; color: inherit; }
img { display: block; }

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  letter-spacing: 1px;
}
.navbar .back {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar.light { background: var(--bg); color: var(--text); }

/* ===== 底部菜单 ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  height: 64px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-sub);
}
.tabbar a.active { color: var(--navy); font-weight: 600; }
.tabbar svg { width: 24px; height: 24px; }

/* ===== 通用组件 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 14px 16px;
  padding: 18px 16px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 16px 12px;
}
.section-head .title {
  font-size: 18px;
  font-weight: 700;
  position: relative;
  padding-left: 12px;
}
.section-head .title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--navy), var(--gold));
}
.section-head .more { font-size: 12px; color: var(--text-sub); }

.btn-primary {
  display: block;
  margin: 20px 16px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  box-shadow: 0 8px 20px rgba(30, 42, 120, .35);
  border: none;
  width: calc(100% - 32px);
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eef1fb;
  color: var(--navy);
}

.empty {
  text-align: center;
  color: var(--text-sub);
  padding: 60px 0;
  font-size: 14px;
}

/* 表单 */
.form-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.form-item:last-child { border-bottom: none; }
.form-item .label { color: var(--text); font-weight: 500; }
.form-item .value, .form-item input {
  color: var(--text-sub);
  font-size: 15px;
  text-align: right;
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  margin-left: 20px;
}

/* 列表箭头项 */
.arrow-list { background: #fff; border-radius: var(--radius); margin: 14px 16px; box-shadow: var(--shadow); overflow: hidden; }
.arrow-item {
  display: flex;
  align-items: center;
  padding: 17px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.arrow-item:last-child { border-bottom: none; }
.arrow-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef1fb, #e3e8f8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}
.arrow-item .name { flex: 1; }
.arrow-item .extra { color: var(--text-sub); font-size: 13px; margin-right: 6px; }
.arrow-item .chev { color: #c4c8d8; font-size: 18px; }
