/* 工具区域样式调整 */
.tools {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: transparent;
}

/* 工具区域背景 - 高级感多层渐变，左上角#29617a，右上角#1e293b */
.tools-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
  linear-gradient(to right, #194f69 0%, #18485f 25%, #1a3d51 50%, #1b3246 75%, #1e293b 100%);
  background-blend-mode: overlay;
}

/* 添加精致纹理效果 */
.tools-bg-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 25%, rgba(41, 97, 122, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(30, 41, 59, 0.1) 0%, transparent 50%);
  opacity: 0.8;
}

.tools-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.6;
}

.tools-bg-shape-1 {
  width: 40vw;
  height: 40vw;
  background: linear-gradient(135deg, rgba(41, 97, 122, 0.4), rgba(30, 41, 59, 0.3));
  top: -10vw;
  left: -10vw;
  animation: floatTools1 25s infinite ease-in-out;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.tools-bg-shape-2 {
  width: 30vw;
  height: 30vw;
  background: linear-gradient(135deg, rgba(35, 75, 97, 0.3), rgba(30, 57, 81, 0.25));
  bottom: -5vw;
  right: -5vw;
  animation: floatTools2 20s infinite ease-in-out;
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
}

.tools-bg-shape-3 {
  width: 25vw;
  height: 25vw;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.25), rgba(41, 97, 122, 0.2));
  top: 40%;
  left: 60%;
  animation: floatTools3 30s infinite ease-in-out;
  border-radius: 50% 50% 70% 30% / 30% 40% 70% 60%;
}

@keyframes floatTools1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5vw, 5vh); }
}

@keyframes floatTools2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5vw, -5vh); }
}

@keyframes floatTools3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-3vw, 3vh); }
  66% { transform: translate(3vw, -3vh); }
}

.tools h2, .tools .premium-divider {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

/* 定制工具区域的分隔线 */
.tools .premium-divider {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-button-container {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 确保玻璃面板在工具区域中的适当样式 */
.tools .glass-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2em;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3);
}

.tools .glass-panel-title {
  text-align: center;
  margin-bottom: 1.5em;
  color: rgba(255, 255, 255, 0.9);
}

.tools .glass-panel-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.7), rgba(14, 165, 233, 0.3));
}

/* 确保按钮在面板中居中显示 */
.tools .glass-button-wrap {
  margin: 0 auto;
}

/* 工具区域内的文字颜色 */
.tools .glass-panel-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* 工具区域内的面板阴影效果 */
.tools .glass-panel-shadow {
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.2);
}

/* 玻璃按钮样式 */
.glass-button {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.glass-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.glass-button:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.glass-button:hover::before {
  transform: translateX(100%);
}

.glass-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15);
}