* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 统一所有元素的盒子模型，去除默认边距和填充 */
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    color: #4a5568;
    position: relative;
    background: linear-gradient(-45deg, #FF6B6B, #4ECDC4, #45B7D1, #96E6A1, #FFA07A, #87CEFA, #FFD700, #FF69B4, #00CED1, #7B68EE);
    background-size: 600% 600%;
    animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: transparent;
    /* 设置粒子背景容器，固定定位，覆盖全屏 */
}

.content-wrapper {
    width: 110%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(255, 115, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
    /* 设置主要内容容器，背景半透明，模糊效果，圆角，内阴影和边框 */
}

        /* 定义颜色变换动画 */
        @keyframes changeColor {
            0% { color: #3182ce; }
            20% { color: #ff6347; }
            40% { color: #ffd700; }
            60% { color: #00ff00; }
            80% { color: #0000ff; }
            100% { color: #3182ce; }
        }

        /* 设置h2样式并应用动画 */
        h2 {
            font-size: 22px;
            text-align: center;
            margin-bottom: 24px;
            font-weight: 600;
            text-shadow: none;
            animation: changeColor 15s infinite;
        }

/* 
原来的输入框样式，现已被新样式替代
textarea, select, input[type="text"] {
    width: calc(100% - 100px);
    margin-left: 100px;
    margin-bottom: 24px;
    padding: 8px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

textarea:focus, select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #90cdf4;
    box-shadow: 0 0 0 3px rgba(144, 205, 244, 0.15);
    background: #ffffff;
}

textarea {
    min-height: 72px;
    resize: vertical;
}

.form-group textarea,
.form-group select,
.form-group input[type="text"] {
    width: calc(100% - 80px);
    margin-left: 80px;
    padding: 8px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    margin-bottom: 0;
}
*/

label {
    display: block;
    position: absolute;
    left: 0;
    margin-top: 8px;
    color: #000000;
    font-weight: 500;
    font-size: 14px;
    text-shadow: none;
    width: 80px;
}

.button-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: center;
    margin: 24px 0;
    overflow-x: auto;
    padding-bottom: 10px;
    /* 设置按钮组布局，不换行，可以水平滚动 */
}

/* 添加移动端友好的按钮组样式 */
.button-group.mobile-friendly {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.button-group.mobile-friendly::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

input[type="button"] {
    padding: 10px 20px;
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.15);
    /* 设置按钮样式，背景渐变，颜色，圆角，字体，鼠标指针和过渡效果 */
}

input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(66, 153, 225, 0.2);
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    /* 设置按钮悬停时的变换效果，阴影和背景渐变 */
}

.advanced-options {
    margin: 24px 0;
    /* 设置高级选项的间距 */
}

.toggle-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
      linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)) border-box;
    border: 2.5px solid transparent;
    border-radius: 14px;
    color: #8b5cf6;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: none;
    box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
      0 10px 20px rgba(0, 0, 0, 0.1), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
}

.toggle-button:hover {
    transform: scale(1.01);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
      0 15px 30px rgba(0, 0, 0, 0.2), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}

.toggle-button:after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #90cdf4;
    border-bottom: 2px solid #90cdf4;
    transition: transform 0.3s ease;
    /* 设置切换按钮的伪元素，用于表示展开/收起状态 */
}

.toggle-button[aria-expanded="true"]:after {
    transform: translateY(-50%) rotate(225deg);
    /* 设置展开状态时伪元素的旋转角度 */
}

.advanced-content {
    margin-top: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 16px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 1200px;
    border: 1px solid #e2e8f0;
    /* 设置高级内容容器的样式，过渡效果和最大高度 */
}

.advanced-content[style*="display: none"] {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    /* 设置高级内容隐藏时的样式 */
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
    /* 设置复选框组的网格布局 */
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    /* 设置复选框行的Flex布局，项目居中对齐 */
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4299e1;
    /* 设置复选框的大小和颜色 */
}

.checkbox-row label {
    position: static;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    color: #4a5568;
    text-shadow: none;
    width: auto;
    margin-top: 0;
    left: auto;
}

.links-container {
    margin-top: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: 1px solid #e2e8f0;
    /* 设置链接容器的样式，单词换行和边框 */
}

#kd, #shortLink {
    color: #4299e1;
    word-break: break-all;
    white-space: pre-wrap;
    max-width: 100%;
    font-size: 14px;
    font-weight: 400;
    text-shadow: none;
    /* 设置链接文本的样式，颜色、换行和字体 */
}

