* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans SC", sans-serif;
}

body {
  background: #121212;
  color: #e0e0e0;
  padding-bottom: 120px;
}

/* 头部 */
.header {
  background: #1e1e1e;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 60px;
}

.main-title {
  font-size: 28px;
  color: #ffffff;
}

.sub-title {
  font-size: 16px;
  color: #aaa;
  margin-top: 4px;
}

.contact {
  margin-left: auto;
  color: #aaa;
}

/* 三个小方块 */
.box-container {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  /* 小屏幕自动换行 */
  flex-wrap: wrap;
}

.big-box {
  flex: 1;
  min-width: 180px;
  height: 130px;
  /* 简约渐变背景，更高级 */
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  /* 去掉粗边框，改用细边框 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  /* 更柔和的阴影 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /*  hover 微动效，提升质感 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.big-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 简化装饰圆，只保留轻量点缀，不杂乱 */
.box-container {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  /* 关键：给容器开启悬停模糊能力 */
  position: relative;
}

.big-box {
  flex: 1;
  min-width: 180px;
  height: 130px;
  /* 🔥 高级清新渐变配色（不土、通透感强） */
  background: linear-gradient(135deg, #6984ff 0%, #764ba2 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  /* 🔥 核心：默认不模糊，悬停其他卡片时模糊当前卡片 */
  filter: blur(0);
  z-index: 1;
}

/* 🔥 鼠标悬停容器 → 所有卡片变模糊 */
.box-container:hover .big-box {
  filter: blur(6px);
  opacity: 0.8;
}

/* 🔥 鼠标悬停当前卡片 → 取消模糊，高亮显示 */
.box-container .big-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
  filter: blur(0);
  opacity: 1;
  z-index: 10;
}

.circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.circle-1 {
  width: 50px;
  height: 50px;
  top: 12px;
  left: 16px;
  animation-delay: 0s;
}

.circle-2 {
  width: 60px;
  height: 60px;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.6s;
}

.circle-3 {
  width: 50px;
  height: 50px;
  top: 12px;
  right: 16px;
  animation-delay: 1.2s;
}

.text-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  z-index: 10;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 上下浮动动画保留 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
/* 核心：上下浮动关键帧 */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 页尾 */
.footer {
  background: #1e1e1e;
  padding: 20px 0;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.3);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
}
.footer-box {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  color: #aaa;
  line-height: 1.9;
}
.footer-box a {
  color: #64b5f6;
  text-decoration: none;
}
.footer-box a:hover {
  color: #90caf9;
  text-decoration: underline;
}

/* 文章列表 */
.article-list {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.article-item {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  margin-bottom: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.article-icon {
  width: 26px;
  height: 26px;
  margin-right: 14px;
}

.article-item a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.article-item a:hover {
  color: #64b5f6;
}

/* 文章跳转按钮 */
.article-btn-box {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}
.article-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1e1e;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}
.article-btn:hover {
  background: #252525;
  color: #64b5f6;
}

/* 面包屑导航 */
.daohang {
    max-width: 1000px;
    margin: 20px auto;
    padding: 12px 22px;
    font-size: 15px;
    color: #aaa;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.daohang a {
    color: #64b5f6;
    text-decoration: none;
    margin: 0 4px;
}
.daohang a:hover {
    color: #90caf9;
    text-decoration: underline;
}

/* 文章内容页 */
.article-content {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 40px 30px;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 2;
  font-size: 16px;
  color: #e0e0e0;
}
.article-content h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 12px;
  color: #ffffff;
}
.article-content .date {
  text-align: center;
  font-size: 16px;
  color: #aaa;
  margin-bottom: 24px;
}
.article-content hr {
  border: none;
  border-top: 1px solid #333;
  margin: 24px 0;
}
.article-item {
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.article-item:hover {
    background-color: #f5f7fa;
    transform: translateX(6px);
}

.article-item a {
    transition: color 0.25s ease;
}

.article-item:hover a {
    color: #0066cc;
}
/* 深色自定义右键菜单 */
.custom-contextmenu {
  position: fixed;
  width: 160px;
  background: #1e1e1e;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  z-index: 99999;
  display: none;
  padding: 6px 0;
  border: 1px solid #333;
  animation: menuFade 0.2s ease;
}
@keyframes menuFade {
  from { opacity:0; transform: scale(0.95); }
  to { opacity:1; transform: scale(1); }
}
.contextmenu-item {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #eee;
  transition: background 0.2s;
}
.contextmenu-item:hover {
  background: #2d2d2d;
}
.contextmenu-item + .contextmenu-item {
  border-top: 1px solid #333;
}

/* AI理解：蓝紫流动渐变 */
.ai-grad {
  background: linear-gradient(90deg, #4169E1, #9370DB, #4169E1);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flowGrad 2s linear infinite;
  font-weight: 500;
}
@keyframes flowGrad {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.contextmenu-item + .contextmenu-item {
  border-top: 1px solid #f0f0f0;
}
/* 工具弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #333;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  position: relative;
  animation: modalFade 0.3s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
}

.tool-content {
  margin-top: 20px;
}

.tool-content h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 24px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.tool-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  resize: vertical;
}

.tool-input {
  padding: 10px 12px;
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  width: 100%;
}

.tool-select {
  padding: 10px 12px;
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  width: 100%;
}

.tool-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-btn-group button, .tool-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-btn-group button:hover, .tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.image-preview {
  margin: 10px 0;
}

.color-info {
  margin: 16px 0;
  line-height: 2;
}

.qr-container {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

.unit-convert-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.unit-convert-row .tool-input {
  flex: 1;
}

.unit-convert-row .tool-select {
  width: 120px;
}

.tool-result {
  margin-top: 16px;
  line-height: 2;
}

.tool-tip {
  color: #aaa;
  font-size: 14px;
  margin-top: 8px;
}

.tool-error {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 8px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .unit-convert-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .unit-convert-row .tool-select {
    width: 100%;
  }
  
  .tool-btn-group {
    flex-direction: column;
  }
  
  .tool-btn-group button {
    width: 100%;
  }
}
/* 工具列表（复用文章列表样式） */
.tool-list {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.tool-item {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  margin-bottom: 12px;
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
}

.tool-item:hover {
  background: #252525;
  color: #64b5f6;
  transform: translateX(6px);
}

.tool-item .text-card {
  color: #ffffff;
  font-weight: 500;
  font-size: 17px;
}

.tool-item:hover .text-card {
  color: #64b5f6;
}