/* 全局样式 */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    color: #fff;
}

/* 动态背景容器 */
#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 卡片样式 */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    margin: 100px auto; /* 居中显示 */
    text-align: center;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
}


/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 15px;
    border: 1px solid #ddd;
}

th {
    background-color: #f7f7f7;
}

/* 按钮样式 */
.btn {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    margin-top: 20px;
    z-index: 1;
}

.btn-save {
    background: linear-gradient(135deg, #34d399, #059669);
}

.btn-generate {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: all 0.4s ease;
}

.btn:hover::before {
    left: 100%;
    transition: all 0.4s ease;
}

/* 文件上传样式 */
.file-upload-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

#fileName {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* 用户信息样式 */
#userInfo {
    margin-top: 20px;
    text-align: left;
}

/* 鼠标拖尾 */
.mouse-tail {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* 加载动画 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 加载指示器 */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 提示信息弹窗 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
}

/* 输入框样式（可选，根据需要） */
input[type="checkbox"] {
    transform: scale(1.5);
    margin: 5px;
}

/* 响应式布局 */
@media screen and (max-width: 600px) {
    .card {
        width: 95%;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}
