
/* ========== 页首欢迎卡片 ========== */

.yx-welcome {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 20px auto;
  padding: 26px 32px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid #e1d9ca;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(45, 51, 44, 0.06);
  color: #334139;
  text-align: left;
  transition: box-shadow 0.3s, transform 0.3s;
}

.yx-welcome:hover {
  box-shadow: 0 12px 36px rgba(45, 51, 44, 0.12);
  transform: translateY(-2px);
}

.yx-welcome-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.yx-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62846d;
  box-shadow: 0 0 0 4px rgba(98,132,109,0.12);
}

.yx-site-name {
  color: #69786f;
}

.yx-online {
  margin-left: auto;
  color: #a17b62;
  font-size: 11px;
}

.yx-welcome .yx-title {
  margin: 18px 0 12px;
  padding: 0;
  color: #2c3c35;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.5;
  border: none;
  background: none;
}

.yx-description {
  margin: 0 0 20px;
  color: #72786f;
  font-size: 14px;
  line-height: 1.8;
}

.yx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yx-tags span {
  padding: 6px 12px;
  background: #edf1ec;
  color: #50695c;
  border: 1px solid #dce6db;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.25s;
}

.yx-tags span:hover {
  background: #496b59;
  color: white;
  transform: translateY(-3px);
}

/* ========== 闪烁的终端光标 ========== */

.yx-cursor {
  display: inline-block;
  color: #70937e;
  animation: yx-blink 1s step-end infinite;
}

@keyframes yx-blink {
  50% { opacity: 0; }
}

/* ========== 终端风格页脚 ========== */

.yx-footer {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 36px auto 24px;
  color: #526459;
  text-align: left;
  font-size: 13px;
}

.yx-terminal {
  overflow: hidden;
  border-radius: 12px;
  background: #25332f;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  font-family: Consolas, "Courier New", monospace;
}

.yx-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #34443d;
  color: #b9c8bd;
  font-size: 11px;
}

.yx-window-dots {
  display: flex;
  gap: 7px;
}

.yx-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.yx-window-dots span:nth-child(1) {
  background: #d88175;
}

.yx-window-dots span:nth-child(2) {
  background: #deb975;
}

.yx-window-dots span:nth-child(3) {
  background: #8eaf95;
}

.yx-terminal-body {
  padding: 22px 24px;
  color: #dce7dc;
  line-height: 2;
  font-size: 13px;
}

.yx-terminal-body p {
  margin: 0 0 5px;
  color: #dce7dc;
}

.yx-prompt,
.yx-green {
  color: #9ec4a4 !important;
}

/* ========== 页脚链接 ========== */

.yx-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 2px;
  border-bottom: 1px solid #dcd5c8;
}

.yx-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.yx-footer-links a {
  color: #526b5d;
  text-decoration: none;
}

.yx-footer-links a:hover {
  color: #ad7958;
  text-decoration: underline;
}

/* ========== 可点击的小彩蛋 ========== */

.yx-easter-egg {
  margin-top: 16px;
  padding: 10px 2px;
  color: #8b887d;
}

.yx-easter-egg summary {
  cursor: pointer;
  display: list-item;
  width: fit-content;
  transition: color 0.2s;
}

.yx-easter-egg summary:hover {
  color: #4d705e;
}

.yx-easter-egg p {
  margin: 8px 0;
  color: #697b6e;
}

/* ========== 手机屏幕适配 ========== */

@media (max-width: 768px) {
  .yx-welcome {
    padding: 20px;
    margin: 14px auto;
  }

  .yx-welcome .yx-title {
    font-size: 22px;
  }

  .yx-terminal-body {
    padding: 18px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .yx-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 尊重系统的减少动画设置 */
@media (prefers-reduced-motion: reduce) {
  .yx-cursor {
    animation: none;
  }

  .yx-welcome,
  .yx-tags span {
    transition: none;
  }
}
