:root {
  --bg: #efe7dc;
  --paper: #faf5ee;
  --panel: #ffffff;
  --soft: #efe4d5;
  --line: #dacdbd;
  --text: #231a16;
  --muted: #75665d;
  --accent: #9a5d47;
  --accent-strong: #6e4032;
  --accent-soft: #b78974;
  --accent-tint: #f3e0d6;
  --shadow: 0 18px 48px rgba(77, 43, 32, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(194, 135, 109, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(170, 116, 86, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    linear-gradient(180deg, #f5ede3 0%, var(--bg) 42%, #eee4d9 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1240px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 237, 227, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(154, 93, 71, 0.12);
}

.site-header-inner,
.city-bar-inner,
.footer-grid,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header-inner {
  min-height: 68px;
  flex-wrap: nowrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-text {
  display: block;
  min-width: 0;
}

.brand-text strong,
.footer-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.city-trigger {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 93, 71, 0.14);
  background: rgba(255, 250, 246, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.city-trigger span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.main-nav,
.footer-links,
.city-links,
.chip-row,
.hero-actions,
.filter-actions,
.auth-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.main-nav {
  margin-left: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.main-nav a,
.footer-links a,
.text-link {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--text);
}

.city-bar {
  padding: 18px 0 2px;
}

.city-bar-copy h1,
.hero-copy h2,
.section-head h2,
.section-head h3,
.detail-copy h2,
.auth-brand h2 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Times New Roman", "Source Han Serif SC", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.city-bar-copy h1 {
  font-size: clamp(22px, 3vw, 32px);
}

.city-bar-note,
.footer-copy,
.hero-copy p,
.member-summary,
.feature-card p,
.detail-bio,
.faq-item p {
  color: var(--muted);
}

.city-switcher {
  min-width: 280px;
}

.city-switcher summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
}

.city-switcher summary::-webkit-details-marker {
  display: none;
}

.city-switcher-panel,
.feature-card,
.auth-card,
.auth-brand,
.profile-card,
.empty-panel,
.pagination-wrap,
.detail-hero,
.hero-panel,
.filter-toolbar {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: var(--shadow);
}

.city-switcher-panel {
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  max-height: 58vh;
  overflow: auto;
}

.city-group + .city-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 18, 18, 0.06);
}

.city-group-name {
  font-size: 14px;
  font-weight: 700;
}

.city-links {
  margin-top: 10px;
  gap: 10px;
}

.city-links a {
  padding: 4px 0;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.city-links a:hover {
  color: var(--text);
  border-color: rgba(18, 18, 18, 0.35);
}

.page-shell {
  padding: 10px 0 36px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 26px;
  min-height: 560px;
  padding: 36px;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 34%),
    radial-gradient(circle at bottom right, rgba(194, 132, 106, 0.14), transparent 30%),
    linear-gradient(135deg, #fbf5ee 0%, #f5e7d8 44%, #e4c8b6 100%);
  border: 1px solid rgba(154, 93, 71, 0.12);
  box-shadow: 0 28px 84px rgba(121, 69, 49, 0.12);
}

.landing-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 620px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.8);
  border: 1px solid rgba(154, 93, 71, 0.14);
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.landing-hero-copy h1 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Times New Roman", "Source Han Serif SC", serif;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.landing-summary,
.landing-trust-row span,
.landing-panel-card p,
.landing-flow-card p,
.landing-metric-card span {
  color: var(--muted);
}

.landing-summary {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.72);
  border: 1px solid rgba(154, 93, 71, 0.08);
  font-size: 13px;
}

.landing-hero-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(63, 35, 26, 0.18), rgba(63, 35, 26, 0.02)),
    linear-gradient(145deg, #6f4334 0%, #8f5d48 30%, #c78f72 68%, #f0ddcf 100%);
  border: 1px solid rgba(255, 248, 243, 0.12);
  box-shadow: 0 26px 64px rgba(77, 43, 32, 0.16);
}

.landing-panel-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 14px;
}

.landing-panel-side {
  display: grid;
  gap: 14px;
}

.landing-panel-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.14);
  border: 1px solid rgba(255, 248, 243, 0.18);
  backdrop-filter: blur(12px);
  color: #fff;
}

