/* ============================================================
   jilong.es · 星空主题 v2 — 深色装饰区 + 白色内容区
   基于 Starry Sky Design System v1.0
   品牌色调：深蓝紫星空 + 金色 #fbbf24 强调
   核心原则：装饰区(导航/Hero/页脚)保留星空玻璃拟态
            内容区(main/section/.well/.box/表格/表单)恢复白色背景+深色文字
   禁止：全局强制 h1-h6/p/a 颜色；全局强制内容容器 transparent
   ============================================================ */

/* ===== 1. 基础层：html / body / page ===== */
html {
  background: var(--bg-space) !important;
}

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

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

/* ===== 2. 装饰区：导航栏玻璃拟态 ===== */
/* P1-1 修复：header 透明，让星空背景透出来，玻璃拟态叠加在星空上而非白色上 */
.starry-bg header {
  position: relative;
  z-index: 100;
  background: transparent ;
}

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

.starry-bg .brand {
  position: relative;
}

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

.starry-bg header img[src*="banderas"] {
  opacity: 0.9;
}

/* 吸顶导航 — 覆盖原酒红色 #9a5354 */
.starry-bg #stuck_container,
.starry-bg .stuck_container {
  background: rgba(10, 10, 26, 0.85) ;
  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 ;
}

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

.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) ;
  background: rgba(251, 191, 36, 0.08) ;
}

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

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

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

/* ===== 3. 装饰区：Hero / Camera Slider ===== */
/* P0-1 修复：camera.js 已丢失，改用纯 CSS 静态星空 Hero */
.starry-bg .camera_container {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(180deg,
      rgba(5, 5, 16, 0.75) 0%,
      rgba(5, 5, 16, 0.35) 25%,
      rgba(5, 5, 16, 0.15) 50%,
      rgba(5, 5, 16, 0.45) 75%,
      rgba(5, 5, 16, 0.85) 100%),
    url('/images/backgrounds/galaxy-hero-v2.webp') center 30%/cover no-repeat !important;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 24px;
}

/* 隐藏失效的 camera 滑块（JS 和图片均已丢失） */
.starry-bg .camera_wrap {
  display: none !important;
}

/* Hero 主标题 — CSS 伪元素注入（HTML 中 caption 内容被注释） */
.starry-bg .camera_container::before {
  content: "JILONG";
  position: relative;
  z-index: 3;
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow:
    0 2px 30px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(251, 191, 36, 0.25);
  text-align: center;
  line-height: 1.1;
}

/* Hero 副标题 */
.starry-bg .camera_container::after {
  content: "Su socio inmobiliario de confianza en Barcelona";
  position: relative;
  z-index: 3;
  color: #d0d0e8;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  text-align: center;
  max-width: 640px;
  line-height: 1.6;
}

/* ===== 4. 装饰区：Banner 快捷入口 ===== */
.starry-bg .banner_wr {
  padding: 40px 0 ;
  background: transparent ;
  min-height: auto ;
}

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

/* P1-2 修复：覆盖 style.css 中 .banner li 的红棕色 #9a5354 背景和固定布局 */
.starry-bg .banner li,
.starry-bg .banner li:nth-child(1),
.starry-bg .banner li:nth-child(2),
.starry-bg .banner li:nth-child(3),
.starry-bg .banner li:nth-child(4) {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  background: transparent ;
  height: auto ;
  float: none ;
  margin-top: 0 ;
  padding: 0 ;
  color: inherit ;
}

/* 隐藏 style.css 中 .banner li a:before 的箭头图标 */
.starry-bg .banner li a:before {
  display: none !important;
}

/* P1-2 修复：快捷入口卡片改为白色卡片 + 金色图标 + 深色文字，与内容区风格一致 */
.starry-bg .banner li a {
  position: relative ;
  bottom: auto ;
  right: auto ;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.97) ;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  color: #1a1a2e ;
  text-decoration: none ;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.starry-bg .banner li a:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  color: var(--accent-gold) ;
}

.starry-bg .banner li a h3 {
  color: #1a1a2e ;
  font-size: 1.05rem ;
  margin: 0 ;
}

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

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

/* ================================================================
   5. 内容区：白色背景恢复（核心修复）
   装饰区例外：section.camera_container (Hero)、footer 内的 well1
   ================================================================ */
.starry-bg main,
.starry-bg section,
.starry-bg .well,
.starry-bg .well1,
.starry-bg .ins1,
.starry-bg .ins2,
.starry-bg .ins3,
.starry-bg .ins4,
.starry-bg .ins5 {
  background: #ffffff ;
  color: #444444;
}

/* 装饰区例外：页脚内容区保持透明（Hero 由 .camera_container 自行设置星空背景） */
.starry-bg footer .well,
.starry-bg footer .well1,
.starry-bg footer .well1 .container {
  background: transparent ;
}

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

/* 布局容器保持透明（背景由父级 section/.well 控制） */
.starry-bg .container,
.starry-bg .row,
.starry-bg [class*="grid_"] {
  background: transparent ;
}

/* ===== 6. 内容区：文字颜色（上下文选择器，禁止全局） ===== */

/* 内容区标题 — 深色 */
.starry-bg main h1,
.starry-bg main h2,
.starry-bg main h3,
.starry-bg main h4,
.starry-bg main h5,
.starry-bg main h6,
.starry-bg .well h1,
.starry-bg .well h2,
.starry-bg .well h3,
.starry-bg .well h4,
.starry-bg .well h5,
.starry-bg .well h6,
.starry-bg .well1 h1,
.starry-bg .well1 h2,
.starry-bg .well1 h3,
.starry-bg .well1 h4,
.starry-bg .well1 h5,
.starry-bg .well1 h6,
.starry-bg .ins1 h1,
.starry-bg .ins1 h2,
.starry-bg .ins1 h3,
.starry-bg .ins1 h4,
.starry-bg .ins1 h5,
.starry-bg .ins1 h6 {
  color: #1a1a2e ;
}

.starry-bg main h1 a,
.starry-bg main h2 a,
.starry-bg main h3 a,
.starry-bg .well h1 a,
.starry-bg .well h2 a,
.starry-bg .well h3 a,
.starry-bg .well1 h1 a,
.starry-bg .well1 h2 a,
.starry-bg .well1 h3 a {
  color: #1a1a2e ;
}

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

/* 内容区段落 — 中深灰 */
.starry-bg main p,
.starry-bg .well p,
.starry-bg .well1 p,
.starry-bg .ins1 p,
.starry-bg .ins2 p,
.starry-bg .ins3 p,
.starry-bg .ins4 p,
.starry-bg .ins5 p {
  color: #444444 ;
}

/* 内容区列表 — 中深灰 */
.starry-bg main li,
.starry-bg .well li,
.starry-bg .well1 li,
.starry-bg .ins1 li {
  color: #444444;
  margin-bottom: 6px;
}

/* 内容区链接 — 蓝色，hover 金色 */
.starry-bg main a,
.starry-bg .well a,
.starry-bg .well1 a,
.starry-bg .ins1 a {
  color: #2563eb ;
  transition: color 0.2s ease;
}

.starry-bg main a:hover,
.starry-bg .well a:hover,
.starry-bg .well1 a:hover,
.starry-bg .ins1 a:hover {
  color: var(--accent-gold) ;
}

/* 页面大标题 — 银河渐变文字（设计亮点，保留） */
.starry-bg .well1 .container > h2,
.starry-bg main section .container > h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem) ;
  font-weight: 700 ;
  background: var(--galaxy-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px ;
  line-height: 1.2 ;
}

