/* ============================================
   禹州预售证查询 - 高级简约风
   设计:深色玻璃质感 + 蓝紫渐变 + 紧凑排版
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-2: #13131a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f0f0f5;
  --text-dim: #9a9aaa;
  --text-faint: #6a6a7a;
  --accent: #6c8cff;
  --accent-2: #a78bfa;
  --accent-glow: rgba(108, 140, 255, 0.3);
  --success: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at top left, rgba(108, 140, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
    var(--bg);
  position: relative;
}

/* 背景装饰球 */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.bg-orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(108, 140, 255, 0.25), transparent 70%);
  top: -120px; left: -120px;
  animation: float1 20s ease-in-out infinite;
}
.bg-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
  bottom: -80px; right: -80px;
  animation: float2 25s ease-in-out infinite;
}
.bg-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 70%);
  top: 50%; left: 60%;
  animation: float3 30s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 60px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, -40px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -30px); } }

/* 主容器 */
.container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
}

/* Header */
.hero {
  text-align: center;
  margin-top: 40px;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px var(--accent-glow);
  letter-spacing: -1px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #fff, #c0c0d0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.subtitle {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
}

/* 搜索框 */
.search-wrap { position: relative; }
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0 20px;
  height: 60px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow);
}
.search-icon {
  width: 20px; height: 20px;
  color: var(--text-dim);
  margin-right: 12px;
  flex-shrink: 0;
}
.search-box:focus-within .search-icon { color: var(--accent); }
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--text-faint); }
.hint {
  display: inline-block;
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-faint);
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", monospace;
}

/* 候选列表 */
.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
  z-index: 10;
}
.suggest-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.1s;
}
.suggest-item:hover, .suggest-item.active {
  background: var(--surface-2);
}
.suggest-item .name { font-size: 14px; color: var(--text); }
.suggest-item .count {
  font-size: 11px;
  color: var(--text-faint);
  padding: 2px 8px;
  background: var(--surface-2);
  border-radius: 10px;
}

/* 统计 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: -16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.stat-n {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  font-feature-settings: "tnum" 1;
}
.stat-l {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* 结果 */
.result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-meta {
  font-size: 12px;
  color: var(--text-faint);
  padding: 0 4px;
}
.result-meta strong { color: var(--text-dim); font-weight: 500; }

/* 单个项目卡片 */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.2s;
  animation: slideUp 0.3s ease backwards;
}
.project-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.project-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.15), rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(108, 140, 255, 0.3);
  border-radius: 20px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.dev {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}
.dev-label { color: var(--text-faint); margin-right: 6px; }

/* 楼栋列表 */
.buildings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.building-tag {
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  font-feature-settings: "tnum" 1;
}

/* 监管账户 */
.account {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.account-label {
  color: var(--text-faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.account-bank { color: var(--text); font-size: 12px; margin-bottom: 2px; }
.account-no {
  font-family: ui-monospace, "SF Mono", monospace;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* 展开按钮 */
.toggle-account {
  cursor: pointer;
  color: var(--accent);
  font-size: 11px;
  margin-top: 6px;
  display: inline-block;
}

/* 空状态 */
.empty {
  display: flex;
  justify-content: center;
  margin-top: -8px;
}
.empty-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.empty-icon {
  font-size: 32px;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.empty-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.empty-card p {
  font-size: 13px;
  color: var(--text-faint);
}
.hot-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  justify-content: center;
}
.hot-tag {
  padding: 5px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
}
.hot-tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* 错误 */
.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: #f87171;
  font-size: 13px;
  text-align: center;
}

/* 加载 */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-faint);
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 11px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 工具 */
.hidden { display: none !important; }

/* 响应式 */
@media (max-width: 600px) {
  .container { padding: 40px 16px 24px; gap: 24px; }
  .hero h1 { font-size: 24px; }
  .search-box { height: 54px; padding: 0 16px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat-n { font-size: 18px; }
  .project-card { padding: 16px; }
  .hint { display: none; }
}
