/* ============================================================
   jilong.es · 房产星空星云主题覆盖样式
   基于 Starry Sky Design System v1.0
   品牌色调：蓝星云背景 + 金色 #fbbf24 强调
   仅覆盖视觉层，不改变布局结构
   ============================================================ */

/* ---------- 全局覆盖 ---------- */
html {
  background: var(--bg-space) !important;
}

.starry-bg {
  background: var(--bg-space) !important;
  color: var(--text-primary) !important;
}

.starry-bg .page {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* 强制所有内容容器透明，让星空背景透出 */
.starry-bg main,
.starry-bg section,
.starry-bg .well,
.starry-bg .well1,
.starry-bg .ins1,
.starry-bg .container,
.starry-bg .row,
.starry-bg .grid_1,
.starry-bg .grid_2,
.starry-bg .grid_3,
.starry-bg .grid_4,
.starry-bg .grid_5,
.starry-bg .grid_6,
.starry-bg .grid_7,
.starry-bg .grid_8,
.starry-bg .grid_9,
.starry-bg .grid_10,
.starry-bg .grid_11,
.starry-bg .grid_12 {
  background: transparent !important;
}

/* 标题颜色覆盖 */
.starry-bg h1,
.starry-bg h2,
.starry-bg h3,
.starry-bg h4,
.starry-bg h5,
.starry-bg h6 {
  color: var(--text-primary) !important;
}

.starry-bg h1 a,
.starry-bg h2 a,
.starry-bg h3 a {
  color: var(--text-primary) !important;
}

.starry-bg h1 a:hover,
.starry-bg h2 a:hover,
.starry-bg h3 a:hover {
  color: var(--accent-gold) !important;
}

/* 段落文字 */
.starry-bg p,
.starry-bg li,
.starry-bg td,
.starry-bg span,
.starry-bg div {
  color: inherit;
}

.starry-bg p {
  color: var(--text-secondary) !important;
}

/* 链接 */
.starry-bg a {
  color: var(--accent-cyan) !important;
  transition: color 0.2s ease;
}
.starry-bg a:hover {
  color: var(--accent-gold) !important;
}

/* 水平线 */
.starry-bg hr {
  background: var(--glass-border) !important;
}

.starry-bg .hr {
  border-bottom-color: var(--accent-gold) !important;
}

/* ---------- Header / 导航栏 玻璃拟态 ---------- */
.starry-bg header {
  position: relative;
  z-index: 100;
}

.starry-bg header .container:first-child {
  background: rgba(10, 10, 26, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding-top: 12px !important;
  padding-bottom: 8px !important;
}

/* Logo 区域 */
.starry-bg .brand {
  position: relative;
}

.starry-bg .brand a {
  display: inline-block;
}

/* 国旗图标保持可见 */
.starry-bg header img[src*="banderas"] {
  opacity: 0.9;
}

/*  stuck_container 导航 - 玻璃拟态 */
.starry-bg #stuck_container,
.starry-bg .stuck_container {
  background: rgba(10, 10, 26, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* 导航菜单 */
.starry-bg .sf-menu {
  background: transparent !important;
}

.starry-bg .sf-menu > li > a {
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.25s ease !important;
  padding: 18px 16px !important;
}

.starry-bg .sf-menu > li > a:hover,
.starry-bg .sf-menu > li.active > a,
.starry-bg .sf-menu > li.current > a {
  color: var(--accent-gold) !important;
  background: rgba(251, 191, 36, 0.08) !important;
}

/* 下拉菜单 */
.starry-bg .sf-menu ul {
  background: rgba(13, 16, 51, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border) !important;
  border-radius: 0 0 8px 8px;
}

.starry-bg .sf-menu ul li a {
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}

.starry-bg .sf-menu ul li a:hover {
  color: var(--accent-gold) !important;
  background: rgba(251, 191, 36, 0.08) !important;
}

/* ---------- Hero / Camera Slider 区域 ---------- */
.starry-bg .camera_container {
  position: relative;
  background: var(--bg-space);
  border-bottom: 1px solid var(--glass-border);
}

.starry-bg .camera_wrap {
  min-height: 420px !important;
}

/* 在 slider 上叠加星空渐变遮罩，让图片融入星空主题 */
.starry-bg .camera_container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 5, 16, 0.3) 0%,
    rgba(10, 10, 26, 0.1) 40%,
    rgba(10, 10, 26, 0.6) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Banner 快捷入口 ---------- */
.starry-bg .banner_wr {
  padding: 40px 0 !important;
}

.starry-bg .banner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.starry-bg .banner li {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
}

.starry-bg .banner li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  text-align: center;
}

.starry-bg .banner li a:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
  transform: translateY(-3px);
  color: var(--accent-gold) !important;
}

.starry-bg .banner li a h3 {
  color: var(--text-primary) !important;
  font-size: 1.05rem !important;
  margin: 0 !important;
}

.starry-bg .banner li a:hover h3 {
  color: var(--accent-gold) !important;
}

.starry-bg .banner li img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
}