@media (max-width: 768px) {
    .content-wrapper {
        width: 95%;
        padding: 16px;
        /* 设置小屏幕下主要内容容器的宽度和内边距 */
    }
    
    .button-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin: 15px 0;
        /* 修改为wrap，允许按钮在需要时换行 */
    }
    
    .button {
        min-width: 100px;
        height: 45px;
        padding: 8px;
        font-size: 14px;
        flex: 0 0 calc(50% - 10px); /* 两列布局，每个按钮占据约一半宽度 */
        /* 设置小屏幕下按钮更小 */
    }
    
    .button .state p span {
        font-size: 14px; /* 减小字体大小 */
    }
    
    .button .icon {
        transform: scale(0.9); /* 稍微缩小图标 */
        position: relative;
        left: 0; /* 调整图标位置，居中显示 */
        margin-right: 5px;
    }
    
    .button .state {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .button .state p {
        margin-left: 5px; /* 为文字添加左边距 */
    }
    
    input[type="button"] {
        width: 100%;
        /* 设置小屏幕下按钮宽度为100% */
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        /* 设置小屏幕下复选框组为单列 */
    }
    
    /* 移动端下保持form-group为水平布局，但调整尺寸 */
    .form-group {
        flex-direction: row;
    }
    
    .form-group label {
        width: 80px;
        font-size: 14px;
        margin-right: 5px;
    }
    
    .form-group .input-wrapper {
        width: calc(100% - 85px);
    }
    
    .button .state--sent {
        display: none;
        opacity: 0;
    }
    
    .button:focus .state--sent {
        display: flex;
        opacity: 1;
    }
}

/* 增加超小屏幕的适配 */
@media (max-width: 480px) {
    .content-wrapper {
        width: 100%;
        padding: 12px;
        border-radius: 15px;
    }
    
    .button-group {
        gap: 8px;
    }
    
    .button {
        min-width: 90px;
        height: 40px;
        padding: 5px;
        font-size: 13px;
        flex: 0 0 calc(50% - 8px); /* 两列布局，减小间距 */
    }
    
    .button .state {
        display: flex;
        flex-direction: column; /* 在超小屏幕上改为垂直布局 */
        align-items: center;
        justify-content: center;
    }
    
    .button .icon {
        margin-right: 0;
        margin-bottom: 3px;
    }
    
    .button .state p {
        margin-left: 0; /* 移除文字左边距 */
        line-height: 1;
    }
    
    .button .state p span {
        font-size: 12px; /* 进一步减小字体大小 */
        margin: 0 1px; /* 减小字符间距 */
    }
    
    .button .icon svg {
        width: 18px;
        height: 18px;
    }
    
    .state .icon {
        position: static; /* 移除绝对定位 */
        transform: scale(0.85);
    }
    
    .state--default .icon, .state--sent .icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .button .state--sent {
        display: none;
        opacity: 0;
        flex-direction: column;
    }
    
    .button:focus .state--sent {
        display: flex;
        opacity: 1;
    }
}

.copy-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(66, 153, 225, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
    /* 设置复制提示的样式，固定位置，背景颜色，透明度和过渡效果 */
}

.copy-indicator.show {
    opacity: 1;
    /* 设置显示复制提示时的透明度 */
}

.form-group {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.form-group label {
    display: block;
    position: relative;
    color: #000000;
    font-weight: 700;
    font-size: 15px;
    text-shadow: none;
    width: 100px;
    flex-shrink: 0;
    margin-right: 10px;
}

.form-group .input-wrapper {
    width: calc(100% - 110px);
    flex-grow: 1;
}

/* 新的按钮样式 - From Uiverse.io by marcelodolza */
.button {
  --primary: #ff5569;
  --neutral-1: #f7f8f7;
  --neutral-2: #e7e7e7;
  --radius: 14px;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 140px;
  padding: 15px;
  height: 55px;
  font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
}
.button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}
.button:active {
  transform: scale(1);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}
