/* 引入自定义字体 */
@font-face {
    font-family: 'DingTalk JinBuTi';
    src: url('../DingTalk JinBuTi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DingTalk JinBuTi', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    transition: background 1s ease;
    min-height: 100vh;
}

/* 不同时间段的背景渐变 */
body.morning {
    background: linear-gradient(135deg, #ffdab9 0%, #ffb6c1 100%);
}

body.noon {
    background: linear-gradient(135deg, #87ceeb 0%, #98fb98 100%);
}

body.afternoon {
    background: linear-gradient(135deg, #ffa07a 0%, #ffd700 100%);
}

body.evening {
    background: linear-gradient(135deg, #6a5acd 0%, #9370db 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
}

main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 表单区域样式 */
.form-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-section h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

textarea, input[type="email"] {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

textarea:focus, input[type="email"]:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

button[type="submit"] {
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* 经历列表样式 */
.experiences-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.experiences-section h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.stats-info {
    text-align: center;
    color: white;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
}

#experiences-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.experience-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #ff6b6b;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-item p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.8;
}

.experience-item small {
    color: #999;
    font-style: italic;
}

.no-experiences {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
}

/* 自定义提示框样式 */
.toast {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 80%;
    text-align: center;
    min-width: 200px;
    width: auto;
    display: inline-block;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.toast.success {
    background: rgba(76, 175, 80, 0.9);
}

.toast.error {
    background: rgba(244, 67, 54, 0.9);
}

.toast.info {
    background: rgba(33, 150, 243, 0.9);
}

.toast.warning {
    background: rgba(255, 193, 7, 0.9);
}

/* 响应式设计 */
@media (min-width: 768px) {
    main {
        grid-template-columns: 1fr 1fr;
    }
    
    .experiences-section {
        grid-column: 1 / -1;
    }
    
    header h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 40px;
    }
    
    header {
        margin-bottom: 60px;
    }
    
    main {
        gap: 40px;
    }
    
    .form-section, .experiences-section {
        padding: 30px;
    }
}
