/* === 蜉熵阁 · 智者之庭 === */
/* === 根变量 === */
:root {
  --底深: #0f0f1a;
  --底中: #1a1a2e;
  --底浅: #16213e;
  --金: #ffd700;
  --金暗: #b8960f;
  --金淡: rgba(255, 215, 0, 0.08);
  --字主: #e8e6e3;
  --字次: #9ca3af;
  --边框: rgba(255, 215, 0, 0.15);
  --卡片底: rgba(255, 255, 255, 0.03);
  --卡片悬: rgba(255, 215, 0, 0.06);
}

/* === 全局 === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  background: var(--底深);
  color: var(--字主);
  min-height: 100vh;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--金); text-decoration: none; transition: color 0.3s; }
a:hover { color: #fff; }

/* === 庭 = 主容器 === */
.庭 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(162, 155, 254, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--底中) 0%, var(--底深) 100%);
}

/* === 顶栏 === */
.顶栏 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--边框);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15, 15, 26, 0.85);
}

.顶栏 .阁名 {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--金);
  letter-spacing: 0.1em;
}

.顶栏分隔 {
  color: var(--字次);
  font-size: 1em;
}

.顶栏链接 {
  font-size: 0.9em;
  color: var(--字次);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.顶栏链接:hover {
  color: var(--金);
  border-bottom-color: var(--金);
}

/* === 主区 === */
.主区 {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
}

/* === 底栏 === */
.底栏 {
  text-align: center;
  padding: 30px 20px;
  color: var(--字次);
  font-size: 0.85em;
  border-top: 1px solid var(--边框);
}

/* === 首页：正厅 === */
.正厅 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

.阁名大字 {
  font-size: 4em;
  color: var(--金);
  letter-spacing: 0.3em;
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.2);
  animation: 浮现 1.2s ease-out;
}

@keyframes 浮现 {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.阁联 {
  font-size: 1.2em;
  color: var(--字次);
  letter-spacing: 0.2em;
  margin-top: 12px;
  margin-bottom: 60px;
  animation: 浮现 1.4s ease-out;
}

/* === 阁卡（项目卡片）=== */
.阁群 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.阁卡 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--卡片底);
  border: 1px solid var(--边框);
  border-top: 3px solid var(--阁色, var(--金));
  border-radius: 6px;
  transition: all 0.35s ease;
  position: relative;
  animation: 浮现 1s ease-out both;
}

.阁卡:nth-child(1) { animation-delay: 0.1s; }
.阁卡:nth-child(2) { animation-delay: 0.2s; }
.阁卡:nth-child(3) { animation-delay: 0.3s; }
.阁卡:nth-child(4) { animation-delay: 0.4s; }
.阁卡:nth-child(5) { animation-delay: 0.5s; }

.阁卡:hover {
  background: var(--卡片悬);
  border-color: var(--阁色, var(--金));
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--阁色, var(--金淡));
}

.阁卡类 {
  font-size: 0.75em;
  color: var(--阁色, var(--金));
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.阁卡名 {
  font-size: 1.5em;
  color: var(--字主);
  font-weight: normal;
}

.阁卡述 {
  font-size: 0.9em;
  color: var(--字次);
  flex: 1;
}

.阁卡态 {
  font-size: 0.8em;
  color: var(--字次);
  opacity: 0.7;
}

.引路 {
  margin-top: 50px;
  color: var(--字次);
  font-size: 0.95em;
  text-align: center;
}

/* === 按钮 === */
.庭院按钮 {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--金);
  border-radius: 4px;
  color: var(--金);
  background: transparent;
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s;
}

.庭院按钮:hover {
  background: var(--金淡);
  color: #fff;
  border-color: #fff;
}

.庭院按钮.次 {
  border-color: var(--字次);
  color: var(--字次);
}

.庭院按钮.次:hover {
  border-color: var(--字主);
  color: var(--字主);
}

/* === 项目详情页 === */
.项目页 {
  max-width: 700px;
  margin: 0 auto;
}

