/* ================================================================
   米卡找房 · Mika House · 官网样式表 v3
   Primary: #7013aa  Secondary: #9333ea
   ================================================================ */

/* ---- Reset ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  background:#fff;color:#111827;line-height:1.6;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
img{display:block;max-width:100%;object-fit:cover}
a{color:inherit;text-decoration:none}
button,input,select{font-family:inherit;font-size:inherit}
button{cursor:pointer;border:none;background:none;padding:0}
ul{list-style:none}

/* ---- Design Tokens ---- */
:root{
  --brand:#7013aa;
  --brand2:#9333ea;
  --brand-dark:#5b0d8f;
  --brand-bg:#f5f0ff;
  --brand-mid:#e9d5ff;
  --white:#fff;
  --bg:#f7f7f7;
  --bg-card:#fff;
  --border:#e5e7eb;
  --border-light:#f3f4f6;
  --text:#111827;
  --text-sub:#374151;
  --text-muted:#6b7280;
  --text-light:#9ca3af;
  --shadow-sm:0 1px 4px rgba(0,0,0,.06);
  --shadow:0 2px 12px rgba(0,0,0,.08);
  --shadow-md:0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:0 20px 60px rgba(0,0,0,.14);
  --radius:12px;
  --radius-sm:8px;
  --radius-lg:16px;
  --radius-xl:20px;
  --max-w:88%;
  --header-h:60px;
  --subnav-h:44px;
  --transition:.18s ease;
}

/* ================================================================
   HEADER — Two-tier
   ================================================================ */
.site-header{
  position:sticky;top:0;z-index:200;
  height:var(--header-h);
  background:#fff;
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;
  padding:0 max(calc((100vw - var(--max-w)) / 2), 16px);
  gap:0;transition:box-shadow var(--transition);
}
.site-header.scrolled{box-shadow:0 2px 12px rgba(0,0,0,.08)}

.header-left{display:flex;align-items:center;gap:12px;margin-right:32px;flex-shrink:0}
.brand{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:800;color:var(--text)}
.brand-mark{
  width:32px;height:32px;border-radius:8px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:900;flex-shrink:0;
}
.brand-name{color:var(--brand)}
.city-switcher{position:relative}
.city-btn{
  display:flex;align-items:center;gap:4px;
  font-size:13px;font-weight:600;color:var(--text-sub);
  padding:5px 10px;border-radius:var(--radius-sm);
  border:none;background:none;cursor:pointer;
  transition:color var(--transition);
}
.city-btn:hover{color:var(--brand)}
.city-btn svg{width:12px;height:12px;flex-shrink:0;opacity:.7}
.city-dropdown{
  position:absolute;top:100%;left:0;
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 8px 32px rgba(0,0,0,.1);
  padding:8px 24px 20px;min-width:360px;
  display:none;z-index:300;
}
.city-switcher:hover .city-dropdown{display:block}
.city-dropdown-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:4px 0;
}
.city-dropdown-item{
  font-size:14px;color:var(--text);
  padding:10px 12px;border-radius:var(--radius-sm);
  text-decoration:none;display:block;
  transition:color var(--transition),background var(--transition);
}
.city-dropdown-item:hover{color:var(--brand);background:var(--brand-bg)}
.city-dropdown-item.active{color:var(--brand);font-weight:600}

.site-nav{display:flex;align-items:center;gap:2px;flex:1}
.site-nav a{
  padding:6px 16px;border-radius:var(--radius-sm);
  font-size:14px;font-weight:600;color:var(--text-sub);
  transition:all var(--transition);white-space:nowrap;
}
.site-nav a:hover,.site-nav a[data-active]{color:var(--brand);background:var(--brand-bg)}

.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}
.icon-btn{
  width:34px;height:34px;border-radius:50%;
  border:1.5px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;color:var(--text-muted);cursor:pointer;
  transition:all var(--transition);
}
.icon-btn:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-bg)}
.login-btn{
  padding:8px 22px;border-radius:var(--radius);
  background:var(--brand);color:#fff;
  font-size:14px;font-weight:700;
  transition:all var(--transition);
}
.login-btn:hover{background:var(--brand-dark)}