.landing-panel-card span {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.landing-panel-card strong {
  display: block;
  margin-top: 12px;
  font-family: "Baskerville", "Iowan Old Style", "Times New Roman", "Source Han Serif SC", serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.08;
}

.landing-panel-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.landing-panel-card-main {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.landing-filter-toolbar {
  margin: 0;
  background: rgba(255, 251, 247, 0.96);
  border-color: rgba(154, 93, 71, 0.12);
  box-shadow: none;
}

.landing-filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.landing-filter-head strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.landing-filter-head span {
  color: var(--muted);
  font-size: 13px;
}

.landing-metric-row,
.landing-flow-grid {
  display: grid;
  gap: 14px;
}

.landing-metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-metric-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.2);
  border: 1px solid rgba(255, 248, 243, 0.16);
  color: #fff;
}

.landing-metric-card strong {
  font-size: 16px;
  font-weight: 600;
}

.landing-metric-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.landing-flow-section,
.landing-featured-section {
  margin-top: 28px;
}

.section-head-compact {
  margin-bottom: 14px;
}

.landing-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-flow-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 243, 236, 0.94)),
    linear-gradient(135deg, #f7efe7, #ead9cd);
  border: 1px solid rgba(154, 93, 71, 0.08);
  box-shadow: 0 18px 42px rgba(77, 43, 32, 0.06);
}

.landing-flow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.landing-flow-card h3 {
  margin: 18px 0 8px;
  font-family: "Baskerville", "Iowan Old Style", "Times New Roman", "Source Han Serif SC", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.04;
}

.landing-flow-card p {
  margin: 0;
}

.member-grid-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flash {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(18, 18, 18, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.flash-success {
  color: #244b35;
}

.flash-error {
  color: #833c2d;
}

.section {
  margin-top: 24px;
}

.section-tight {
  margin-top: 6px;
}

.hero-panel,
.detail-hero,
.auth-shell,
.profile-shell {
  display: grid;
  gap: 18px;
}

.hero-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  padding: 28px;
  border-radius: 32px;
  overflow: hidden;
}

.hero-panel-clean {
  background:
    linear-gradient(125deg, rgba(255, 251, 247, 0.84), rgba(255, 245, 236, 0.6)),
    linear-gradient(135deg, #f6ece2 0%, #f8f3ec 50%, #eedecf 100%);
}

.hero-copy h2,
.section-head h2,
.detail-copy h2,
.auth-brand h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.hero-copy {
  max-width: 640px;
}

.hero-visual {
  min-height: 420px;
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(93, 49, 35, 0.12), rgba(93, 49, 35, 0.03)),
    linear-gradient(135deg, #e6d0c1 0%, #fbf7f1 46%, #d8bea9 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-visual-panel {
  max-width: 280px;
}

.hero-visual-title {
  color: rgba(18, 18, 18, 0.56);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-visual-value {
  margin-top: 10px;
  font-size: clamp(68px, 8vw, 112px);
  line-height: 0.92;
  font-family: "Baskerville", "Times New Roman", serif;
}

.hero-visual-meta,
.hero-visual-lines span {
  color: rgba(18, 18, 18, 0.66);
  font-size: 14px;
}

.hero-visual-lines {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-dark {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(122, 67, 46, 0.18);
}

.btn-secondary {
  background: rgba(255, 248, 243, 0.9);
  color: var(--accent-strong);
  border-color: rgba(154, 93, 71, 0.16);
}

.btn-block {
  width: 100%;
}

.section-head {
  align-items: end;
  margin-bottom: 12px;
}

.member-grid,
.faq-list {
  display: grid;
  gap: 16px;
}

.member-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 240, 0.98));
  border: 1px solid rgba(154, 93, 71, 0.08);
  transition: transform .24s ease, box-shadow .24s ease;
  box-shadow: 0 12px 28px rgba(107, 63, 46, 0.07);
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(107, 63, 46, 0.12);
}

.member-cover {
  position: relative;
  aspect-ratio: 0.85 / 1;
  background: linear-gradient(135deg, #ead9cc, #dcbba7);
}

.member-cover img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  color: #fff;
  font-size: 13px;
}

.member-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #8f8578, #b5ab9f);
  font-size: 52px;
  font-family: "Baskerville", "Times New Roman", serif;
}

.member-placeholder-large {
  min-height: 100%;
  font-size: 110px;
}

.member-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 243, 0.92);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.member-body {
  padding: 14px;
}

.member-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.member-heading h3,
.feature-card h3,
.faq-item h4 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Source Han Serif SC", serif;
  font-weight: 500;
}

.member-heading span {
  color: var(--muted);
  font-size: 13px;
}

.chip-row {
  margin-top: 10px;
  gap: 8px;
}

.chip-row-large {
  margin: 20px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: 12px;
}

