/* ===== 首页布局（桌面端） ===== */

.home-wrap {
  display: flex;
  height: 100vh;
  width: 94%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0;
  gap: 20px;
}

/* ── 左栏固定宽 ── */
.home-left {
  width: 260px;
  flex-shrink: 0;
  padding: 0;
  height: 100%;
}

.profile-card {
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(168,207,232,.25);
  border-radius: 18px;
  padding: 36px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  box-shadow: 0 2px 12px rgba(91,163,217,.05);
  height: 100%;
}

/* 头像 */
.profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8cfe8, #5ba3d9);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  box-shadow: 0 4px 18px rgba(91,163,217,.2);
  flex-shrink: 0;
}

/* 昵称 */
.profile-name {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .15em;
  color: #2c4a6e;
  text-align: center;
}

/* 个性签名 */
.profile-sign {
  font-size: 13px;
  color: #7a9bba;
  letter-spacing: .1em;
  text-align: center;
  line-height: 1.7;
}

/* 图标行 */
.profile-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.profile-icons .icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(168,207,232,.3);
  background: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: #5ba3d9;
  cursor: pointer;
  transition: all .2s;
}
.profile-icons .icon-btn:hover {
  background: rgba(91,163,217,.12);
  border-color: rgba(91,163,217,.4);
  transform: translateY(-1px);
}

/* 弹出窗口 */
.icon-popup-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-popup {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168,207,232,.35);
  border-radius: 14px;
  padding: 24px 32px;
  text-align: center;
  box-shadow: 0 8px 36px rgba(91,163,217,.15);
  animation: popIn .25s cubic-bezier(.16,1,.3,1);
}
.icon-popup-label {
  font-size: 12px;
  color: #a8cfe8;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.icon-popup-content {
  font-size: 17px;
  color: #2c4a6e;
  letter-spacing: .05em;
  user-select: all;
  cursor: pointer;
  padding: 8px 0;
}
.icon-popup-hint {
  font-size: 11px;
  color: #a8cfe8;
  margin-top: 10px;
}
.icon-popup-hint.copied {
  color: #5ba3d9;
  font-weight: 400;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* 分隔线 */
.profile-divider {
  width: 65%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a8cfe8, transparent);
}

/* 导航 */
.profile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 15px;
  color: #2c4a6e;
  text-decoration: none;
  border-radius: 10px;
  letter-spacing: .06em;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.profile-nav a:hover,
.profile-nav a.active {
  background: rgba(91,163,217,.1);
  color: #5ba3d9;
}
.profile-nav a i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: .7;
}

/* ── 右栏 ── */
.home-right {
  flex: 1;
  min-width: 0;
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.card {
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(168,207,232,.25);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(91,163,217,.05);
}
.card-title {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .12em;
  color: #5ba3d9;
  margin-bottom: 18px;
}

/* ── 信息卡片 ── */
.info-card {
  position: relative;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(168,207,232,.25);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(91,163,217,.05);
  overflow: hidden;
}
.info-time {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 200;
  color: #2c4a6e;
  letter-spacing: .12em;
  line-height: 1;
}
.info-date {
  font-size: 14px;
  color: #7a9bba;
  letter-spacing: .1em;
  margin-top: 10px;
}
.info-wish {
  font-size: 13px;
  color: #7a9bba;
  margin-top: 8px;
  letter-spacing: .05em;
}
.info-divider {
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a8cfe8, transparent);
  margin: 18px auto;
}
.info-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.weather-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.weather-temp {
  font-size: 28px;
  font-weight: 300;
  color: #2c4a6e;
}
.weather-desc {
  font-size: 14px;
  color: #5ba3d9;
  letter-spacing: .08em;
}
.weather-detail {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 12px;
  color: #7a9bba;
}
.weather-detail i {
  margin-right: 2px;
  font-size: 11px;
}
.info-blessing {
  margin-top: 16px;
  font-size: 14px;
  color: #5ba3d9;
  letter-spacing: .1em;
  font-style: italic;
}

