/* ============================================================
   墨云开发日志 · 奢华墨金主题
   ============================================================ */
:root {
  --bg: #08090d;
  --bg-soft: #0d1017;
  --card: rgba(255, 255, 255, .028);
  --card-hover: rgba(255, 255, 255, .055);
  --border: rgba(212, 175, 55, .16);
  --border-strong: rgba(212, 175, 55, .5);
  --text: #f4efe3;
  --text-dim: #b3ac9c;
  --text-faint: #8a8271;
  --gold: #d4af37;
  --gold-light: #f3e3a9;
  --gold-deep: #9c7c1f;
  --gold-grad: linear-gradient(135deg, #f7e7b0 0%, #d4af37 45%, #a8842a 100%);
  --radius: 16px;
  --nav-h: 70px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(212, 175, 55, .07), transparent 62%),
    radial-gradient(900px 520px at 8% 12%, rgba(129, 140, 248, .045), transparent 60%),
    radial-gradient(760px 420px at 55% 115%, rgba(212, 175, 55, .05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: rgba(212, 175, 55, .32); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212,175,55,.4), rgba(212,175,55,.18));
  border-radius: 6px;
}

a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

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

/* SVG 图标通用 */
.ic {
  width: 1em; height: 1em;
  vertical-align: -.14em;
  flex: none;
}

/* ============================================================
   导航栏
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(8, 9, 13, .72);
  border-bottom: 1px solid var(--border);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.5), transparent);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .1em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .55rem;
}

.brand .ic {
  width: 1.45em; height: 1.45em;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, .55));
}

.brand:hover { color: var(--gold-light); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--text-dim);
  font-size: .95rem;
  letter-spacing: .12em;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold), transparent) 1;
  border-image-width: 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--gold), transparent) 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--gold);
  padding: .35rem .5rem;
  cursor: pointer;
}

.nav-toggle .ic { width: 1.3em; height: 1.3em; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-cloud {
  position: absolute;
  color: var(--gold);
  opacity: .1;
  filter: blur(1.5px);
  pointer-events: none;
  animation: floatCloud 9s ease-in-out infinite;
}

.hc-1 { width: 300px; height: 300px; top: 6%; left: -70px; }
.hc-2 { width: 220px; height: 220px; bottom: 2%; right: -40px; animation-delay: -4.5s; opacity: .08; }

.hero-spark {
  position: absolute;
  color: var(--gold-light);
  opacity: .35;
  pointer-events: none;
  animation: twinkle 3.6s ease-in-out infinite;
}

.sp-1 { width: 20px; height: 20px; top: 22%; left: 20%; }
.sp-2 { width: 13px; height: 13px; top: 34%; right: 22%; animation-delay: 1.4s; }
.sp-3 { width: 16px; height: 16px; bottom: 18%; left: 30%; animation-delay: 2.2s; }

.hero > .container { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  letter-spacing: .3em;
  color: var(--gold-light);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: .45rem 1.4rem;
  background: rgba(212, 175, 55, .06);
  animation: fadeUp .9s ease both;
}

.hero-badge .ic { color: var(--gold); }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: .14em;
  margin-top: 1.6rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(212, 175, 55, .22));
  animation: fadeUp .9s .12s ease both;
}

.hero-rule {
  width: 200px;
  height: 1px;
  margin: 1.8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
  animation: fadeUp .9s .2s ease both;
}

.hero-rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, .8);
}

.hero .subtitle {
  margin: 1.6rem auto 0;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--text-dim);
  letter-spacing: .12em;
  animation: fadeUp .9s .28s ease both;
}

.hero .tagline {
  margin-top: 2rem;
  display: inline-flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .9s .36s ease both;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
  letter-spacing: .08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem 1rem;
  background: rgba(255, 255, 255, .02);
}

.tag .ic { color: var(--gold); }

.btn-row {
  margin-top: 2.6rem;
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .9s .44s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .1em;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold-grad);
  color: #191405;
  box-shadow: 0 6px 26px rgba(212, 175, 55, .32);
}

.btn-primary:hover {
  color: #191405;
  box-shadow: 0 10px 34px rgba(212, 175, 55, .45);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--gold-light);
  background: rgba(212, 175, 55, .05);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 6px 22px rgba(212, 175, 55, .18);
}

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 4rem 0; flex: 1; }

.section-head { margin-bottom: 2.2rem; }

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.section-head h2::before {
  content: "";
  width: 5px; height: 26px;
  border-radius: 3px;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(212, 175, 55, .5);
}

.section-head p { color: var(--text-dim); margin-top: .5rem; font-size: .95rem; letter-spacing: .05em; }

/* ============================================================
   卡片
   ============================================================ */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  backdrop-filter: blur(6px);
  transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(212, 175, 55, .08);
}

.card h3 { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .08em; margin-bottom: .6rem; }
.card p { color: var(--text-dim); font-size: .92rem; }
.card .meta { margin-top: 1.1rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================================
   空状态占位
   ============================================================ */
.empty {
  border: 1.5px dashed rgba(212, 175, 55, .3);
  border-radius: var(--radius);
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--text-faint);
  background: rgba(212, 175, 55, .02);
}

.empty .empty-ic {
  display: block;
  width: 54px; height: 54px;
  margin: 0 auto 1.1rem;
  color: var(--gold);
  opacity: .85;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, .3));
}

.empty strong {
  display: block;
  color: var(--text-dim);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: .12em;
  margin-bottom: .4rem;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(212,175,55,.4), transparent) 1;
  padding: 2.2rem 0;
  margin-top: 3.5rem;
  color: var(--text-faint);
  font-size: .9rem;
  letter-spacing: .05em;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
}

.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--gold); }

/* 备案信息行:桌面横排、移动端自动换行,始终清晰可见 */
.footer .beian-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.6rem;
}

.footer .beian-row a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.footer .beian-row .ic { color: var(--gold); }

/* 官方公安备案图标(位图)与文字对齐 */
.footer .beian-row img.beian-ic {
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: -.14em;
}

/* ============================================================
   动画
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes floatCloud {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(.85); }
  50% { opacity: .5; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 9, 13, .97);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 1rem 4%;
    border-bottom: 1px solid rgba(212, 175, 55, .08);
  }

  .hero { padding: 4.5rem 0 3.5rem; }
  .hc-1 { width: 180px; height: 180px; }
  .hc-2 { width: 130px; height: 130px; }
}
