/* ================= 物业租房 · 手机端样式（浅蓝小清新） ================= */
:root {
  --brand: #4a9edc;
  --brand-2: #7cc6ec;
  --brand-dark: #2f7cb2;
  --brand-soft: #eaf5fd;
  --brand-soft-2: #f4fbff;
  --mint: #63c9b8;
  --mint-soft: #e7f8f4;
  --accent: #ffb07a;
  --coral: #f4705f;
  --text: #23323d;
  --muted: #8496a3;
  --line: #e9f1f7;
  --bg: #f3f9fd;
  --card: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(74, 158, 220, .08);
  --shadow-md: 0 10px 26px rgba(60, 130, 190, .10);
  --shadow-lg: 0 18px 40px rgba(50, 110, 170, .13);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: #e8f1f8;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; justify-content: center; }

#listPage, .detail-page {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 44px rgba(40, 90, 140, .10);
}

/* ---------- 顶部滚动广告图 ---------- */
.banner {
  position: relative;
  margin: 12px 12px 0;
  height: 236px;
  border-radius: 22px;
  overflow: hidden;
  background: #cfe6f5;
  box-shadow: var(--shadow-md);
}
.banner-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(22, 52, 78, .42) 0%,
    rgba(22, 52, 78, .04) 38%,
    rgba(18, 44, 68, .74) 100%);
}
.slide-text { position: absolute; left: 18px; right: 34px; bottom: 54px; color: #fff; }
.slide-text h2 {
  margin: 0 0 7px; font-size: 21px; font-weight: 700; line-height: 1.32;
  letter-spacing: .02em; text-shadow: 0 3px 14px rgba(10, 30, 50, .35);
}
.slide-text p { margin: 0; font-size: 12.5px; opacity: .93; }

.banner-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  pointer-events: none;
}
.banner-topbar > * { pointer-events: auto; }
.brand-chip {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .34);
  padding: 6px 13px; border-radius: 999px;
  backdrop-filter: blur(10px);
}
.brand-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #bfe6ff;
  box-shadow: 0 0 0 3px rgba(191, 230, 255, .32);
}
.banner-tel {
  display: inline-flex; align-items: center; gap: 5px;
  color: #2f7cb2; background: rgba(255, 255, 255, .95);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 12px rgba(20, 60, 100, .16);
}
.banner-dots { position: absolute; left: 18px; bottom: 38px; display: flex; gap: 6px; z-index: 3; }
.banner-dots i {
  width: 6px; height: 6px; border-radius: 99px;
  background: rgba(255, 255, 255, .45);
  transition: width .3s ease, background .3s ease;
}
.banner-dots i.on { width: 20px; background: #fff; }

/* ---------- 物业公司介绍 ---------- */
.company {
  position: relative; z-index: 4;
  margin: -30px 16px 0;
  background: var(--card);
  border-radius: 22px;
  padding: 18px 17px 16px;
  box-shadow: var(--shadow-lg);
}
.company-head { display: flex; align-items: center; gap: 11px; }
.company-logo {
  width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand-2), var(--brand) 55%, #3a86c4);
  color: #fff; font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(74, 158, 220, .34);
}
.company-title-wrap { min-width: 0; }
.company-name { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.company-slogan { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.company-badge {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: #3d8bbf;
  background: var(--brand-soft); border: 1px solid #d8ebfa;
  padding: 4px 9px; border-radius: 999px;
}
.company-about {
  margin: 14px 0 0; font-size: 13px; line-height: 1.9; color: #52646f;
  text-align: justify;
}
.company-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 16px 0 0; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.c-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.c-stat-num { font-size: 18px; font-weight: 700; color: #2c6f9e; letter-spacing: .01em; }
.c-stat-num em { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 1px; color: #7f929f; }
.c-stat-label { font-size: 11px; color: var(--muted); }

.company-points { display: flex; flex-direction: column; gap: 11px; margin-top: 15px; }
.c-point { display: flex; gap: 10px; align-items: flex-start; }
.c-point-idx {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; margin-top: 1px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.c-point h4 { margin: 0; font-size: 13px; font-weight: 600; }
.c-point p { margin: 1px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 服务承诺 */
.service-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-top: 14px;
  padding: 12px 4px 4px;
  border-top: 1px dashed var(--line);
}
.service-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11px; color: #5d7280; text-align: center;
}
.service-icon {
  width: 32px; height: 32px; border-radius: 11px;
  background: linear-gradient(150deg, #f2fbff, #e6f4fd);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}

.company-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 15px;
}
.company-addr {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--muted); min-width: 0; flex: 1;
}
.company-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-addr svg { flex-shrink: 0; }
.company-cta {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 600;
  padding: 8px 15px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(74, 158, 220, .3);
}

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px 19px 10px;
}
.section-head h2 {
  margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px; color: #22323d;
}
.section-head h2::before {
  content: ""; width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.section-sub { font-size: 11.5px; color: var(--muted); }

/* ---------- 楼栋卡片 ---------- */
.building-strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 16px 10px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.building-strip::-webkit-scrollbar { display: none; }
.bld-card {
  flex: 0 0 auto; width: 136px; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 13px 11px;
  cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.bld-card:active { transform: scale(.97); }
.bld-card .bld-name {
  display: block; font-size: 16px; font-weight: 700; color: #24343f;
  margin-bottom: 3px; letter-spacing: .02em;
}
.bld-card .bld-meta { display: block; font-size: 11.5px; color: var(--muted); }
.bld-card .bld-desc {
  display: block; margin-top: 7px; font-size: 10.5px; color: #9aabb6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bld-card .bld-tag {
  position: absolute; right: 10px; top: 11px;
  font-size: 10px; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-soft); padding: 2px 7px; border-radius: 999px;
}
.bld-card.active {
  background: linear-gradient(140deg, var(--brand-2), var(--brand) 60%, #3d87c6);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(74, 158, 220, .32);
}
.bld-card.active .bld-name { color: #fff; }
.bld-card.active .bld-meta { color: rgba(255, 255, 255, .88); }
.bld-card.active .bld-desc { color: rgba(255, 255, 255, .72); }
.bld-card.active .bld-tag { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0 18px 4px;
}
.toolbar-current {
  font-size: 12px; color: #5c7280; font-weight: 600;
  background: #fff; border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip {
  border: 1px solid var(--line); background: #fff; color: #5d7280;
  font-size: 12.5px; padding: 7px 14px; border-radius: 999px;
  white-space: nowrap; cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-block;
  transition: .18s;
}
.chip:hover { text-decoration: none; }
.chip.active {
  background: var(--brand-soft); border-color: #bfe0f7; color: var(--brand-dark); font-weight: 600;
}

/* ---------- 房源列表 ---------- */
.list { padding: 10px 16px 26px; }
@keyframes listIn { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.list.swap { animation: listIn .2s ease; }
.group-title {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 3px 10px;
  font-size: 12.5px; color: #7d909d; font-weight: 600; letter-spacing: .04em;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.room-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 13px;
  cursor: pointer;
  transition: transform .16s ease;
  border: 1px solid rgba(74, 158, 220, .06);
}
.room-card:active { transform: scale(.985); }
.room-card.is-rented .rc-img img { filter: saturate(.5) brightness(.97); }

.rc-body { display: flex; gap: 12px; padding: 12px; }
.rc-img {
  width: 106px; height: 92px; flex-shrink: 0;
  border-radius: 13px; overflow: hidden; background: #eef5fa; position: relative;
}
.rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-img .no-img { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 11px; color: #a8b8c3; }
.rc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rc-name { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: .01em; color: #22323d; }
.rc-fav {
  font-size: 10.5px; color: #d9822b; background: #fff4e8;
  padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.rc-specs { margin: 6px 0 0; font-size: 12.5px; color: #5f7482; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rc-specs span { position: relative; }
.rc-price-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 8px; }
.rc-price { color: var(--coral); font-weight: 700; font-size: 18px; }
.rc-price small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.rc-status {
  font-size: 10.5px; padding: 3px 9px; border-radius: 999px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.rc-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-vacant { color: #1c9b86; background: var(--mint-soft); }
.status-rented { color: #8e9ea9; background: #f1f4f6; }

.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 46px 0 60px; line-height: 2; }

/* ---------- 底部 ---------- */
.foot { padding: 6px 18px 34px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.9; }
.foot p { margin: 2px 0; }
.foot-small { color: #a6b5bf; font-size: 11px; }
.foot-admin {
  display: inline-block; margin-top: 10px; color: #9fb0bb; font-size: 11px;
  text-decoration: none; border-bottom: 1px dashed #ccdae2; padding-bottom: 1px;
}

/* ---------- 详情页 ---------- */
.detail-page { background: var(--bg); animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(16px); opacity: .4 } to { transform: none; opacity: 1 } }

.detail-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.back-btn {
  border: none; background: #eef5fa; color: #3d5566;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.topbar-title { font-size: 15px; font-weight: 600; }

.gallery-wrap { position: relative; background: #dfeaf2; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 252px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 252px; object-fit: cover; scroll-snap-align: center; }
.gallery .no-img-big {
  flex: 0 0 100%; display: flex; align-items: center; justify-content: center;
  color: #9dafbb; font-size: 13px; background: #e9f1f7;
}
.gallery-count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(20, 45, 65, .5); color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
}
.gallery-badge {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #1c9b86; color: #fff;
  box-shadow: 0 4px 10px rgba(28, 155, 134, .3);
}
.gallery-badge.rented { background: #7d8d99; box-shadow: none; }

.d-head { background: #fff; padding: 16px 18px 14px; margin-bottom: 10px; }
.d-price-row { display: flex; align-items: baseline; justify-content: space-between; }
.d-price { color: var(--coral); font-size: 26px; font-weight: 700; }
.d-price small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.d-price-note { font-size: 12px; color: var(--muted); }
.d-name { margin: 6px 0 10px; font-size: 17px; font-weight: 700; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.d-tags span {
  font-size: 11px; color: #3d8bbf; background: var(--brand-soft);
  padding: 3px 9px; border-radius: 6px;
}

.d-card { background: #fff; padding: 16px 18px; margin-bottom: 10px; }
.card-title {
  margin: 0 0 12px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.card-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.spec-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.spec-item .k { color: var(--muted); }
.spec-item .v { font-weight: 600; color: #2b3d49; }

.video-box { border-radius: 13px; overflow: hidden; background: #0d1b24; }
.video-box video { width: 100%; display: block; max-height: 260px; }
.video-hint { margin: 8px 0 0; font-size: 11px; color: var(--muted); }

.facility-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facility-list li { font-size: 13px; color: #405563; display: flex; align-items: center; gap: 7px; }
.facility-list li::before {
  content: "✓"; font-size: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.d-desc { margin: 0; font-size: 13.5px; color: #4f6472; line-height: 1.9; }
.d-updated { margin: 10px 0 0; font-size: 11px; color: #a9b8c2; }

.contact-row { display: flex; align-items: center; gap: 11px; }
.contact-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.contact-name { margin: 0; font-size: 14px; font-weight: 600; }
.contact-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.contact-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn {
  flex: 1; text-align: center; padding: 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none; border: none;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 18px rgba(74, 158, 220, .28); }
.btn-ghost { background: #eff6fb; color: #3d5566; }
.detail-spacer { height: 78px; }

.sticky-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; z-index: 40;
}
.sticky-info { display: flex; flex-direction: column; line-height: 1.3; }
.sticky-price { color: var(--coral); font-weight: 700; font-size: 16px; }
.sticky-status { font-size: 11px; color: var(--muted); }
.sticky-call {
  flex: 1; text-align: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; text-decoration: none; padding: 12px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(74, 158, 220, .3);
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px);
  background: rgba(30, 52, 68, .92); color: #fff;
  font-size: 13px; padding: 9px 16px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== PHP 版补充：链接化卡片 ===== */
a.room-card, a.bld-card { color: inherit; text-decoration: none; display: block; }

/* ================= 公司首页：物业项目 ================= */
.company.no-banner { margin-top: 14px; }

.project-list { padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
.project-card {
  display: block; background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-md); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.project-card:active { transform: scale(.985); }
a.project-card:hover { box-shadow: var(--shadow-lg); }
.proj-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eaf2f8; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-cover-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,32,48,.02) 0%, rgba(9,32,48,.18) 42%, rgba(9,32,48,.78) 100%);
}
.proj-cover-text { position: absolute; left: 16px; right: 16px; bottom: 13px; color: #fff; }
.proj-cover-text h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.proj-cover-text p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; opacity: .88; }
.proj-count {
  position: absolute; right: 11px; top: 11px;
  background: rgba(255,255,255,.93); color: var(--brand-dark);
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.proj-body { padding: 12px 14px 13px; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-tags span { font-size: 11px; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 8px; border-radius: 6px; }
.proj-desc { margin: 8px 0 0; font-size: 12.5px; line-height: 1.65; color: #61798a; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.proj-meta { font-size: 11.5px; color: var(--muted); }
.proj-more { font-size: 12.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }

/* ---------- 推荐房源 ---------- */
.featured-list { padding-top: 2px; }
.featured-item { position: relative; }
.featured-item .room-card { margin-bottom: 4px; }
.rc-img { position: relative; }
.rc-badge {
  position: absolute; left: 7px; top: 7px;
  background: linear-gradient(135deg, #ffb648, #f4705f); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(244,112,95,.35);
}
.featured-from { margin: 0 2px 12px; font-size: 11px; color: var(--muted); }

/* ================= 项目二级页 ================= */
.proj-page { background: var(--bg); min-height: 100vh; padding-bottom: 20px; }
.proj-hero {
  position: relative; margin: 0 12px; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16 / 10; background: #eaf2f8;
}
.proj-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,32,48,.06) 0%, rgba(9,32,48,.22) 45%, rgba(9,32,48,.82) 100%); }
.proj-hero-text { position: absolute; left: 16px; right: 16px; bottom: 15px; color: #fff; }
.proj-hero-text h1 { margin: 0; font-size: 22px; font-weight: 700; }
.proj-hero-text p { display: flex; align-items: flex-start; gap: 5px; margin: 6px 0 0; font-size: 12px; line-height: 1.5; opacity: .92; }
.proj-hero-text p svg { flex-shrink: 0; margin-top: 2px; }

.proj-intro {
  position: relative; z-index: 2; margin: -18px 12px 0;
  background: var(--card); border-radius: 18px; padding: 16px 16px 14px;
  box-shadow: var(--shadow-md);
}
.proj-intro .proj-tags { margin-bottom: 10px; }
.proj-intro .card-title { margin: 0 0 2px; }
.proj-para { margin: 8px 0 0; font-size: 13px; line-height: 1.8; color: #4d6472; }
.proj-stats { display: flex; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.proj-stats .c-stat { flex: 1; }
.proj-actions { margin-top: 14px; }
.proj-actions .btn { width: 100%; }

.d-proj {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-soft); padding: 4px 10px; border-radius: 999px;
  text-decoration: none; margin-bottom: 9px;
}