/* 首页网格 */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.home-grid .grid-box {
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168,207,232,.2);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
  transition: all .25s;
  cursor: default;
  height: 168px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.home-grid .grid-box:hover {
  background: rgba(255,255,255,.6);
  border-color: rgba(91,163,217,.3);
  box-shadow: 0 4px 16px rgba(91,163,217,.08);
  transform: translateY(-2px);
}
.home-grid .grid-box p {
  font-size: 13px;
  color: #a8cfe8;
  letter-spacing: .08em;
}

.box-inner {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.box-title {
  font-size: 14px;
  font-weight: 500;
  color: #5ba3d9;
  letter-spacing: .08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.box-title i {
  font-size: 12px;
  opacity: .7;
}
.box-content {
  font-size: 13px;
  color: #7a9bba;
  line-height: 1.6;
  overflow: hidden;
  flex: 1;
}
.box-news .box-content {
  display: flex;
  align-items: center;
}
.box-cat .box-content {
  display: flex;
  align-items: center;
}
.box-exchange .box-content {
  display: flex;
  flex-direction: column;
}
.box-hitokoto .box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.box-poetry .box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 最新文章 */
.article-item {
  padding: 6px 0;
  font-size: 13px;
  color: #2c4a6e;
  border-bottom: 1px solid rgba(168,207,232,.15);
  cursor: pointer;
  transition: color .2s;
}
.article-item:hover {
  color: #5ba3d9;
}
.article-item:last-child {
  border-bottom: none;
}

/* 一言 */
.hitokoto-text {
  font-size: 14px;
  color: #2c4a6e;
  line-height: 1.9;
  font-style: italic;
}
.hitokoto-from {
  font-size: 11px;
  color: #a8cfe8;
  margin-top: 8px;
  text-align: right;
}

/* 倒数日 */
.countdown-days {
  font-size: 42px;
  font-weight: 200;
  color: #5ba3d9;
  line-height: 1;
  text-align: center;
}
.countdown-label {
  font-size: 13px;
  color: #7a9bba;
  text-align: center;
  margin-top: 6px;
  letter-spacing: .08em;
}

/* 导航栏切换按钮（桌面端隐藏） */
.nav-toggle { display: none; }

/* ===== 手机端 ===== */
@media (max-width: 700px) {
  .home-wrap {
    flex-direction: column;
    padding: 0 12px;
    height: auto;
  }

  /* 顶部导航栏 sticky，不遮挡内容 */
  .home-left {
    width: 100%;
    min-width: 0;
    flex: none;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 8px 14px;
    background: rgba(232,240,248,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168,207,232,.2);
  }

  .home-right {
    width: 100%;
    min-width: 0;
    flex: none;
    padding: 16px 0 20px;
  }

  /* 头像 + 昵称 + 按钮 一行 */
  .profile-card {
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 4px 0;
    gap: 12px;
    border-radius: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    flex-wrap: wrap;
  }

  .profile-avatar {
    width: 36px;
    height: 36px;
    font-size: 16px;
    box-shadow: none;
  }

  .profile-name {
    font-size: 14px;
    flex-shrink: 0;
  }

  /* 导航栏切换按钮 - 在行尾 */
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 5px 12px;
    font-size: 12px;
    color: #5ba3d9;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(168,207,232,.3);
    background: rgba(255,255,255,.5);
    flex-shrink: 0;
  }
  .nav-toggle:hover {
    background: rgba(91,163,217,.1);
  }
  .nav-toggle i {
    font-size: 11px;
  }

  /* 隐藏桌面端元素 */
  .profile-sign { display: none; }
  .profile-icons { display: none; }
  .profile-divider { display: none; }

  /* 导航链接: 默认隐藏，在按钮行下方展开 */
  .profile-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(168,207,232,.15);
    margin-top: 4px;
  }
  .home-left.nav-open .profile-nav {
    display: flex;
  }
  .profile-nav a {
    padding: 8px 14px;
    font-size: 13px;
    justify-content: center;
    border-radius: 8px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-card { padding: 20px 16px; }
  .info-time { font-size: 32px; }
  .info-date { font-size: 12px; }
  .info-blessing { font-size: 12px; }
}
