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

a[href^="tel"] {
    text-decoration: none;
    color: inherit;
    pointer-events: none;
    cursor: default;
}

/* Projects Layout */
.projects-conferences {
    display: flex;
    gap: 20px;
    padding: 5px;
    margin: 20px auto 35px auto;
    max-width: 1200px;
}

.projects {
    flex: 1.7;
    background: rgba(255,255,255,0.75);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.conferences {
    flex: 1;
    background: rgba(255,255,255,0.75);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* section title */
h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}
/* project period */
h3 {
    color: #BB6830;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    margin: 10px 0 5px 0;
}
/* project title */
h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0 10px 0;
    display: inline-block;
}

h4 .details-button, .website-button {
    display: inline-block;
    margin-left: 4px;
    vertical-align: baseline;
    position: relative;
    top: -2px;
    font-weight: 400;
    font-size: 0.45rem;
    padding: 2px 4px;
    border-radius: 5px;
    background-color: #BB6830;
    border: none;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}
h4 .details-button:hover, .website-button:hover {
    background-color: #F8D794;
    color: #BB6830;
}

/* projects Paragraphs */
p {
    font-size: 14px;
    margin: 4px 0;
    line-height: 1.4;
    text-indent: -2px;
    padding-left: 15px;
    position: relative;
}
p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
    font-weight: bold;
}

/* conference layout */
.talk-item {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 20px 0;   /* ← 改：移除四边20px，只保留底部间距 */
    padding-left: 0;
}
/* Annual Meeting: 仅字体颜色 */
.meeting-text {
    color: #BB6830;      /* 橘色字体 */
    font-weight: 600;
}
/* Conference Badge: 橘色边框 + 透明背景 */
.conference-badge {
    display: inline-block;
    padding: 2px 4px;
    border: 1.6px solid #BB6830;   /* 橘色边框 */
    background-color: transparent;
    color: #BB6830;              /* 橘色文字 */
    font-weight: 500;
    border-radius: 5px;
    font-size: 0.65rem;
    margin-left: 0px;
    white-space: nowrap;         /* 防止换行 */
    transition: all 0.3s ease;
}

/* 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;
}

/* try something new: click button display figure */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.close:hover {
    color: #F8D794;
}
/* Phone Responsive */
@media (max-width: 768px) {
    .projects-conferences {
        flex-direction: column;
        padding: 10px;
        background: rgba(0,0,0,0.1);
        border-radius: 8px;
        max-width: 95%;
    }
    .projects, .conferences {
        flex: 1 1 100%;
        margin-bottom: 20px;
        padding: 15px;
    }
    .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;  /* 让footer变为文档流的一部分 */
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        font-size: 8px;
        margin-top: 5px;  /* 给footer和上面内容一些间距 */
      }
}