.hamburger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  padding:4px;width:36px;height:36px;margin-left:12px;
}
.hamburger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:all .28s;transform-origin:center}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Sub nav */
.sub-nav{
  position:sticky;top:var(--header-h);z-index:190;
  background:#fff;border-bottom:1px solid var(--border);
  height:var(--subnav-h);
  display:flex;align-items:stretch;
  padding:0 max(calc((100vw - var(--max-w)) / 2), 16px);
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.sub-nav::-webkit-scrollbar{display:none}
.sub-nav a{
  padding:0 16px;height:100%;display:flex;align-items:center;
  font-size:13px;font-weight:600;color:var(--text-muted);
  white-space:nowrap;border-bottom:2px solid transparent;
  transition:all var(--transition);
}
.sub-nav a:hover,.sub-nav a.active{color:var(--brand);border-bottom-color:var(--brand)}

/* Mobile nav drawer */
.mobile-nav{display:none}
.mobile-nav a{
  padding:14px 16px;font-size:15px;font-weight:600;
  border-radius:var(--radius-sm);color:var(--text);
  transition:all var(--transition);
}
.mobile-nav a:hover{background:var(--brand-bg);color:var(--brand)}
.mobile-nav .login-btn{margin-top:10px;text-align:center;display:block;border-radius:var(--radius-sm);padding:14px;color:#fff}
.mobile-nav .login-btn:hover{color:#fff;background:var(--brand-dark)}
.mobile-nav a[href="/agents"],.mobile-nav a[href="/news"]{display:none}

/* ================================================================
   HERO  — 背景全宽，内容跟 section 对齐
   ================================================================ */
.hero{
  background:var(--bg);
  padding:130px 0 152px;
  text-align:left;
}
/* 内容容器与 .section 宽度一致 */
.hero-inner{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 clamp(16px,2vw,32px);
}
.hero h1{
  font-size:clamp(28px,4.5vw,52px);font-weight:900;
  color:var(--text);margin-bottom:32px;line-height:1.15;letter-spacing:-.02em;
}
.hero-search{
  display:flex;align-items:center;position:relative;
  background:#fff;border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  padding:10px 10px 10px 28px;
  margin:0 0 20px;
  transition:border-color var(--transition);
}
.hero-search:focus-within{border-color:var(--brand)}
.hero-search>input[name="q"]{
  flex:1;border:none;outline:none;background:transparent;
  font-size:18px;color:var(--text);min-width:0;padding:6px 0;
}
.hero-search>input[name="q"]::placeholder{color:var(--text-light)}
.search-divider{width:1px;height:28px;background:var(--border);flex-shrink:0;margin:0 8px}
/* 自定义类型选择器 */
.search-type-wrap{position:relative;flex-shrink:0}
.search-type-btn{
  display:flex;align-items:center;gap:6px;
  border:none;background:transparent;cursor:pointer;
  font-size:15px;font-weight:600;color:var(--text-sub);
  padding:6px 14px;height:52px;white-space:nowrap;
}
.search-type-btn:hover{color:var(--text)}
.search-type-chevron{transition:transform var(--transition);color:var(--text-muted)}
.search-type-wrap.open .search-type-chevron{transform:rotate(180deg)}
.search-type-dropdown{
  display:none;position:absolute;top:calc(100% + 8px);right:0;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-sm);
  box-shadow:0 8px 24px rgba(0,0,0,.1);min-width:130px;
  list-style:none;padding:6px 0;z-index:10001;
}
.search-type-wrap.open .search-type-dropdown{display:block}
.search-type-dropdown li{
  padding:12px 28px;font-size:15px;font-weight:500;color:var(--text);
  cursor:pointer;white-space:nowrap;
}
.search-type-dropdown li:hover{background:var(--brand-bg);color:var(--brand)}
.search-type-dropdown li.active{color:var(--brand);font-weight:700}
/* 搜索按钮 — 无上下右padding，贴合容器边缘；左上左下无圆角，右上右下保留 */
.hero-search-btn{
  flex-shrink:0;align-self:stretch;
  padding:0 56px;border:none;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  margin:-10px -10px -10px 0;
  background:var(--brand);color:#fff;font-size:16px;font-weight:700;
  transition:background var(--transition);cursor:pointer;
}
.hero-search-btn:hover{background:var(--brand-dark)}
/* 搜索建议下拉 */
.hero-suggest{
  position:absolute;top:calc(100% + 6px);left:0;right:0;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-sm);
  box-shadow:0 8px 32px rgba(0,0,0,.1);z-index:9999;
  max-height:340px;overflow-y:auto;
}
.hero-suggest-item{
  display:flex;align-items:center;gap:12px;
  padding:14px 20px;cursor:pointer;border-bottom:1px solid var(--border);
  transition:background var(--transition);text-decoration:none;color:inherit;
}
.hero-suggest-item:last-child{border-bottom:none}
.hero-suggest-item:hover{background:var(--brand-bg)}
.suggest-icon{width:16px;height:16px;flex-shrink:0;color:var(--text-muted)}
.suggest-body{flex:1;min-width:0}
.suggest-title{font-size:14px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggest-title mark{background:none;color:var(--brand);font-weight:800}
.suggest-meta{font-size:12px;color:var(--text-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggest-badge{flex-shrink:0;font-size:11px;font-weight:700;padding:3px 8px;border-radius:4px;background:var(--brand-bg);color:var(--brand)}

/* 小区快捷入口 — 垂直中心悬浮于 hero 底部边界 */
.hero-ql-wrap{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 clamp(16px,2vw,32px);
  transform:translateY(-50%);
  position:relative;
  z-index:2;
}
.hero-quicklinks{
  display:grid;grid-template-columns:repeat(3,1fr);
  border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;background:var(--border);gap:1px;
  box-shadow:0 4px 20px rgba(0,0,0,.08);
}
.hero-ql{
  background:#fff;padding:24px 28px;
  display:flex;flex-direction:column;gap:6px;justify-content:center;
  min-height:130px;
  transition:background var(--transition);cursor:pointer;text-align:left;
}
.hero-ql:hover{background:var(--brand-bg)}
.hero-ql strong{font-size:25px;font-weight:700;color:var(--text);line-height:1.3}
.hero-ql .ql-count{font-size:14px;font-weight:500;color:var(--text-muted);margin-left:6px}
.hero-ql span{font-size:13px;color:var(--text-muted)}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.section{max-width:var(--max-w);margin:0 auto;padding:40px clamp(16px,2vw,32px)}
/* 紧跟 hero-ql-wrap 的第一个 section 补偿上移偏移 */
.hero-ql-wrap + .section{padding-top:0;margin-top:-68px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.section-title{font-size:38px;font-weight:800;color:var(--text)}
.section-head .section-title{margin-bottom:0}
.section-head a{font-size:13px;font-weight:600;color:var(--brand);white-space:nowrap;transition:color var(--transition)}
.section-head a:hover{color:var(--brand-dark)}
.section-empty{min-height:240px;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:15px;gap:4px}
.section-empty a{color:var(--brand);text-decoration:underline}

/* ================================================================
   COMMUNITIES LIST
   ================================================================ */
.communities-page{max-width:var(--max-w);margin:0 auto;padding:34px clamp(16px,2vw,32px) 64px}
.communities-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
.communities-head h1{font-size:34px;font-weight:900;line-height:1.15;color:var(--text)}
.communities-search{display:flex;align-items:center;min-width:min(520px,100%);height:48px;border:1.5px solid var(--border);border-radius:var(--radius);background:#fff;overflow:hidden;transition:border-color var(--transition),box-shadow var(--transition)}
.communities-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(112,19,170,.1)}
.communities-search-icon{display:flex;align-items:center;justify-content:center;width:46px;color:var(--text-muted);flex-shrink:0}
.communities-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:14px}
.communities-search input::placeholder{color:var(--text-light)}
.communities-search button{height:100%;padding:0 22px;background:var(--brand);color:#fff;font-size:14px;font-weight:800;transition:background var(--transition)}
.communities-search button:hover{background:var(--brand-dark)}
.communities-clear{font-size:12px;color:var(--text-muted);padding:4px 8px;margin-right:4px;border-radius:6px;white-space:nowrap}
.communities-clear:hover{color:var(--brand);background:var(--brand-bg)}
.communities-filter-panel{border:1px solid var(--border);border-radius:var(--radius);background:#fff;margin-bottom:16px;overflow:hidden}
.communities-filter-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px 14px;border-bottom:1px solid var(--border-light)}
.communities-filter-row:last-child{border-bottom:0}
.communities-filter-label{font-size:13px;font-weight:800;color:var(--text);line-height:30px}
.communities-filter-chips{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.communities-filter-chip{display:inline-flex;align-items:center;min-height:30px;padding:5px 11px;border:1px solid var(--border);border-radius:7px;font-size:13px;font-weight:650;color:var(--text-sub);background:#fff;transition:color var(--transition),background var(--transition),border-color var(--transition)}
.communities-filter-chip:hover{color:var(--brand);border-color:var(--brand-mid);background:var(--brand-bg)}
.communities-filter-chip.active{color:#fff;background:var(--brand);border-color:var(--brand)}
.communities-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;color:var(--text-muted);font-size:14px}
.communities-toolbar>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.communities-toolbar strong{color:var(--brand);font-size:18px;margin:0 4px}
.communities-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.community-list-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:border-color var(--transition),box-shadow var(--transition),transform var(--transition)}
.community-list-card:hover{border-color:var(--brand-mid);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.community-list-main{display:block;padding:18px 18px 14px;min-width:0}
.community-list-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.community-list-top h2{font-size:18px;font-weight:850;line-height:1.35;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.community-list-top span{flex-shrink:0;font-size:12px;font-weight:800;color:var(--brand);background:var(--brand-bg);padding:3px 8px;border-radius:6px}
.community-list-location{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.community-list-location span{font-size:12px;color:var(--text-sub);background:var(--bg);padding:3px 8px;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-list-address{font-size:13px;color:var(--text-muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.community-list-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border-light);border-top:1px solid var(--border-light);margin-top:auto}
.community-list-meta div{background:#fff;padding:11px 14px;min-width:0}
.community-list-meta .community-meta-wide{grid-column:1/-1}
.community-list-meta dt{font-size:11px;color:var(--text-light);font-weight:700;margin-bottom:2px}
.community-list-meta dd{font-size:13px;color:var(--text);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.communities-empty{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-muted);border:1px solid var(--border);border-radius:var(--radius);background:#fff}
.communities-empty h2{font-size:18px;color:var(--text);font-weight:800}
.communities-empty a{font-size:14px;color:var(--brand);font-weight:700}
.communities-pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:22px;flex-wrap:wrap}
.communities-pagination a,.communities-pagination span{min-width:36px;height:36px;padding:0 12px;border:1px solid var(--border);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;background:#fff;color:var(--text-sub)}
.communities-pagination a:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-bg)}
.communities-pagination .active{border-color:var(--brand);background:var(--brand);color:#fff}
.communities-pagination .disabled{color:var(--text-light);background:var(--bg);cursor:not-allowed}
.communities-pagination .ellipsis{border-color:transparent;background:transparent;color:var(--text-muted);min-width:22px;padding:0 2px}

.eyebrow{
  display:inline-block;font-size:11px;font-weight:800;letter-spacing:.6px;
  text-transform:uppercase;color:var(--brand);
  background:var(--brand-bg);padding:3px 10px;border-radius:4px;margin-bottom:10px;
}

/* ================================================================
   PROPERTY CARD  (reusable component)
   ================================================================ */
.property-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

.property-card{
  background:#fff;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--border);
  width:100%;min-width:0;
  display:flex;flex-direction:column;
  transition:box-shadow var(--transition),transform var(--transition);
}
.property-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:transparent}

/* 轮播图 */
.card-img{
  position:relative;overflow:hidden;
  width:100%;min-width:0;
  aspect-ratio:4/3;background:var(--border-light);flex-shrink:0;
  cursor:grab;user-select:none;
}
.card-img.dragging{cursor:grabbing}
.card-carousel-track{
  display:flex;width:100%;min-width:0;height:100%;
  transition:transform .3s ease;
  will-change:transform;
}
.card-carousel-track img{
  width:100%;min-width:100%;height:100%;flex:0 0 100%;object-fit:cover;
  pointer-events:none;
}
/* 左右箭头 */
.card-arrow-btn{
  position:absolute;top:50%;transform:translateY(-50%);
  width:32px;height:32px;border-radius:50%;border:none;
  background:rgba(255,255,255,.85);color:var(--text);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;transition:opacity var(--transition);
  backdrop-filter:blur(4px);z-index:2;
}
.card-arrow-prev{left:10px}
.card-arrow-next{right:10px}
.property-card:hover .card-arrow-btn{opacity:1}
.card-arrow-btn:hover{background:#fff}
/* 图片底部：数量+圆点 */
.card-img-bottom{
  position:absolute;bottom:0;left:0;right:0;
  display:flex;align-items:flex-end;justify-content:space-between;
  padding:8px 10px;
  background:linear-gradient(to top,rgba(0,0,0,.35) 0%,transparent 100%);
  pointer-events:none;
}
.card-img-count{
  display:flex;align-items:center;gap:4px;
  background:rgba(0,0,0,.45);color:#fff;
  font-size:11px;font-weight:600;
  padding:3px 7px;border-radius:4px;
}
.card-dots{display:flex;gap:4px;margin:0 auto}
.card-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55)}
.card-dot.active{background:#fff;width:16px;border-radius:3px}

/* 卡片内容 */
.card-body{
  padding:12px 14px 14px;flex:1;
  display:flex;flex-direction:column;gap:0;
}
.card-body h3{
  font-size:15px;font-weight:700;color:var(--text);
  margin-bottom:5px;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card-body h3 a:hover{color:var(--brand)}
.card-location{
  font-size:11px;color:var(--text-muted);margin-bottom:8px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.card-price-row{margin-bottom:8px}
.card-price{font-size:18px;font-weight:800;color:var(--text)}
.card-divider{border:none;border-top:1px solid var(--border-light);margin:8px 0}
.card-specs{
  display:flex;align-items:center;gap:14px;
  font-size:12px;color:var(--text-muted);margin-bottom:10px;
  flex-wrap:wrap;
}
.card-spec{display:flex;align-items:center;gap:4px}
.card-spec svg{flex-shrink:0;opacity:.65}
.card-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.card-tag{
  font-size:11px;font-weight:600;padding:3px 9px;
  border-radius:4px;
}
.card-tag-type{background:var(--brand-bg);color:var(--brand)}
.card-tag-year{background:var(--bg);color:var(--text-sub);border:1px solid var(--border)}
.card-footer{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:auto;padding-top:8px;
  border-top:1px solid var(--border-light);
  gap:8px;
}
.card-date{font-size:11px;color:var(--text-muted)}
.card-agent{
  display:flex;align-items:center;gap:5px;
  font-size:11px;font-weight:600;color:var(--text-sub);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  min-width:0;
}
.card-agent-avatar{
  width:20px;height:20px;border-radius:50%;object-fit:cover;
  flex-shrink:0;background:var(--border-light);
}

/* ================================================================
   NEWS — List style (homepage)
   ================================================================ */
.news-list{display:flex;flex-direction:column}
.news-list-item{
  padding:15px 0;border-bottom:1px solid var(--border-light);
  cursor:pointer;transition:all var(--transition);
}
.news-list-item:first-child{border-top:1px solid var(--border-light)}
.news-list-item:hover .news-list-title{color:var(--brand)}
.news-list-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.news-list-date{font-size:11px;color:var(--text-light);white-space:nowrap;flex-shrink:0}
.news-list-title{
  font-size:15px;font-weight:700;color:var(--text);
  line-height:1.4;margin-bottom:5px;transition:color var(--transition);
}
.news-list-excerpt{
  font-size:13px;color:var(--text-muted);line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* NEWS text list (news page) */
.news-grid{
  display:flex;flex-direction:column;gap:0;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;
}
.news-card{
  background:#fff;border-bottom:1px solid var(--border-light);
  transition:background-color var(--transition);
}
.news-card:last-child{border-bottom:0}
.news-card:hover{background:#fafafa}
.news-card-link{display:block;padding:22px 24px}
.news-card-meta{display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.news-card-category{
  display:inline-flex;align-items:center;min-height:22px;
  padding:0 8px;border-radius:4px;background:var(--brand-bg);
  font-size:12px;font-weight:700;color:var(--brand);line-height:1;
}
.news-card h3{
  font-size:18px;font-weight:800;line-height:1.45;color:var(--text);
  margin:0;transition:color var(--transition);
}
.news-card:hover h3{color:var(--brand)}
.news-card p{
  margin-top:8px;font-size:14px;color:var(--text-muted);line-height:1.75;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.news-date{font-size:12px;color:var(--text-light);line-height:1.4}

/* ================================================================
   HOME: News + CTA sidebar layout
   ================================================================ */
.news-cta-layout{
  display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:stretch;
}
.cta-cards{display:flex;flex-direction:column;gap:12px;height:100%}
.cta-card{
  background:#fff;border-radius:var(--radius);border:1px solid var(--border);
  padding:24px 20px;display:flex;align-items:center;gap:14px;flex:1;
  transition:all var(--transition);cursor:pointer;
}
.cta-card:hover{border-color:var(--brand);box-shadow:var(--shadow)}
.cta-card-icon{
  width:48px;height:48px;border-radius:50%;flex-shrink:0;
  background:var(--brand-bg);color:var(--brand);
  display:flex;align-items:center;justify-content:center;
}
.cta-card-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.cta-card-body{flex:1}
.cta-card-body strong{font-size:13px;font-weight:700;color:var(--text);display:block;line-height:1.4}
.cta-card-arrow{font-size:18px;color:var(--brand);flex-shrink:0}

/* ================================================================
   CITY CTA SECTION
   ================================================================ */
.city-cta-section{background:var(--bg);padding:48px max(calc((100vw - var(--max-w)) / 2), 16px)}
.city-cta-inner{max-width:var(--max-w);margin:0 auto}
.city-cta-inner h2{font-size:clamp(18px,2.5vw,24px);font-weight:800;margin-bottom:18px}
.city-tabs{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.city-tab{
  padding:6px 16px;border-radius:var(--radius-sm);
  border:1.5px solid var(--border);background:#fff;
  font-size:13px;font-weight:600;color:var(--text-muted);
  cursor:pointer;transition:all var(--transition);
}
.city-tab:hover,.city-tab.active{border-color:var(--brand);color:var(--brand);background:var(--brand-bg)}
.area-ql-grid{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;
}
.area-ql-item{
  background:#fff;border-radius:var(--radius-sm);padding:10px 12px;
  border:1px solid var(--border);cursor:pointer;
  transition:all var(--transition);
}
.area-ql-item:hover{border-color:var(--brand);background:var(--brand-bg)}
.area-ql-item strong{display:block;font-size:12px;font-weight:700;color:var(--text);margin-bottom:2px;line-height:1.3}
.area-ql-item span{font-size:11px;color:var(--text-muted)}

/* ================================================================
   AGENT CARDS
   ================================================================ */
.agent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.agent-grid.large{grid-template-columns:repeat(4,minmax(0,1fr))}
.agent-card{
  background:#fff;border-radius:var(--radius);padding:20px;
  border:1px solid var(--border);
  text-align:center;transition:all var(--transition);
  display:flex;flex-direction:column;align-items:center;gap:6px;
}
.agent-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.agent-card img{width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--border-light);border:3px solid var(--brand-bg);margin-bottom:4px}
.agent-card h3{font-size:14px;font-weight:700}
.agent-card p{font-size:13px;color:var(--text-muted)}
.agent-card>span{font-size:12px;color:var(--text-muted)}
.agent-btn{
  margin-top:8px;padding:8px 20px;border-radius:var(--radius-sm);
  border:1.5px solid var(--brand);color:var(--brand);
  font-size:13px;font-weight:700;
  transition:all var(--transition);
}
.agent-btn:hover{background:var(--brand);color:#fff}

/* ================================================================
   FILTERS (property listing page)
   ================================================================ */
.filter-tabs{
  background:#fff;border-bottom:1px solid var(--border);
  position:sticky;top:calc(var(--header-h) + var(--subnav-h));z-index:100;
  padding:0 max(calc((100vw - var(--max-w)) / 2), 16px);
  display:flex;gap:0;overflow-x:auto;scrollbar-width:none;
}
.filter-tabs::-webkit-scrollbar{display:none}
.filter-tabs a{
  padding:13px 18px;font-size:14px;font-weight:600;
  color:var(--text-muted);border-bottom:2px solid transparent;
  white-space:nowrap;transition:all var(--transition);
}
.filter-tabs a:hover,.filter-tabs a.active,.filter-tabs a[data-active]{color:var(--brand);border-bottom-color:var(--brand)}
.filter-row{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  padding:12px max(calc((100vw - var(--max-w)) / 2), 16px);background:#fff;
  border-bottom:1px solid var(--border);
}
.filter-select{
  padding:7px 28px 7px 12px;border:1.5px solid var(--border);border-radius:var(--radius-sm);
  font-size:13px;color:var(--text);background:#fff;cursor:pointer;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 8px center;
  transition:border-color var(--transition);
}
.filter-select:focus{outline:none;border-color:var(--brand)}
.result-count{margin-left:auto;font-size:13px;color:var(--text-muted)}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero{
  background:linear-gradient(135deg,#4c0a82 0%,var(--brand) 100%);
  color:#fff;padding:52px max(calc((100vw - var(--max-w)) / 2), 16px);
  text-align:center;position:relative;overflow:hidden;
}
.page-hero.compact{padding:40px max(calc((100vw - var(--max-w)) / 2), 16px)}
.page-hero::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at 70% 120%,rgba(147,51,234,.4),transparent 55%);
}
.page-hero>*{position:relative;z-index:1}
.page-hero h1{font-size:clamp(22px,4vw,38px);font-weight:900;margin-bottom:8px}
.page-hero p{font-size:15px;opacity:.88;max-width:580px;margin:0 auto 20px;line-height:1.7}
.page-hero .eyebrow{background:rgba(255,255,255,.2);color:#fff;border:1px solid rgba(255,255,255,.25)}
.page-hero .search-bar{margin:0 auto}

/* Search bar (inner page hero version) */
.search-bar{
  display:flex;gap:8px;align-items:center;
  background:rgba(255,255,255,.15);border:1.5px solid rgba(255,255,255,.3);
  border-radius:var(--radius-sm);padding:5px 5px 5px 18px;
  max-width:520px;transition:border-color var(--transition);
}
.search-bar:focus-within{border-color:rgba(255,255,255,.7)}
.search-bar input{
  flex:1;border:none;outline:none;background:transparent;
  font-size:14px;color:#fff;min-width:0;
}
.search-bar input::placeholder{color:rgba(255,255,255,.6)}
.search-bar button{
  flex-shrink:0;padding:9px 22px;border:none;border-radius:var(--radius-sm);
  background:#fff;color:var(--brand);font-size:13px;font-weight:700;
  transition:background var(--transition);
}
.search-bar button:hover{background:var(--brand-bg)}

/* ================================================================
   PROPERTY DETAIL PAGE
   ================================================================ */
.detail-page{max-width:var(--max-w);margin:0 auto;padding:24px 0 54px}
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted);margin-bottom:22px;flex-wrap:wrap}
.breadcrumb a:hover{color:var(--brand)}
.breadcrumb span{color:var(--text-light)}
.detail-breadcrumb{display:none}
.pd-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 30px}
.pd-head h1{font-size:26px;font-weight:900;line-height:1.18;color:var(--text);margin:0 0 18px}
.pd-address{font-size:14px;font-weight:700;color:var(--text-muted);margin-bottom:18px}
.detail-price{display:block;font-size:33px;font-weight:900;color:var(--text);line-height:1.05}
.pd-head-actions,.pd-side-actions,.pd-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0}
.pd-action-btn{height:40px;min-width:120px;border:1.5px solid var(--border);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 18px;font-size:13px;font-weight:700;color:var(--text-sub);background:#fff;transition:all var(--transition);cursor:pointer}
.pd-action-btn:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-bg)}
.pd-share-wrap{position:relative;display:inline-flex}
.pd-share-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:180px;padding:8px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 18px 42px rgba(15,23,42,.14);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease}
.pd-share-wrap:hover .pd-share-menu,.pd-share-wrap:focus-within .pd-share-menu,.pd-share-wrap.is-open .pd-share-menu{opacity:1;visibility:visible;transform:translateY(0)}
.pd-share-menu:before{content:"";position:absolute;top:-8px;right:24px;width:14px;height:14px;border-left:1px solid var(--border);border-top:1px solid var(--border);background:#fff;transform:rotate(45deg)}
.pd-share-menu button{position:relative;width:100%;height:36px;border:0;border-radius:6px;background:#fff;color:var(--text-sub);font-size:13px;font-weight:800;text-align:left;padding:0 12px;cursor:pointer}
.pd-share-menu button:hover{background:var(--brand-bg);color:var(--brand)}
.pd-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:204px 204px;gap:8px;margin-bottom:36px}
.pd-gallery-item{position:relative;overflow:hidden;background:var(--border-light);min-height:0}
.pd-gallery-item.is-main{grid-row:span 2;border-radius:var(--radius) 0 0 var(--radius)}
.pd-gallery-item:nth-child(3){border-radius:0 var(--radius) 0 0}
.pd-gallery-item:nth-child(5){border-radius:0 0 var(--radius) 0}
.pd-gallery-item img,.pd-gallery-item video{width:100%;height:100%;object-fit:cover;display:block}
.pd-gallery-item img{transition:transform .35s ease}
.pd-gallery-item:hover img{transform:scale(1.035)}
.pd-gallery-video{background:#111827}
.pd-gallery-video:hover img{transform:none}
.pd-gallery-more{position:absolute;right:16px;bottom:16px;background:#fff;color:var(--text);border-radius:8px;padding:10px 18px;font-size:14px;font-weight:800;box-shadow:var(--shadow)}
.pd-gallery-shell{position:relative}
.pd-gallery-nav{display:none}
.pd-tabs-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px}
.pd-tabs{display:flex;gap:16px;width:min(624px,100%)}
.pd-tabs a{flex:0 0 calc(50% - 8px);height:104px;border-radius:8px;background:rgba(17,24,39,.62);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;background-size:cover;background-position:center}
.pd-tabs a:nth-child(2){background:#eef2f7;color:var(--brand)}
.pd-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:8px;background:#fff;margin-bottom:24px;overflow:hidden}
.pd-facts div{display:flex;align-items:center;justify-content:center;gap:14px;min-height:78px;border-right:1px solid var(--border);min-width:0;padding:10px 12px}
.pd-facts div:nth-child(4n){border-right:none}
.pd-facts div:nth-child(n+5){border-top:1px solid var(--border)}
.pd-facts strong{font-size:14px;color:var(--text-sub);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-fact-icon{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:var(--border-light);color:var(--text-muted);font-size:11px;font-weight:900}
.pd-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:36px;align-items:start}
.pd-main{min-width:0}
.pd-sidebar{position:sticky;top:calc(var(--header-h) + 20px);align-self:start}
.pd-agent-card{max-height:calc(100vh - var(--header-h) - 40px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:8px;background:#fff;padding:24px;box-shadow:0 12px 32px rgba(17,24,39,.06)}
.pd-agent-head{display:flex;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--border-light);margin-bottom:16px;color:inherit}
.pd-agent-head img{width:64px;height:64px;border-radius:50%;object-fit:cover;background:var(--brand-bg);border:2px solid var(--brand-mid)}
.pd-agent-head h3{font-size:18px;font-weight:900;color:var(--text);margin-bottom:2px}
.pd-agent-head p,.pd-agent-copy{font-size:13px;color:var(--text-muted)}
.pd-agent-phone{font-size:14px;font-weight:800;color:var(--text);margin-bottom:8px}
.pd-agent-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 20px;padding-bottom:18px;border-bottom:1px solid var(--border-light)}
.pd-agent-actions .primary-btn,.pd-agent-actions .secondary-btn{margin:0;padding:11px 10px;border-radius:999px}
.pd-agent-actions .secondary-btn{border-width:1.5px}
.pd-lead-form{display:flex;flex-direction:column;gap:12px}
.pd-lead-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:var(--text-sub)}
.pd-lead-form input,.pd-lead-form select,.pd-lead-form textarea{width:100%;border:1.5px solid var(--border);border-radius:12px;padding:11px 13px;font-size:13px;color:var(--text);outline:none;background:#fff;transition:border-color var(--transition),box-shadow var(--transition)}
.pd-lead-form input:focus,.pd-lead-form select:focus,.pd-lead-form textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(112,19,170,.08)}
.pd-lead-form textarea{min-height:96px;resize:vertical}
.pd-form-status{min-height:18px;font-size:12px;color:var(--text-muted)}
.pd-form-status.success{color:#12833d}
.pd-form-status.error{color:#b91c1c}
.pd-section{margin-bottom:22px;border-radius:8px;padding:26px 28px}
.pd-section h2{font-size:26px;border-bottom:none;margin-bottom:18px;padding-bottom:0}
.pd-section p{font-size:15px;color:var(--text-sub);line-height:1.95}
.pd-feature-tags{display:flex;flex-wrap:wrap;gap:10px}
.pd-feature-tags span{padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:#fafafa;font-size:13px;font-weight:700;color:var(--text-sub)}
.pd-facility-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pd-facility-item{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid var(--border-light);border-radius:8px;background:linear-gradient(180deg,#fff,#fafafa)}
.pd-facility-icon{width:38px;height:38px;flex:0 0 38px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:var(--brand-bg);color:var(--brand)}
.pd-facility-icon svg{width:22px;height:22px}
.pd-facility-item strong{font-size:14px;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-raw-fields h2{margin-bottom:20px}
.pd-field-group{margin-top:18px}
.pd-field-group:first-of-type{margin-top:0}
.pd-field-group h3{font-size:15px;font-weight:900;color:var(--text);margin:0 0 10px}
.pd-raw-fields .pd-field-group dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:0}
.pd-raw-fields .pd-field-group dl>div{min-width:0}
.pd-raw-fields .pd-field-group dl>div.is-empty{opacity:.62}
.pd-raw-fields dt{display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:1.35;letter-spacing:0;text-transform:none}
.pd-raw-fields code{font-size:11px;font-weight:700;color:var(--text-light);background:#fff;border:1px solid var(--border-light);border-radius:4px;padding:1px 5px}
.pd-raw-fields dd{min-width:0}
.pd-raw-fields pre{margin:0;white-space:pre-wrap;word-break:break-word;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--text);max-height:260px;overflow:auto}
.pd-empty-value{font-size:12px;color:var(--text-light);font-weight:700}
.pd-map{height:400px;border-radius:8px;overflow:hidden;background-color:var(--border-light);background-position:center;background-size:cover;border:1px solid var(--border);position:relative}
.pd-map iframe{width:100%;height:100%;border:0;display:block}
.pd-map-loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:6px;background:rgba(255,255,255,.92);color:var(--text-muted);font-size:13px;font-weight:800;box-shadow:0 8px 24px rgba(17,24,39,.12)}
.pd-map.is-loaded .pd-map-loading{display:none}
.pd-nearby{margin-top:18px}
.pd-nearby .community-tabs{margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--border-light);overflow-x:auto}
.community-nearby-list{display:flex;flex-direction:column;border-top:1px solid var(--border-light)}
.pd-nearby-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 12px;align-items:start;min-height:0;padding:14px 0;border:0;border-bottom:1px solid var(--border-light);border-radius:0;background:#fff;cursor:pointer;transition:background-color .18s ease}
.pd-nearby-item:hover,.pd-nearby-item.is-active{background:#faf5ff}
.pd-nearby-item span{grid-row:1 / span 2;margin:1px 0 0}
.pd-nearby-item strong{min-width:0}
.pd-nearby-item em{grid-column:3;grid-row:1 / span 2;margin-top:2px;white-space:nowrap;color:var(--text);font-weight:800}
.pd-nearby-item p{grid-column:2;margin:0;color:var(--text-light)}
.pd-action-btn.is-collected,.pd-collect-btn.is-collected{background:var(--brand);border-color:var(--brand);color:#fff}
.pd-recommend{max-width:var(--max-w);padding-top:10px;overflow:hidden}
.pd-recommend-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:305px;gap:16px;overflow-x:auto;padding:10px 0 6px;scrollbar-width:thin}
.pill-row{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.pill{font-size:11px;font-weight:800;padding:3px 10px;border-radius:4px}
.pill{color:#5b21b6;background:#ede9fe}
.pill.muted{background:var(--border-light);color:var(--text-muted)}
.pill.sale{background:#fef3c7;color:#92400e}
.primary-btn,.secondary-btn{
  display:block;text-align:center;width:100%;
  padding:13px;border-radius:var(--radius);font-size:14px;font-weight:700;
  transition:all var(--transition);margin-bottom:10px;
}
.primary-btn{background:var(--brand);color:#fff;box-shadow:0 4px 14px rgba(112,19,170,.22)}
.primary-btn:hover{background:var(--brand-dark);transform:translateY(-1px)}
.secondary-btn{border:2px solid var(--brand);color:var(--brand)}
.secondary-btn:hover{background:var(--brand-bg)}
.content-card{
  background:#fff;border-radius:var(--radius-lg);padding:22px 26px;
  border:1px solid var(--border);margin-bottom:16px;
}
.content-card h2{font-size:16px;font-weight:800;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--border-light)}
.content-card p{font-size:14px;color:var(--text-muted);line-height:1.85}
.content-card dl{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.content-card dl>div{background:var(--bg);border-radius:var(--radius-sm);padding:12px}
.content-card dt{font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-light);margin-bottom:4px}
.content-card dd{font-size:14px;font-weight:700;color:var(--text)}

/* ================================================================
   COMMUNITY DETAIL PAGE
   ================================================================ */
.community-page{max-width:var(--max-w);margin:0 auto;padding:24px clamp(16px,4vw,48px) 64px}
.community-hero{
  display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:34px 36px;margin-bottom:16px;box-shadow:0 16px 48px rgba(17,24,39,.06);
}
.community-hero-main h1{font-size:clamp(28px,4vw,46px);font-weight:900;line-height:1.12;margin:14px 0 12px;color:var(--text)}
.community-hero-main p{font-size:15px;color:var(--text-muted);max-width:760px}
.community-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;align-self:end}
.community-hero-stats div{background:var(--bg);border:1px solid var(--border-light);border-radius:var(--radius-sm);padding:16px 12px;text-align:center}
.community-hero-stats strong{display:block;font-size:24px;font-weight:900;color:var(--brand);line-height:1.1}
.community-hero-stats span{display:block;margin-top:6px;font-size:12px;font-weight:700;color:var(--text-muted)}
.community-gallery-preview{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.95fr);gap:10px;margin-top:14px;height:430px;color:inherit}
.community-gallery-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-width:0;min-height:0}
.community-gallery-tile{position:relative;display:block;min-width:0;min-height:0;overflow:hidden;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--border-light)}
.community-gallery-tile img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.community-gallery-preview:hover img{transform:scale(1.02)}
.community-gallery-tile em{position:absolute;inset:auto 10px 10px auto;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 12px;border-radius:4px;background:rgba(17,24,39,.78);color:#fff;font-size:12px;font-style:normal;font-weight:800}
.community-gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.community-gallery-head h1{font-size:clamp(24px,3vw,36px);font-weight:900;margin:12px 0 8px;color:var(--text)}
.community-gallery-head p{color:var(--text-muted);font-size:14px}
.community-album-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.community-album-item{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.community-album-item img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--border-light)}
.community-lightbox{position:fixed;z-index:1000;inset:0;display:flex;align-items:center;justify-content:center;padding:42px;background:rgba(17,24,39,.86)}
.community-lightbox[hidden]{display:none}
.community-lightbox img{max-width:min(1180px,94vw);max-height:88vh;border-radius:var(--radius-sm);object-fit:contain;background:#111827}
.community-lightbox-close{position:fixed;top:18px;right:22px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:var(--text);font-size:26px;line-height:1;cursor:pointer}
.community-intro-text + .community-intro-text{margin-top:10px}
.community-nearby-block{margin-top:18px}
.community-nearby-block:first-of-type{margin-top:10px}
.community-nearby-block h3{font-size:15px;font-weight:900;color:var(--text);margin:0 0 10px}
.community-nearby-tabs{margin-bottom:14px}
.community-nearby-block[hidden]{display:none}
.community-nearby-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:8px}
.community-nearby-item{background:var(--bg);border:1px solid var(--border-light);border-radius:var(--radius-sm);padding:12px;min-height:96px}
.community-nearby-item span{display:inline-flex;margin-bottom:8px;padding:2px 8px;border-radius:4px;background:var(--brand-bg);color:var(--brand);font-size:11px;font-weight:800}
.community-nearby-item strong{display:block;font-size:14px;color:var(--text);line-height:1.35}
.community-nearby-item em{display:block;margin-top:6px;font-style:normal;font-size:12px;font-weight:800;color:var(--brand)}
.community-nearby-item p{font-size:12px;margin-top:6px;line-height:1.5}
.pd-nearby .community-nearby-list{border-top:1px solid var(--border-light)}
.pd-nearby .pd-nearby-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 12px;align-items:start;min-height:0;padding:14px 0;border:0;border-bottom:1px solid var(--border-light);border-radius:0;background:transparent;cursor:pointer;transition:color .18s ease}
.pd-nearby .pd-nearby-item:hover,.pd-nearby .pd-nearby-item.is-active{background:transparent}
.pd-nearby .pd-nearby-item span{grid-row:1 / span 2;margin:1px 0 0}
.pd-nearby .pd-nearby-item strong{min-width:0}
.pd-nearby .pd-nearby-item em{grid-column:3;grid-row:1 / span 2;margin-top:2px;white-space:nowrap;color:var(--text);font-weight:800}
.pd-nearby .pd-nearby-item p{grid-column:2;margin:0;color:var(--text-light)}
.community-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.community-section-head h2{border-bottom:0;margin-bottom:4px;padding-bottom:0}
.community-more-link{font-size:13px;font-weight:700;color:var(--brand);white-space:nowrap}
.community-tabs{display:flex;gap:8px;margin:14px 0 18px}
.community-tab{display:inline-flex;align-items:center;justify-content:center;min-width:96px;height:38px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-weight:800;color:var(--text-sub);background:#fff}
.community-tab.active,.community-tab:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.community-panel[hidden]{display:none}
.community-list-title{font-size:17px;font-weight:900;color:var(--text);margin:22px 0 12px}
.community-property-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.community-empty{background:var(--bg);border:1px dashed var(--border);border-radius:var(--radius-sm);padding:18px;text-align:center}

/* ================================================================
   NEWS DETAIL PAGE
   ================================================================ */
.news-detail{max-width:var(--max-w);margin:0 auto;padding:26px clamp(16px,2vw,32px) 56px}
.news-detail .breadcrumb{margin-bottom:18px}
.news-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.news-article{background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 18px 44px rgba(17,24,39,.06);overflow:hidden}
.article-header{padding:34px 42px 26px;border-bottom:1px solid var(--border-light)}
.article-kicker{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;color:var(--brand);font-size:12px;font-weight:800;text-transform:uppercase}
.article-kicker span{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:4px;background:var(--brand-bg)}
.article-header h1{max-width:920px;font-size:clamp(28px,3.2vw,46px);font-weight:900;line-height:1.18;color:var(--text);margin-bottom:18px;letter-spacing:0}
.article-meta{display:flex;flex-wrap:wrap;gap:12px;align-items:center;color:var(--text-light);font-size:13px}
.article-meta span,.article-meta time{display:inline-flex;align-items:center;gap:6px}
.article-content{padding:34px 42px 38px;font-size:16px;line-height:2;color:var(--text-sub)}
.article-content p{margin-bottom:18px}
.article-lead{font-size:18px;line-height:2;color:var(--text);font-weight:500}
.policy-detail{width:88%;max-width:none}
.policy-article{box-shadow:0 14px 36px rgba(17,24,39,.05)}
.policy-content{color:var(--text);word-break:break-word}
.policy-content p,.policy-content div{line-height:2}
.policy-content h1,.policy-content h2,.policy-content h3,.policy-content h4{color:var(--text);line-height:1.45;margin:28px 0 14px;font-weight:900}
.policy-content h1{font-size:28px}.policy-content h2{font-size:23px}.policy-content h3{font-size:19px}.policy-content h4{font-size:17px}
.policy-content ul,.policy-content ol{padding-left:1.4em;margin:0 0 18px}
.policy-content li{margin:6px 0}
.policy-content a{color:var(--brand);font-weight:800}
.policy-content table{width:100%;border-collapse:collapse;margin:18px 0;display:block;overflow-x:auto}
.policy-content th,.policy-content td{border:1px solid var(--border);padding:10px 12px;text-align:left;vertical-align:top}
.policy-content th{background:var(--bg);color:var(--text);font-weight:900}
.policy-content img{max-width:100%;height:auto}
.article-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border-light);padding:18px 42px;background:#fafafa}
.article-footer a{font-size:14px;font-weight:800;color:var(--brand)}
.article-footer a:hover{color:var(--brand-dark)}
.news-detail-sidebar{position:sticky;top:calc(var(--header-h) + 20px);display:flex;flex-direction:column;gap:14px}
.news-side-block{background:#fff;border:1px solid var(--border);border-radius:8px;padding:22px;box-shadow:var(--shadow-sm)}
.side-label{display:block;margin-bottom:8px;color:var(--brand);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.news-side-block h2{font-size:22px;line-height:1.25;margin-bottom:12px;color:var(--text)}
.side-all-link{font-size:13px;font-weight:800;color:var(--brand)}
.news-category-list{display:flex;flex-wrap:wrap;gap:8px}
.news-category-list a{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border:1px solid var(--border);border-radius:4px;background:#fff;color:var(--text-sub);font-size:13px;font-weight:700;transition:all var(--transition)}
.news-category-list a:hover{border-color:var(--brand);background:var(--brand-bg);color:var(--brand)}
.news-side-list{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden;box-shadow:var(--shadow-sm)}
.news-side-item{display:block;padding:16px 18px;border-bottom:1px solid var(--border-light);transition:background var(--transition)}
.news-side-item:last-child{border-bottom:0}
.news-side-item:hover{background:#fafafa}
.news-side-item span{display:block;font-size:14px;font-weight:800;line-height:1.55;color:var(--text);margin-bottom:6px}
.news-side-item time{font-size:12px;color:var(--text-light)}
.news-more-section{max-width:var(--max-w)}
.news-more-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 14px 34px rgba(17,24,39,.05);overflow:hidden}
.news-more-item{position:relative;display:flex;flex-direction:column;min-height:150px;padding:22px 24px;border-right:1px solid var(--border-light);border-bottom:1px solid var(--border-light);transition:background var(--transition)}
.news-more-item:nth-child(3n){border-right:0}
.news-more-item:hover{background:#fafafa}
.news-more-category{display:inline-flex;align-self:flex-start;margin-bottom:12px;padding:4px 8px;border-radius:4px;background:var(--brand-bg);color:var(--brand);font-size:12px;font-weight:800}
.news-more-item strong{display:block;color:var(--text);font-size:17px;line-height:1.45;margin-bottom:8px}
.news-more-item p{color:var(--text-muted);font-size:13px;line-height:1.7;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-more-item time{margin-top:auto;color:var(--text-light);font-size:12px}
.news-more-item::after{content:"";position:absolute;left:24px;right:24px;bottom:0;height:2px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform var(--transition)}
.news-more-item:hover::after{transform:scaleX(1)}

/* ================================================================
   AGENT HOME PAGE
   ================================================================ */
body[data-page="agent_detail"] #main-content{margin-top:30px!important}
.agent-home{max-width:var(--max-w);margin:0 auto;padding:0 clamp(16px,2vw,32px) 64px}
.agent-home-cover{height:132px;margin:0 0 -1px;overflow:hidden;border-radius:0;background:var(--border-light)}
.agent-home-cover img{width:100%;height:100%;object-fit:cover}
.agent-home-profile{
  display:grid;grid-template-columns:132px minmax(0,1fr);gap:24px;align-items:center;
  min-height:170px;padding:24px 32px;background:#fff;border:1px solid var(--border);
  border-radius:0 0 8px 8px;box-shadow:0 18px 44px rgba(17,24,39,.06);
}
.agent-home-avatar-wrap{position:relative;width:132px;height:132px}
.agent-home-avatar{width:132px;height:132px;border-radius:50%;object-fit:cover;background:var(--brand-bg)}
.agent-home-avatar-badge{position:absolute;right:6px;bottom:8px;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#39c86a;color:#fff;border:3px solid #fff}
.agent-home-info h1{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:clamp(24px,2.4vw,34px);line-height:1.2;font-weight:900;color:var(--text);margin-bottom:2px}
.agent-verified{display:inline-flex;align-items:center;color:#3b82f6}
.agent-home-role,.agent-home-meta{font-size:14px;color:var(--text-sub)}
.agent-home-intro{max-width:760px;margin-top:8px;font-size:14px;color:var(--text-muted);line-height:1.75}
.agent-home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 18px}
.agent-home-stats div{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:92px;background:#fff;border:1px solid var(--border);border-radius:8px}
.agent-home-stats strong{font-size:28px;line-height:1.1;font-weight:900;color:var(--text)}
.agent-home-stats span{margin-top:8px;font-size:13px;color:var(--text-muted)}
.agent-home-tabs{padding:16px 18px;margin-bottom:18px;background:#fbf7ff;border:1px solid #efe5fb;border-radius:8px}
.agent-home-tabs>span{display:block;margin-bottom:12px;font-size:13px;font-weight:900;color:var(--brand)}
.agent-home-tabs div{display:flex;gap:10px;flex-wrap:wrap}
.agent-home-tabs button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 18px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--text-sub);font-size:13px;font-weight:800;cursor:pointer}
.agent-home-tabs button:hover,.agent-home-tabs button.active{background:var(--brand-bg);border-color:var(--brand-mid);color:var(--brand)}
.agent-home-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.agent-home-main{min-width:0}
.agent-home-panel{margin-bottom:22px;padding:28px 32px;background:#fff;border:1px solid var(--border);border-radius:8px}
.agent-home-panel[hidden]{display:none}
.agent-home-panel h2{font-size:28px;font-weight:900;color:var(--text);margin-bottom:14px}
.agent-home-panel>p{font-size:15px;color:var(--text-muted);line-height:1.9}
.agent-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.agent-section-head p{max-width:260px;text-align:right;color:var(--text-muted);font-size:13px;line-height:1.8}
.agent-list-tabs{display:flex;gap:8px;margin-top:14px}
.agent-list-tabs button{min-width:86px;height:36px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--text-sub);font-size:13px;font-weight:800}
.agent-list-tabs button.active,.agent-list-tabs button:hover{background:var(--brand-bg);border-color:var(--brand-mid);color:var(--brand)}
.agent-listing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.agent-listing-item[hidden]{display:none}
.agent-home-empty{padding:28px;border:1px dashed var(--border);border-radius:8px;background:var(--bg);text-align:center;color:var(--text-muted)}
.agent-home-empty[hidden]{display:none}
.agent-home-empty strong{display:block;margin-bottom:4px;color:var(--text)}
.agent-list-status{min-height:18px;margin-top:12px;font-size:13px;color:var(--text-muted)}
.agent-list-status.error{color:#b91c1c}
.agent-about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.agent-about-grid div{padding:14px;border-radius:8px;background:var(--bg);border:1px solid var(--border-light)}
.agent-about-grid dt{font-size:12px;font-weight:800;color:var(--text-muted);margin-bottom:4px}
.agent-about-grid dd{font-size:14px;font-weight:800;color:var(--text)}
.agent-home-sidebar{position:relative}
.agent-contact-card{position:sticky;top:calc(var(--header-h) + 20px);padding:24px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 18px 44px rgba(17,24,39,.07)}
.agent-contact-head{display:flex;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--border-light);margin-bottom:14px}
.agent-contact-head img{width:64px;height:64px;border-radius:50%;background:var(--brand-bg)}
.agent-contact-head h3{display:flex;align-items:center;gap:5px;font-size:18px;font-weight:900;color:var(--text)}
.agent-contact-head p{font-size:13px;color:var(--text-muted)}
.agent-contact-line{font-size:13px;font-weight:800;color:var(--text-sub);margin-bottom:9px}
.agent-contact-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0;padding:18px 0;border-top:1px solid var(--border-light);border-bottom:1px solid var(--border-light)}
.agent-contact-actions .secondary-btn{margin:0;padding:11px 8px;border-width:1.5px;border-radius:999px;background:#fff}
.agent-consult-form{display:flex;flex-direction:column;gap:12px}
.agent-consult-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:var(--text-sub)}
.agent-consult-form input,.agent-consult-form select,.agent-consult-form textarea{width:100%;border:1.5px solid var(--border);border-radius:12px;padding:11px 13px;font-size:13px;color:var(--text);outline:none;background:#fff;transition:border-color var(--transition),box-shadow var(--transition)}
.agent-consult-form input:focus,.agent-consult-form select:focus,.agent-consult-form textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(112,19,170,.08)}
.agent-consult-form textarea{min-height:96px;resize:vertical}
.agent-consult-form .primary-btn{margin-top:4px}
.agent-form-status{min-height:18px;font-size:12px;color:var(--text-muted)}
.agent-form-status.success{color:#12833d}
.agent-form-status.error{color:#b91c1c}

/* ================================================================
   AREAS PAGE
   ================================================================ */
.area-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.area-card{
  background:#fff;border-radius:var(--radius);padding:20px;
  border:1px solid var(--border);
  display:flex;flex-direction:column;gap:8px;
  transition:all var(--transition);
}
.area-card:hover{box-shadow:var(--shadow);border-color:var(--brand-mid);transform:translateY(-2px)}
.area-card h3{font-size:15px;font-weight:700}
.area-card p{font-size:13px;color:var(--text-muted);line-height:1.65;flex:1}
.area-card a{font-size:13px;font-weight:700;color:var(--brand);display:inline-flex;align-items:center;gap:4px;transition:gap var(--transition)}
.area-card a:hover{gap:8px}
.area-card a::after{content:'→'}

/* ================================================================
   MISC COMPONENTS
   ================================================================ */
.category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.category-tab{
  padding:6px 16px;border-radius:var(--radius-sm);font-size:13px;font-weight:600;
  border:1.5px solid var(--border);color:var(--text-muted);
  background:#fff;cursor:pointer;transition:all var(--transition);
}
.category-tab:hover,.category-tab.active{border-color:var(--brand);color:var(--brand);background:var(--brand-bg)}

.pagination{display:flex;justify-content:center;gap:6px;margin-top:36px;flex-wrap:wrap}
.pagination a,.pagination span{
  min-width:36px;height:36px;border-radius:var(--radius-sm);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:600;border:1.5px solid var(--border);
  background:#fff;color:var(--text-muted);transition:all var(--transition);
}
.pagination a:hover{border-color:var(--brand);color:var(--brand)}
.pagination .current{background:var(--brand);color:#fff;border-color:var(--brand)}

.empty-state{text-align:center;padding:64px 20px;color:var(--text-muted)}
.empty-state h3{font-size:17px;font-weight:700;margin-bottom:8px;color:var(--text-sub)}
.empty-state p{font-size:14px}

/* ================================================================
   FOOTER
   ================================================================ */
.footer{
  background:#fff;border-top:1px solid var(--border);
  margin-top:64px;
}
.footer-main{
  max-width:var(--max-w);margin:0 auto;
  padding:48px 0 0;
  display:flex;flex-direction:column;gap:28px;
}
/* SEO 城市 tab 区 */
.footer-seo-wrap{border-bottom:1px solid var(--border-light);padding-bottom:24px}
.footer-seo-title{font-size:38px;font-weight:700;color:var(--text);margin-bottom:20px;line-height:1.2}
/* tab 下划线风格 */
.footer-city-tabs{
  display:flex;flex-wrap:wrap;gap:0;
  border-bottom:2px solid var(--border);
  margin-bottom:24px;
}
.footer-city-tab{
  padding:8px 20px;font-size:14px;font-weight:500;cursor:pointer;
  background:none;border:none;border-bottom:2px solid transparent;
  margin-bottom:-2px;
  color:var(--text-muted);transition:color .15s,border-color .15s;
}
.footer-city-tab:hover{color:var(--text)}
.footer-city-tab.active{color:var(--text);border-bottom-color:var(--brand);font-weight:700}
.footer-city-panel{display:none}
.footer-city-panel.active{display:block}
.flink-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:20px 12px;
}
/* 每条链接：两行文字，无边框 */
.flink{
  display:flex;flex-direction:column;gap:3px;
  text-decoration:none;transition:opacity .12s;
  min-width:0;
}
.flink:hover{opacity:.75}
.flink-name{
  display:block;
  max-width:80%;
  font-size:15px;font-weight:500;color:var(--text);
  line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.flink-community .flink-name{font-weight:700}
.flink-property .flink-name{font-weight:500}
.flink-sub{
  font-size:12px;color:var(--text-muted);
  line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.flink-empty{font-size:13px;color:var(--text-light)}
/* 底部四列 */
.footer-cols-wrap{
  display:grid;grid-template-columns:repeat(4,1fr) 240px;
  gap:32px;padding-bottom:32px;
  align-items:stretch;
}
.footer-col h4{font-size:12px;font-weight:700;color:var(--text);letter-spacing:.3px;margin-bottom:12px}
.footer-col a{display:block;font-size:13px;color:var(--text-muted);padding:4px 0;transition:color var(--transition)}
.footer-col a:hover{color:var(--brand)}
.footer-brand-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:0}
.footer-logo-img{width:220px;height:auto;display:block}
.footer-company{font-size:12px;color:var(--text-light);text-align:right;margin-top:auto}
.footer-bottom{
  max-width:var(--max-w);margin:0 auto;
  padding:14px 0;
  display:flex;justify-content:space-between;align-items:center;
  font-size:12px;color:var(--text-light);
  border-top:1px solid var(--border-light);
  flex-wrap:wrap;gap:8px;
}
.footer-links-row{display:flex;gap:8px;align-items:center}
.footer-links-row a:hover{color:var(--text-muted)}
/* header logo */
.brand-logo{height:32px;width:auto;display:block}

/* Skeleton */
.skeleton{
  background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 50%,#f3f4f6 75%);
  background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:var(--radius-sm);
}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media(max-width:1024px){
  .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-grid.large{grid-template-columns:repeat(3,minmax(0,1fr))}
  .area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .area-ql-grid{grid-template-columns:repeat(3,1fr)}
  .communities-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-hero{grid-template-columns:1fr}
  .community-hero{grid-template-columns:1fr}
  .community-nearby-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .community-property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-home-layout{grid-template-columns:1fr}
  .agent-home-sidebar{order:-1}
  .agent-contact-card{position:static}
  .agent-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-image{height:320px}
  .detail-summary{position:static}
  .pd-layout{grid-template-columns:1fr}
  .pd-sidebar{position:static}
  .pd-agent-card{max-height:none;overflow:visible}
  .agent-profile{grid-template-columns:1fr}
  .agent-profile-card{position:static}
  .news-cta-layout{grid-template-columns:1fr}
  .flink-grid{grid-template-columns:repeat(4,1fr)}
  .footer-cols-wrap{grid-template-columns:repeat(2,1fr)}
  .footer-brand-right{align-items:flex-start}
}
@media(max-width:768px){
  :root{--header-h:54px;--subnav-h:40px}
  html,body{max-width:100%;overflow-x:hidden}
  body[data-page="properties"] .ps-map-toggle{display:none!important}
  #main-content,.page-hero,.section,.footer,.footer-main,.footer-bottom{
    width:100%;max-width:100%;min-width:0;
  }
  .section{padding-left:16px;padding-right:16px}
  .news-grid{width:100%;min-width:0}
  .site-nav{display:none}
  .header-actions .login-btn,.header-actions .header-user-btn{display:none}
  .hamburger{display:flex}
  .city-switcher{position:static}
  .city-btn{position:relative;z-index:1001}
  body.city-modal-open{overflow:hidden}
  body.city-modal-open::before{
    content:"";position:fixed;inset:0;z-index:1000;
    background:rgba(15,23,42,.38);
  }
  body.city-modal-open .site-header{z-index:1001}
  .city-dropdown{
    position:fixed;top:50%;left:50%;z-index:1002;
    width:min(86vw,340px);min-width:0;padding:18px;
    border-radius:14px;box-shadow:0 18px 48px rgba(15,23,42,.2);
    transform:translate(-50%,-50%);display:none;
  }
  .city-switcher:hover .city-dropdown{display:none}
  .city-switcher.open .city-dropdown{display:block}
  .city-dropdown-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .city-dropdown-item{text-align:center;padding:12px 10px;background:var(--bg)}
  body.mobile-nav-open{overflow:hidden}
  body.mobile-nav-open::before{
    content:"";position:fixed;inset:var(--header-h) 0 0;z-index:998;
    background:rgba(15,23,42,.38);
  }
  .mobile-nav{
    display:flex;position:fixed;top:var(--header-h);right:0;bottom:0;z-index:999;
    width:min(82vw,320px);max-width:calc(100vw - 48px);
    background:#fff;padding:16px 16px max(32px,env(safe-area-inset-bottom));
    flex-direction:column;gap:2px;overflow-y:auto;
    border-left:1px solid var(--border);
    box-shadow:-16px 0 32px rgba(15,23,42,.16);
    transform:translateX(100%);visibility:hidden;pointer-events:none;
    transition:transform .28s ease,visibility .28s ease;
  }
  .mobile-nav.open{transform:translateX(0);visibility:visible;pointer-events:auto}
  .hero{padding:28px 0 24px}
  .hero h1{font-size:24px;line-height:1.25;margin-bottom:18px;letter-spacing:0}
  .hero-search{
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;
    padding:10px;margin:0;overflow:visible;
  }
  .hero-search>input[name="q"]{
    grid-column:1/-1;width:100%;font-size:16px;padding:8px 2px;
  }
  .search-divider{display:none}
  .search-type-wrap{min-width:0}
  .search-type-btn{height:42px;padding:0 12px;border-radius:8px;background:var(--bg)}
  .search-type-dropdown{left:0;right:auto}
  .hero-search-btn{
    height:42px;margin:0;padding:0 22px;border-radius:8px;font-size:15px;
  }
  .hero-suggest{top:calc(100% + 8px)}
  .hero-ql-wrap{
    transform:none;padding:0 16px;margin:16px auto 0;overflow:visible;
  }
  .hero-quicklinks{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
    padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
  }
  .hero-ql{
    min-height:86px;padding:12px;
    border:1px solid var(--border);border-radius:12px;box-shadow:none;
  }
  .hero-ql strong{
    font-size:14px;line-height:1.35;overflow:hidden;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  }
  .hero-ql .ql-count{font-size:12px;margin-left:4px}
  .hero-ql span{
    font-size:12px;line-height:1.45;overflow:hidden;text-overflow:ellipsis;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  }
  .hero-ql-wrap + .section{margin-top:0;padding-top:28px}
  .section{padding:28px 16px}
  .communities-page{padding:24px 16px 48px}
  .communities-head{align-items:stretch;flex-direction:column;gap:14px}
  .communities-search{min-width:0;width:100%}
  .communities-filter-row{grid-template-columns:1fr;gap:8px}
  .communities-filter-label{line-height:1.2}
  .communities-toolbar{align-items:flex-start;flex-direction:column;gap:4px}
  .page-hero,.page-hero.compact{padding:32px 16px}
  .detail-page,.agent-detail,.news-detail,.community-page{padding:16px 16px 48px}
  .news-detail-layout{grid-template-columns:1fr;gap:18px}
  .news-detail-sidebar{position:static}
  .article-header{padding:24px 20px 20px}
  .article-header h1{font-size:28px}
  .article-content{padding:24px 20px 28px}
  .article-lead{font-size:16px}
  .article-footer{padding:16px 20px}
  .news-more-list{grid-template-columns:1fr}
  .news-more-item{min-height:0;border-right:0}
  .news-more-item:nth-child(3n){border-right:0}
  .agent-home{padding:0 16px 48px}
  .agent-home-cover{height:112px}
  .agent-home-profile{grid-template-columns:92px minmax(0,1fr);gap:16px;padding:20px 18px}
  .agent-home-avatar-wrap,.agent-home-avatar{width:92px;height:92px}
  .agent-home-avatar-badge{right:0;bottom:2px}
  .agent-home-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .agent-home-stats div{min-height:78px}
  .agent-home-stats strong{font-size:22px}
  .agent-home-panel{padding:22px 18px}
  .agent-section-head{align-items:flex-start;flex-direction:column}
  .agent-section-head p{text-align:left}
  .agent-about-grid{grid-template-columns:1fr 1fr}
  body[data-page="agent_detail"] #main-content{margin-top:12px!important}
  .agent-home{padding:0 14px 42px}
  .agent-home-cover{height:84px;border-radius:12px 12px 0 0;margin:0}
  .agent-home-profile{
    grid-template-columns:72px minmax(0,1fr);gap:14px;
    min-height:0;padding:14px;border-radius:0 0 12px 12px;
    box-shadow:none;
  }
  .agent-home-avatar-wrap,.agent-home-avatar{width:72px;height:72px}
  .agent-home-avatar-badge{
    right:-2px;bottom:0;width:22px;height:22px;border-width:2px;
  }
  .agent-home-avatar-badge svg{width:13px;height:13px}
  .agent-home-info h1{
    justify-content:flex-start;font-size:20px;line-height:1.2;margin-bottom:3px;
  }
  .agent-home-role,.agent-home-meta{font-size:12px;line-height:1.45}
  .agent-home-intro{
    margin-top:5px;font-size:12px;line-height:1.55;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .agent-home-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0;
  }
  .agent-home-stats div{min-height:62px;border-radius:10px}
  .agent-home-stats strong{font-size:21px}
  .agent-home-stats span{margin-top:4px;font-size:11px}
  .agent-home-tabs{
    position:sticky;top:var(--header-h);z-index:60;
    margin:0 -14px 14px;padding:10px 14px;
    border-width:1px 0;border-radius:0;background:rgba(255,255,255,.96);
    backdrop-filter:blur(10px);
  }
  .agent-home-tabs>span{display:none}
  .agent-home-tabs div{
    flex-wrap:nowrap;gap:8px;overflow-x:auto;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  .agent-home-tabs div::-webkit-scrollbar{display:none}
  .agent-home-tabs button{
    flex:0 0 auto;min-height:34px;padding:0 14px;font-size:12px;
  }
  .agent-home-layout{display:block}
  .agent-home-sidebar{display:none}
  .agent-home-panel{padding:18px 16px;border-radius:12px;margin-bottom:14px}
  .agent-home-panel h2{font-size:22px;margin-bottom:8px}
  .agent-section-head{gap:8px;margin-bottom:12px}
  .agent-section-head p{max-width:none;font-size:12px;line-height:1.6}
  .agent-about-grid{gap:8px;margin-top:12px}
  .agent-about-grid div{padding:11px;border-radius:10px}
  .agent-about-grid dt{font-size:11px}
  .agent-about-grid dd{font-size:13px;line-height:1.35}
  .pd-tabs-row{align-items:stretch;flex-direction:column;gap:14px}
  .pd-tabs{width:100%}
  .pd-top-actions{justify-content:flex-start;flex-wrap:wrap}
  .pd-facts{
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-radius:12px;margin-bottom:20px;
  }
  .pd-facts div{
    justify-content:flex-start;min-height:56px;padding:10px 12px;gap:8px;
    border-right:1px solid var(--border);border-top:0;
  }
  .pd-facts div:nth-child(4n){border-right:1px solid var(--border)}
  .pd-facts div:nth-child(2n){border-right:none}
  .pd-facts div:nth-child(n+3){border-top:1px solid var(--border)}
  .pd-facts strong{
    font-size:13px;line-height:1.35;white-space:normal;
    overflow:visible;text-overflow:clip;word-break:break-word;
  }
  .pd-fact-icon{width:22px;height:22px;flex:0 0 22px}
  .pd-gallery-shell{margin-bottom:20px}
  .pd-gallery{
    display:flex;grid-template-columns:none;grid-template-rows:none;
    gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
    margin-bottom:0;padding-bottom:4px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  .pd-gallery::-webkit-scrollbar{display:none}
  .pd-gallery-item,
  .pd-gallery-item.is-main,
  .pd-gallery-item:nth-child(3),
  .pd-gallery-item:nth-child(5){
    flex:0 0 100%;aspect-ratio:4/3;border-radius:12px;
    scroll-snap-align:start;
  }
  .pd-gallery-item img,.pd-gallery-item video{height:100%;object-fit:cover}
  .pd-gallery-more{
    right:12px;bottom:12px;padding:8px 12px;
    border-radius:8px;font-size:12px;
  }
  .pd-gallery-nav{
    display:flex;align-items:center;justify-content:center;
    position:absolute;top:50%;z-index:2;width:38px;height:38px;
    border:1px solid rgba(17,24,39,.14);border-radius:999px;
    background:rgba(255,255,255,.94);color:var(--text);
    box-shadow:0 8px 20px rgba(15,23,42,.16);
    transform:translateY(-50%);
  }
  .pd-gallery-prev{left:10px}
  .pd-gallery-next{right:10px}
  .pd-gallery-nav svg{width:18px;height:18px;display:block}
  .community-hero{padding:24px 18px}
  .community-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .community-page{padding:14px 14px 42px}
  .community-page .breadcrumb{
    margin-bottom:12px;font-size:12px;gap:6px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-wrap:nowrap;
  }
  .community-hero{
    gap:16px;padding:20px 18px;border-radius:14px;margin-bottom:14px;box-shadow:none;
  }
  .community-hero-main h1{font-size:28px;line-height:1.15;margin:12px 0 8px}
  .community-hero-main p{font-size:13px;line-height:1.6}
  .community-hero-stats{gap:8px}
  .community-hero-stats div{padding:12px 8px;border-radius:10px}
  .community-hero-stats strong{font-size:22px}
  .community-hero-stats span{font-size:11px;margin-top:4px}
  .community-page .content-card{padding:18px;border-radius:14px;margin-bottom:14px}
  .community-page .content-card h2{font-size:17px;margin-bottom:12px;padding-bottom:10px}
  .community-page .content-card dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
  .community-page .content-card dl>div{padding:11px;border-radius:10px}
  .community-page .content-card dd{font-size:13px;line-height:1.35;word-break:break-word}
  .community-section-head{align-items:center;margin-bottom:10px}
  .community-tabs{
    gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    margin:12px 0 14px;
  }
  .community-tabs::-webkit-scrollbar{display:none}
  .community-tab{flex:0 0 auto;min-width:90px;height:34px;font-size:12px}
  .community-gallery-preview{height:auto;grid-template-columns:1fr;grid-template-rows:auto}
  .community-gallery-side{display:none}
  .community-gallery-tile{aspect-ratio:4/3}
  .community-gallery-tile.main{grid-column:1/-1;grid-row:auto;aspect-ratio:16/9}
  .community-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .community-gallery-head{align-items:flex-start;flex-direction:column}
  .community-nearby-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .community-nearby-item{min-height:0;padding:11px;border-radius:10px}
  .community-nearby-item strong{font-size:13px}
  .community-nearby-item p{display:none}
  .community-list-title{font-size:15px;margin:16px 0 10px}
  .community-property-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .content-card{padding:18px}
  .content-card dl{grid-template-columns:1fr 1fr}
  .pd-raw-fields .pd-field-group dl{grid-template-columns:1fr}
  .flink-grid{grid-template-columns:repeat(3,1fr)}
  .footer-seo-wrap{display:none}
  .footer-cols-wrap{grid-template-columns:1fr 1fr;gap:20px}
  .footer-col{text-align:center}
  .footer-col a{margin:0 auto}
  .footer-brand-right{display:none}
  .filter-row{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;padding:10px 16px}
  .city-cta-section{padding:32px 16px}
  .area-ql-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:480px){
  .property-grid,.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .news-grid,.agent-grid,.area-grid,.communities-grid{grid-template-columns:1fr}
  .property-card{border-radius:10px}
  .property-card:hover{box-shadow:none;transform:none;border-color:var(--border)}
  .card-body{padding:9px 9px 10px}
  .card-body h3{font-size:13px;line-height:1.35;margin-bottom:4px}
  .card-location{font-size:10px;margin-bottom:6px}
  .card-price-row{margin-bottom:6px}
  .card-price{font-size:15px}
  .card-divider{margin:6px 0}
  .card-specs{gap:6px;font-size:10px;margin-bottom:7px}
  .card-spec svg{width:11px;height:11px}
  .card-tags{gap:4px;margin-bottom:7px}
  .card-tag{font-size:10px;padding:2px 6px}
  .card-footer{padding-top:6px;gap:4px}
  .card-date{display:none}
  .card-agent{font-size:10px;max-width:100%}
  .agent-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .agent-about-grid{grid-template-columns:1fr 1fr}
  .agent-home-profile{grid-template-columns:72px minmax(0,1fr);text-align:left}
  .agent-home-avatar-wrap{margin:0}
  .agent-home-info h1{justify-content:flex-start}
  .agent-home-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .agent-contact-actions{grid-template-columns:1fr}
  .community-property-grid,.community-nearby-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .community-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .agent-grid.large{grid-template-columns:repeat(2,1fr)}
  .hero-ql{min-height:82px;padding:11px}
  .hero h1{font-size:22px}
  .area-ql-grid{grid-template-columns:repeat(2,1fr)}
  .detail-image{height:240px}
  .flink-grid{grid-template-columns:repeat(2,1fr)}
}

/* ================================================================
   求租广场
   ================================================================ */
.rd-layout{display:grid;grid-template-columns:1fr 420px;gap:48px;align-items:start}
.rd-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.rd-list-title{font-size:22px;font-weight:800}
.rd-list{display:flex;flex-direction:column;gap:12px}
.rd-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px}
.rd-card-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.rd-tag{background:var(--brand-bg);color:var(--brand);font-size:12px;font-weight:600;padding:2px 10px;border-radius:var(--radius-sm)}
.rd-city{font-size:13px;color:var(--text-muted)}
.rd-title{font-size:15px;font-weight:600;color:var(--text);margin-bottom:4px}
.rd-remark{font-size:14px;color:var(--text-sub);margin-bottom:8px;line-height:1.6}
.rd-card-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--text-muted)}
.rd-contact{color:var(--text)}
.rd-empty{text-align:center;padding:48px 20px;color:var(--text-muted);display:flex;flex-direction:column;align-items:center;gap:12px;font-size:14px}
.rd-flash{padding:12px 16px;border-radius:var(--radius-sm);font-size:14px;margin-bottom:16px}
.rd-flash-ok{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}
.rd-flash-err{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.auth-form-wrap.rd-post-form-wrap{width:100%;max-width:none}

/* 求租 & 托管表单 */
.rd-form-wrap,.hosting-form-wrap{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:32px;position:sticky;top:calc(var(--header-h) + var(--subnav-h) + 16px)}
.rd-form-title,.hosting-form-title{font-size:20px;font-weight:800;margin-bottom:4px}
.rd-form-sub,.hosting-form-sub{font-size:13px;color:var(--text-muted);margin-bottom:20px}
.form-row{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.form-row label{font-size:13px;font-weight:600;color:var(--text-sub)}
.form-row input,.form-row select,.form-row textarea{border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 14px;font-size:14px;color:var(--text);background:#fff;transition:border-color var(--transition)}
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{outline:none;border-color:var(--brand)}
.form-row textarea{resize:vertical;min-height:80px}
.form-row-2col{flex-direction:row;gap:12px}
.form-row-2col>div{flex:1;display:flex;flex-direction:column;gap:6px}
.form-row-2col>div label{font-size:13px;font-weight:600;color:var(--text-sub)}
.req{color:var(--brand)}
.btn-primary{display:inline-flex;align-items:center;gap:6px;background:var(--brand);color:#fff;font-size:13px;font-weight:600;padding:8px 18px;border-radius:var(--radius-sm);text-decoration:none;transition:background var(--transition)}
.btn-primary:hover{background:var(--brand-dark)}
.btn-submit{width:100%;padding:13px;background:var(--brand);color:#fff;font-size:15px;font-weight:700;border-radius:var(--radius-sm);border:none;cursor:pointer;transition:background var(--transition);margin-top:4px}
.btn-submit:hover{background:var(--brand-dark)}
.form-tip{font-size:12px;color:var(--text-light);margin-top:12px;text-align:center;line-height:1.6}
.form-tip a{color:var(--brand)}

/* ================================================================
   房屋托管
   ================================================================ */
.hosting-layout{display:grid;grid-template-columns:1fr;gap:32px;align-items:start}
.hosting-form-wrap{position:static;width:100%;max-width:100%;margin:0 auto;order:1}
.hosting-features{display:grid;grid-template-columns:1fr 1fr;gap:24px;order:2}
.hosting-feature{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.hosting-feature-icon{width:44px;height:44px;background:var(--brand-bg);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.hosting-feature-icon svg{width:22px;height:22px;stroke:var(--brand)}
.hosting-feature h3{font-size:15px;font-weight:700;margin-bottom:6px}
.hosting-feature p{font-size:13px;color:var(--text-muted);line-height:1.6}

@media(max-width:900px){
  .rd-layout,.hosting-layout{grid-template-columns:1fr}
  .rd-form-wrap,.hosting-form-wrap{position:static}
  .hosting-features{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .hosting-features{grid-template-columns:1fr}
  .form-row-2col{flex-direction:column}
}

/* ================================================================
   求租卡片可点击 / 查看详情
   ================================================================ */
.rd-card-link{display:block;text-decoration:none;color:inherit;transition:box-shadow var(--transition),transform var(--transition)}
.rd-card-link:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.rd-view-detail{margin-left:auto;font-size:12px;color:var(--brand);font-weight:600;white-space:nowrap}

/* ================================================================
   求租详情页
   ================================================================ */
.rdd-wrap{max-width:800px;margin:0 auto}
.rdd-gate{text-align:center;padding:64px 20px;display:flex;flex-direction:column;align-items:center;gap:16px}
.rdd-gate-icon{width:72px;height:72px;background:var(--brand-bg);border-radius:50%;display:flex;align-items:center;justify-content:center}
.rdd-gate h2{font-size:22px;font-weight:800}
.rdd-gate p{font-size:15px;color:var(--text-muted);max-width:400px;line-height:1.6}
.rdd-gate-btns{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.btn-outline{display:inline-flex;align-items:center;padding:10px 24px;border:1.5px solid var(--brand);border-radius:var(--radius-sm);color:var(--brand);font-size:14px;font-weight:600;text-decoration:none;transition:all var(--transition)}
.btn-outline:hover{background:var(--brand-bg)}
.rdd-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px 32px}
.rdd-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;flex-wrap:wrap;gap:10px}
.rdd-header-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rdd-meta-tag{font-size:12px;color:var(--text-muted);background:var(--bg);padding:3px 10px;border-radius:var(--radius-sm)}
.rdd-back-link{font-size:13px;color:var(--brand);font-weight:600;text-decoration:none}
.rdd-back-link:hover{text-decoration:underline}
.rdd-title{font-size:22px;font-weight:800;color:var(--text);margin-bottom:20px;line-height:1.4}
.rdd-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:24px}
.rdd-info-item{background:var(--bg);border-radius:var(--radius-sm);padding:14px 16px}
.rdd-info-label{display:block;font-size:11px;color:var(--text-light);font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.rdd-info-value{font-size:15px;color:var(--text);font-weight:600}
.rdd-budget{color:var(--brand);font-size:18px}
.rdd-section{margin-bottom:24px}
.rdd-section-title{font-size:15px;font-weight:700;color:var(--text-sub);margin-bottom:10px}
.rdd-describe{font-size:15px;color:var(--text);line-height:1.7;white-space:pre-wrap}
.rdd-contact-section{background:var(--brand-bg);border-radius:var(--radius);padding:20px 24px;margin-bottom:16px}
.rdd-contact-grid{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.rdd-contact-item{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--text);font-weight:600;text-decoration:none}
.rdd-contact-item:hover{color:var(--brand)}
.rdd-contact-hint{display:flex;align-items:flex-start;gap:10px;padding:16px;background:#fffbeb;border:1px solid #fde68a;border-radius:var(--radius-sm);font-size:13px;color:#92400e;line-height:1.5}
@media(max-width:640px){
  .rdd-info-grid{grid-template-columns:1fr}
  .rdd-card{padding:20px 16px}
  .rdd-gate-btns{flex-direction:column;align-items:stretch}
}

/* ================================================================
   登录 / 注册 / 会员中心公共样式
   ================================================================ */
.auth-form-wrap{max-width:480px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:32px 36px}
.auth-form{display:flex;flex-direction:column;gap:0}
.auth-alt{text-align:center;margin-top:20px;font-size:14px;color:var(--text-muted)}
.auth-alt a{color:var(--brand);font-weight:600;margin-left:4px}
.input-pwd-wrap{position:relative;display:flex}
.input-pwd-wrap input{flex:1;padding-right:44px !important}
.pwd-eye-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--text-muted);opacity:.5;padding:2px;background:none;border:none;cursor:pointer;transition:opacity var(--transition)}
.pwd-eye-btn:hover{opacity:1}
.input-code-wrap{display:flex;gap:8px}
.input-code-wrap input{flex:1}
.btn-send-code{padding:0 14px;background:var(--brand-bg);color:var(--brand);border:1.5px solid var(--brand-mid);border-radius:var(--radius-sm);font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;transition:all var(--transition);flex-shrink:0}
.btn-send-code:hover:not(:disabled){background:var(--brand);color:#fff}
.btn-send-code:disabled{opacity:.6;cursor:not-allowed}
.form-hint{font-size:12px;color:var(--text-muted);margin-top:4px}

/* Header 登录态 */
.header-user-btn{display:flex;align-items:center;gap:8px;text-decoration:none;padding:4px 12px 4px 4px;border-radius:var(--radius);border:1px solid var(--border);transition:all var(--transition)}
.header-user-btn:hover{background:var(--brand-bg);border-color:var(--brand)}
.header-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0}
.header-avatar-placeholder{width:28px;height:28px;border-radius:50%;background:var(--brand-bg);display:flex;align-items:center;justify-content:center;color:var(--brand);flex-shrink:0}
.header-nick{font-size:13px;font-weight:600;color:var(--text);max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ================================================================
   中介工作台
   ================================================================ */
.agent-console{width:min(1440px,94vw);margin:24px auto 40px;display:grid;grid-template-columns:268px minmax(0,1fr);gap:22px;align-items:start}
.agent-console-side,.agent-console-main{background:#fff;border:1px solid #dde3ea;border-radius:4px;box-shadow:0 16px 36px rgba(15,23,42,.04)}
.agent-console-side{position:sticky;top:calc(var(--header-h) + 18px);padding:20px}
.agent-console-profile{display:flex;align-items:center;gap:12px;padding-bottom:18px;margin-bottom:16px;border-bottom:1px solid #e2e8f0}
.agent-console-profile img,.agent-console-profile>span{width:52px;height:52px;border-radius:50%;flex:0 0 auto}
.agent-console-profile img{object-fit:cover;background:#f1e8f7}
.agent-console-profile>span{display:flex;align-items:center;justify-content:center;background:#7013aa;color:#fff;font-weight:900;font-size:16px}
.agent-console-profile h1{font-size:17px;line-height:1.25;font-weight:900;color:#0f172a;margin:0 0 4px;letter-spacing:0}
.agent-console-profile p{font-size:12px;color:#64748b;margin:0;line-height:1.35}
.agent-console-nav{display:flex;flex-direction:column;gap:7px}
.agent-console-nav button{height:40px;border:0;border-radius:4px;background:transparent;color:#334155;text-align:left;padding:0 13px;font-size:14px;font-weight:800;cursor:pointer}
.agent-console-nav button:hover{background:#f7f2fb;color:#7013aa}
.agent-console-nav button.active{background:#f1e8f7;color:#7013aa}
.agent-console-side-actions{display:flex;flex-direction:column;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #e2e8f0}
.agent-console-side-actions a,.agent-console-side-actions button{display:flex;align-items:center;justify-content:center;height:36px;border-radius:4px;border:1px solid #d8dee8;background:#fff;color:#334155;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}
.agent-console-side-actions button{width:100%;border-color:#fecaca;color:#dc2626}
.agent-console-main{min-height:520px;padding:0 26px 30px}
.agent-console-head{min-height:82px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;border-bottom:1px solid #d8dee8;padding:24px 0 18px;margin-bottom:22px}
.agent-console-head p{font-size:12px;color:#7013aa;font-weight:900;text-transform:uppercase;margin:0 0 6px;letter-spacing:.04em}
.agent-console-head h2{font-size:30px;line-height:1.1;font-weight:950;color:#0f172a;margin:0;letter-spacing:0}
.agent-console-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.agent-console-head-actions button,.agent-console-head-actions select,.agent-console-head-actions input{height:38px;border-radius:4px;border:1px solid #cfd7e3;background:#fff;color:#111827;font-size:13px;font-weight:700;padding:0 12px}
.agent-console-head-actions button{background:#7013aa;color:#fff;border-color:#7013aa;cursor:pointer}
.agent-console-view{display:none}
.agent-console-view.active{display:block}
.agent-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:22px}
.agent-stat-grid article{min-height:116px;border:1px solid #dde3ea;border-radius:4px;background:#f8fafc;padding:16px;display:flex;flex-direction:column;justify-content:space-between}
.agent-stat-grid span{font-size:12px;font-weight:800;color:#64748b}
.agent-stat-grid strong{font-size:30px;line-height:1;font-weight:950;color:#0f172a;letter-spacing:0}
.agent-stat-grid em{font-style:normal;font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-console-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.agent-panel{border:1px solid #dde3ea;border-radius:4px;background:#fff}
.agent-panel-head{height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e2e8f0;padding:0 16px}
.agent-panel-head h3{font-size:16px;font-weight:900;color:#111827;margin:0;letter-spacing:0}
.agent-panel-head button{height:30px;border:1px solid #d8dee8;border-radius:4px;background:#fff;color:#7013aa;font-size:12px;font-weight:900;cursor:pointer}
.agent-mini-list{display:flex;flex-direction:column;min-height:190px}
.agent-mini-list article{padding:14px 16px;border-bottom:1px solid #edf1f5}
.agent-mini-list article:last-child{border-bottom:0}
.agent-mini-list strong{display:block;font-size:14px;font-weight:900;color:#111827;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-mini-list span{display:block;font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-table{overflow-x:auto;border:1px solid #dde3ea;border-radius:4px;background:#fff}
.agent-table table{width:100%;border-collapse:collapse;min-width:820px}
.agent-table th{height:42px;background:#f8fafc;color:#64748b;text-align:left;font-size:12px;font-weight:900;padding:0 14px;border-bottom:1px solid #dde3ea}
.agent-table td{padding:14px;border-bottom:1px solid #edf1f5;color:#111827;font-size:13px;vertical-align:middle}
.agent-table tr:last-child td{border-bottom:0}
.agent-table td strong{display:block;font-size:14px;font-weight:900;color:#0f172a;margin-bottom:5px;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-table td span{display:block;color:#64748b;font-size:12px;line-height:1.4}
.agent-table mark{display:inline-flex;align-items:center;height:26px;border-radius:4px;background:#edf4ff;color:#2563eb;font-size:12px;font-weight:900;padding:0 9px}
.agent-table-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.agent-table-actions a,.agent-table-actions button{display:inline-flex;align-items:center;justify-content:center;height:30px;border-radius:4px;border:1px solid #d8dee8;background:#fff;color:#7013aa;font-size:12px;font-weight:900;text-decoration:none;cursor:pointer;padding:0 10px}
.agent-empty{min-height:120px;display:flex;align-items:center;justify-content:center;color:#64748b;font-size:14px}
.agent-form{display:flex;flex-direction:column;gap:16px}
.agent-form [hidden]{display:none!important}
.agent-publish-switch{display:inline-grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:4px;align-self:flex-start;padding:4px;border:1px solid #d8dee8;border-radius:4px;background:#f8fafc}
.agent-publish-switch button{height:38px;border:0;border-radius:4px;background:transparent;color:#334155;font-size:14px;font-weight:900;cursor:pointer}
.agent-publish-switch button.active{background:#7013aa;color:#fff;box-shadow:0 8px 18px rgba(112,19,170,.14)}
.agent-form-kicker{margin:0 0 6px;color:#7013aa;font-size:11px;line-height:1;text-transform:uppercase;font-weight:950;letter-spacing:0}
.agent-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.agent-form label{display:flex;flex-direction:column;gap:7px;min-width:0}
.agent-form label span{font-size:13px;font-weight:900;color:#334155}
.agent-form input,.agent-form select,.agent-form textarea{width:100%;border:1px solid #cfd7e3;border-radius:4px;background:#fff;color:#111827;font-size:14px;padding:10px 11px;outline:none}
.agent-form input:focus,.agent-form select:focus,.agent-form textarea:focus{border-color:#7013aa;box-shadow:0 0 0 3px rgba(112,19,170,.1)}
.agent-form-full{grid-column:1/-1}
.agent-form-section{border:1px solid #dde3ea;border-radius:4px;background:#fbfdff;padding:16px;display:flex;flex-direction:column;gap:14px}
.agent-form-section h3{font-size:16px;line-height:1.25;font-weight:950;color:#0f172a;margin:0;letter-spacing:0}
.agent-form-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.agent-form-section-head button{height:34px;border-radius:4px;border:1px solid #7013aa;background:#fff;color:#7013aa;font-size:13px;font-weight:900;padding:0 12px;cursor:pointer}
.agent-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.agent-upload-block{border:1px solid #d8dee8;border-radius:4px;background:#fff;padding:13px;display:flex;flex-direction:column;gap:10px;min-width:0}
.agent-upload-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:22px}
.agent-upload-head strong{font-size:13px;font-weight:950;color:#334155}
.agent-upload-head span{font-size:12px;color:#64748b;text-align:right}
.agent-upload-head span.success{color:#12833d}.agent-upload-head span.error{color:#b91c1c}
.agent-upload-picker{height:36px;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #7013aa;border-radius:4px;background:#f7f2fb;color:#7013aa;font-size:13px;font-weight:900;cursor:pointer}
.agent-upload-picker input{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.agent-upload-preview{min-height:112px;display:grid;grid-template-columns:1fr;gap:8px}
.agent-upload-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.agent-upload-empty{min-height:92px;border:1px dashed #cbd5e1;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:13px;background:#f8fafc}
.agent-upload-card{position:relative;min-height:92px;border:1px solid #d8dee8;border-radius:4px;overflow:hidden;background:#f8fafc;display:flex;align-items:center;justify-content:center;color:#475569;font-size:12px;font-weight:800;text-align:center;padding:8px}
.agent-upload-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.agent-upload-card em{position:absolute;left:6px;bottom:6px;right:6px;border-radius:4px;background:rgba(15,23,42,.72);color:#fff;font-size:11px;font-style:normal;padding:4px 5px}
.agent-upload-card.error{border-color:#fecaca;background:#fff5f5}
.agent-upload-file{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agent-upload-card button{position:absolute;right:6px;top:6px;height:26px;border:0;border-radius:4px;background:rgba(15,23,42,.76);color:#fff;font-size:12px;font-weight:900;padding:0 8px;cursor:pointer}
.agent-layout-list{display:flex;flex-direction:column;gap:10px}
.agent-layout-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) 58px;gap:10px;align-items:end;padding:12px;border:1px solid #d8dee8;border-radius:4px;background:#fff}
.agent-layout-row button{height:39px;border-radius:4px;border:1px solid #fecaca;background:#fff;color:#dc2626;font-size:12px;font-weight:900;cursor:pointer}
.agent-form-msg{min-height:20px;font-size:13px;color:#64748b;margin:0}
.agent-submit{width:150px;height:42px;border:0;border-radius:4px;background:#7013aa;color:#fff;font-size:14px;font-weight:900;cursor:pointer}
.agent-submit:hover{background:#5f1091}

/* ================================================================
   会员中心
   ================================================================ */
.member-center-shell{width:80%;margin:24px auto 32px;padding:0;display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px}
.member-center-flash{grid-column:1/-1;margin:0}
.member-center-sidebar,.member-center-panel{background:#fff;border:1px solid #dde3ea;border-radius:4px;box-shadow:0 16px 36px rgba(15,23,42,.04)}
.member-center-sidebar{padding:22px}
.member-center-user{display:flex;align-items:center;gap:14px;border-bottom:1px solid #e2e8f0;padding-bottom:18px;margin-bottom:18px}
.member-center-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.member-center-avatar-fallback{display:flex;align-items:center;justify-content:center;background:#7013aa;color:#fff;font-size:28px;font-weight:800}
.member-center-user-text h1{font-size:18px;line-height:1.2;font-weight:800;color:#0f172a;margin:0 0 6px;letter-spacing:0}
.member-center-user-text p{font-size:13px;color:#64748b;margin:0}
.member-center-side-nav{display:flex;flex-direction:column;gap:8px}
.member-center-side-tab{height:42px;border:0;border-radius:4px;background:transparent;color:#1f2937;text-align:left;padding:0 14px;font-size:14px;font-weight:700;cursor:pointer;transition:background .18s,color .18s}
.member-center-side-tab:hover{background:#f7f2fb;color:#7013aa}
.member-center-side-tab.active{background:#f1e8f7;color:#7013aa}
.member-center-logout{border-top:1px solid #e2e8f0;margin-top:18px;padding-top:16px}
.member-center-logout button{width:100%;height:38px;border:1px solid #fecaca;border-radius:4px;background:#fff;color:#dc2626;font-size:13px;font-weight:700;cursor:pointer}
.member-center-logout button:hover{background:#fef2f2}
.member-center-panel{min-height:328px;padding:0 28px 30px}
.member-center-tabs{height:62px;display:flex;align-items:flex-end;gap:20px;border-bottom:1px solid #d8dee8;overflow-x:auto}
.member-center-top-tab{height:62px;padding:0 22px;border:0;border-bottom:2px solid transparent;background:transparent;color:#64748b;font-size:14px;font-weight:800;white-space:nowrap;cursor:pointer}
.member-center-top-tab:hover{color:#7013aa}
.member-center-top-tab.active{color:#7013aa;border-bottom-color:#7013aa}
.member-center-view{display:none}
.member-center-view.active{display:block}
.member-center-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-bottom:1px solid #d8dee8;padding:28px 0 24px}
.member-center-head h2{font-size:30px;line-height:1.2;font-weight:900;color:#0f172a;margin:0 0 12px;letter-spacing:0}
.member-center-head p{font-size:14px;color:#64748b;margin:0}
.member-center-head strong{font-size:14px;color:#7013aa;white-space:nowrap;margin-bottom:2px}
.member-center-list{display:flex;flex-direction:column}
.member-center-loading,.member-center-empty{min-height:108px;display:flex;align-items:center;justify-content:center;color:#64748b;font-size:14px;border-bottom:1px solid #d8dee8}
.member-center-empty p{margin:0}
.member-center-item{min-height:110px;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,max-content);gap:24px;align-items:center;border-bottom:1px solid #d8dee8}
.member-center-item-main{text-decoration:none;color:inherit;min-width:0}
.member-center-item h3{font-size:20px;font-weight:800;color:#111827;margin:0 0 12px;line-height:1.3;letter-spacing:0}
.member-center-item-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;color:#64748b;font-size:13px}
.member-center-item-meta span:first-child{display:inline-flex;align-items:center;min-height:28px;border-radius:4px;background:#edf4ff;color:#2563eb;font-weight:800;padding:0 10px}
.member-center-item p{font-size:14px;color:#64748b;margin:10px 0 0;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.member-center-item-side{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0}
.member-center-item-side strong{font-size:16px;color:#111827;font-weight:800;max-width:none;overflow:visible;white-space:nowrap;text-align:right;flex:0 0 auto}
.member-center-item-side a{display:inline-flex;align-items:center;justify-content:center;width:130px;height:38px;border-radius:4px;background:#7013aa;color:#fff;font-size:14px;font-weight:800;text-decoration:none}
.member-center-item-side a:hover{background:#5f1091}
.member-center-form{padding-top:26px}
.member-center-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.member-center-form label{display:flex;flex-direction:column;gap:8px}
.member-center-form span{font-size:13px;font-weight:800;color:#334155}
.member-center-form input,.member-center-form select,.member-center-form textarea{width:100%;border:1px solid #d8dee8;border-radius:4px;background:#fff;color:#111827;font-size:14px;padding:11px 12px;outline:none;transition:border-color .18s,box-shadow .18s}
.member-center-form input:focus,.member-center-form select:focus,.member-center-form textarea:focus{border-color:#7013aa;box-shadow:0 0 0 3px rgba(112,19,170,.1)}
.member-center-form-textarea{margin-top:18px}
.member-center-form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px}
.member-center-form-actions p{font-size:14px;color:#64748b;margin:0}
.member-center-form-actions p.ok{color:#15803d}
.member-center-form-actions p.err{color:#dc2626}
.member-center-form-actions button{width:130px;height:42px;border:0;border-radius:4px;background:#7013aa;color:#fff;font-size:14px;font-weight:800;cursor:pointer}
.member-center-form-actions button:hover{background:#5f1091}
.member-center-form-actions button:disabled{opacity:.65;cursor:not-allowed}
@media(max-width:900px){
  .agent-console{grid-template-columns:1fr;width:auto;margin:16px;padding:0 16px}
  .agent-console-side{position:static}
  .agent-console-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-console-main{padding:0 18px 24px}
  .agent-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-console-grid{grid-template-columns:1fr}
  .agent-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-media-grid{grid-template-columns:1fr}
  .agent-layout-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-layout-row button{grid-column:1/-1}
  .member-center-shell{
    width:auto;grid-template-columns:1fr;gap:12px;
    margin:12px 0 28px;padding:0 14px;
  }
  .member-center-sidebar,.member-center-panel{
    border-radius:12px;box-shadow:none;
  }
  .member-center-sidebar{padding:16px}
  .member-center-user{gap:12px;padding-bottom:14px;margin-bottom:14px}
  .member-center-avatar{width:48px;height:48px}
  .member-center-avatar-fallback{font-size:22px}
  .member-center-user-text h1{font-size:17px;line-height:1.25;margin-bottom:4px}
  .member-center-user-text p{font-size:12px}
  .member-center-side-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .member-center-side-tab{
    height:38px;padding:0 8px;text-align:center;
    border:1px solid #d8dee8;border-radius:10px;font-size:13px;
  }
  .member-center-side-tab.active{border-color:#d8c5f0}
  .member-center-logout{margin-top:14px;padding-top:12px;text-align:stretch}
  .member-center-logout button{width:100%;height:38px;padding:0 18px;border-radius:10px}
  .member-center-panel{min-height:0;padding:0 16px 18px;overflow:hidden}
  .member-center-tabs{
    position:sticky;top:var(--header-h);z-index:50;
    height:auto;align-items:stretch;gap:0;margin:0 -16px;padding:0 16px;
    background:rgba(255,255,255,.96);backdrop-filter:blur(10px);
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  .member-center-tabs::-webkit-scrollbar{display:none}
  .member-center-top-tab{height:48px;padding:0 14px;font-size:13px;flex:0 0 auto}
  .member-center-head{align-items:flex-start;flex-direction:column;gap:8px;padding:20px 0 16px}
  .member-center-head h2{font-size:24px;margin-bottom:8px}
  .member-center-head p{font-size:13px;line-height:1.65}
  .member-center-head strong{font-size:13px;margin-bottom:0}
  .member-center-loading,.member-center-empty{min-height:96px}
  .member-center-item{grid-template-columns:1fr;gap:12px;padding:16px 0}
  .member-center-item h3{font-size:17px;margin-bottom:8px}
  .member-center-item-meta{gap:6px;font-size:12px}
  .member-center-item p{font-size:13px}
  .member-center-item-side{justify-content:space-between;gap:10px}
  .member-center-item-side strong{text-align:left;max-width:none;font-size:14px;white-space:normal}
  .member-center-item-side a{width:auto;min-width:112px;height:36px;border-radius:10px;font-size:13px}
}
@media(max-width:640px){
  .auth-form-wrap{padding:24px 20px}
  .agent-console{padding:0 12px;gap:14px}
  .agent-console-side{padding:18px}
  .agent-console-main{padding:0 14px 20px}
  .agent-console-head{align-items:flex-start;flex-direction:column}
  .agent-console-head h2{font-size:25px}
  .agent-console-head-actions{width:100%;justify-content:stretch}
  .agent-console-head-actions input,.agent-console-head-actions select,.agent-console-head-actions button{flex:1;min-width:0}
  .agent-stat-grid{grid-template-columns:1fr}
  .agent-publish-switch{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-form-grid{grid-template-columns:1fr}
  .agent-layout-row{grid-template-columns:1fr}
  .agent-upload-preview-grid{grid-template-columns:1fr}
  .agent-submit{width:100%}
  .member-center-shell{padding:0 12px;gap:12px}
  .member-center-sidebar{padding:14px}
  .member-center-tabs{gap:0}
  .member-center-top-tab{padding:0 12px;font-size:13px}
  .member-center-form-grid{grid-template-columns:1fr}
  .member-center-form{padding-top:18px}
  .member-center-form label{gap:6px}
  .member-center-form input,.member-center-form select,.member-center-form textarea{border-radius:10px;font-size:14px;padding:12px}
  .member-center-form-textarea{margin-top:14px}
  .member-center-form-actions{align-items:stretch;flex-direction:column}
  .member-center-form-actions button{width:100%}
}