/* 大标题下的描述 — 中灰 */
.starry-bg .well1 .container > p,
.starry-bg main section .container > p {
  color: #666666 ;
  font-size: 1.05rem;
  max-width: 700px;
}

/* 水平线 */
.starry-bg hr {
  background: #e5e7eb ;
  border: none;
  height: 1px;
}

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

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

/* ===== 7. 内容区：卡片组件 ===== */

/* .box — 白色卡片 + 浅灰边框 + 柔和阴影 */
.starry-bg .box {
  background: #ffffff ;
  border: 1px solid #e8e8e8 ;
  border-radius: 8px ;
  padding: 24px ;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) ;
  backdrop-filter: none ;
  transition: all 0.3s ease;
}

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

/* .box 图标 — 金色圆形 */
.starry-bg .box .icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a) ;
  border: 1px solid var(--accent-gold) ;
  color: #b45309 ;
  border-radius: 50%;
  width: 56px ;
  height: 56px ;
  line-height: 56px ;
  font-size: 1.4rem ;
  display: flex;
  align-items: center;
  justify-content: center;
}

.starry-bg .box h3,
.starry-bg .box h3 a {
  color: #1a1a2e ;
  margin-bottom: 8px ;
}

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

.starry-bg .box p {
  color: #666666 ;
  margin: 0 ;
}

