/* ======================
   全局重置 & 基础
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", Arial, sans-serif;
  background: #111;
  color: #eee;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ======================
   悬浮 Header
====================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  padding: 10px 12px;

  background: rgba(27, 27, 27, 0.95);
  backdrop-filter: blur(6px);

  border-bottom: 1px solid #333;
  z-index: 1000;
}

#header .icon-fanhui {
  font-size: 22px;
  margin-right: 10px;
}

#header .ajax-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

#header h1 {
  font-size: 16px;
  font-weight: bold;
}

#header p {
  font-size: 12px;
  color: #aaa;
}

#user {
  list-style: none;
}

#user img.Avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* ======================
   内容区域（预留头部高度）
====================== */
#content {
  padding: 70px 15px 15px; /* 顶部留给悬浮 header */
  line-height: 1.7;
  font-size: 14px;
}

/* ======================
   Footer（正常流，不悬浮）
====================== */
#footer {
  margin-top: 30px;
  padding: 15px;
  font-size: 12px;
  text-align: center;
  background: #161616;
  border-top: 1px solid #333;
}

#footer a {
  color: #c9a36a;
  margin: 0 5px;
}

#footer img {
  margin-top: 10px;
}

/* ======================
   运行时间
====================== */
#share_time {
  display: inline-block;
  margin-top: 6px;
  color: #E9C2A6;
  font-weight: bold;
}

/* ======================
   手机端（≤768px）
====================== */
@media screen and (max-width: 768px) {

  #header h1 {
    font-size: 15px;
  }

  #header p {
    display: none;
  }

  #content {
    font-size: 14px;
  }
}

/* ======================
   电脑端（≥769px）
====================== */
@media screen and (min-width: 769px) {

  body {
    background: #0e0e0e;
  }

  #header,
  #content,
  #footer {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  #header {
    padding: 15px 20px;
  }

  #header h1 {
    font-size: 18px;
  }

  #header p {
    font-size: 13px;
  }

  #content {
    font-size: 15px;
  }
}

/* Nav 容器 */
#nav {
  margin-top: 70px; /* 给悬浮 header 让位 */
  background: #1c1c1c;
  border-bottom: 1px solid #333;
  overflow: hidden;
}

/* 横向滚动 */
.nav-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

/* Nav 链接 */
.nav-item {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
  color: #bbb;
  white-space: nowrap;
  position: relative;
  transition: all 0.3s;
}

.nav-item:hover {
  color: #fff;
}

/* 当前页面高亮 */
.nav-item.active {
  color: #ffd27d;
  font-weight: bold;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  background: #ffd27d;
  border-radius: 2px;
}

/* 登录文字样式 */
.nav-login {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
  color: #bbb;
  cursor: pointer;
}

.nav-login:hover {
  color: #fff;
}

/* 电脑端居中 */
@media screen and (min-width: 769px) {
  #nav {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-scroll {
    justify-content: center;
  }

  .nav-item,
  .nav-login {
    font-size: 15px;
    padding: 10px 20px;
  }
}
