/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'SF Pro Text', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: #4a6baf;
    color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 表单样式 */
#studentForm {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(74, 107, 175, 0.3);
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input[type="text"]:focus {
    background: rgba(255, 192, 224, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 112, 184, 0.3);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#generateBtn {
    padding: 15px;
    border: none;
    background: #ff70b8;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

#generateBtn:hover {
    background: #ff4ba8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#generateBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Canvas 样式 */
#studentCard {
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

#studentCard.show {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #studentForm {
        padding: 20px;
    }
    
    input[type="text"], #generateBtn {
        padding: 12px;
    }
}

/* 标题 */
h1 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 1px;
}

.title-highlight {
    font-weight: 600;
    color: #ff70b8;
}

/* 页脚 */
footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-align: center;
}

/* 卡片容器 */
.card-container {
    position: relative;
    margin-top: 20px;
    padding: 10px;
    transition: all 0.5s ease;
}