/* P1-3 修复：内容区内的 .info-box 改为白色卡片 + 深色文字（原深色玻璃在白底上显灰） */
.starry-bg .info-box {
  background: #ffffff ;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 32px ;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

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

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

.starry-bg .info-box h3 {
  color: #1a1a2e ;
  font-size: 1.1rem ;
  margin: 16px 0 8px ;
}

.starry-bg .info-box dt {
  color: #555555 ;
}

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

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

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

/* ===== 8. 内容区：表格 ===== */
.starry-bg main table,
.starry-bg .well table,
.starry-bg .well1 table,
.starry-bg .ins1 table {
  background: #ffffff ;
  color: #444444 ;
  border-collapse: collapse;
  width: 100%;
}

.starry-bg main table th,
.starry-bg .well table th,
.starry-bg .well1 table th {
  background: #f3f4f6 ;
  color: #1a1a2e ;
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 2px solid #e5e7eb;
  text-align: left;
}

.starry-bg main table td,
.starry-bg .well table td,
.starry-bg .well1 table td {
  color: #444444 ;
  padding: 10px 8px;
  border-bottom: 1px solid #eeeeee ;
}

/* 斑马纹 — 浅灰 */
.starry-bg main table tr:nth-child(even) td,
.starry-bg .well table tr:nth-child(even) td,
.starry-bg .well1 table tr:nth-child(even) td {
  background: #f9fafb ;
}

.starry-bg main table tr:nth-child(odd) td,
.starry-bg .well table tr:nth-child(odd) td,
.starry-bg .well1 table tr:nth-child(odd) td {
  background: #ffffff ;
}

/* 悬停 — 金色高亮 */
.starry-bg main table tr:hover td,
.starry-bg .well table tr:hover td,
.starry-bg .well1 table tr:hover td {
  background: #fef9e7 ;
}

/* 房产列表链接 — 金色 */
.starry-bg main table a.listado,
.starry-bg .well table a.listado,
.starry-bg .well1 table a.listado {
  color: #b45309 ;
  text-decoration: none ;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

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

/* ===== 9. 内容区：表单 ===== */
.starry-bg main input[type="text"],
.starry-bg main input[type="email"],
.starry-bg main input[type="tel"],
.starry-bg main input[type="password"],
.starry-bg main textarea,
.starry-bg main select,
.starry-bg .well input,
.starry-bg .well textarea,
.starry-bg .well select,
.starry-bg .well1 input,
.starry-bg .well1 textarea,
.starry-bg .well1 select {
  background: #ffffff ;
  color: #333333 ;
  border: 1px solid #cccccc ;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.starry-bg main input::placeholder,
.starry-bg main textarea::placeholder,
.starry-bg .well input::placeholder,
.starry-bg .well textarea::placeholder {
  color: #9ca3af;
}

/* 按钮 — 金色 */
.starry-bg main input[type="submit"],
.starry-bg main input[type="button"],
.starry-bg main button,
.starry-bg main .btn,
.starry-bg .well input[type="submit"],
.starry-bg .well input[type="button"],
.starry-bg .well button,
.starry-bg .well .btn {
  background: var(--accent-gold) ;
  color: #1a1a2e ;
  border: none ;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* ===== 10. iframe — 白色背景 ===== */
.starry-bg iframe {
  background: #ffffff ;
  border: none ;
  border-radius: 0 ;
}

/* 房产搜索 iframe 特定 */
.starry-bg iframe#miFrame,
.starry-bg iframe[src*="buscador"],
.starry-bg iframe[src*="comprar"],
.starry-bg iframe[src*="vender"],
.starry-bg iframe[src*="nlistado"] {
  background: #ffffff ;
  border: none ;
}

/* ================================================================
   11. 自定义组件：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) ;
  color: var(--text-primary) ;
  border: 1px solid var(--glass-border) ;
  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) ;
  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) ;
  font-size: 0.9rem;
}

.starry-bg .jl-grid {
  gap: 24px;
}

/* P1-4 修复：房产列表卡片改为白色背景 + 深色文字 + 金色价格 */
.starry-bg .jl-card {
  background: #ffffff ;
  border: 1px solid #e8e8e8 ;
  border-radius: var(--radius-lg) ;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) ;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) ;
  text-decoration: none ;
}

.starry-bg .jl-card:hover {
  transform: translateY(-4px) ;
  border-color: var(--accent-gold) ;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.25),
    0 8px 30px rgba(251, 191, 36, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.starry-bg .jl-photo {
  background-color: #f5f5f7 ;
  border-bottom: 1px solid #eeeeee;
}

.starry-bg .jl-badge {
  background: linear-gradient(135deg, var(--accent-gold), #f59e0b) ;
  color: #1a1a2e ;
  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 ;
  gap: 8px ;
}

.starry-bg .jl-price {
  color: var(--accent-gold) ;
  font-size: 1.5rem ;
  font-weight: 700 ;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  letter-spacing: -0.01em;
}

.starry-bg .jl-title {
  color: #1a1a2e ;
  font-size: 1rem ;
  line-height: 1.4;
  font-weight: 600;
  min-height: auto;
}

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

.starry-bg .jl-meta {
  color: #666666 ;
  font-size: 0.85rem ;
}

.starry-bg .jl-empty {
  background: #ffffff ;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  color: #666666 ;
  padding: 60px 20px;
}

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

/* ===== 12. 装饰区：Footer 深色渐变 ===== */
.starry-bg footer {
  background: linear-gradient(180deg, var(--bg-space) 0%, var(--bg-deep-space) 100%) ;
  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 ;
  background: transparent ;
}

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

/* footer 标题 — 浅色 */
.starry-bg footer h1,
.starry-bg footer h2,
.starry-bg footer h3,
.starry-bg footer h4,
.starry-bg footer h5,
.starry-bg footer h6 {
  color: var(--text-primary) ;
}

/* footer 段落 — 浅色 */
.starry-bg footer p {
  color: var(--text-secondary) ;
}

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

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

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

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

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

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

.starry-bg #infobox3 {
  background: rgba(13, 16, 51, 0.95) ;
  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) ;
  font-size: 0.9rem ;
}

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

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

/* ================================================================
   14. 系统B适配：agileits_w3layouts（房产详情页 87页）
   ================================================================ */

/* 系统B 内容区 — 白色背景 */
.starry-bg .containerO,
.starry-bg .single-property,
.starry-bg .single-property.add-bottom-2,
.starry-bg .lighted {
  background: #ffffff ;
  color: #444444;
}

/* 系统B 布局容器 — 透明 */
.starry-bg .containerO .row,
.starry-bg .containerO .columns,
.starry-bg .containerO .twelve,
.starry-bg .containerO .ten,
.starry-bg .containerO .five,
.starry-bg .containerO .four,
.starry-bg .containerO .full {
  background: transparent ;
}

/* 系统B 导航 — 深色玻璃拟态 */
.starry-bg .agileits_w3layouts_banner_nav {
  background: rgba(10, 10, 26, 0.85) ;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.starry-bg nav.navbar.navbar-default {
  background: transparent ;
  border: none ;
  margin-bottom: 0;
}

.starry-bg .navbar-default .navbar-nav > li > a {
  color: var(--text-secondary) ;
  transition: color 0.2s ease;
}

.starry-bg .navbar-default .navbar-nav > li > a:hover,
.starry-bg .navbar-default .navbar-nav > li.active > a {
  color: var(--accent-gold) ;
  background: rgba(251, 191, 36, 0.08) ;
}

.starry-bg .navbar-default .navbar-brand {
  color: var(--text-primary) ;
}

.starry-bg .navbar-toggle .icon-bar {
  background-color: var(--text-primary) ;
}

/* 系统B 内容区文字 — 深色 */
.starry-bg .containerO h1,
.starry-bg .containerO h2,
.starry-bg .containerO h3,
.starry-bg .containerO h4,
.starry-bg .containerO h5,
.starry-bg .containerO h6,
.starry-bg .single-property h1,
.starry-bg .single-property h2,
.starry-bg .single-property h3,
.starry-bg .single-property h4 {
  color: #1a1a2e ;
}

.starry-bg .containerO p,
.starry-bg .single-property p,
.starry-bg .containerO li,
.starry-bg .single-property li {
  color: #444444 ;
}

.starry-bg .containerO a,
.starry-bg .single-property a {
  color: #2563eb ;
}

.starry-bg .containerO a:hover,
.starry-bg .single-property a:hover {
  color: var(--accent-gold) ;
}

/* 系统B 房产价格 — 金色加粗 */
.starry-bg .price,
.starry-bg .pvp,
.starry-bg .price_wrap {
  color: var(--accent-gold) ;
  font-weight: 700 ;
  font-size: 1.4rem;
}

/* 系统B 房产特征区 */
.starry-bg .one-third-liquid,
.starry-bg .caract_wrap,
.starry-bg .caract {
  background: #ffffff ;
  color: #444444;
}

.starry-bg .caract {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.starry-bg .ico_caract {
  color: var(--accent-gold);
}

/* 系统B 日历 — 白色背景 */
.starry-bg .calendario {
  background: #ffffff ;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.starry-bg .DiaSemana {
  background: #f3f4f6 ;
  color: #1a1a2e ;
  font-weight: 600;
  padding: 8px;
  text-align: center;
}

.starry-bg .diavalido {
  background: #ffffff ;
  color: #333333 ;
  border: 1px solid #e5e7eb;
}

.starry-bg .diaOcupado {
  background: #fee2e2 ;
  color: #991b1b ;
}

.starry-bg .diainvalido {
  background: #f3f4f6 ;
  color: #9ca3af ;
}

/* 系统B 弹窗 — 白色背景 */
.starry-bg .modal-content {
  background: #ffffff ;
  color: #333333 ;
  border-radius: 12px;
}

.starry-bg .modal-header {
  border-bottom: 1px solid #e5e7eb;
}

.starry-bg .modal-header h4,
.starry-bg .modal-title {
  color: #1a1a2e ;
}

.starry-bg .modal-body {
  color: #444444;
}

.starry-bg .modal-body p,
.starry-bg .modal-body li {
  color: #444444 ;
}

.starry-bg .modal-body input,
.starry-bg .modal-body textarea,
.starry-bg .modal-body select {
  background: #ffffff ;
  color: #333333 ;
  border: 1px solid #cccccc ;
}

.starry-bg .modal-footer {
  border-top: 1px solid #e5e7eb;
}

.starry-bg .close {
  color: #666666 ;
  opacity: 0.8;
}

/* 系统B 表格 */
.starry-bg .containerO table,
.starry-bg .single-property table {
  background: #ffffff ;
  color: #444444 ;
}

.starry-bg .containerO table td,
.starry-bg .single-property table td {
  color: #444444 ;
  border-bottom: 1px solid #eeeeee;
}

.starry-bg .containerO table tr:nth-child(even) td,
.starry-bg .single-property table tr:nth-child(even) td {
  background: #f9fafb ;
}

/* 系统B 图片轮播 — 保持原样式 */
.starry-bg .slider-pro {
  background: #ffffff ;
}

/* 系统B 地址/位置 */
.starry-bg .address,
.starry-bg .localizacion,
.starry-bg .location {
  color: #444444 ;
}

/* 系统B 标题类 */
.starry-bg .TitInmu,
.starry-bg .TitInmuListado,
.starry-bg .TitBus,
.starry-bg .TitCheck {
  color: #1a1a2e ;
}

.starry-bg .DesInmuListado {
  color: #444444 ;
}

/* ===== 15. 响应式：移动端适配 ===== */
@media (max-width: 768px) {
  /* 移动端背景降级为 scroll，修复 iOS 闪烁 */
  .starry-bg {
    background-attachment: scroll !important;
  }

  .starry-bg .sf-menu > li > a {
    padding: 14px 10px ;
    font-size: 0.8rem ;
  }

  .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 ;
  }

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

  .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 ;
  }

  .starry-bg .camera_container {
    min-height: 380px ;
    gap: 12px;
    padding: 30px 16px;
  }

  /* 移动端星点密度降低 */
  .starry-bg::before {
    background-size: 520px 340px;
  }
}

@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 .camera_container {
    min-height: 320px ;
  }
}

/* ===== 16. 滚动条 / 选中文字 ===== */
.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: #1a1a2e;
}

/* ================================================================
   17. 真实星系背景图 + 星点动画（末尾覆盖层）
   背景图：galaxy-deepspace-v2.webp（67KB，深蓝黑+暗紫银河）
   遮罩：38% 深色（从旧版 55% 降低，透出更多星云细节）
   星点：10点/420×260，含 2 个金色星点呼应品牌色
   ================================================================ */
.starry-bg {
  background-image:
    linear-gradient(rgba(5, 5, 16, 0.38), rgba(5, 5, 16, 0.38)),
    url('/images/backgrounds/galaxy-deepspace-v2.webp') !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #050510 !important;
}

