/* ============================================================
   建筑图鉴与辞典 — 资料包落地页
   深色星空 + 暖金书卷气质
   ============================================================ */

:root {
  --bg-deep: #0a0a14;
  --bg-mid: #14121f;
  --gold: #f6c177;
  --gold-soft: #e8b25f;
  --amber: #ffb454;
  --cream: #f5ecd7;
  --text-primary: #f0e9d8;
  --text-secondary: #b8aea0;
  --text-muted: #7a7264;
  --line: rgba(246, 193, 119, 0.18);
  --card-bg: rgba(255, 245, 220, 0.03);
  --card-border: rgba(246, 193, 119, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Songti SC", serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.7;
}

/* 背景层 */
.bg-stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(246, 193, 119, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 180, 84, 0.06), transparent 60%),
    var(--bg-deep);
}

#starfield { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.container {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  position: relative;
  z-index: 3;
}
.brand {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 1px;
  font-weight: 600;
}
.back-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}
.back-link:hover { color: var(--gold); }

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 70px 0 50px;
}

.hero-emblem {
  font-size: 64px;
  margin-bottom: 20px;
  display: inline-block;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.hero-en {
  font-size: 0.8rem;
  letter-spacing: 6px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #fff8e8, var(--gold), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.hero-slogan {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* 价格卡 */
.price-card {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(246, 193, 119, 0.12), rgba(255, 180, 84, 0.06));
  border: 1px solid rgba(246, 193, 119, 0.3);
  box-shadow: 0 10px 40px rgba(246, 193, 119, 0.12);
  margin-bottom: 8px;
}
.price-symbol { font-size: 1.4rem; color: var(--gold); font-weight: 600; }
.price-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.price-unit { font-size: 0.95rem; color: var(--text-muted); }

.price-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 10px;
}

/* ============ 卖点区 ============ */
.section { padding: 56px 0; }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-head h2::before, .section-head h2::after {
  content: "✦";
  color: var(--gold);
  margin: 0 14px;
  font-size: 0.9rem;
  vertical-align: middle;
  opacity: 0.7;
}
.section-head p { color: var(--text-muted); font-size: 0.92rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 193, 119, 0.35);
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ============ 引言金句 ============ */
.mantra {
  text-align: center;
  padding: 50px 20px;
  margin: 20px 0;
  position: relative;
}
.mantra p {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  background: linear-gradient(120deg, var(--cream), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.9;
  letter-spacing: 1px;
}
.mantra .sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 400;
}

/* ============ 购买区 ============ */
.buy-section {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(180deg, transparent, rgba(246, 193, 119, 0.04), transparent);
  border-radius: 24px;
  margin: 30px 0;
}

.buy-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--cream);
}

.buy-sub {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.buy-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.flow-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 22px;
  min-width: 180px;
  text-align: center;
}
.flow-num {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 28px;
  margin-bottom: 10px;
}
.flow-step h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--cream);
}
.flow-step p { font-size: 0.8rem; color: var(--text-muted); }

.flow-arrow {
  color: var(--gold);
  font-size: 1.4rem;
  opacity: 0.5;
}

