/* ===== 易客网 (ykiw) - 房屋交换社区 ===== */
:root {
  --primary: #f78015;
  --primary-dark: #e68a00;
  --primary-light: #fde8d0;
  --bg: #f6f6f6;
  --white: #ffffff;
  --text: #333333;
  --text-light: #888888;
  --border: #e0e0e0;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 4px;
  --radius-sm: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo:hover { color: var(--primary-dark); }
.logo span { font-size: 24px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a {
  color: var(--text);
  font-size: 14px;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--primary); text-decoration: underline; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 2px;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== User Badge (DZ风格) ===== */
.user-badge-link { text-decoration: none; }
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 6px;
  background: #f0fdf4;
  border: 1px solid var(--primary-light);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.user-badge:hover { background: #d4edda; }
.user-badge-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.user-badge-points {
  font-size: 12px;
  color: #e67e22;
  font-weight: 600;
}
.btn-white {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-white:hover {
  background: var(--primary-light);
}
.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 24px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #f78015 0%, #ff9900 50%, #fde8d0 100%);
  padding: 40px 10px 30px;
  text-align: center;
  color: var(--white);
}
.hero-tagline {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.hero p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 搜索框 (仿SeekRoom) */
.hero-search-box {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px);
}
.hero-search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.hero-search-input-wrap {
  flex: 1;
  position: relative;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.hero-search-icon {
  font-size: 18px;
  margin-right: 4px;
}
.hero-search-input-wrap input {
  flex: 1;
  padding: 12px 8px;
  border: none;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.goal-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.goal-list-item {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.goal-list-item:hover {
  background: #e8f5e9;
}
.hero-search-select select {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  height: 100%;
  min-width: 130px;
}
.hero-search-btn {
  padding: 12px 28px;
  background: var(--primary-dark);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.hero-search-btn:hover { background: #219a52; }
.hero-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.85;
}
.share-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
.share-btn:hover {
  background: rgba(255,255,255,0.3);
}
.hot-cities {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hot-cities span {
  font-size: 13px;
}
.hot-cities a {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.18);
  border-radius: 16px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  transition: all 0.2s;
}
.hot-cities a:hover {
  background: rgba(255,255,255,0.35);
  color: var(--white);
}

/* ===== Features ===== */
.features {
  max-width: 1000px;
  margin: -30px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 10;
}
.feature-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.feature-tag {
  padding: 3px 12px;
  background: #e8f5e9;
  color: var(--primary-dark);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ===== Stats Bar ===== */
.stats-bar {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.stat-item:hover { transform: translateY(-2px); }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== Why Grid ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}
.why-card:hover { transform: translateY(-3px); }
.why-icon { font-size: 36px; margin-bottom: 12px; }
.why-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.why-desc { font-size: 14px; color: var(--text-light); line-height: 1.5; }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* ===== Section ===== */
.section { max-width: 1000px; margin: 20px auto; padding: 0 10px; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.preview h2 { display: block !important; }
.search-more { display: block; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e8f5e9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-owner-avatar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.card-body {
  padding: 16px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-location {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}
.card-info .stars { color: #f1c40f; }
.card-info strong { color: var(--text); }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.card-tags span {
  padding: 2px 10px;
  background: #e8f5e9;
  border-radius: 12px;
  font-size: 12px;
  color: var(--primary-dark);
}
.card-price {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #e67e22;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #f78015, #ff9900);
  padding: 60px 20px;
  text-align: center;
  color: var(--white);
}
.cta-section h2 { font-size: 32px; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }

/* ===== Footer ===== */
.footer {
  background: #333;
  color: #999;
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.footer h4 { color: #ccc; margin-bottom: 12px; font-size: 14px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer a { color: #a0a0b0; font-size: 14px; display: block; margin-bottom: 6px; }
.footer a:hover { color: var(--primary-light); }
.footer-bottom {
  max-width: 1000px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid #2a2a3e;
  text-align: center;
  font-size: 13px;
}

/* ===== Page Container ===== */
.container { max-width: 1000px; margin: 0 auto; padding: 0 10px; }
.page-content { padding: 30px 0; min-height: 60vh; }

/* ===== List Page ===== */
.list-top {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.list-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.list-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.list-search select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--white);
}
.house-count {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { color: var(--text); }

/* ===== Detail Page ===== */
.detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 24px;
  align-items: start;
}
.detail-images { min-width: 0; }
.detail-content { min-width: 0; }
.detail-sidebar { min-width: 0; }
.detail-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
}
.detail-main { min-width: 0; }
.detail-side { min-width: 0; }

.gallery {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.gallery-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: #e8f5e9;
  display: block;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}
.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; }

.detail-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
/* ===== Product Header ===== */
.product-header {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.product-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.space-type-badge {
  display: inline-block;
  padding: 3px 12px;
  background: #e8f5e9;
  color: var(--primary-dark);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}
.product-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.product-price {
  font-size: 18px;
  color: var(--primary-dark);
}
.product-price strong {
  font-size: 26px;
}
.product-exchanges {
  font-size: 14px;
  color: var(--text-light);
}
.product-rating {
  font-size: 14px;
}

/* ===== Specs Table ===== */
.product-specs {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table tr {
  border-bottom: 1px solid #f0f0f0;
}
.specs-table tr:last-child {
  border-bottom: none;
}
.specs-table td {
  padding: 10px 12px;
  font-size: 14px;
}
.spec-label {
  width: 100px;
  color: var(--text-light);
  font-weight: 500;
  background: #fafafa;
}
.spec-value {
  color: var(--text);
}
.specs-location {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.specs-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.specs-section-title {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}
.facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.facility-item {
  padding: 4px 12px;
  background: #e8f5e9;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid #c8e6c9;
}
.guest-types {
  display: flex;
  gap: 16px;
}
.guest-type-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text);
}
.guest-type-label input[type=checkbox] {
  accent-color: var(--primary);
}
.tag-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #e8f5e9;
  border-radius: 12px;
  font-size: 12px;
  color: var(--primary-dark);
  margin-right: 4px;
  margin-bottom: 2px;
}

/* ===== Product Actions ===== */
.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ===== Exchange Form ===== */
.exchange-form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 2px solid var(--primary-light);
}
.exchange-form-box h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

/* ===== Detail Section ===== */
.detail-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.section-heading {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}
.section-icon {
  font-size: 20px;
}
.detail-desc {
  line-height: 1.9;
  color: var(--text);
  font-size: 15px;
}

/* ===== DZ 楼层回帖 ===== */
.post-comment-box {
  background: #fafafa;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}
.post-comment-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}
.post-comment-box textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.floor-list {
  margin-top: 0;
}
.floor-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.floor-item:last-child {
  border-bottom: none;
}
.floor-side {
  text-align: center;
}
.floor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
  display: block;
  margin: 0 auto 6px;
}
.floor-username {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}
.floor-main {
  flex: 1;
  min-width: 0;
}
.floor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.floor-num {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 14px;
}
.floor-time {
  color: var(--text-light);
  font-size: 12px;
}
.floor-rating {
  font-size: 12px;
}
.floor-content {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}
.floor-actions {
  margin-top: 8px;
}
.floor-reply-link {
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}
.floor-reply-link:hover {
  color: var(--primary-dark);
}
.floor-reply-form {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.floor-reply-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.floor-replies {
  margin-top: 12px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  padding: 12px;
}
.floor-reply-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.floor-reply-item:last-child {
  border-bottom: none;
}

/* ===== DZ 新增：功能按钮样式 ===== */
.floor-action-link {
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  user-select: none;
}
.floor-action-link:hover {
  color: var(--primary-dark);
}
.floor-action-link.liked {
  color: #e67e22;
  font-weight: 600;
}
.floor-action-link.disliked {
  color: #3498db;
  font-weight: 600;
}
.floor-action-sep {
  color: #ddd;
  font-size: 12px;
  margin: 0 4px;
  user-select: none;
}

/* 最后编辑时间 */
.floor-edited {
  font-size: 11px;
  color: #bbb;
  font-style: italic;
  margin-left: 4px;
}

/* 用户等级标签 */
.floor-user-level {
  display: inline-block;
  padding: 1px 8px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* 引用文本样式 */
.quote-text {
  padding: 8px 12px;
  background: #f5f5f5;
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

/* 回复表单 textarea */
.floor-reply-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}
.floor-reply-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

@media (max-width: 1024px) {
  .detail-wrapper {
    grid-template-columns: 1fr;
  }
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 14px;
}
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-desc {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.side-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.side-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.owner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.owner-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
}
.owner-name { font-weight: 600; font-size: 16px; }
.owner-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #e8f5e9;
  color: var(--primary-dark);
  border-radius: 12px;
  font-size: 12px;
}

/* ===== Calendar ===== */
.calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.calendar th {
  background: var(--primary);
  color: white;
  padding: 8px;
  text-align: center;
}
.calendar td {
  padding: 8px;
  text-align: center;
  border: 1px solid var(--border);
}
.calendar td.available { color: var(--primary-dark); font-weight: 600; cursor: pointer; }
.calendar td.booked { background: #ffe0e0; color: #e74c3c; }
.calendar td.today { background: var(--primary-light); }

/* ===== Comments ===== */
.comments-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.comment-item:last-child { border-bottom: none; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
}
.comment-name { font-weight: 600; }
.comment-time { color: var(--text-light); font-size: 12px; }
.comment-content { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.comment-stars { color: #f1c40f; font-size: 13px; }
.comment-reply {
  margin-left: 48px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

/* ===== Forms ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
}
.form-card h2 { text-align: center; margin-bottom: 24px; font-size: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-tip { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ===== Post Page ===== */
.post-layout {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.post-layout h2 { margin-bottom: 24px; font-size: 22px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== My Page ===== */
.my-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.my-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.my-sidebar .user-card { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.my-sidebar .user-card img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px;
}
.my-sidebar .user-card .name { font-weight: 600; }
.my-sidebar .user-card .score { font-size: 13px; color: var(--text-light); }
.my-sidebar nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: background 0.2s;
  margin-bottom: 4px;
}
.my-sidebar nav a:hover, .my-sidebar nav a.active {
  background: #e8f5e9;
  color: var(--primary-dark);
}
.my-content {
  min-width: 0;
}
.my-content h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: all 0.2s;
}
.pagination a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.success { background: var(--primary-dark); }
.toast.error { background: #e74c3c; }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ===== Message / Alert ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-error { background: #ffe0e0; color: #c0392b; }
.alert-success { background: #d4edda; color: #155724; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .features { grid-template-columns: 1fr; margin-top: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .my-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .header-inner { padding: 0 12px; }
  .post-layout { padding: 20px; }
}

/* ===== Loading Spinner ===== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.type-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.type-tab {
  padding: 6px 16px;
  font-size: 14px;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
}
.type-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.type-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Rich Text Editor ===== */
.editor-toolbar {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  flex-wrap: wrap;
}
.editor-toolbar button {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.editor-toolbar button:hover {
  background: #e8f5e9;
  border-color: var(--primary);
}
.editor-word-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
}
.post-comment-box textarea {
  border-radius: 0 0 4px 4px;
  border-top: none;
}
.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  max-height: 120px;
  overflow-y: auto;
}
.emoji-picker span {
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 20px;
}
.emoji-picker span:hover {
  background: #e8f5e9;
}

.city-selector{position:relative}
.city-input{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;box-sizing:border-box}
.city-dropdown{position:absolute;top:100%;left:0;right:0;background:white;border:1px solid #ddd;border-radius:0 0 6px 6px;max-height:320px;overflow-y:auto;z-index:100;box-shadow:0 4px 12px rgba(0,0,0,.1);display:none}
.city-dropdown .letter-group{border-bottom:1px solid #eee}
.city-dropdown .letter-label{padding:6px 12px;background:#f8f9fa;font-size:12px;color:#888;font-weight:600}
.city-dropdown .city-item{padding:8px 12px;cursor:pointer;font-size:14px;transition:background .15s}
.city-dropdown .city-item:hover{background:#f78015;color:white}
.city-dropdown .city-item.hot{font-weight:600}
.city-dropdown .city-item .py{font-size:11px;color:#aaa;margin-left:8px}


/* 图片压缩加载 */
.card-img, .detail-images img {
    background: #f5f5f5;
    transition: opacity 0.3s;
}
.card-img[loading], .detail-images img[loading] {
    opacity: 0.7;
}