/* 星点闪烁动画 — 含金色星点点缀 */
.starry-bg::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff, transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 160px 120px, #ffffff, transparent),
    radial-gradient(1px 1px at 200px 50px, rgba(251, 191, 36, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 250px 150px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 300px 100px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 350px 200px, rgba(251, 191, 36, 0.7), transparent),
    radial-gradient(2px 2px at 400px 60px, rgba(255, 255, 255, 0.8), transparent);
  background-size: 420px 260px;
  animation: star-twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* ================================================================
   16. 修复：博客内容区(.services)白色背景
   所有18个blog页面使用.services作为内容包装器，原CSS未覆盖
   ================================================================ */
.starry-bg .services {
  background: #ffffff ;
  color: #444444 ;
}

.starry-bg .services h1,
.starry-bg .services h2,
.starry-bg .services h3,
.starry-bg .services h4,
.starry-bg .services h5,
.starry-bg .services h6 {
  color: #1a1a2e ;
}

.starry-bg .services p,
.starry-bg .services li,
.starry-bg .services td,
.starry-bg .services label {
  color: #444444 ;
}

.starry-bg .services a {
  color: #2563eb ;
}

.starry-bg .services a:hover {
  color: var(--accent-gold) ;
}

/* ================================================================
   17. 修复：iframe表单页(.container为body直接子元素)白色背景
   comprar.php/vender.php静态快照页使用.container直接挂在body下
   原CSS将.container设为透明布局容器，导致这些页面内容区透明
   ================================================================ */
.starry-bg > .container {
  background: #ffffff ;
  color: #444444 ;
  padding: 24px;
}

.starry-bg > .container h1,
.starry-bg > .container h2,
.starry-bg > .container h3,
.starry-bg > .container h4,
.starry-bg > .container h5,
.starry-bg > .container h6 {
  color: #1a1a2e ;
}

.starry-bg > .container p,
.starry-bg > .container li,
.starry-bg > .container label,
.starry-bg > .container span {
  color: #444444 ;
}

.starry-bg > .container input,
.starry-bg > .container select,
.starry-bg > .container textarea {
  background: #ffffff ;
  color: #333333 ;
  border: 1px solid #cccccc ;
}

.starry-bg > .container a {
  color: #2563eb ;
}

.starry-bg > .container a:hover {
  color: var(--accent-gold) ;
}

/* ================================================================
   ROUND 2 FIXES — 视觉与可读性全局修复
   日期: 2026-09-07
   原则: 精确选择器，不全局覆盖；内容区白底深字；装饰区星空玻璃拟态
   ================================================================ */

/* ---------- R2-P0-1: 快捷入口PNG图标转为金色 ---------- */
/* edificio.png / inmueble.png / playa.png / legal.png 在白色卡片上不可见
   用CSS filter将任意颜色PNG转为品牌金 #fbbf24 */
.starry-bg .banner li img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(86%) saturate(510%) hue-rotate(359deg) brightness(103%) contrast(97%);
  width: 56px ;
  height: 56px ;
  object-fit: contain;
  margin-bottom: 4px;
}

/* 快捷入口卡片内文字统一深色，hover金色 */
.starry-bg .banner li a {
  color: #1a1a2e ;
}
.starry-bg .banner li a:hover {
  color: var(--accent-gold) ;
}
.starry-bg .banner li a h3 {
  color: #1a1a2e ;
}
.starry-bg .banner li a:hover h3 {
  color: var(--accent-gold) ;
}

/* ---------- R2-P0-2: 白色背景上金色文字对比度修复 ---------- */
/* #fbbf24 在白底上对比度仅1.7:1，改为深色 #1a1a2e
   金色仅保留给: 图标、按钮背景、边框、装饰元素、深色背景文字 */

/* 信息框标题: 深色+金色下划线 */
.starry-bg .info-box h2 {
  color: #1a1a2e ;
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 8px;
  display: inline-block;
}

/* 房产列表卡片价格: 深色加粗（原金色在白底不可读） */
.starry-bg .jl-price {
  color: #1a1a2e ;
  text-shadow: none ;
  font-weight: 700 ;
}

/* 详情页/列表页价格元素 */
.starry-bg .pvpList,
.starry-bg .pvpList2,
.starry-bg .price,
.starry-bg .pvp,
.starry-bg .price_wrap {
  color: #1a1a2e ;
  font-weight: 700;
}

/* 内容区中所有 .naranja (橙色强调文字) 在白底上改为深色 */
.starry-bg main .naranja,
.starry-bg .well .naranja,
.starry-bg .well1 .naranja,
.starry-bg .ins1 .naranja,
.starry-bg .info-box .naranja {
  color: #1a1a2e ;
  font-weight: 600;
}

/* ---------- R2-P1-1: 页面标题颜色统一 ---------- */
/* 原银河渐变文字在白底上部分色阶对比度不足
   改为实色深色 #1a1a2e + 金色底部边框装饰 */
.starry-bg .well1 .container > h2,
.starry-bg main section .container > h2 {
  background: none ;
  -webkit-background-clip: initial ;
  -webkit-text-fill-color: initial ;
  background-clip: initial ;
  color: #1a1a2e ;
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 10px;
  display: inline-block;
  margin-bottom: 20px ;
}

/* 详情页内联蓝色标题覆盖 */
.starry-bg .TitInmuList h2,
.starry-bg .TitInmu,
.starry-bg .TitInmuListado {
  color: #1a1a2e ;
}

/* ---------- R2-P1-2: 首页搜索栏容器样式 ---------- */
/* 搜索栏为iframe(外部PHP)，无法控制内部样式
   优化外层容器: 圆角+阴影+白色背景包裹 */
.starry-bg iframe#miFrame {
  background: #ffffff ;
  border-radius: 12px ;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) ;
  border: 1px solid #e8e8e8 ;
}

/* ---------- R2-P1-3: 详情页侧边栏优化 ---------- */
/* 系统B详情页 .four.columns 侧边栏: 深色背景+白色文字
   宽度已为25%(4/16)，符合要求 */
.starry-bg .containerO .four.columns {
  background: linear-gradient(180deg, #0d1033 0%, #0a0a1a 100%) ;
  border-radius: 12px;
  padding: 24px 18px ;
  color: #f0f0ff ;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.starry-bg .containerO .four.columns h1,
.starry-bg .containerO .four.columns h2,
.starry-bg .containerO .four.columns h3,
.starry-bg .containerO .four.columns h4 {
  color: #f0f0ff ;
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.starry-bg .containerO .four.columns p,
.starry-bg .containerO .four.columns li,
.starry-bg .containerO .four.columns span,
.starry-bg .containerO .four.columns div {
  color: #a0a0c0 ;
}

.starry-bg .containerO .four.columns a {
  color: #a0a0c0 ;
  text-decoration: none;
}

.starry-bg .containerO .four.columns a:hover {
  color: var(--accent-gold) ;
}

.starry-bg .containerO .four.columns i,
.starry-bg .containerO .four.columns .fa {
  color: var(--accent-gold) ;
  margin-right: 6px;
}

/* 主内容区确保白色背景 */
.starry-bg .containerO .ten.columns,
.starry-bg .containerO .twelve.columns {
  background: #ffffff ;
  color: #444444 ;
  padding: 0 10px ;
}

/* ---------- R2-P1-4: 详情页户型特征图标 ---------- */
/* 详情页特征区使用文字描述(4 Hab. | 3 Baños)，无破损图片
   若存在ico_caract图标，确保金色可见 */
.starry-bg .ico_caract,
.starry-bg .caract i,
.starry-bg .caract .fa {
  color: var(--accent-gold) ;
  font-size: 1.2rem;
  margin-right: 8px;
}

.starry-bg .caract {
  background: #f9fafb ;
  border: 1px solid #e8e8e8 ;
  border-radius: 8px;
  padding: 14px 18px ;
  margin-bottom: 10px ;
  color: #444444 ;
}

.starry-bg .caract:hover {
  border-color: var(--accent-gold) ;
  background: #fffef5 ;
}

/* ---------- R2-P1-5: 增强页脚样式 ---------- */
/* 页脚联系信息行 */
.starry-bg footer .footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 36px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.starry-bg footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a0a0c0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.starry-bg footer .footer-contact-item i {
  color: var(--accent-gold);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.starry-bg footer .footer-contact-item a {
  color: #a0a0c0 ;
  text-decoration: none ;
  transition: color 0.2s;
}

.starry-bg footer .footer-contact-item a:hover {
  color: var(--accent-gold) ;
}

/* 页脚公司名称 */
.starry-bg footer .footer-brand {
  text-align: center;
  margin-bottom: 20px;
}

.starry-bg footer .footer-brand h3 {
  color: #f0f0ff ;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.starry-bg footer .footer-brand p {
  color: #6b6b8d ;
  font-size: 0.8rem;
}

/* ---------- R2-P2-1: 卡片悬停效果强化 ---------- */
.starry-bg .box {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) ;
}

.starry-bg .box:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold) ;
  box-shadow: 0 8px 28px rgba(251, 191, 36, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06) ;
}

/* ---------- R2-P2-2: 按钮统一样式 ---------- */
.starry-bg main input[type="submit"],
.starry-bg main input[type="button"],
.starry-bg main button,
.starry-bg main .btn,
.starry-bg .well input[type="submit"],
.starry-bg .well .btn,
.starry-bg .well1 input[type="submit"],
.starry-bg .well1 .btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) ;
  color: #1a1a2e ;
  border: none ;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none ;
  display: inline-block;
}

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