/* ---------- Section / Well 区域 ---------- */
.starry-bg .well,
.starry-bg .well1,
.starry-bg .ins1 {
  background: transparent !important;
  padding: 50px 0 !important;
}

.starry-bg section {
  position: relative;
  z-index: 1;
}

/* ---------- Box / 信息卡片 玻璃拟态 ---------- */
.starry-bg .box {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px !important;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.starry-bg .box:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-cyan);
}

.starry-bg .box .icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(0, 212, 255, 0.1)) !important;
  border: 1px solid var(--accent-gold) !important;
  color: var(--accent-gold) !important;
  border-radius: 50%;
  width: 56px !important;
  height: 56px !important;
  line-height: 56px !important;
  font-size: 1.4rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.starry-bg .box h3 {
  color: var(--text-primary) !important;
  margin-bottom: 8px !important;
}

.starry-bg .box h3 a {
  color: var(--text-primary) !important;
}

.starry-bg .box h3 a:hover {
  color: var(--accent-gold) !important;
}

.starry-bg .box p {
  color: var(--text-secondary) !important;
  margin: 0 !important;
}

/* ---------- Info Box 联系信息 ---------- */
.starry-bg .info-box {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px !important;
  transition: all 0.3s ease;
}

.starry-bg .info-box:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.12);
}

.starry-bg .info-box h2 {
  color: var(--accent-gold) !important;
  font-size: 1.5rem !important;
  margin-bottom: 16px !important;
}

.starry-bg .info-box h3 {
  color: var(--text-primary) !important;
  font-size: 1.1rem !important;
  margin: 16px 0 8px !important;
}

.starry-bg .info-box dt {
  color: var(--text-secondary) !important;
}

.starry-bg .info-box .fa-2x {
  color: var(--accent-gold) !important;
  font-size: 1.8rem !important;
}

/* ---------- Product List 产品列表 ---------- */
.starry-bg .product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.starry-bg .product-list li {
  margin-bottom: 0;
}

/* ---------- 房产列表组件 (jl-listings) 星空化 ---------- */
.starry-bg .jl-listings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* 工具栏 */
.starry-bg .jl-toolbar {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
}

.starry-bg .jl-toolbar select,
.starry-bg .jl-toolbar input {
  background: rgba(10, 10, 26, 0.8) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  min-width: 160px;
  transition: border-color 0.2s;
}

.starry-bg .jl-toolbar select:focus,
.starry-bg .jl-toolbar input:focus {
  outline: none;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.starry-bg .jl-toolbar select option {
  background: var(--bg-space-2);
  color: var(--text-primary);
}

.starry-bg .jl-count {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
}

/* 房产卡片网格 */
.starry-bg .jl-grid {
  gap: 24px;
}

/* 房产卡片 - 玻璃拟态 + 金色hover */
.starry-bg .jl-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-card) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}

.starry-bg .jl-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--accent-gold) !important;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.3),
    0 0 40px rgba(251, 191, 36, 0.18),
    0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

/* 卡片图片区 */
.starry-bg .jl-photo {
  background-color: var(--bg-space-2) !important;
  border-bottom: 1px solid var(--glass-border);
}

/* 操作标签 - 金色 */
.starry-bg .jl-badge {
  background: linear-gradient(135deg, var(--accent-gold), #f59e0b) !important;
  color: #1a1a2e !important;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.4);
}

/* 卡片内容区 */
.starry-bg .jl-body {
  padding: 18px 18px 20px !important;
  gap: 8px !important;
}

/* 价格 - 金色强调 */
.starry-bg .jl-price {
  color: var(--accent-gold) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  letter-spacing: -0.01em;
}

/* 标题 */
.starry-bg .jl-title {
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  line-height: 1.4;
  font-weight: 600;
  min-height: auto;
}

.starry-bg .jl-card:hover .jl-title {
  color: var(--accent-gold) !important;
}

/* 元信息 */
.starry-bg .jl-meta {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
}

/* 空状态 */
.starry-bg .jl-empty {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary) !important;
  padding: 60px 20px;
}

.starry-bg .jl-note {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  margin-top: 24px;
  text-align: center;
}

/* ---------- 页面标题区 (列表页 h2) ---------- */
.starry-bg .well1 .container > h2,
.starry-bg main section .container > h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  background: var(--galaxy-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px !important;
  line-height: 1.2 !important;
}

.starry-bg .well1 .container > p,
.starry-bg main section .container > p {
  color: var(--text-secondary) !important;
  font-size: 1.05rem;
  max-width: 700px;
}

