/* 学费首页 —— 一屏完整展示，无滚动 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  background: #f4f5f9;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.phone {
  width: 375px;
  max-width: 100%;
  height: 100%;
  max-height: 100vh;
  margin: 0 auto;
  background: #f4f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* —— 导航栏 —— */
.nav-bar {
  height: 44px;
  background: #00a0ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: relative;
  flex-shrink: 0;
}

.nav-bar .back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-bar .back svg {
  width: 12px;
  height: 20px;
}

.nav-bar .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-bar .capsule {
  display: flex;
  align-items: center;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.nav-bar .capsule .cap-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.nav-bar .capsule .cap-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
}

.nav-bar .capsule .dots {
  display: flex;
  gap: 3px;
}

.nav-bar .capsule .dots i {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.nav-bar .capsule .ring {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
}

.nav-bar .capsule .ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px solid #fff;
  border-radius: 50%;
}

/* —— 提示条 —— */
.notice-bar {
  background: #00a0ff;
  padding: 0 12px 20px;
  flex-shrink: 0;
}

.notice-bar .inner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 40, 80, 0.18);
  border-radius: 4px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.notice-bar .icon-i {
  width: 14px;
  height: 14px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  flex-shrink: 0;
}

.notice-bar .link {
  text-decoration: underline;
  cursor: pointer;
}

/* —— 主内容：一屏内铺开，不滚动 —— */
.main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 8px;
  margin-top: -12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  background: #fff;
  border-radius: 0;
  padding: 2px 14px;
  flex-shrink: 0;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.3;
}

.info-row .label {
  color: #999;
  flex-shrink: 0;
  width: 4em;
  text-align: right;
}

.info-row .value {
  color: #333;
  text-align: left;
  padding-left: 16px;
  word-break: break-all;
}

/* —— 步骤条 —— */
.steps {
  background: #00a0ff;
  border-radius: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.steps .step-item {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.steps .connector {
  display: flex;
  align-items: center;
  margin: 0 4px;
}

.steps .connector .line {
  width: 20px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
}

.steps .connector .dot {
  width: 7px;
  height: 7px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
}

/* —— 学年标题 —— */
.section-title {
  background: #eceef2;
  border-radius: 0;
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.amount-red {
  color: #ff6666 !important;
  font-weight: 500;
}

/* —— 缴费方式 —— */
.method-card {
  padding: 0 14px;
}

.method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
}

.method-row + .method-row {
  border-top: 1px solid #f0f0f0;
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio.checked {
  background: #ff4d4f;
  border-color: #ff4d4f;
}

.radio.checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

/* —— 投诉建议 —— */
.complaint {
  text-align: center;
  padding: 12px 0 4px;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.complaint a {
  color: #00a0ff;
  font-size: 14px;
  text-decoration: none;
}

/* —— 底部栏（文档流，不遮挡） —— */
.footer-bar {
  flex-shrink: 0;
  height: 54px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 20px;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.06);
}

.footer-bar .amount-label {
  font-size: 14px;
  color: #333;
}

.footer-bar .amount-value {
  color: #ff6666;
  font-size: 18px;
  font-weight: 600;
  margin-left: 4px;
}

.footer-bar .pay-btn {
  height: 40px;
  padding: 0 28px;
  background: #00a0ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 1px;
}

.footer-bar .pay-btn:active {
  opacity: 0.85;
}

/* 自定义金额弹层 */
.modal-mask {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 20;
  align-items: flex-end;
  justify-content: center;
}

.modal-mask.show {
  display: flex;
}

.modal {
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 30px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal h3 {
  font-size: 16px;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.modal input {
  width: 100%;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}

.modal input:focus {
  border-color: #00a0ff;
}

.modal .actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal .actions button {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.modal .actions .cancel {
  background: #f5f5f5;
  color: #666;
}

.modal .actions .confirm {
  background: #00a0ff;
  color: #fff;
}

@media (max-width: 375px) {
  .phone {
    width: 100%;
  }
}
