/* 微励志官网前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #2b3a35;
  background: #f6faf7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(30, 120, 80, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #35c77b, #12a375);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 4px 10px rgba(18,163,117,.35);
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav-links a:hover { color: #12a375; }
.nav-links a.active { color: #12a375; font-weight: 600; }
.nav-query-btn {
  background: linear-gradient(135deg, #35c77b, #12a375);
  color: #fff !important; padding: 8px 20px; border-radius: 20px;
  font-weight: 600; box-shadow: 0 4px 12px rgba(18,163,117,.3); transition: .2s;
}
.nav-query-btn:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #12a375 0%, #35c77b 45%, #7fe0a8 100%);
  color: #fff; padding: 90px 0 110px;
}
.hero::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.12); top: -140px; right: -80px;
}
.hero::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.10); bottom: -100px; left: -60px;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: 44px; line-height: 1.35; margin-bottom: 18px; letter-spacing: 1px; }
.hero p { font-size: 19px; opacity: .92; margin-bottom: 34px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 28px;
  font-size: 17px; font-weight: 600; transition: .2s; cursor: pointer; border: none;
}
.btn-white {
  background: #fff; color: #12a375;
  box-shadow: 0 8px 20px rgba(6, 80, 50, .25);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(6, 80, 50, .3); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* 公告条 */
.notice {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff7e6; color: #b25e09; font-size: 15px; padding: 12px 24px; text-align: center;
}

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 34px; color: #1d2b26; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: #7b8a83; }
.section-head .tag {
  display: inline-block; font-size: 14px; color: #12a375; font-weight: 600;
  background: #e5f8ee; border-radius: 14px; padding: 5px 16px; margin-bottom: 14px;
}

