*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: calc(100vw / 7.5);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ========== 1. 幻灯区域 ========== */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e8e8e8;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
}

.slide img {
  width: 100%;
  height: 5.6rem;
  object-fit: cover;
}

.slide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.6rem;
  background: #e8e8e8;
  color: #999;
  font-size: 0.28rem;
}

.slider-dots {
  position: absolute;
  bottom: 0.24rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.12rem;
  z-index: 2;
}

.slider-dot {
  width: 0.12rem;
  height: 0.12rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s;
}

.slider-dot.active {
  background: #fff;
}

/* ========== 2. 手机号获取区域 ========== */
.phone-section {
  padding: 0.32rem 0.3rem 0.24rem;
  background: #fff;
}

.phone-card {
  background: #fff;
}

.phone-input-bar {
  display: flex;
  align-items: center;
  height: 0.88rem;
  background: #f0f0f0;
  border-radius: 0.08rem;
  padding: 0 0.2rem;
  margin-bottom: 0.24rem;
}

.phone-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.28rem;
  color: #333;
  outline: none;
  min-width: 0;
}

.phone-input::placeholder {
  color: #999;
}

.phone-divider {
  width: 1px;
  height: 0.36rem;
  background: #d0d0d0;
  margin: 0 0.2rem;
  flex-shrink: 0;
}

.btn-fill {
  font-size: 0.28rem;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.1rem 0;
}

.btn-submit {
  display: block;
  width: 100%;
  height: 0.88rem;
  background: #3b66e1;
  color: #fff;
  font-size: 0.32rem;
  border-radius: 0.08rem;
  letter-spacing: 0.04rem;
}

.btn-submit:active {
  background: #2f55c4;
}

/* 预约成功状态 */
.phone-success {
  border: 1px solid #e8e8e8;
  border-radius: 0.08rem;
  padding: 0.32rem 0.28rem 0.28rem;
}

.success-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.success-title {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.34rem;
  font-weight: 600;
  color: #222;
}

.success-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-refill {
  display: flex;
  align-items: center;
  gap: 0.06rem;
  font-size: 0.24rem;
  color: #999;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.success-phone {
  font-size: 0.28rem;
  color: #333;
  margin-bottom: 0.24rem;
}

.success-divider {
  height: 1px;
  background: #e8e8e8;
  margin-bottom: 0.24rem;
}

.success-tip {
  text-align: center;
  font-size: 0.26rem;
  color: #666;
  line-height: 1.5;
}

/* ========== 3. 固定宣传图片 ========== */
.banner-section {
  width: 100%;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  display: block;
}

/* ========== 4. 底部浮动拨号区域 ========== */

.fixed-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0 0.2rem calc(0.25rem + env(safe-area-inset-bottom));
  background: transparent;
  pointer-events: none;
}

.fixed-footer > * {
  pointer-events: auto;
}

.footer-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 0.16rem;
  padding: 0.16rem 0.24rem;
  box-shadow: 0 0.04rem 0.24rem rgba(0, 0, 0, 0.12);
  gap: 0.16rem;
}

.footer-logo {
  flex-shrink: 0;
  width: 0.72rem;
  height: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.footer-logo svg,
.footer-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-title {
  font-size: 0.3rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-subtitle {
  font-size: 0.22rem;
  color: #888;
  margin-top: 0.04rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-call {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.72rem;
  padding: 0 0.32rem;
  background: #3b66e1;
  color: #fff;
  font-size: 0.28rem;
  border-radius: 0.36rem;
  white-space: nowrap;
}

.btn-call:active {
  background: #2f55c4;
}

.footer-disclaimer {
  text-align: center;
  font-size: 0.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.1rem;
  padding-bottom: 0.08rem;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.28rem;
  padding: 0.24rem 0.4rem;
  border-radius: 0.08rem;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
}
