/* ============================================================
 * 活动星投票 · H5 静态站点公共样式
 * 视觉风格与百度智能小程序保持一致：白底导航、#f5f6f8 背景、蓝色主按钮
 * ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: #f5f6f8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 顶部导航（白底黑字） ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.nav-brand {
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.nav-links {
  display: flex;
  gap: 14px;
}

.nav-links a {
  font-size: 14px;
  color: #555;
}

.nav-links a:active,
.nav-links a:hover {
  color: #2b7cff;
}

/* ---------- 页面容器 ---------- */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 90px;
}

/* ---------- 首页头部 ---------- */
.header {
  padding: 8px 4px 16px;
}

.header-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.header-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #888;
}

/* ---------- 核心能力四宫格 ---------- */
.features {
  margin-bottom: 20px;
}

.features-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 4px 0 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 12px;
}

.feature-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #2b7cff;
  margin-bottom: 4px;
}

.feature-desc {
  display: block;
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

/* ---------- 活动卡片 ---------- */
.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.badge {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #2b7cff;
}

.badge-ended {
  background: #f0f0f0;
  color: #999;
}

.card-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

.card-bottom {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

.arrow {
  font-size: 18px;
  color: #ccc;
}

/* ---------- 投票攻略入口 ---------- */
.guide-all {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #2b7cff;
  padding: 12px 14px;
}

/* ---------- 详情页 ---------- */
.detail-card .title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.detail-card .desc {
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

.total {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #2b7cff;
  font-weight: 600;
}

.option-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.option-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.option-votes {
  font-size: 13px;
  color: #2b7cff;
}

.progress-bg {
  height: 8px;
  background: #eef1f5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4a9bff, #2b7cff);
  border-radius: 999px;
}

/* ---------- 按钮 ---------- */
.btn-primary {
  display: block;
  width: 100%;
  background: #2b7cff;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  cursor: pointer;
}

.btn-vote {
  display: block;
  width: 100%;
  background: #eef4ff;
  color: #2b7cff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  cursor: pointer;
}

.btn-vote:hover,
.btn-primary:hover {
  opacity: 0.9;
}

/* ---------- 底部悬浮 / 固定栏 ---------- */
.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f6f8;
  padding: 10px 16px 14px;
}

.footer-bar .btn-primary {
  max-width: 448px;
  margin: 0 auto;
}

.contact-section {
  margin: 20px 0 10px;
  padding: 14px;
  background: #ffffff;
  border-radius: 10px;
  font-size: 13px;
  color: #666;
}

.contact-section strong {
  color: #333;
}

/* ---------- 创建页步骤教程 ---------- */
.step-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.step-no {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: #2b7cff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  vertical-align: middle;
}

.step-desc {
  margin-top: 8px;
  font-size: 13px;
  color: #777;
}

.step-desc ul {
  margin: 6px 0 0 18px;
}

.step-desc li {
  margin-bottom: 2px;
}

/* ---------- 页脚说明 ---------- */
.site-footer {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  padding: 10px 0 4px;
}
