@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400&display=swap');

:root {
  --bg: #000;
  --text: #fff;
  --muted: #aaa;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 200;
  line-height: 1.4;
  overflow-x: hidden;
}

/* 白色内框 */
.container {
    position: relative;   /* 新增 */
  border: 1px solid #fff;
  margin: 20px;
  padding: 40px;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

/* 顶部导航 */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 70px;
  font-size: 14px;
}
.brand {
  font-size: 18px;
  font-weight: 300;
}
.menu a {
  color: var(--text);
  text-decoration: none;
  margin-left: 30px;
  font-size: 14px;
  font-weight: 200;
}
.menu a:hover {
  color: var(--muted);
}

/* 主体布局 */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.hero-left {
  flex: 1;
}
.hero-right {
  flex: 1.2;
  max-width: 500px;
  margin-right: 30px;
  font-size: 14px;
  color: var(--muted);
}
.hero-right p {
  margin-bottom: 20px;
}

/* 大标题 + 名字并排 */
.title-block {
  display: flex;
  align-items: flex-start;
}
.title {
  font-size: 68px;
  font-weight: 100;
  line-height: 1.3;
}
.name {
  margin-left: 110px;
  font-size: 26px;
}
.subtitle {
  font-size: 16px;
  color: var(--muted);
}

/* 中间的云 */
.center-cloud {
  position:fixed;
  top: 60%;          /* 调整这个值来控制云的垂直位置，比如 40% 更靠上 */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;        /* 在文字下层 */
}

.center-cloud img {
  width: 750px;
  height: auto;
  opacity: 0.57;
  animation: flicker 5s ease-in-out infinite, float 8s ease-in-out infinite;
}

/* 云忽明忽暗 */
@keyframes flicker {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.4; }
}
/* 云上下漂浮 */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* 横向滚动的周标题 */
.gallery {
  position: absolute;
  bottom: 35px;    /* 距离底边 20px，你可以调 */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px); /* 两边留点边距 */
  overflow: hidden;
}
.track {
  display: flex;
  gap: 10px;                 /* 更紧凑的间距 */
  animation: scroll 40s linear infinite;
}
.track:hover {
  animation-play-state: paused;
}

/* Week 方块 */
.week {
  flex: 0 0 auto;
  width: 180px;              /* 更窄 */
  height: 60px;              /* 更矮 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  transition: transform .3s ease, color .3s ease;
}
.week:hover {
  transform: scale(1.05);
  color: #fff;
}

/* 横向滚动动画 */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 鼠标白色流星拖尾 */
.trail {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff,
              0 0 15px #ffffff,
              0 0 30px #ffffff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: trailFade 1s linear forwards;
  image-rendering: pixelated;
}
@keyframes trailFade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%  { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
}

/* Dropdown 样式 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown a {
  padding: 0 15px;   /* ✅ 用 padding 代替 margin-right */
  margin: 0;         /* ✅ 避免破坏对齐 */
}

/* 下拉内容（毛玻璃） */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(54, 54, 54, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;

  width: 140px;          /* ✅ 固定宽度，所有条目对齐 */
  z-index: 99;
  flex-direction: column;
  text-align: center;
}

.dropdown-content a {
  color: var(--text);
  padding: 10px 0;
  text-decoration: none;
  display: block;
  font-size: 13px;
  width: 100%;           /* ✅ 链接占满整个菜单宽度 */
  box-sizing: border-box;
  text-align: center;    /* ✅ 文字居中 */
   margin: 0;         /* ✅ 避免突出 */
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* ===== 彻底修复周链接下划线问题 ===== */

/* 重置所有周链接的样式 */
.week,
a.week,
.gallery a.week,
.gallery .track a.week,
.gallery .track a.week:link,
.gallery .track a.week:visited,
.gallery .track a.week:hover,
.gallery .track a.week:active,
.gallery .track a.week:focus {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: none !important;
  border-bottom: none !important;
  outline: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* 确保链接在正常状态没有下划线 */
a.week {
  text-decoration: none !important;
}

/* 确保链接在所有状态下都没有下划线 */
a.week:link,
a.week:visited,
a.week:hover,
a.week:active,
a.week:focus {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* 手机端专用样式 */
@media (max-width: 768px) {

  /* 页面容器缩进更小，但高度固定屏幕，不再超出 */
  .container {
    margin: 10px;
    padding: 20px;
    border-width: 1px;
    min-height: 86vh;      /* ✅ 保证边框完整显示 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ✅ 内容和底部均匀分布 */
  }

  /* 顶部标题区更紧凑 */
  .title {
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
    margin-top: -120px;          /* ✅ 往上顶 */
  }

  .title-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;    /* ✅ 减少和下面的间距 */
  }

  .name {
    margin: 6px 0 0 0 !important;
    font-size: 16px;
    text-align: center !important;
    width: 100% !important;
   margin-top: 30px;  
    display: block; 
  }

  .subtitle {
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
  }

  /* 简介文字更小，居中 */
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-right {
        margin: 6px 0 0 0 !important;
    max-width: 90%;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
  }
  .hero-right p {
    margin-bottom: 5px;
  }

  /* 云缩小，避免挡住文字 */
  .center-cloud img {
    width: 100%;
    margin: 0px auto;
    display: block;
        align: center;
  }

  /* gallery 移动端在底部，留出边距 */
  .gallery {
    position: relative;     /* ✅ 不再 absolute */
    margin-top: -20px;       /* ✅ 往下挪 */
    margin-bottom: 10px;    /* ✅ 和白框底部留空 */
    width: 100%;
    overflow: hidden;
  }

  .track {
    display: flex;
    gap: 10px;
    animation: scroll 8s linear infinite; /* ✅ 慢速滚动 */
  }

  .week {
    width: 140px;
    height: 50px;
    font-size: 11px;
  }
}

