@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
    }
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .animate-fade-in {
        animation: fadeIn 0.3s ease-in-out;
    }
    .animate-slide-up {
        animation: slideUp 0.4s ease-out;
    }
    .animate-pulse-soft {
        animation: pulseSoft 2s infinite;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

:root {
    --primary: #3B82F6;
    --secondary: #10B981;
    --accent: #F59E0B;
    --danger: #EF4444;
    --dark: #1F2937;
    --light: #F3F4F6;
    --gray-400: #9CA3AF;
    --gray-600: #ff6760;
    --gray-800: #606266;
}

/* 弹出框容器样式 */
.popup-container {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 50;
}

/* 弹出框内容样式 */
.popup-content {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px; /* 调整这个值可以改变弹出框的宽度 */
    width: 75%; /* 在小屏幕上的宽度百分比 */
    transform: scale(0.95);
    transition: all 0.3s ease-out;
    padding: 1.5rem;
}

/* 弹出框活动状态样式 */
.popup-container.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-container.active .popup-content {
    transform: scale(1);
}

/* 弹出框头部样式 */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* 弹出框标题样式 */
.popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center; /* 标题文本居中 */
    flex-grow: 1; /* 让标题占据中间位置 */
}

/* 关闭按钮样式 */
.close-button {
    color: var(--gray-400);
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
}

.close-button:hover {
    color: var(--gray-600);
}

/* 弹出框消息样式 */
.popup-message {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    text-align: center; /* 消息文本居中 */
    font-size: 1rem;
    line-height: 1; /* 调整行高到合适值 */
    word-wrap: break-word; /* 允许长单词或 URL 自动换行 */
    white-space: normal; /* 恢复正常的换行行为 */
}

.popup-message2 {
    color: #2d6eff;
    margin-bottom: 1.5rem;
    text-align: center; /* 消息文本居中 */
    font-size: 1rem;
    line-height: 1; /* 调整行高到合适值 */
    word-wrap: break-word; /* 允许长单词或 URL 自动换行 */
    white-space: normal; /* 恢复正常的换行行为 */
}

/* 弹出框操作区样式 */
.popup-actions {
    display: flex;
    justify-content: center; /* 按钮容器内元素居中 */
    margin-top: 1.5rem;
}

/* 主按钮样式 */
.primary-button {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 0.75rem 6.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    width: auto; /* 自动宽度，由内容和内边距决定 */
    max-width: 250px; /* 最大宽度限制 */
}

.primary-button:hover {
    background-color: rgba(59, 130, 246, 0.9);
}

/* 工具类样式 */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.font-medium {
    font-weight: 500;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}