/* ---------- R2-P2-3: 表单样式统一 ---------- */
.starry-bg main input[type="text"],
.starry-bg main input[type="email"],
.starry-bg main input[type="tel"],
.starry-bg main input[type="password"],
.starry-bg main textarea,
.starry-bg main select,
.starry-bg .well input,
.starry-bg .well textarea,
.starry-bg .well select,
.starry-bg .well1 input,
.starry-bg .well1 textarea,
.starry-bg .well1 select {
  background: #ffffff ;
  color: #333333 ;
  border: 1px solid #d1d5db ;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.starry-bg main input::placeholder,
.starry-bg main textarea::placeholder,
.starry-bg .well input::placeholder,
.starry-bg .well textarea::placeholder {
  color: #9ca3af;
}

/* ---------- R2: 内容区表格链接可读性 ---------- */
.starry-bg main table a,
.starry-bg .well table a,
.starry-bg .well1 table a {
  color: #1d4ed8 ;
  text-decoration: underline;
}

.starry-bg main table a:hover,
.starry-bg .well table a:hover {
  color: var(--accent-gold) ;
}

/* ---------- R2: 详情页列表项样式 ---------- */
.starry-bg .list_house {
  background: #ffffff ;
  border: 1px solid #e8e8e8 ;
  border-radius: 12px;
  padding: 20px ;
  margin-bottom: 16px ;
  transition: all 0.3s ease;
}

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

.starry-bg .DistriList,
.starry-bg .DistriList2 {
  color: #555555 ;
  font-size: 0.9rem;
  margin: 6px 0;
}

.starry-bg .ComenList {
  color: #444444 ;
  line-height: 1.6;
}

.starry-bg .UbicaList {
  color: #666666 ;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ---------- R2: 响应式移动端 ---------- */
@media (max-width: 768px) {
  .starry-bg footer .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .starry-bg .containerO .four.columns {
    width: 100% ;
    margin-bottom: 20px;
  }

  .starry-bg .containerO .ten.columns {
    width: 100% ;
  }

  .starry-bg .banner li img {
    width: 44px ;
    height: 44px ;
  }
}

@media (max-width: 480px) {
  .starry-bg .well1 .container > h2,
  .starry-bg main section .container > h2 {
    font-size: 1.5rem ;
  }
}


/* ================================================================
   ROUND 2.1 FIXES — 高特异性覆盖 + 浏览器缓存强制刷新
   日期: 2026-09-07
   解决: 原CSS同特异性!important未被覆盖的问题
   ================================================================ */

/* R2.1-1: 房产列表卡片价格 — 高特异性确保深色 */
.starry-bg .jl-listings .jl-grid .jl-card .jl-body .jl-price,
.starry-bg .jl-listings .jl-card .jl-price {
  color: #1a1a2e ;
  text-shadow: none ;
  font-weight: 700 ;
}

/* R2.1-2: info-box标题和电话号码 — 高特异性确保深色 */
.starry-bg .info-box h2,
.starry-bg .info-box h2.fa-comment,
.starry-bg .info-box dt,
.starry-bg .info-box dt.fa-2x,
.starry-bg .grid_5 .info-box h2,
.starry-bg .grid_5 .info-box dt {
  color: #1a1a2e ;
}

.starry-bg .info-box h2 {
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 8px;
  display: inline-block;
}

/* info-box中的图标保持金色 */
.starry-bg .info-box .fa-2x,
.starry-bg .info-box i,
.starry-bg .info-box .fa {
  color: var(--accent-gold) ;
}

/* R2.1-3: 所有内容容器的页面标题 — 移除银河渐变，改为深色+金色下划线 */
.starry-bg .well .container > h1,
.starry-bg .well .container > h2,
.starry-bg .well1 .container > h1,
.starry-bg .well1 .container > h2,
.starry-bg .ins1 .container > h1,
.starry-bg .ins1 .container > h2,
.starry-bg .ins2 .container > h1,
.starry-bg .ins2 .container > h2,
.starry-bg .ins3 .container > h1,
.starry-bg .ins3 .container > h2,
.starry-bg .ins4 .container > h1,
.starry-bg .ins4 .container > h2,
.starry-bg .ins5 .container > h1,
.starry-bg .ins5 .container > h2,
.starry-bg main section .container > h1,
.starry-bg main section .container > h2,
.starry-bg main .container > h1,
.starry-bg main .container > h2 {
  background: none ;
  -webkit-background-clip: initial ;
  -webkit-text-fill-color: initial ;
  background-clip: initial ;
  color: #1a1a2e ;
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 10px;
  display: inline-block;
  margin-bottom: 20px ;
}

/* R2.1-4: 内容区中所有金色/橙色文字改为深色(高特异性) */
.starry-bg .well .naranja,
.starry-bg .well1 .naranja,
.starry-bg .ins1 .naranja,
.starry-bg .ins5 .naranja,
.starry-bg main .naranja,
.starry-bg .info-box .naranja {
  color: #1a1a2e ;
  font-weight: 600;
}

/* R2.1-5: 详情页价格元素 — 深色 */
.starry-bg .pvpList,
.starry-bg .pvpList2,
.starry-bg .price,
.starry-bg .pvp {
  color: #1a1a2e ;
  font-weight: 700;
}

/* R2.1-6: 列表页房产卡片文字重叠修复 */
.starry-bg .jl-body {
  position: relative;
}

.starry-bg .jl-title {
  min-height: auto ;
  margin-bottom: 4px;
}

/* R2.1-7: 内容区表格中的棕色/橙色链接改为蓝色(可读性) */
.starry-bg main table a,
.starry-bg .well table a,
.starry-bg .well1 table a {
  color: #1d4ed8 ;
}

/* R2.1-8: 确保内容区所有文字对比度达标 */
.starry-bg .well,
.starry-bg .well1,
.starry-bg .ins1,
.starry-bg .ins2,
.starry-bg .ins3,
.starry-bg .ins4,
.starry-bg .ins5,
.starry-bg main,
.starry-bg section {
  color: #333333 ;
}

/* R2.1-9: 快捷入口卡片"Entrar"文字样式 */
.starry-bg .banner li a {
  color: #1a1a2e ;
  font-weight: 500;
}

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

/* === SEO Round 3: H1 page title styling === */
h1.seo-page-title {
  font-size: 32px;
  line-height: 1.3;
  color: #1a1a2e;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #d4a843;
  display: inline-block;
  font-weight: 700;
}
/* ============================================================
   ROUND 3 FIXES — jilong.es
   Content enrichment + visual refinement
   ============================================================ */

/* ---------- R3-1: 详情页模板修复 ---------- */

/* 隐藏详情页顶部空白区域 */
.starry-bg #superior {
  display: none !important;
}

/* 隐藏详情页旧导航的Toggle按钮 */
.starry-bg .agileits_w3layouts_banner_nav .navbar-toggle {
  display: none !important;
}

/* 隐藏详情页模态框(Cerrar按钮所在) */
.starry-bg #test-modal,
.starry-bg .white-popup {
  display: none !important;
}

/* 详情页旧导航栏样式统一为深色玻璃拟态 */
.starry-bg .agileits_w3layouts_banner_nav {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%) ;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
  padding: 10px 0 ;
  margin-bottom: 0 ;
}

