/* 房产落地页 - 红色主题 自适应样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #fdf6f6; color: #333; padding-bottom: 70px; }
img { max-width: 100%; display: block; }
/* 顶部标题栏 - 红色 */
.topbar {
  background: linear-gradient(135deg, #c1272d, #e63946);
  color: #fff; text-align: center; font-size: 18px; font-weight: 700;
  padding: 14px 12px; letter-spacing: 2px;
  position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(193,39,45,.3);
}
/* 头图 */
.hero { position: relative; }
.hero img { width: 100%; max-height: 460px; object-fit: cover; }
.hero-placeholder {
  height: 260px; display: flex; align-items: center; justify-content: center;
  font-size: 80px; background: linear-gradient(135deg, #c1272d, #e63946); color: #fff;
}
.hero-sub {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(193,39,45,.75); color: #fff; font-size: 14px;
  padding: 9px 14px; text-align: center;
}
/* 通用区块 */
section { max-width: 1080px; margin: 14px auto; background: #fff; border-radius: 12px; padding: 20px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
section h2 {
  font-size: 20px; margin-bottom: 16px; padding-left: 11px;
  border-left: 4px solid #c1272d; line-height: 1.3; color: #c1272d;
}
/* 楼盘实景：手机长条单张展示，全宽相连，不裁剪缩放 */
.strip-list { display: block; }
.strip-item { margin: 0; }
.strip-item img { width: 100%; height: auto; display: block; border-radius: 0; }
/* 在线客服按钮：红色椭圆 */
.service-btn {
  display: block; max-width: 480px; margin: 12px auto 0;
  background: linear-gradient(135deg, #e63946, #c1272d); color: #fff;
  text-decoration: none; text-align: center;
  padding: 12px 20px; border-radius: 50px;
  box-shadow: 0 6px 16px rgba(193,39,45,.35);
}
.service-btn .svc-line1 { display: block; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.service-btn .svc-line2 { display: block; font-size: 13px; opacity: .9; margin-top: 2px; }
.service-btn:active { transform: scale(.97); }
/* 预约看房 */
.form-sec { text-align: center; }
.reserve-title { font-size: 21px; color: #c1272d; border: none; padding: 0; margin-bottom: 10px; font-weight: 800; }
.reserve-join {
  display: inline-block; background: #fff0f0; color: #c1272d;
  font-size: 14px; font-weight: 700; padding: 6px 18px; border-radius: 20px; margin-bottom: 16px;
}
.form-sec form { max-width: 480px; margin: 0 auto; }
.form-sec input {
  width: 100%; padding: 13px 14px; margin-bottom: 12px;
  border: 1px solid #f0d0d0; border-radius: 8px; font-size: 15px; outline: none; background: #fffafa;
}
.form-sec input:focus { border-color: #c1272d; background: #fff; }
.form-sec button {
  width: 100%; padding: 15px; border: none; border-radius: 40px;
  background: linear-gradient(135deg, #e63946, #c1272d); color: #fff;
  font-size: 18px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(193,39,45,.35);
}
.form-sec button:active { transform: scale(.98); }
.form-msg { max-width: 480px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.form-msg.ok { background: #e8f7ee; color: #1e7e34; }
.form-msg.err { background: #fdecea; color: #c0392b; }
/* 最新成功领取客户：大标题 + 竖排上下滚动 */
.scroll-sec {
  max-width: 480px; margin: 18px auto 0;
  background: #fff8f8; border: 1px dashed #f0c0c0; border-radius: 12px; padding: 14px 12px;
}
.scroll-big-title {
  font-size: 22px; color: #c1272d; font-weight: 800;
  text-align: center; margin-bottom: 12px; letter-spacing: 1px;
}
.scroll-vview { height: 200px; overflow: hidden; position: relative; }
.scroll-vlist { will-change: transform; }
.scroll-vitem {
  height: 40px; line-height: 40px; font-size: 14px; color: #666;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px dashed #f7e3e3;
}
.scroll-vitem b { color: #c1272d; }
.scroll-vitem i { font-style: normal; color: #bbb; font-size: 12px; }
/* 有问必答 */
.faq details { border-bottom: 1px solid #f5e5e5; padding: 13px 4px; }
.faq summary { font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.q-tag {
  flex: 0 0 auto; background: #c1272d; color: #fff; font-size: 12px;
  padding: 2px 7px; border-radius: 4px; margin-top: 1px;
}
.faq details p { margin-top: 10px; font-size: 14px; color: #666; line-height: 1.8; padding-left: 32px; }
.faq-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #f5e5e5;
}
.faq-foot span { font-size: 13px; color: #999; }
.faq-call {
  background: linear-gradient(135deg, #e63946, #c1272d); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 9px 20px; border-radius: 30px;
}
/* 底部信息 */
.footer { text-align: center; font-size: 12px; color: #999; padding: 22px 14px 30px; line-height: 2; }
.footer p { margin: 0; }
.footer .copyright { color: #bbb; margin-top: 8px; }
/* 漂浮按钮 */
.float-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 8px 12px; }
.float-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 520px; margin: 0 auto;
  background: linear-gradient(135deg, #e63946, #c1272d); color: #fff;
  font-size: 17px; font-weight: 700; text-decoration: none;
  padding: 14px 20px; border-radius: 40px;
  box-shadow: 0 6px 20px rgba(193,39,45,.45);
  animation: floatPulse 1.8s infinite;
}
.float-call:active { transform: scale(.97); }
.float-icon { font-size: 20px; }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(193,39,45,.45); }
  50% { box-shadow: 0 6px 28px rgba(193,39,45,.75); }
}
/* ---------------- 后台 ---------------- */
.admin-body { background: #eef1f5; min-height: 100vh; padding-bottom: 0; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 14px 60px; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px;
}
.admin-top h1 { font-size: 20px; color: #c1272d; }
.admin-top a, .btn {
  display: inline-block; padding: 8px 16px; border-radius: 6px; font-size: 14px;
  text-decoration: none; border: none; cursor: pointer;
}
.btn-red { background: #c1272d; color: #fff; }
.btn-gray { background: #e4e7ec; color: #444; }
.btn-green { background: #1e7e34; color: #fff; }
.card { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 12px; color: #333; }
.site-list { display: grid; gap: 12px; }
.site-item {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  border: 1px solid #eee; border-radius: 8px; padding: 12px 14px;
}
.site-item .info b { font-size: 16px; }
.site-item .info .meta { font-size: 12px; color: #888; margin-top: 4px; }
.site-item .ops { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; font-family: inherit;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.img-item { position: relative; }
.img-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.img-item .del {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 12px; padding: 2px 8px; border-radius: 4px; text-decoration: none;
}
.img-item .badge {
  position: absolute; top: 4px; left: 4px; background: #c1272d; color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: 4px;
}
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { border-bottom: 1px solid #eee; padding: 9px 8px; text-align: left; }
table.tbl th { background: #f7f8fa; color: #555; }
.login-box {
  max-width: 360px; margin: 12vh auto; background: #fff; border-radius: 12px;
  padding: 34px 28px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.login-box h1 { text-align: center; font-size: 22px; color: #c1272d; margin-bottom: 22px; }
.login-box input {
  width: 100%; padding: 12px; margin-bottom: 14px; border: 1px solid #ddd;
  border-radius: 8px; font-size: 15px;
}
.login-box button { width: 100%; padding: 13px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #e63946, #c1272d); color: #fff; font-size: 16px; cursor: pointer; }
.login-err { color: #c0392b; font-size: 13px; margin-bottom: 10px; text-align: center; }
.tip-ok { background: #e8f7ee; color: #1e7e34; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
/* ---------------- 手机端适配 ---------------- */
@media (max-width: 768px) {
  section { margin: 10px; padding: 16px 14px; border-radius: 10px; }
  section h2 { font-size: 18px; }
  .strip-item img { width: 100%; }
  .hero img { max-height: 300px; }
  .img-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-top { flex-direction: column; gap: 10px; align-items: flex-start; }
  .site-item .ops { width: 100%; }
  table.tbl { font-size: 12px; }
  table.tbl th, table.tbl td { padding: 7px 5px; }
  .reserve-title { font-size: 18px; }
  .scroll-big-title { font-size: 19px; }
  .scroll-vview { height: 200px; }
  .scroll-vitem { font-size: 13px; }
  .float-call { font-size: 15px; padding: 12px 16px; }
}