/* ============================================================
   保利·京华曜 —— 全站样式（前台 + 后台）
   主色: 深夜蓝 #0A1226 / 鎏金 #C8A45D / 云白 #F7F8FA
   ============================================================ */

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

:root {
  --navy: #0A1226;
  --navy-2: #101B38;
  --navy-3: #1A2A4F;
  --gold: #C8A45D;
  --gold-light: #E4C98A;
  --gold-dark: #A9873F;
  --ink: #1C2333;
  --ink-2: #5A6478;
  --line: #E6E9F0;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --red: #C0392B;
  --green: #1E8E5A;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(10, 18, 38, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ============ 顶部导航 ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(10,18,38,0.92), rgba(10,18,38,0.55));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,164,93,0.25);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(200,164,93,0.35);
}
.logo-text { color: #fff; }
.logo-text .cn { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.logo-text .en { font-size: 10px; color: var(--gold-light); letter-spacing: 3px; text-transform: uppercase; }

.nav { display: flex; gap: 34px; }
.nav a { color: rgba(255,255,255,0.85); font-size: 15px; letter-spacing: 1px; position: relative; padding: 4px 0; transition: color .2s; }
.nav a:hover { color: var(--gold-light); }
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 0; height: 2px;
  background: var(--gold); transition: all .25s; transform: translateX(-50%);
}
.nav a:hover::after { width: 100%; }

.topbar-tel { display: flex; align-items: center; gap: 10px; }
.topbar-tel .tel-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(200,164,93,0.5); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.topbar-tel .tel-num { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.topbar-tel .tel-label { font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 2px; }

/* ============ 首屏 Banner ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200,164,93,0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(30,60,130,0.5), transparent 60%),
    linear-gradient(160deg, #0A1226 0%, #0E1936 45%, #132246 100%);
  overflow: hidden;
  padding-top: 68px;
}
/* 城市天际线装饰（纯CSS科技感） */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,164,93,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,164,93,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-skyline {
  position: absolute; bottom: 0; left: 0; right: 0; height: 260px;
  opacity: 0.9; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 60px; padding: 60px 0 80px; }
.hero-copy { flex: 1.2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 999px;
  border: 1px solid rgba(200,164,93,0.45);
  color: var(--gold-light); font-size: 13px; letter-spacing: 3px;
  background: rgba(200,164,93,0.08);
  margin-bottom: 26px;
}
.hero-title {
  color: #fff; font-size: clamp(38px, 5vw, 62px);
  font-weight: 800; letter-spacing: 4px; line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 6px 30px rgba(0,0,0,0.45);
}
.hero-title em { font-style: normal; color: var(--gold-light); }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 20px; letter-spacing: 2px; margin-bottom: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-point {
  padding: 9px 20px; border-radius: 8px; font-size: 14px; letter-spacing: 1px;
  color: #EAF0FF; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(6px);
}
.hero-cta { display: flex; gap: 18px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 38px; border-radius: 10px; font-size: 16px; letter-spacing: 2px;
  transition: all .25s; font-weight: 600;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #2A1E05; box-shadow: 0 10px 28px rgba(200,164,93,0.4);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(200,164,93,0.55); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* 首屏预约卡片 */
.hero-form-card {
  flex: 0.8; background: rgba(255,255,255,0.96);
  border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  border-top: 3px solid var(--gold);
}
.hero-form-card h3 { font-size: 20px; letter-spacing: 2px; margin-bottom: 6px; }
.hero-form-card .form-tip { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 15px; outline: none; background: #FBFCFE;
  transition: border .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,93,0.15);
}
.btn-block { width: 100%; padding: 14px; }
.form-privacy { font-size: 12px; color: #9AA3B5; text-align: center; margin-top: 12px; }

/* ============ 通用 Section ============ */
.section { padding: 90px 0; }
.section-white { background: var(--white); }
.section-gray { background: var(--bg); }
.section-dark { background: linear-gradient(160deg, #0A1226, #132246); color: #fff; }

.sec-head { text-align: center; margin-bottom: 56px; }
.sec-eyebrow {
  display: inline-block; color: var(--gold-dark); font-size: 13px;
  letter-spacing: 5px; margin-bottom: 14px; text-transform: uppercase;
  position: relative; padding: 0 46px;
}
.section-dark .sec-eyebrow { color: var(--gold-light); }
.sec-eyebrow::before, .sec-eyebrow::after {
  content: ""; position: absolute; top: 50%; width: 30px; height: 1px; background: var(--gold);
}
.sec-eyebrow::before { left: 0; }
.sec-eyebrow::after { right: 0; }
.sec-title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: 3px; }
.sec-desc { color: var(--ink-2); margin-top: 16px; font-size: 16px; line-height: 1.9; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-dark .sec-desc { color: rgba(255,255,255,0.65); }

/* 项目价值点卡片 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.hl-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px;
  border: 1px solid var(--line); transition: all .3s; position: relative; overflow: hidden;
}
.hl-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.hl-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.hl-card:hover::after { transform: scaleX(1); }
.hl-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 26px;
  background: linear-gradient(135deg, rgba(200,164,93,0.15), rgba(200,164,93,0.05));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.hl-card h3 { font-size: 19px; letter-spacing: 1px; margin-bottom: 10px; }
.hl-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }

/* 户型卡片 */
.house-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: all .3s; position: relative;
}
.house-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.house-visual {
  height: 190px; position: relative; display: flex; align-items: flex-end; padding: 20px;
  background:
    radial-gradient(circle at 80% 20%, rgba(200,164,93,0.25), transparent 50%),
    linear-gradient(150deg, #16254A, #0C142C);
}
.house-visual .floor-plan { position: absolute; inset: 0; opacity: 0.5; }
.house-tag {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #2A1E05; font-size: 12px; font-weight: 700; padding: 5px 14px;
  border-radius: 999px; letter-spacing: 2px;
}
.house-name { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 1px; position: relative; z-index: 2; }
.house-body { padding: 22px 24px 26px; }
.house-meta { display: flex; gap: 18px; color: var(--ink-2); font-size: 14px; margin-bottom: 12px; }
.house-meta b { color: var(--ink); }
.house-desc { color: var(--ink-2); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.house-price { color: var(--gold-dark); font-weight: 800; font-size: 18px; letter-spacing: 1px; }

/* 区位 */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.loc-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 22px 24px; transition: all .3s;
}
.loc-item:hover { border-color: rgba(200,164,93,0.5); background: rgba(200,164,93,0.07); }
.loc-label { color: var(--gold-light); font-size: 14px; letter-spacing: 2px; white-space: nowrap; padding-top: 2px; }
.loc-value { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.7; }

/* 动态 */
.news-list { max-width: 860px; margin: 0 auto; }
.news-item {
  display: flex; align-items: center; gap: 24px;
  padding: 22px 26px; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 14px; transition: all .25s;
}
.news-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.news-date { color: var(--gold-dark); font-weight: 700; font-size: 15px; white-space: nowrap; }
.news-title { font-size: 16px; color: var(--ink); }

/* ============ CTA 横幅 ============ */
.cta-band {
  background:
    radial-gradient(ellipse 60% 120% at 80% 50%, rgba(200,164,93,0.25), transparent 60%),
    linear-gradient(120deg, #0A1226, #182B58);
  color: #fff; text-align: center; padding: 84px 0;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: 4px; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 34px; letter-spacing: 2px; }

/* ============ 页脚 ============ */
.footer { background: #070C1A; color: rgba(255,255,255,0.55); padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
.footer h4 { color: #fff; font-size: 16px; letter-spacing: 2px; margin-bottom: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .cn { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.footer p, .footer li { font-size: 14px; line-height: 2; list-style: none; }
.footer .gold { color: var(--gold-light); font-size: 20px; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px;
  font-size: 12px; text-align: center; line-height: 2; color: rgba(255,255,255,0.35);
}

/* ============ 浮动咨询条 ============ */
.float-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(10,18,38,0.94); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(200,164,93,0.35);
  display: flex; align-items: center; justify-content: center; gap: 26px;
  padding: 12px 20px;
}
.float-bar .fb-text { color: #fff; font-size: 15px; letter-spacing: 1px; }
.float-bar .fb-text b { color: var(--gold-light); }
.float-bar .btn { padding: 10px 26px; font-size: 14px; }

/* ============ 提示浮层 ============ */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--navy); color: #fff; padding: 13px 30px; border-radius: 10px;
  font-size: 15px; letter-spacing: 1px; z-index: 999; opacity: 0;
  transition: all .3s; pointer-events: none; border: 1px solid rgba(200,164,93,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #6B1F16; }
.toast.ok { background: #0F3D2A; }

/* ============================================================
   后台管理页
   ============================================================ */
body.admin-page { background: #EEF1F6; }

.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(200,164,93,0.18), transparent 60%),
    linear-gradient(160deg, #0A1226, #14224A);
  padding: 24px;
}
.admin-login-card {
  width: 400px; background: #fff; border-radius: 18px; padding: 44px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4); border-top: 4px solid var(--gold);
}
.admin-login-card h1 { font-size: 22px; letter-spacing: 2px; margin-bottom: 4px; }
.admin-login-card .sub { color: var(--ink-2); font-size: 13px; margin-bottom: 30px; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 220px; background: linear-gradient(180deg, #0A1226, #101D3E);
  color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-side .side-logo {
  padding: 26px 22px; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.admin-side .side-logo .cn { font-weight: 700; letter-spacing: 2px; font-size: 16px; }
.admin-side .side-logo .badge { font-size: 10px; color: var(--gold-light); border: 1px solid rgba(200,164,93,0.4); padding: 2px 8px; border-radius: 999px; }
.side-nav { flex: 1; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 15px 24px;
  color: rgba(255,255,255,0.65); font-size: 15px; letter-spacing: 1px;
  border-left: 3px solid transparent; transition: all .2s;
}
.side-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.side-nav a.active { color: var(--gold-light); background: rgba(200,164,93,0.1); border-left-color: var(--gold); }
.side-footer { padding: 18px 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.side-footer button {
  width: 100%; padding: 10px; border-radius: 8px; background: transparent;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); font-size: 14px;
}
.side-footer button:hover { border-color: var(--red); color: #FF9B8F; }

.admin-main { flex: 1; padding: 34px 40px; max-width: 1180px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 24px; letter-spacing: 2px; }
.admin-topbar .crumb { color: var(--ink-2); font-size: 14px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card {
  background: #fff; border-radius: 14px; padding: 24px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold);
}
.stat-card.blue::before { background: #2C5FBF; }
.stat-card.green::before { background: var(--green); }
.stat-card.purple::before { background: #7B4FBF; }
.stat-card .num { font-size: 32px; font-weight: 800; color: var(--ink); }
.stat-card .label { color: var(--ink-2); font-size: 13px; margin-top: 4px; letter-spacing: 1px; }

/* 面板 */
.panel { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 26px; margin-bottom: 26px; }
.panel-title { font-size: 17px; letter-spacing: 1px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.panel-title .hint { font-size: 12px; color: var(--ink-2); font-weight: 400; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; padding: 12px 14px; background: #F4F6FA; color: var(--ink-2);
  font-size: 13px; letter-spacing: 1px; white-space: nowrap;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #FAFBFD; }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge.new { background: #FDF0E7; color: #C05621; }
.badge.doing { background: #E8F0FE; color: #2C5FBF; }
.badge.done { background: #E6F6EE; color: var(--green); }
.badge.lost { background: #FDEAEA; color: var(--red); }

.mini-btn {
  padding: 6px 14px; border-radius: 7px; font-size: 13px;
  background: #F0F3F8; color: var(--ink); border: 1px solid var(--line);
}
.mini-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.mini-btn.danger:hover { border-color: var(--red); color: var(--red); }
.mini-btn.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #2A1E05; border: none; }

/* 搜索筛选条 */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-bar input, .filter-bar select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; outline: none; background: #fff;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--gold); }

/* 后台表单编辑器 */
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.edit-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field label b { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; outline: none; background: #FBFCFE;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,93,0.12); }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.7; }

.list-editor { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list-editor .le-item { display: grid; grid-template-columns: 70px 1fr 1.2fr 44px; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; background: #fff; }
.list-editor .le-item:last-child { border-bottom: none; }
.list-editor .le-item input {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; outline: none;
}
.list-editor .le-item .le-del {
  width: 36px; height: 36px; border-radius: 8px; background: #FDEAEA; color: var(--red); font-size: 16px;
}
.le-add {
  width: 100%; padding: 11px; background: #F7F9FC; color: var(--gold-dark);
  font-size: 14px; border-top: 1px dashed var(--line);
}
.le-add:hover { background: rgba(200,164,93,0.1); }

.admin-actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 22px; }

/* 加载与空状态 */
.empty { text-align: center; color: #9AA3B5; padding: 50px 0; font-size: 14px; }
.spin {
  width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--gold);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 响应式 */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-inner { flex-direction: column; }
  .grid-3, .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid, .edit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-main { padding: 20px; }
  .topbar-tel .tel-label { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .stat-grid { grid-template-columns: 1fr; }
  .float-bar .fb-text { display: none; }
}