.starry-bg .agileits_w3layouts_banner_nav .navbar {
  background: transparent ;
  border: none ;
  margin-bottom: 0 ;
}

.starry-bg .agileits_w3layouts_banner_nav .nav.navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.85) ;
  font-size: 13px ;
  padding: 10px 12px ;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.starry-bg .agileits_w3layouts_banner_nav .nav.navbar-nav > li > a:hover {
  color: #fbbf24 ;
  background: transparent ;
}

.starry-bg .agileits_w3layouts_banner_nav .agile_forms {
  color: rgba(255, 255, 255, 0.75) ;
  font-size: 12px ;
}

.starry-bg .agileits_w3layouts_banner_nav .agile_forms a,
.starry-bg .agileits_w3layouts_banner_nav .agile_forms span {
  color: rgba(255, 255, 255, 0.75) ;
}

.starry-bg .agileits_w3layouts_banner_nav .agile_forms i {
  color: #fbbf24 ;
}

/* 详情页返回链接样式 */
.starry-bg #volver {
  display: inline-block ;
  color: #1a1a2e ;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 6px;
  text-decoration: none;
  margin: 15px 0;
}

.starry-bg #volver:hover {
  background: #fbbf24;
  color: #1a1a2e ;
}

/* 详情页主内容区白色背景 */
.starry-bg .containerO {
  background: #ffffff ;
  padding: 20px 30px 40px ;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 详情页标题样式统一 */
.starry-bg .single-property h1,
.starry-bg .single-property h2,
.starry-bg .single-property h3 {
  color: #1a1a2e ;
  border-bottom: 3px solid #fbbf24 ;
  padding-bottom: 8px ;
  display: inline-block ;
}

/* 详情页价格金色强调 */
.starry-bg .single-property .price,
.starry-bg .single-property .pvp {
  color: #b45309 ;
  font-size: 24px ;
  font-weight: 700 ;
}

/* 详情页图片容器确保有背景色(防止断裂图显示难看) */
.starry-bg .single-property .sp-slide,
.starry-bg .single-property .sp-thumbnail {
  background: #f3f4f6 ;
}

/* ---------- R3-2: 全站按钮样式统一 ---------- */

/* 主要按钮: 金色渐变 + 深色文字 */
.starry-bg .btn,
.starry-bg button,
.starry-bg input[type="submit"],
.starry-bg input[type="button"],
.starry-bg .button,
.starry-bg .button-primary,
.starry-bg a.btn,
.starry-bg a.button {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) ;
  color: #1a1a2e ;
  border: 1px solid #f59e0b ;
  border-radius: 6px ;
  padding: 10px 24px ;
  font-weight: 600 ;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none ;
  display: inline-block;
}

.starry-bg .btn:hover,
.starry-bg button:hover,
.starry-bg input[type="submit"]:hover,
.starry-bg input[type="button"]:hover,
.starry-bg .button:hover,
.starry-bg .button-primary:hover,
.starry-bg a.btn:hover,
.starry-bg a.button:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) ;
  color: #1a1a2e ;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}

/* 导航active状态: 金色文字而非红色 */
.starry-bg .sf-menu li.active > a,
.starry-bg .nav li.active > a,
.starry-bg .navbar-nav li.active > a {
  color: #fbbf24 ;
  background: transparent ;
}

/* ---------- R3-3: Logo白色底框修复 ---------- */

.starry-bg .brand {
  background: transparent ;
  padding: 5px 10px ;
}

.starry-bg .brand img {
  mix-blend-mode: multiply;
  background: transparent ;
  max-height: 50px;
  width: auto;
}

/* ---------- R3-4: 标题样式统一强化 ---------- */

.starry-bg main h1,
.starry-bg main h2,
.starry-bg main h3,
.starry-bg .well h1,
.starry-bg .well h2,
.starry-bg .well h3,
.starry-bg .well1 h1,
.starry-bg .well1 h2,
.starry-bg .well1 h3 {
  color: #1a1a2e ;
}

/* 页面主标题: 深色 + 金色下划线 */
.starry-bg main > section > .container > h2:first-child,
.starry-bg .well1 > .container > h2:first-child {
  font-size: 28px ;
  font-weight: 700 ;
  border-bottom: 3px solid #fbbf24 ;
  padding-bottom: 10px ;
  display: inline-block ;
  margin-bottom: 25px ;
}

/* ---------- R3-5: 内容充实页面的板块样式 ---------- */

.jl-section {
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}

.jl-section:last-child {
  border-bottom: none;
}

.jl-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 3px solid #fbbf24;
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 20px;
}

.jl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 20px 0;
}

.jl-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 20px 0;
}

.jl-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  transition: all 0.3s ease;
}

.jl-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #fbbf24;
  transform: translateY(-2px);
}

.jl-card-icon {
  font-size: 32px;
  color: #fbbf24;
  margin-bottom: 12px;
}

.jl-card h4 {
  color: #1a1a2e;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.jl-card p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.jl-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.jl-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.jl-step-content h4 {
  color: #1a1a2e;
  font-weight: 600;
  margin-bottom: 4px;
}

.jl-step-content p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.jl-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.jl-faq-question {
  padding: 16px 20px;
  background: #f9fafb;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jl-faq-answer {
  padding: 16px 20px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid #e5e7eb;
}

.jl-highlight-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
  border-left: 4px solid #fbbf24;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.jl-highlight-box p {
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.jl-cta-bar {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
  margin: 30px 0;
}

.jl-cta-bar h3 {
  color: #ffffff !important;
  font-size: 22px;
  margin-bottom: 8px;
  border: none !important;
}

.jl-cta-bar p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.jl-cta-bar .jl-btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 响应式 */
@media (max-width: 768px) {
  .jl-grid-3,
  .jl-grid-2 {
    grid-template-columns: 1fr;
  }
  .jl-cta-bar {
    padding: 20px;
  }
}

/* ---------- R3-6: 团队照片裁剪(去除律师楼标识) ---------- */

.starry-bg img[src*="comprar-pisos-barcelona.jpg"] {
  object-fit: cover ;
  object-position: top center ;
  max-height: 220px ;
  width: 100% ;
}

/* ---------- R3-7: 页脚法律链接样式 ---------- */