.button:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45))
      border-box;
  z-index: 0;
  transition: all 0.4s ease;
}
.button:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}
.button::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}
.state p {
  display: flex;
  align-items: center;
  justify-content: center;
}
.state .icon {
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.state .icon svg {
  overflow: visible;
  width: 20px;
  height: 20px;
}

/* Outline */
.outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}
.outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 180deg,
    transparent 60%,
    white 80%,
    transparent 100%
  );
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.button:hover .outline {
  opacity: 1;
}
.button:hover .outline::before {
  animation-play-state: running;
}

/* Letters */
.state p span {
  display: block;
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
  margin: 0 1px;
}
.button:hover p span {
  opacity: 1;
  animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.button:focus p span {
  opacity: 1;
  animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}
@keyframes wave {
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
    color: var(--primary);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(5px) rotate(-90deg);
    color: var(--primary);
    filter: blur(5px);
  }
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
    filter: blur(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes disapear {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(5px) translateY(20px);
    color: var(--primary);
    filter: blur(5px);
  }
}

/* Plane */
.state--default .icon svg {
  animation: land 0.6s ease forwards;
}
.button:hover .state--default .icon {
  transform: rotate(45deg) scale(1.25);
}
.button:focus .state--default svg {
  animation: takeOff 0.8s linear forwards;
}
.button:focus .state--default .icon {
  transform: rotate(0) scale(1.25);
}
@keyframes takeOff {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    transform: translateX(70px) rotate(45deg) scale(2);
  }
  100% {
    opacity: 0;
    transform: translateX(160px) rotate(45deg) scale(0);
  }
}
@keyframes land {
  0% {
    transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
    opacity: 0;
    filter: blur(3px);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Contrail */
.state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}
.button:focus .state--default .icon:before {
  animation: contrail 0.8s linear forwards;
}
@keyframes contrail {
  0% {
    width: 0;
    opacity: 1;
  }
  8% {
    width: 15px;
  }
  60% {
    opacity: 0.7;
    width: 80px;
  }
  100% {
    opacity: 0;
    width: 160px;
  }
}

/* States */
.state {
  padding-left: 22px;
  z-index: 2;
  display: flex;
  position: relative;
}
.state--default span:nth-child(4) {
  margin-right: 5px;
}
.state--sent {
  display: none;
  position: absolute;
  opacity: 0;
}
.state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}
.button:focus .state--default {
  position: absolute;
}
.button:focus .state--sent {
  display: flex;
  opacity: 1;
}
.button:focus .state--sent span {
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}
.button:focus .state--sent .icon svg {
  opacity: 0;
  animation: appear 1.2s ease forwards 0.8s;
}
@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(4) rotate(-40deg);
    color: var(--primary);
    filter: blur(4px);
  }
  30% {
    opacity: 1;
    transform: scale(0.6);
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 新的输入框样式 */
.input-wrapper {
  position: relative;
  border-radius: 0.5rem;
  width: 100%;
  overflow: hidden;
}

.input-wrapper::before {
  content: '';
  position: absolute;
  width: 3rem;
  height: 3rem;
  right: 0;
  background-color: #8b5cf6; /* violet-500 */
  border-radius: 9999px;
  filter: blur(1rem);
  z-index: 0;
}

.input-wrapper::after {
  content: '';
  position: absolute;
  z-index: -10;
  width: 5rem;
  height: 5rem;
  background-color: #fda4af; /* rose-300 */
  right: 3rem;
  top: 0.75rem;
  border-radius: 9999px;
  filter: blur(1rem);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  position: relative;
  background-color: transparent;
  border: 1px solid #737373; /* neutral-500 */
  color: #171717; /* neutral-900 */
  border-radius: 0.5rem;
  font-size: 0.875rem;
  width: 100%;
  padding: 0.625rem;
  outline: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: #8b5cf6; /* violet-500 */
  box-shadow: 0 0 0 1px #8b5cf6;
}

.input-wrapper input::placeholder,
.input-wrapper select::placeholder,
.input-wrapper textarea::placeholder {
  color: #8b5cf6; /* violet-700 */
  opacity: 0.6;
}

.input-wrapper textarea {
  min-height: 100px;
  resize: vertical;
}