/* 基础样式重置 */

/* CSS变量定义 */
:root {
    --nav-bg-opacity: 0.95;
}

/* 引入Roboto Light字体 */
@font-face {
    font-family: 'Roboto Light';
    src: url('Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Light', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #000 !important;
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 100%;
    background: rgba(255, 255, 255, var(--nav-bg-opacity, 0.95));
    backdrop-filter: blur(10px);
    z-index: -1;
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
}

.nav-logo {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    text-decoration: none;
    color: #000;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #666;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}



.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    padding: 100px 0 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #000;
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background: #000;
    color: white;
}

/* 通用部分样式 */
.section-title {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    text-align: left;
    margin-bottom: 2rem;
    margin-left: 3rem;
    color: #000;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #000;
}

/* 关于部分 */
.about {
    padding: 30px 0;
    position: relative;
    border-bottom: 1px solid #000;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1rem;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

.about-text h3 {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1.3rem;
    color: #000;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 300;
}

.about-text ul {
    margin: 0.75rem 0 1rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1rem;
    color: #000;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-weight: 300;
}

.about-text a {
    color: #000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.about-text a:hover {
    color: #666;
}

.about-photo {
    flex-shrink: 0;
}

.about-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* 教育背景 */
.education {
    padding: 40px 0;
    position: relative;
    border-bottom: 1px solid #000;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.education-content {
    max-width: 1200px;
    margin: 0 auto;
}

.education-item {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.education-item:last-child {
    border-bottom: none;
}

.education-year {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    display: inline-block;
    background: #000;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.education-content h3 {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.education-content p {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
}

.education-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.education-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto Light', 'Inter', sans-serif;
    text-decoration: none;
    color: #000;
    font-weight: 300;
    padding: 0.5rem 1rem;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.education-btn:hover {
    background: #000;
    color: #fff;
}

/* 学术项目与相关课程 */
.academic {
    padding: 40px 0;
    position: relative;
    border-bottom: 1px solid #000;
}

.academic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.academic-content {
    max-width: 1200px;
    margin: 0 auto;
}



/* 项目经历 */
.projects {
    padding: 40px 0;
    position: relative;
    border-bottom: 1px solid #000;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.projects-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.project-item:last-child {
    border-bottom: none;
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h3 {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.project-period {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    display: block;
    color: #000;
    font-size: 0.9rem;
    font-weight: 300;
}

.project-item p {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
    font-weight: 300;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto Light', 'Inter', sans-serif;
    text-decoration: none;
    color: #000;
    font-weight: 300;
    padding: 0.5rem 1rem;
    border: 1px solid #000;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.project-link:hover {
    background: #000;
    color: #fff;
}

.project-link span {
    font-size: 0.9rem;
}

.project-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(3px);
}



/* 联系方式 */
.contact {
    padding: 40px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #000;
}

.contact-item i {
    font-size: 1.5rem;
    color: #000;
    width: 40px;
    text-align: center;
}

.contact-item h3 {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 0.25rem;
    font-weight: 300;
}

.contact-item p {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    color: #000;
    font-weight: 300;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border: 1px solid #000;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    font-family: 'Roboto Light', 'Inter', sans-serif;
    position: relative;
    color: #000;
    text-align: center;
    padding: 2rem 0;
    font-weight: 300;
    border-top: 1px solid #000;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.mantle-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.mantle-logo:hover {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: left;
        padding-left: 0;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text {
        order: 2;
        text-align: left;
    }

    .about-photo {
        order: 1;
        margin-bottom: 1rem;
        text-align: center;
    }

    .about-photo img {
        width: 150px;
        height: 150px;
    }

    .education-item {
        text-align: left;
    }

    .education-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .education-btn {
        margin: 0.25rem 0.5rem 0.25rem 0;
    }

    .project-item {
        text-align: left;
        padding: 1.5rem;
    }

    .project-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
        align-items: flex-start;
    }

    .project-period {
        align-self: flex-start;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .contact-item {
        width: 100%;
        text-align: left;
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .mantle-logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
        text-align: left;
        padding-left: 0;
    }

    .about-photo img {
        width: 120px;
        height: 120px;
    }

    .education-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-item {
        padding: 1rem;
    }

    .project-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .contact-item i {
        font-size: 1.2rem;
        width: 40px;
        text-align: center;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}