.starry-bg footer .inf {
  color: rgba(255, 255, 255, 0.7) ;
  text-decoration: none;
  font-size: 12px;
}

.starry-bg footer .inf:hover {
  color: #fbbf24 ;
}

/* ---------- R3-8: 表单input聚焦样式 ---------- */

.starry-bg input[type="email"]:focus,
.starry-bg input[type="tel"]:focus,
.starry-bg input[type="text"]:focus,
.starry-bg textarea:focus,
.starry-bg select:focus {
  border-color: #fbbf24 ;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2) ;
  outline: none;
}

/* ---------- R3-9: 详情页图片断裂占位 ---------- */

.starry-bg .single-property img {
  background-color: #f3f4f6;
  min-height: 200px;
}

/* ========== R3-DETAIL-FIX: Aggressive detail page overrides ========== */

/* Hide ALL modals that may be visible at top of detail pages */
.starry-bg #modalAvisos,
.starry-bg .modal,
.starry-bg .modal.fade,
.starry-bg .modal-dialog,
.starry-bg .modal-content {
  display: none !important;
  visibility: hidden ;
  height: 0 ;
  width: 0 ;
  overflow: hidden ;
  position: absolute ;
  top: -9999px ;
  left: -9999px ;
}

/* Force navbar collapse to be visible and horizontal (desktop) */
.starry-bg .agileits_w3layouts_banner_nav .navbar-collapse {
  display: block ;
  visibility: visible ;
  height: auto ;
  overflow: visible ;
}

.starry-bg .agileits_w3layouts_banner_nav .navbar-collapse .nav.navbar-nav {
  display: flex ;
  flex-direction: row ;
  flex-wrap: wrap ;
  justify-content: center ;
  float: none ;
  margin: 0 ;
  padding: 0 ;
  list-style: none ;
}

.starry-bg .agileits_w3layouts_banner_nav .navbar-collapse .nav.navbar-nav > li {
  display: inline-block ;
  float: none ;
  margin: 0 ;
  padding: 0 ;
}

/* Hide sr-only text that is leaking into view */
.starry-bg .sr-only {
  position: absolute ;
  width: 1px ;
  height: 1px ;
  padding: 0 ;
  margin: -1px ;
  overflow: hidden ;
  clip: rect(0,0,0,0) ;
  white-space: nowrap ;
  border: 0 ;
  display: none !important;
}

/* Ensure detail page body has no unwanted top margin/padding */
.starry-bg body {
  margin: 0 ;
  padding: 0 ;
}

/* Detail page logo fix - more aggressive */
.starry-bg .agileits_w3layouts_banner_nav .navbar-header img {
  mix-blend-mode: multiply ;
  background: transparent ;
  max-height: 40px ;
  width: auto ;
}


/* ===== Round 0 P0: Cookie同意横幅玻璃拟态优化 ===== */
#infobox3 {
  background: rgba(10, 10, 26, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

#infobox3 p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

#infobox3 a {
  color: #fbbf24 !important;
  border: 1px solid #fbbf24 !important;
  padding: 8px 18px !important;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  background: transparent !important;
}

#infobox3 a:hover {
  background: #fbbf24 !important;
  color: #0a0a1a !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

@media (max-width: 768px) {
  #infobox3 {
    flex-direction: column;
    padding: 12px 15px;
  }
  #infobox3 p {
    margin-bottom: 10px;
  }
}

/* ===== Round 0 P1: 导航栏悬停/激活状态玻璃拟态增强 ===== */
.starry-bg .sf-menu > li > a:hover,
.starry-bg .sf-menu > li.current > a,
.starry-bg .sf-menu > li.sfHover > a {
  background: rgba(251, 191, 36, 0.15) ;
  color: #fbbf24 ;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  border-bottom: 2px solid #fbbf24;
}

.starry-bg .sf-menu > li > a {
  transition: all 0.3s ease;
  position: relative;
}

.starry-bg .sf-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.starry-bg .sf-menu > li > a:hover::after,
.starry-bg .sf-menu > li.current > a::after {
  width: 80%;
}

/* ===== Round 1 P0: 底部信息框 #infobox3 样式优化 ===== */
#infobox3 {
  background: rgba(10, 10, 26, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
  padding: 15px 20px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

#infobox3 p {
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 0 !important;
  line-height: 1.6;
  font-size: 14px;
  text-align: center;
}

#infobox3 a {
  color: #fbbf24 !important;
  border: 1px solid #fbbf24 !important;
  padding: 8px 18px !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  font-weight: 500;
  background: transparent !important;
}

#infobox3 a:hover {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5) !important;
}

@media (max-width: 768px) {
  #infobox3 {
    flex-direction: column;
    padding: 12px 15px !important;
  }
  #infobox3 p {
    margin-bottom: 12px !important;
  }
  #infobox3 a {
    margin-left: 0 !important;
  }
}
/* ============================================================
   jilong.es · Round 3 Iteration CSS
   重点：移动端响应式 / 性能 / 星空主题一致性 / CTA可见性
   ============================================================ */

/* ---------- 1. 性能优化：图片渲染与字体 ---------- */
.starry-bg img {
  image-rendering: auto;
  -webkit-user-drag: none;
}

/* 服务图标统一尺寸，避免布局偏移 */
.starry-bg .banner li img {
  max-width: 64px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

/* ---------- 2. 移动端导航折叠（核心修复） ---------- */
@media (max-width: 768px) {
  /* 导航容器改为纵向堆叠 */
  .starry-bg .stuck_container .container {
    padding: 0;
  }

  .starry-bg nav.nav {
    width: 100%;
  }

  .starry-bg ul.sf-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .starry-bg ul.sf-menu > li {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
  }

  .starry-bg ul.sf-menu > li:last-child {
    border-bottom: none;
  }

  .starry-bg ul.sf-menu > li > a {
    display: block;
    width: 100%;
    padding: 12px 20px ;
    font-size: 0.85rem ;
    text-align: left;
    box-sizing: border-box;
  }

  /* 激活项金色左侧标记 */
  .starry-bg ul.sf-menu > li.active > a {
    border-left: 3px solid #fbbf24;
    padding-left: 17px ;
    background: rgba(251, 191, 36, 0.08);
  }

  /* 品牌区居中 */
  .starry-bg header .container:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 15px;
  }

  .starry-bg .brand img {
    max-height: 50px;
    width: auto;
  }

  /* 语言旗帜缩小 */
  .starry-bg header img[alt*="idioma"],
  .starry-bg header img[alt*="language"] {
    max-width: 120px;
    height: auto;
  }
}

/* ---------- 3. 小屏幕额外断点（480px） ---------- */
@media (max-width: 480px) {
  .starry-bg .camera_container {
    min-height: 320px ;
    padding: 20px 12px ;
  }

  .starry-bg .banner li {
    min-width: 100% ;
    padding: 14px 10px ;
  }

  .starry-bg .banner li a {
    font-size: 0.8rem ;
    padding: 14px 10px ;
  }

  .starry-bg .banner li img {
    max-width: 48px;
  }

  .starry-bg .footer-contact-item {
    font-size: 0.8rem;
    text-align: center;
  }

  .starry-bg .footer-brand h3 {
    font-size: 1.1rem;
  }

  /* 页脚导航链接换行优化 */
  .starry-bg footer .well1 .container {
    line-height: 2;
  }

  .starry-bg footer a.inf {
    font-size: 0.7rem ;
    margin: 0 2px;
  }
}

