/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 14px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 400;
}

/* 顶部导航栏 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #000, transparent);
    z-index: 1000;
    padding: 15px 0;
}

/* 导航容器 */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: relative;
}

/* 定位信息 */
.location-marker {
    display: flex;
    align-items: center;
    color: #888;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.9rem;
    margin-left: auto;
}

.location-marker i {
    margin-right: 8px;
    color: #00cc00;
}

/* 个人logo */
.personal-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #00cc00, #008800);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 170, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 170, 0, 0.4);
}

.logo-letter {
    color: white;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-name {
    color: #ccc;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 网页端导航菜单 */
.nav-menu {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #fff;
}

/* 菜单图标旋转动画 */
.mobile-menu-btn i {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* 移动端下拉菜单 */
.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 15px;
    width: 180px;
    background-color: rgba(0, 0, 0, 0.98);
    border: 1px solid #333;
    border-radius: 0 0 8px 8px;
    border-top: none;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.mobile-dropdown a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Noto Sans SC', sans-serif;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.mobile-dropdown a:hover {
    color: #fff;
}

.mobile-location {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 0.8rem;
    font-family: 'Noto Sans SC', sans-serif;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.mobile-location i {
    margin-right: 8px;
    color: #00cc00;
}



/* Main content */
main {
    padding: 100px 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    margin-bottom: 100px;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(20, 20, 20, 0.8);
    border: none;
    position: relative;
    overflow: hidden;
}


.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: block;
    text-align: center;
    padding-bottom: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.animated {
    opacity: 1;
    transform: translateY(0);
}


.content {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}

/* 合作联系样式 */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #fff;
}

.contact-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-list li {
    background-color: rgba(30, 30, 30, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-list li:hover {
    transform: translateY(-5px);
    background-color: rgba(40, 40, 40, 0.9);
}

.contact-list i {
    color: #00cc00;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}



/* Responsive */
@media (max-width: 768px) {

    .section-title {
        font-size: 2rem;
    }
}



/* 横向布局样式 */
.horizontal-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    gap: 20px;
}

.vertical-line {
    width: 1px;
    height: 35px;
    background-color: #888;
}

.left-text, .right-text {
    font-size: 1.4rem;
    color: #ccc;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: right;
    position: relative;
    display: inline-block;
}

/* 文字悬停下划线动画 */
.left-text::after, .right-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.left-text:hover::after, .right-text:hover::after {
    width: 100%;
}

.about-content .horizontal-layout {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    gap: 15px;
}

.about-content .horizontal-layout .vertical-line {
    display: none;
}

.cooperation-btn {
    background: -webkit-linear-gradient(left, #008800, #00cc00);
    background: -moz-linear-gradient(left, #008800, #00cc00);
    background: linear-gradient(to right, #008800, #00cc00);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cooperation-btn:hover {
    transform: scale(1.05);
}


/* 调整section到页面居中偏下位置 */
#about.section {
    margin-bottom: 100px;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* 项目案例和合作联系模块透明背景 */
#projects.section,
#contact.section {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}


/* 关于我两列布局 */
.about-container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    flex: 1;
    height: 800px;
    background-image: url('banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
    transform: translateX(-10px);
}

main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 160px);
    padding-top: 40px;
}


.banner-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.05);
}

.banner-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.banner-placeholder p {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

/* 项目案例模块 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.project-item {
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-name {
    color: #fff;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    margin: 0;
}

    .project-image i {
        color: rgba(255, 255, 255, 0.3);
        font-size: 3rem;
    }

/* 移动端适配 */
@media (max-width: 768px) {
    .top-navbar {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .location-marker {
        display: none;
    }

    /* 移动端个人logo调整 */
    .personal-logo {
        gap: 10px;
        margin-right: auto;
    }

    .logo-circle {
        width: 32px;
        height: 32px;
    }

    .logo-letter {
        font-size: 1rem;
    }

    .logo-name {
        font-size: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image {
        height: 150px;
    }

    .project-image i {
        font-size: 2rem;
    }

    /* 板块间距移动端调整 */
    .section {
        margin-bottom: 60px;
    }

    #about.section {
        margin-bottom: 80px;
    }

    #projects.section,
    #contact.section {
        background-color: transparent;
        padding: 0;
        border-radius: 0;
    }

    .projects-grid {
        margin-top: 40px;
    }

    /* 横幅图片占位符移动端调整 */

    .banner-placeholder i {
        font-size: 3rem;
    }

    .banner-placeholder p {
        font-size: 1rem;
    }

    /* 隐藏网页端菜单 */
    .nav-menu {
        display: none;
    }

    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }

    /* 移动端下拉菜单样式 */
    .mobile-dropdown.active {
        display: flex;
    }

    /* 关于我布局移动端调整 */
    .about-container {
        position: relative;
        height: 600px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
    }

    .about-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 30px;
        z-index: 2;
    }

    .about-content .horizontal-layout {
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        flex-direction: column;
    }

    .horizontal-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        gap: 20px;
        margin-top: 10px;
    }

    .left-text, .right-text {
        font-size: 1rem;
        text-align: center;
        font-weight: 400;
        letter-spacing: 0.03em;
        font-family: 'Noto Sans SC', sans-serif;
        position: relative;
        display: inline-block;
    }

    /* 移动端文字悬停下划线动画（从中心展开） */
    .left-text::after, .right-text::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .vertical-line {
        display: none;
    }

    .cooperation-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    /* 合作联系移动端调整 */
    .contact-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-list li {
        padding: 15px;
    }

    .contact-info p {
        font-size: 1rem;
        margin-bottom: 20px;
    }


    main {
        min-height: calc(100vh - 120px);
        padding-top: 60px;
        max-width: 100%;
    }
}