.wechat-box {
  display: inline-block;
  background: rgba(255,255,255,0.97);
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.wechat-box img {
  width: 150px; height: 150px;
  border-radius: 8px;
  display: block;
}
.wechat-id {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
}
.wechat-remark {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.wechat-remark code {
  background: rgba(246, 193, 119, 0.15);
  color: var(--gold);
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.92em;
  font-family: inherit;
}

/* ============ 页脚 ============ */
.footer {
  text-align: center;
  padding: 36px 0 50px;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 30px;
}
.footer a { color: var(--gold); text-decoration: none; }

/* ============ 首页「开始浏览」入口 ============ */
.browse-entry { margin-top: 30px; }
.browse-btn {
  display: inline-block;
  padding: 16px 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--bg-deep);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(246, 193, 119, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.browse-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(246, 193, 119, 0.45);
}
.browse-entry-tip {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ 内容浏览视图 ============ */
.app-root { display: none; }
.browse-wrap {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.browse-wrap .topnav { padding: 22px 0; }

/* 分类卡片网格 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.cat-card {
  display: block;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px 18px;
  text-align: center;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 193, 119, 0.4);
  background: rgba(246, 193, 119, 0.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}
.cat-id {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(120deg, #fff8e8, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.cat-name {
  font-size: 1rem;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 4px;
}
.cat-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 案例列表（横向条目）*/
.case-list { margin-top: 10px; }
.case-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.case-row:hover {
  border-color: rgba(246, 193, 119, 0.35);
  background: rgba(246, 193, 119, 0.04);
  transform: translateX(4px);
}
.case-thumb {
  flex: 0 0 140px;
  width: 140px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(246, 193, 119, 0.08);
}
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-thumb-ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.case-info { flex: 1; min-width: 0; }
.case-no {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.case-concept {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}
.case-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-designer { color: var(--gold-soft); }

/* 案例详情 */
.case-detail-wrap { max-width: 880px; }
.case-article {
  background: rgba(255, 245, 220, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 10px;
}
.case-cover { width: 100%; max-height: 520px; overflow: hidden; }
.case-cover img { width: 100%; height: auto; display: block; }
.case-body { padding: 30px 32px 8px; }
.case-no-big {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.case-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  background: linear-gradient(120deg, #fff8e8, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.case-subtitle {
  font-size: 1.02rem;
  color: var(--cream);
  margin-bottom: 10px;
  font-weight: 500;
}
.case-designer-row {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.case-designer-row span { color: var(--gold-soft); font-weight: 600; }
.case-def {
  background: rgba(246, 193, 119, 0.06);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-size: 0.94rem;
  line-height: 1.85;
}
.case-def .lbl { color: var(--gold); font-weight: 700; margin-right: 4px; }
.case-desc p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.95;
  margin-bottom: 14px;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.case-tags span {
  font-size: 0.78rem;
  color: var(--gold-soft);
  background: rgba(246, 193, 119, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}
.case-gallery { padding: 8px 32px 32px; display: grid; gap: 14px; }
.case-gallery img {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: rgba(246, 193, 119, 0.04);
}

/* 门禁层 */
.gate-wrap { position: relative; z-index: 2; max-width: 460px; margin: 0 auto; padding: 0 24px 60px; }
.gate-card {
  margin-top: 80px;
  background: rgba(20, 16, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(246, 193, 119, 0.45);
  border-radius: 20px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}
.gate-icon { font-size: 48px; margin-bottom: 16px; }
.gate-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.gate-sub { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 26px; }
.gate-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.gate-input:focus { border-color: var(--gold); }
.gate-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--bg-deep);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.gate-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(246, 193, 119, 0.35); }
.gate-hint { color: #ff8a7a; font-size: 0.85rem; margin-top: 12px; min-height: 18px; }
.gate-tip { color: var(--text-muted); font-size: 0.82rem; margin-top: 22px; }
.gate-tip a { color: var(--gold-soft); text-decoration: underline; }

/* 通用辅助 */
.empty { color: var(--text-muted); text-align: center; padding: 40px 0; }
.not-found { text-align: center; padding: 90px 20px; }
.not-found .nf-icon { font-size: 64px; margin-bottom: 16px; }
.not-found h2 { color: var(--cream); margin-bottom: 18px; }

/* 响应式 */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .flow-arrow { transform: rotate(90deg); }
  .buy-flow { flex-direction: column; }
  .price-card { padding: 14px 28px; }
  /* 浏览页响应式 */
  .browse-wrap, .gate-wrap { padding: 0 16px 50px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .case-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .case-thumb { flex: none; width: 100%; height: 160px; }
  .case-body, .case-gallery { padding-left: 18px; padding-right: 18px; }
  .gate-card { margin-top: 50px; padding: 32px 24px; }
}