/* ---------- 4. CTA 增强：联系按钮可见性 ---------- */
/* 页脚联系项悬停金色高亮 */
.starry-bg .footer-contact-item {
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 6px;
}

.starry-bg .footer-contact-item:hover {
  background: rgba(251, 191, 36, 0.1);
}

.starry-bg .footer-contact-item a {
  transition: color 0.3s ease;
}

.starry-bg .footer-contact-item a:hover {
  color: #fbbf24 ;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* 移动端浮动呼叫按钮（仅小屏显示） */
@media (max-width: 768px) {
  .jl-mobile-cta {
    display: flex !important;
  }
}

.jl-mobile-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e !important;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5), 0 0 0 1px rgba(251, 191, 36, 0.3);
  align-items: center;
  gap: 8px;
  animation: jl-cta-pulse 2s ease-in-out infinite;
}

@keyframes jl-cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5), 0 0 0 1px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(251, 191, 36, 0.7), 0 0 0 4px rgba(251, 191, 36, 0.15); }
}

.jl-mobile-cta:hover {
  transform: translateY(-2px);
  color: #1a1a2e !important;
}

/* ---------- 5. 星空主题一致性：玻璃拟态统一 ---------- */
/* 确保所有主要容器使用统一的深色+金色+玻璃风格 */
.starry-bg .stuck_container {
  background: rgba(10, 10, 30, 0.88) ;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

/* 导航链接悬停金色下划线统一 */
.starry-bg ul.sf-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.starry-bg ul.sf-menu > li > a:hover::after,
.starry-bg ul.sf-menu > li.active > a::after {
  width: 70%;
}

.starry-bg ul.sf-menu > li > a {
  position: relative;
}

/* ---------- 6. 表单通用响应式（Contactar等页面） ---------- */
.starry-bg form input[type="text"],
.starry-bg form input[type="email"],
.starry-bg form input[type="tel"],
.starry-bg form textarea,
.starry-bg form select {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .starry-bg form input[type="text"],
  .starry-bg form input[type="email"],
  .starry-bg form input[type="tel"],
  .starry-bg form textarea,
  .starry-bg form select {
    width: 100% ;
    font-size: 16px; /* 防止iOS缩放 */
  }

  .starry-bg form input[type="submit"],
  .starry-bg form button {
    width: 100%;
    padding: 14px ;
    font-size: 1rem ;
  }
}

/* ---------- 7. 图片懒加载占位与过渡 ---------- */
.starry-bg img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.starry-bg img[loading="lazy"].loaded,
.starry-bg img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* ---------- 8. 内容区图片响应式 ---------- */
.starry-bg .container img,
.starry-bg .well img,
.starry-bg .well1 img,
.starry-bg .well2 img {
  max-width: 100%;
  height: auto;
}

/* ---------- 9. 页脚品牌金色强调 ---------- */
.starry-bg .footer-brand h3 {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.starry-bg .footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 10. 打印样式（性能加分项） ---------- */
@media print {
  .starry-bg .stuck_container,
  .jl-mobile-cta,
  #infobox3,
  #overbox3 {
    display: none !important;
  }
  .starry-bg {
    background: white !important;
    color: black !important;
  }
}

/* ===== R4: 移动端背景图优化 — 使用压缩版mobile背景 ===== */
@media (max-width: 768px) {
  .starry-bg {
    background:
      linear-gradient(180deg, rgba(5,5,16,0.88) 0%, rgba(5,5,16,0.95) 100%),
      url("/images/backgrounds/galaxy-deepspace-v2-mobile.webp") center center/cover no-repeat fixed;
    background-color: #050510;
  }
  .starry-bg .camera_container {
    background:
      linear-gradient(180deg,
        rgba(5, 5, 16, 0.78) 0%,
        rgba(5, 5, 16, 0.45) 25%,
        rgba(5, 5, 16, 0.25) 50%,
        rgba(5, 5, 16, 0.55) 75%,
        rgba(5, 5, 16, 0.9) 100%),
      url("/images/backgrounds/galaxy-hero-v2-mobile.webp") center 30%/cover no-repeat;
  }
}

/* ===== R4: 移动端深度优化 ===== */
@media (max-width: 768px) {
  /* 表单：iOS防缩放 font-size >=16px */
  .starry-bg input,
  .starry-bg select,
  .starry-bg textarea,
  input, select, textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
    min-height: 44px;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* 按钮：触摸区域 >=44px */
  .starry-bg .btn,
  .starry-bg button,
  .starry-bg input[type="submit"],
  .starry-bg input[type="button"],
  .starry-bg .jl-btn-gold,
  .btn, button, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 20px;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
  }

  /* 导航链接触摸区域 */
  .starry-bg .sf-menu > li > a {
    padding: 14px 12px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* 浮动CTA移动端优化 */
  .jl-mobile-cta {
    bottom: 16px !important;
    right: 16px !important;
    width: 56px !important;
    height: 56px !important;
    font-size: 22px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4) !important;
    z-index: 9999 !important;
  }

  .jl-cta-bar {
    padding: 12px 16px !important;
    gap: 10px !important;
  }
  .jl-cta-bar h3 {
    font-size: 1rem !important;
  }
  .jl-cta-bar p {
    font-size: 0.85rem !important;
  }

  /* 文字溢出保护 */
  .starry-bg p,
  .starry-bg h1, .starry-bg h2, .starry-bg h3,
  .starry-bg h4, .starry-bg h5, .starry-bg h6,
  .starry-bg li, .starry-bg span, .starry-bg a,
  p, h1, h2, h3, h4, h5, h6, li, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* 图片响应式 */
  .starry-bg img,
  img {
    max-width: 100%;
    height: auto;
  }

  /* 表格：移动端横向滚动 */
  .starry-bg .well1 table,
  .starry-bg .ins1 table,
  .starry-bg table,
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 内容区内边距优化 */
  .starry-bg .container,
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Hero标题移动端缩小 */
  .starry-bg .camera_container::before {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
    letter-spacing: 0.12em !important;
  }
  .starry-bg .camera_container::after {
    font-size: clamp(0.85rem, 3vw, 1.1rem) !important;
    padding: 0 16px;
  }
  .starry-bg .camera_container {
    min-height: 380px !important;
    padding: 30px 16px !important;
  }

  /* 快捷入口卡片移动端 */
  .starry-bg .banner li,
  .starry-bg .banner li:nth-child(1),
  .starry-bg .banner li:nth-child(2),
  .starry-bg .banner li:nth-child(3),
  .starry-bg .banner li:nth-child(4) {
    min-width: 140px !important;
    max-width: 100% !important;
    flex: 1 1 45% !important;
  }
  .starry-bg .banner li a {
    padding: 20px 14px !important;
    min-height: 44px;
  }

  /* 页脚移动端 */
  .starry-bg footer {
    padding: 30px 0 20px !important;
  }
  .starry-bg footer h6 {
    font-size: 0.95rem !important;
  }
  .starry-bg footer p,
  .starry-bg footer a {
    font-size: 0.85rem !important;
  }
}

/* 小屏优化 (≤480px) */
@media (max-width: 480px) {
  .starry-bg .banner li,
  .starry-bg .banner li:nth-child(1),
  .starry-bg .banner li:nth-child(2),
  .starry-bg .banner li:nth-child(3),
  .starry-bg .banner li:nth-child(4) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  .jl-mobile-cta {
    width: 50px !important;
    height: 50px !important;
    bottom: 12px !important;
    right: 12px !important;
  }
  .starry-bg .camera_container {
    min-height: 320px !important;
  }
}