/* ---------- 表单元素 ---------- */
.starry-bg input[type="text"],
.starry-bg input[type="email"],
.starry-bg input[type="tel"],
.starry-bg textarea,
.starry-bg select {
  background: rgba(10, 10, 26, 0.8) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.starry-bg input:focus,
.starry-bg textarea:focus,
.starry-bg select:focus {
  outline: none;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.starry-bg input::placeholder,
.starry-bg textarea::placeholder {
  color: var(--text-muted);
}

/* 按钮 - 统一星空主题 */
.starry-bg input[type="submit"],
.starry-bg input[type="button"],
.starry-bg button,
.starry-bg .btn {
  background: var(--accent-gold) !important;
  color: #1a1a2e !important;
  border: none !important;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.starry-bg input[type="submit"]:hover,
.starry-bg input[type="button"]:hover,
.starry-bg button:hover,
.starry-bg .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.4);
  color: #1a1a2e !important;
}

/* ---------- 表格 ---------- */
.starry-bg table {
  color: var(--text-secondary);
  border-collapse: collapse;
  width: 100%;
}

.starry-bg table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--glass-border);
}

/* 表格斑马纹 - 星空风格 */
.starry-bg table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03) !important;
}

.starry-bg table tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.01) !important;
}

.starry-bg table tr:hover td {
  background: rgba(251, 191, 36, 0.06) !important;
}

.starry-bg table a.listado {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.starry-bg table a.listado:hover {
  color: var(--accent-gold) !important;
  background: rgba(251, 191, 36, 0.08);
}

/* ---------- iframe (外部 buscador) ---------- */
.starry-bg iframe {
  background: var(--bg-space);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

/* ---------- Footer 深色渐变 ---------- */
.starry-bg footer {
  background: linear-gradient(180deg, var(--bg-space) 0%, var(--bg-deep-space) 100%) !important;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.starry-bg footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--galaxy-gradient);
  opacity: 0.4;
}

.starry-bg footer .well1 {
  padding: 40px 0 24px !important;
  background: transparent !important;
}

.starry-bg footer .container {
  position: relative;
  z-index: 1;
}

/* footer 链接 */
.starry-bg footer a.inf {
  color: var(--text-secondary) !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.starry-bg footer a.inf:hover {
  color: var(--accent-gold) !important;
  background: rgba(251, 191, 36, 0.08);
}

.starry-bg footer a.pq {
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
}

.starry-bg footer a.pq:hover {
  color: var(--accent-cyan) !important;
}

/* footer 分隔符 | */
.starry-bg footer .container[align="center"] {
  color: var(--text-muted);
  line-height: 2;
}

/* ---------- Cookie 提示框 ---------- */
.starry-bg #overbox3 {
  z-index: 999999 !important;
}

.starry-bg #infobox3 {
  background: rgba(13, 16, 51, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--accent-gold);
  padding: 8px 0;
}

.starry-bg #infobox3 p {
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
}

.starry-bg #infobox3 a {
  color: var(--accent-cyan) !important;
  border-color: var(--glass-border) !important;
  border-radius: 4px;
}

.starry-bg #infobox3 a:hover {
  color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
}

/* ---------- 通用内容页面 (文章/服务页) ---------- */
.starry-bg .container > h2,
.starry-bg .container > h3 {
  color: var(--text-primary) !important;
}

.starry-bg .container p {
  color: var(--text-secondary) !important;
}

.starry-bg .container ul,
.starry-bg .container ol {
  color: var(--text-secondary);
}

.starry-bg .container li {
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* 强调文字 */
.starry-bg .naranja {
  color: var(--accent-gold) !important;
}

/* ---------- 响应式 移动端 ---------- */
@media (max-width: 768px) {
  .starry-bg .sf-menu > li > a {
    padding: 14px 10px !important;
    font-size: 0.8rem !important;
  }

  .starry-bg .banner li {
    min-width: 140px;
    max-width: 100%;
  }

  .starry-bg .banner li a {
    padding: 20px 14px;
  }

  .starry-bg .jl-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .starry-bg .jl-toolbar select,
  .starry-bg .jl-toolbar input {
    width: 100%;
    min-width: auto;
  }

  .starry-bg .jl-count {
    margin-left: 0;
    text-align: center;
  }

  .starry-bg .info-box {
    padding: 20px !important;
  }

  .starry-bg .box {
    padding: 18px !important;
  }

  .starry-bg header .container:first-child {
    text-align: center;
  }

  .starry-bg .brand {
    text-align: center;
    margin-bottom: 8px;
  }

  .starry-bg footer a.inf {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .starry-bg .jl-grid {
    grid-template-columns: 1fr;
  }

  .starry-bg .banner {
    flex-direction: column;
    align-items: center;
  }

  .starry-bg .banner li {
    width: 100%;
    max-width: 100%;
  }
}

/* ---------- 滚动条 ---------- */
.starry-bg ::-webkit-scrollbar {
  width: 8px;
}
.starry-bg ::-webkit-scrollbar-track {
  background: var(--bg-space);
}
.starry-bg ::-webkit-scrollbar-thumb {
  background: var(--bg-space-3);
  border-radius: 4px;
}
.starry-bg ::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* 选中文字 */
.starry-bg ::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fff;
}
