body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: url('https://content.jiangminzhi.com/background/mainBG2.jpg') no-repeat center center fixed;
    background-size: cover;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}
header h1 {
    font-size: 50px;
    margin-bottom: 5px;
    color: #BB6830;
}
header h2 {
    font-size: 18px;
    font-weight: 300;
    color: #fff;
    margin: 8px
}
/* 默认按钮样式 */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px
}

.contact-btn,
.download-cv {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: #BB6830;
    color: #fff;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-flex; 
    align-items: center;
    justify-content: center;
}
.contact-btn i,
.download-cv i {
    margin-right: 3px;
}
.contact-btn:hover,
.download-cv:hover {
    background-color: #F8D794;
    color: #BB6830;
    transform: scale(1.05);
}

/* 区块样式 */
.education,
.work,
.skills {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 5px 20px 5px 20px;
    margin-bottom: 30px;
}

.education h3,
.work h3,
.skills h3 {
    font-size: 22px;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.edu-item,
.work-item {
    margin-bottom: 15px;
}
.edu-item h4,
.work-item h4 {
    font-size: 18px;
    margin: 5px 0;
    font-weight: 600;
}
.date {
    font-size: 16px;
    font-weight: 500;
}
.degree {
    font-size: 16px;
    font-weight: 500;
    color:#BB6830;
}
.job {
    font-size: 16px;
    font-weight: 500;
}

/* Skill Block (Matches Education & Work Experience style) */
.skill-item {
    margin-bottom: 10px;
}
.skill-item strong {
    display: block;
    font-weight: 700;
    color: #BB6830;
    margin-bottom: 5px;
}
.skill-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

/* Back to Home Button */
.back-container {
    width: 100%;
    text-align: center;
    margin: 20px 0 40px 0;
}
.back-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 22px;
    text-decoration: none;
    background-color: #F8D794;
    color: #BB6830;
    font-weight: 550;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s;
}
.back-button:hover {
    background-color: #BB6830;
    color: #F8D794;
    transform: scale(1.05);
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 60px;
    right: 20px;
    border: none;
    outline: none;
    background-color: #F8D794;
    color: #BB6830;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
}
#scrollTopBtn:hover {
    background-color: #BB6830;
    color: #F8D794;
    transform: scale(1.1);
}

/* Footer */
footer {
    position: static;
    width: 100%;
    padding: 8px 0;
    font-size: 10px;
    color: #555;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
        margin: 20px auto;
    }

    header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    header h2 {
        font-size: 14px;
        line-height: 1.0;
    }
/* button */
    .contact-buttons .btn-text {
        display: none; /* 隐藏文字 */
    }
    .contact-buttons a i {
        margin-right: 0;
    }
    .contact-buttons {
        display: flex;
        justify-content: center;
        gap: 8px; /* 调整间距更均衡 */
        flex-wrap: nowrap;
    }
    .contact-buttons a {
        font-size: 16px; /* 稍微大一些便于点击 */
        padding: 6px 10px;
        margin: 0 2px;
    }
/*----- */
    .education, .work, .skills {
        padding: 15px;
    }

    .education h3,
    .work h3,
    .skills h3{
        font-size: 17px;
        margin-bottom: 10px;
    }

    .education h4,
    .work h4,
    .skills h4 {
        font-size: 14px;
    }
    .date {
    font-size: 14px;
    }
    .degree {
        font-size: 14px;
    }
    .job {
        font-size: 14px;
    }

    .skill-item p {
        font-size: 14px;
    }

    .back-container {
        margin: 20px 0;
        text-align: center;
    }
    .back-button {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
        padding: 8px 8px;
        font-size: 14px;
        opacity: 0.75;
        z-index: 1000;
    }
    #scrollTopBtn {
        opacity: 0.75;
    }
    .footer {
        position: static;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        font-size: 8px;
        margin-top: 5px; 
      }
}