.返回链接 {
  display: inline-block;
  color: var(--字次);
  font-size: 0.9em;
  margin-bottom: 30px;
  transition: color 0.3s;
}

.返回链接:hover { color: var(--金); }

.项目头 {
  border-left: 4px solid var(--阁色, var(--金));
  padding-left: 24px;
  margin-bottom: 36px;
}

.项目类 {
  font-size: 0.8em;
  color: var(--阁色, var(--金));
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.项目名 {
  font-size: 2.5em;
  color: var(--字主);
  font-weight: normal;
  margin-top: 4px;
}

.项目体 {
  line-height: 2;
}

.项目详述 {
  color: var(--字主);
  font-size: 1.05em;
  margin-bottom: 36px;
}

.项目信息 {
  background: var(--卡片底);
  border: 1px solid var(--边框);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.信息条 {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.信息条:last-child { border-bottom: none; }

.信息标 {
  display: inline-block;
  width: 60px;
  color: var(--字次);
  font-size: 0.85em;
}

.信息值 {
  color: var(--字主);
}

.外链 {
  word-break: break-all;
  font-size: 0.85em;
}

.项目导航 {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* === 庭院（留言）页 === */
.庭院页 {
  max-width: 660px;
  margin: 0 auto;
}

.庭院标题 {
  font-size: 2.2em;
  color: var(--金);
  font-weight: normal;
  margin-bottom: 8px;
}

.庭院述 {
  color: var(--字次);
  margin-bottom: 40px;
}

.留言区 {
  background: var(--卡片底);
  border: 1px solid var(--边框);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 40px;
}

.留言区 h2 {
  font-size: 1.1em;
  color: var(--字次);
  font-weight: normal;
  margin-bottom: 20px;
}

.留言表单 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.留言输入 {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--边框);
  border-radius: 4px;
  color: var(--字主);
  font-family: inherit;
  font-size: 0.95em;
  resize: vertical;
  transition: border-color 0.3s;
}

.留言输入:focus {
  outline: none;
  border-color: var(--金);
}

.留言框 {
  min-height: 80px;
}

.留言提示 {
  font-size: 0.85em;
  color: var(--金);
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.留言列表 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.留言条 {
  background: var(--卡片底);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 16px 20px;
}

.留言条头 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.留言条者 {
  color: var(--金);
  font-size: 0.9em;
}

.留言条时 {
  color: var(--字次);
  font-size: 0.8em;
}

.留言条文 {
  color: var(--字主);
  font-size: 0.95em;
  line-height: 1.8;
  word-break: break-word;
}

.空提示 {
  text-align: center;
  color: var(--字次);
  padding: 40px;
  font-style: italic;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .顶栏 { padding: 14px 16px; gap: 12px; }
  .顶栏链接 { font-size: 0.8em; }
  .阁名大字 { font-size: 2.5em; letter-spacing: 0.15em; }
  .阁联 { font-size: 1em; letter-spacing: 0.1em; margin-bottom: 40px; }
  .阁群 { grid-template-columns: 1fr; gap: 16px; }
  .阁卡 { padding: 22px 18px; }
  .项目名 { font-size: 1.8em; }
  .项目导航 { flex-direction: column; }
  .主区 { padding: 30px 16px; }
}

/* === 认证区 === */
.认证区 {
  margin-bottom: 32px;
}

.认证面板 {
  background: var(--卡片底);
  border: 1px solid var(--边框);
  border-radius: 6px;
  padding: 24px 28px;
}

.认证面板 h2 {
  font-size: 1.1em;
  color: var(--字次);
  font-weight: normal;
  margin-bottom: 16px;
}

.认证表单 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.认证按钮组 {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.欢迎行 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.欢迎文字 {
  color: var(--字主);
  font-size: 1em;
}

.金名 {
  color: var(--金);
  font-weight: bold;
}

@media (max-width: 768px) {
  .认证按钮组 {
    flex-direction: column;
    gap: 8px;
  }
}