.feature-card,
.auth-brand,
.auth-card,
.profile-card,
.detail-hero {
  padding: 22px;
  border-radius: 28px;
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 14px;
  border-radius: 999px;
  overflow-x: auto;
}

.filter-toolbar-home {
  margin-top: -6px;
}

.filter-toolbar-stacked {
  display: grid;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  border-radius: 24px;
  overflow: visible;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.filter-toolbar-stacked .filter-item {
  flex: initial;
}

.filter-toolbar-stacked .filter-submit {
  width: 100%;
}

.filter-item {
  flex: 0 0 152px;
}

.filter-keyword {
  flex-basis: 260px;
}

.filter-toolbar input,
.filter-toolbar select,
.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(18, 18, 18, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 16px;
  color: var(--text);
}

.stack-form textarea {
  min-height: 132px;
  padding: 16px;
  border-radius: 18px;
  resize: vertical;
}

.filter-submit,
.filter-reset {
  flex: 0 0 auto;
}

.empty-panel,
.pagination-wrap {
  padding: 22px;
  border-radius: 24px;
  text-align: center;
}

.pagination-wrap {
  margin-top: 24px;
}

.pagination-wrap ul,
.pagination-wrap li {
  display: inline-flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.pagination-wrap a,
.pagination-wrap span {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.detail-hero {
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
}

.detail-media {
  overflow: hidden;
  border-radius: 24px;
  min-height: 640px;
  background: linear-gradient(135deg, #d9d2c7, #b9b0a2);
}

.city-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.city-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.42);
}

.city-modal-dialog {
  position: relative;
  width: min(980px, calc(100vw - 16px));
  height: calc(100dvh - 16px);
  max-height: calc(100dvh - 16px);
  margin: 8px auto;
  padding: 24px;
  border-radius: 28px;
  background: #f8f5ef;
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 28px 80px rgba(18, 18, 18, 0.18);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.city-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.city-modal-head h2 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Times New Roman", "Source Han Serif SC", serif;
  font-weight: 500;
  font-size: 24px;
}

.city-modal-close {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  background: #fff;
  cursor: pointer;
}

.city-modal-body {
  display: grid;
  gap: 20px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.city-modal-group {
  padding-top: 18px;
  border-top: 1px solid rgba(18, 18, 18, 0.06);
}

.city-modal-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.city-modal-group-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.city-modal-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px 12px;
}

.city-modal-link {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-modal-link:hover {
  color: var(--text);
  border-color: rgba(18, 18, 18, 0.16);
  background: rgba(255, 255, 255, 0.95);
}

.city-modal-link.disabled {
  opacity: 0.36;
  cursor: default;
}

.city-modal-loading {
  padding: 24px 0;
  color: var(--muted);
}

.detail-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid > div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.detail-grid span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
}

.auth-brand {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(247, 244, 238, 0.7)),
    linear-gradient(160deg, #f0ebe3, #dfd7ca);
}

.auth-switch {
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 999px;
  background: #f4f0e8;
}

.auth-switch a {
  flex: 1;
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.auth-switch .active {
  background: var(--accent);
  color: #fff;
}

.stack-form,
.filter-grid {
  display: grid;
  gap: 14px;
}

.stack-form label,
.filter-grid label {
  display: grid;
  gap: 8px;
}

.stack-form span,
.filter-grid span {
  font-size: 13px;
  font-weight: 700;
}

.profile-shell {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.profile-shell-wide {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.profile-preview-sticky {
  position: sticky;
  top: 98px;
}

.profile-preview {
  display: grid;
  gap: 18px;
}

.profile-preview-top {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-preview-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.profile-preview-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.profile-preview-location {
  color: var(--muted);
  font-size: 13px;
}

.profile-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-preview-item {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 248, 242, 0.96), rgba(245, 235, 225, 0.82));
  border: 1px solid rgba(154, 93, 71, 0.08);
}

.profile-preview-item span,
.profile-preview-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.profile-preview-item strong,
.profile-form-section h3 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Times New Roman", "Source Han Serif SC", serif;
  font-weight: 500;
}

.profile-preview-item strong {
  font-size: 16px;
  line-height: 1.3;
}

.profile-preview-item-status {
  background: linear-gradient(135deg, rgba(244, 231, 222, 0.96), rgba(236, 214, 197, 0.82));
}

.profile-form-section h3 {
  margin-bottom: 14px;
}

.field-note,
.form-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.profile-preview-note {
  margin: 0;
}

.photo-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.photo-upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 18px 18px 18px 20px;
  border-radius: 22px;
  border: 1px dashed rgba(154, 93, 71, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(245, 232, 223, 0.98)),
    linear-gradient(135deg, #fff8f2, #efdfd3);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.photo-upload-box:hover,
.photo-upload-box:focus-visible {
  border-color: rgba(154, 93, 71, 0.34);
  box-shadow: 0 14px 32px rgba(121, 69, 49, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.photo-upload-box.is-selected {
  border-style: solid;
  border-color: rgba(154, 93, 71, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 251, 247, 0.98), rgba(243, 227, 217, 0.98)),
    linear-gradient(135deg, #fffaf5, #ead7ca);
}

.photo-upload-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.photo-upload-copy strong {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.photo-upload-copy span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-all;
}

.photo-picker-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(154, 93, 71, 0.16);
  border-radius: 999px;
  background: #fffaf6;
  color: var(--accent-strong);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.photo-picker-btn:hover {
  border-color: rgba(154, 93, 71, 0.28);
  background: #f7ebe1;
  transform: translateY(-1px);
}

.profile-form-section + .profile-form-section {
  margin-top: 6px;
}

.profile-grid-2,
.profile-grid-3 {
  display: grid;
  gap: 14px;
  align-items: start;
}

.profile-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-form-section .checkbox-card {
  align-self: stretch;
}

.profile-grid-compact {
  margin-top: 14px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.checkbox-card span {
  font-size: 14px;
  font-weight: 500;
}

.interest-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-chip {
  appearance: none;
  border: 1px solid rgba(18, 18, 18, 0.1);
  background: #f7f3ec;
  color: #2d2a26;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.interest-chip:hover {
  transform: translateY(-1px);
}

.interest-chip.is-active {
  background: #1d1d1d;
  border-color: #1d1d1d;
  color: #fff;
}

.checkbox-card-wide {
  grid-column: 1 / -1;
  display: grid;
  align-items: stretch;
}

.checkbox-card-wide textarea {
  margin-top: 8px;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.profile-form-message {
  color: var(--muted);
  font-size: 13px;
}

.profile-form-message.is-success {
  color: #244b35;
}

.profile-form-message.is-error {
  color: #833c2d;
}

.member-cover-static {
  width: 200px;
  height: 200px;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 20px;
}

.site-footer {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.site-copyright {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.site-copyright a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy {
  max-width: 540px;
}

@media (max-width: 1100px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-panel-top,
  .landing-flow-grid,
  .landing-metric-row {
    grid-template-columns: 1fr;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel,
  .detail-hero,
  .auth-shell,
  .profile-shell,
  .profile-shell-wide {
    grid-template-columns: 1fr;
  }

  .profile-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-preview-top,
  .profile-preview-meta {
    grid-template-columns: 1fr;
  }

  .member-cover-static {
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 20px, 1240px);
  }

  .city-bar-inner,
  .footer-grid,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .main-nav {
    gap: 10px;
    margin-left: auto;
    flex-wrap: nowrap;
  }

  .brand-wrap {
    width: auto;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .hero-panel,
  .landing-hero,
  .feature-card,
  .auth-brand,
  .auth-card,
  .profile-card,
  .detail-hero {
    padding: 16px;
    border-radius: 24px;
  }

  .hero-copy h2,
  .section-head h2,
  .detail-copy h2,
  .auth-brand h2 {
    font-size: 26px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-hero-copy h1 {
    font-size: 34px;
  }

  .landing-trust-row,
  .landing-flow-grid,
  .landing-metric-row,
  .landing-panel-top,
  .profile-grid-2,
  .profile-grid-3,
  .detail-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .landing-filter-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .landing-panel-card {
    padding: 18px;
    border-radius: 20px;
  }

  .landing-flow-card {
    min-height: auto;
    padding: 20px;
  }

  .member-grid,
  .member-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .profile-preview-sticky {
    position: static;
    top: auto;
  }

  .profile-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .photo-upload-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-picker-btn {
    width: 100%;
  }

  .interest-chip-grid {
    gap: 8px;
  }

  .interest-chip {
    padding: 9px 14px;
  }

  .filter-toolbar {
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .filter-item,
  .filter-keyword,
  .filter-submit,
  .filter-reset,
  .btn,
  .btn-block {
    flex: 1 1 100%;
    width: 100%;
  }

  .detail-media {
    min-height: 420px;
  }

  .city-modal-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    margin: 6px auto;
    padding: 18px;
    border-radius: 20px;
  }
}