/* 功能卡片 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff; border-radius: 18px; padding: 30px 24px;
  box-shadow: 0 6px 24px rgba(30, 120, 80, .07);
  transition: .25s; border: 1px solid #eef5f0;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(30, 120, 80, .13); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.fi-1 { background: linear-gradient(135deg, #e5f8ee, #c9f2da); }
.fi-2 { background: linear-gradient(135deg, #eaf3ff, #d4e6ff); }
.fi-3 { background: linear-gradient(135deg, #fff3e0, #ffe4c2); }
.fi-4 { background: linear-gradient(135deg, #f3edff, #e2d6ff); }
.feature h3 { font-size: 19px; margin-bottom: 10px; color: #1d2b26; }
.feature p { font-size: 15px; color: #7b8a83; line-height: 1.7; }

/* ---------- 会员档位 ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.tier-card {
  position: relative; background: #fff; border-radius: 20px; padding: 36px 30px;
  box-shadow: 0 6px 24px rgba(30, 120, 80, .08); border: 1px solid #eef5f0;
  display: flex; flex-direction: column; transition: .25s;
}
.tier-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(30, 120, 80, .15); }
.tier-card.hot {
  background: linear-gradient(165deg, #12a375 0%, #35c77b 100%);
  color: #fff; border: none; transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(18,163,117,.35);
}
.tier-card.hot:hover { transform: scale(1.04) translateY(-6px); }
.tier-card.hot h3, .tier-card.hot .tier-sub { color: #fff; }
.tier-card.hot .perk { color: rgba(255,255,255,.94); border-color: rgba(255,255,255,.25); }
.tier-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ffb347, #ff8f2d); color: #fff;
  font-size: 13px; font-weight: 700; padding: 5px 18px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255,143,45,.4); white-space: nowrap;
}
.tier-card h3 { font-size: 22px; color: #1d2b26; text-align: center; }
.tier-sub { text-align: center; font-size: 14px; color: #93a29b; margin: 6px 0 20px; }
.tier-price { text-align: center; margin-bottom: 24px; }
.tier-price .num { font-size: 46px; font-weight: 800; color: #12a375; }
.tier-card.hot .tier-price .num { color: #fff; }
.tier-price .unit { font-size: 16px; color: #7b8a83; }
.tier-card.hot .tier-price .unit { color: rgba(255,255,255,.85); }
.perks { list-style: none; flex: 1; margin-bottom: 26px; }
.perk {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; font-size: 15.5px; color: #4a5a53;
  border-bottom: 1px dashed #e3ece7;
}
.perk:last-child { border-bottom: none; }
.perk .dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: #e5f8ee; color: #12a375; font-size: 13px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.tier-card.hot .perk .dot { background: rgba(255,255,255,.2); color: #fff; }
.tier-btn {
  display: block; text-align: center; padding: 13px 0; border-radius: 26px;
  background: linear-gradient(135deg, #35c77b, #12a375); color: #fff;
  font-size: 16.5px; font-weight: 700; transition: .2s;
  box-shadow: 0 6px 16px rgba(18,163,117,.3);
}
.tier-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.tier-card.hot .tier-btn { background: #fff; color: #12a375; box-shadow: 0 6px 16px rgba(6,80,50,.2); }

/* 查询引导条 */
.query-banner {
  background: linear-gradient(135deg, #0f9668, #2fc08a); border-radius: 22px;
  color: #fff; padding: 38px 46px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 14px 34px rgba(18,163,117,.25);
}
.query-banner .qb-text h3 { font-size: 24px; margin-bottom: 8px; }
.query-banner .qb-text p { font-size: 15.5px; opacity: .9; }
.query-banner .btn { background: #fff; color: #12a375; box-shadow: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: 16px; margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(30, 120, 80, .06); border: 1px solid #eef5f0;
  overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px; font-size: 17px; font-weight: 600; cursor: pointer; color: #2b3a35;
}
.faq-q .arrow { transition: .25s; color: #12a375; font-size: 14px; }
.faq-item.open .faq-q .arrow { transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  font-size: 15.5px; color: #66766f; line-height: 1.8;
  padding: 0 26px;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ---------- 页脚 ---------- */
.footer { background: #12241c; color: rgba(255,255,255,.75); padding: 44px 0 32px; text-align: center; }
.footer .f-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer p { font-size: 14px; line-height: 2; }
.footer a { color: #7fe0a8; }
.footer .icp { margin-top: 8px; }
.footer .icp a { color: rgba(255,255,255,.55); }

/* ---------- 查询页 ---------- */
.query-hero {
  background: linear-gradient(160deg, #12a375 0%, #35c77b 100%);
  color: #fff; padding: 64px 0 88px; text-align: center;
}
.query-hero h1 { font-size: 34px; margin-bottom: 12px; }
.query-hero p { font-size: 16px; opacity: .9; }
.query-box {
  max-width: 620px; margin: -48px auto 0; position: relative; z-index: 2;
  background: #fff; border-radius: 20px; padding: 36px 34px;
  box-shadow: 0 16px 44px rgba(18, 80, 50, .16);
}
.query-box label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #2b3a35; }
.query-input-row { display: flex; gap: 12px; }
.query-input-row input {
  flex: 1; border: 2px solid #d9e8e0; border-radius: 12px;
  padding: 13px 18px; font-size: 17px; outline: none; transition: .2s; min-width: 0;
}
.query-input-row input:focus { border-color: #35c77b; box-shadow: 0 0 0 4px rgba(53,199,123,.14); }
.query-input-row button {
  background: linear-gradient(135deg, #35c77b, #12a375); color: #fff; border: none;
  border-radius: 12px; padding: 0 30px; font-size: 16.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(18,163,117,.3); transition: .2s;
}
.query-input-row button:hover { filter: brightness(1.06); }
.query-tip { margin-top: 16px; font-size: 14px; color: #8a998f; line-height: 1.8; background: #f4faf6; border-radius: 10px; padding: 12px 16px; }
.query-result { margin-top: 26px; }
.result-card { border-radius: 16px; padding: 26px 28px; }
.result-card.err { background: #fff2f0; color: #c5412f; font-size: 16px; line-height: 1.8; }
.result-card.ok { background: linear-gradient(160deg, #e9f9f0, #d3f3e1); border: 1px solid #b9e9cf; }
.result-card.ok .rc-row { display: flex; font-size: 15.5px; color: #4a5a53; margin-bottom: 10px; }
.result-card.ok .rc-row .rc-k { width: 90px; color: #7b8a83; flex: none; }
.result-card.ok .code-line { margin: 14px 0 6px; text-align: center; }
.result-card.ok .code-str {
  font-family: "JetBrains Mono", Consolas, Menlo, monospace;
  font-size: 27px; font-weight: 800; letter-spacing: 2.5px; color: #0d8f63;
  background: #fff; border: 2px dashed #35c77b; border-radius: 12px;
  display: inline-block; padding: 14px 26px; user-select: all; word-break: break-all;
}
.result-card.ok .code-hint { text-align: center; font-size: 13.5px; color: #8a998f; margin-top: 10px; }
.result-card.ok .used { color: #c5412f; font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .tier-card.hot { transform: none; }
  .tier-card.hot:hover { transform: translateY(-6px); }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .query-banner { padding: 28px 26px; }
}
@media (max-width: 560px) {
  .nav-links { gap: 14px; font-size: 15px; }
  .nav-links a.hide-m { display: none; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .query-input-row { flex-direction: column; }
  .query-input-row button { padding: 13px 0; }
  .result-card.ok .code-str { font-size: 21px; letter-spacing: 1.5px; padding: 12px 14px; }
}
