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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 导航栏 */
.navbar {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #256dd8;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4a6fa5;
}

/* 英雄区域 */
.advantage-item:nth-child(2) p {
    text-indent: 2em;
}.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    padding: 60px 0;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.hero .container {
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4a6fa5;
}

.hero #title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #6c8ebf;
}

.hero #description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.job-intention {
    margin: 3rem 0 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.job-intention h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4a6fa5;
    text-align: center;
}

.job-intention ul {
    list-style: none;
    padding-left: 1.5rem;
}

.job-intention li {
    margin-bottom: 1rem;
    position: relative;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.job-intention li:before {
    content: "•";
    color: #4a6fa5;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: #4a6fa5;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #6c8ebf;
    transform: translateY(-5px);
}

/* 关于我 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #4a6fa5;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 0;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4a6fa5;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.work-experience {
    margin-left: 0;
}

.about-image {
    flex: 0 0 250px;
    text-align: center;
    order: 2;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image {
        order: 1;
        flex: 0 0 auto;
        margin-bottom: 2rem;
    }
    
    .about-image img {
        width: 200px;
        height: 200px;
    }
    
    .about-text {
        order: 2;
        width: 100%;
    }
}

/* 技能 */
.skills {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.skills h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #4a6fa5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.skill-item i {
    font-size: 3rem;
    color: #4a6fa5;
    margin-bottom: 1rem;
}

.skill-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.skill-item p {
    color: #666;
}

.software-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.software-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f4f8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.software-item:hover {
    background: #e1ebf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.software-item i {
    color: #4a6fa5;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.software-item span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* 获奖情况 */
.awards {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.awards h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #4a6fa5;
}

.awards-content {
    display: flex;
    justify-content: center;
}

.award-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.award-item ul {
    list-style: none;
}

.award-item li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

.award-item li:before {
    content: "•";
    color: #4a6fa5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 项目 */
.projects {
    padding: 100px 0;
    background-color: #fff;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #4a6fa5;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    grid-template-areas: 
        "left left left"
        "middle right bottom";
}

.project-left {
    grid-area: left;
}

.project-middle {
    grid-area: middle;
}

.project-right {
    grid-area: right;
}

.project-bottom {
    grid-area: bottom;
    margin-top: 0;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "left middle"
            "right bottom";
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "left"
            "middle"
            "right"
            "bottom";
    }
}

.project-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    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.15);
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
}

.urban-planning {
    background: url('images/urban-planning.jpg');
    background-size: cover;
    background-position: center;
}

.urban-planning::after {
    content: "";
}

.information-system {
    background: url('images/information-system.jpg');
    background-size: cover;
    background-position: center;
}

.information-system::after {
    content: "";
}

.planning-review {
    background: url('images/planning-review.jpg');
    background-size: cover;
    background-position: center;
}

.planning-review::after {
    content: "";
}

.land-planning {
    background: url('images/land-planning.jpg');
    background-size: cover;
    background-position: center;
}

.land-planning::after {
    content: "";
}

.project-item h3 {
    padding: 1.5rem;
    padding-bottom: 0.5rem;
    color: #4a6fa5;
    text-align: center;
    font-size: 1.5rem;
}

.project-item p {
    padding: 0 1.5rem 0.3rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 2px !important;
}

/* 核心优势与获奖情况 */
.advantages {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #4a6fa5;
}

.advantages-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.advantage-item h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #4a6fa5;
    text-align: center;
}

.advantage-item ul {
    list-style: none;
}

.advantage-item li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: #666;
}

.advantage-item li:before {
    content: "•";
    color: #4a6fa5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.advantage-item p {
    line-height: 1.6;
    color: #666;
}

.advantage-item:nth-child(2) p {
    text-indent: 2em;
}

.advantage-item:nth-child(3) p {
    text-indent: 2em;
}

.project-item:nth-child(2) p {
    text-indent: 2em;
}

.about-text h3:nth-child(2) ~ p {
    text-indent: 0;
}

.about-text h3:nth-child(8) ~ p {
    text-indent: 0;
}

/* 联系方式 */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #4a6fa5;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.contact-info ul {
    list-style: none;
    padding-left: 1.5rem;
}

.contact-info li {
    margin-bottom: 1.2rem;
    position: relative;
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-info li:before {
    content: "•";
    color: #4a6fa5;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4a6fa5;
    margin-right: 1rem;
}

.contact-item span {
    color: #666;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #4a6fa5;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin-left: auto;
}

.contact-form button:hover {
    background-color: #6c8ebf;
}

/* 页脚 */
.footer {
    background-color: #4a6fa5;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* 项目标题样式 */
.project-title {
    cursor: pointer;
    color: #4a6fa5;
    transition: color 0.3s ease;
}

.project-title:hover {
    color: #6c8ebf;
    text-decoration: underline;
}

.project-title .project-info {
    color: #666;
}

.project-title:hover .project-info {
    color: #333;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: transparent;
    margin: 5% auto;
    padding: 1rem;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    box-shadow: none;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: white;
    background: rgba(0,0,0,0.8);
    text-decoration: none;
    cursor: pointer;
}

#modalTitle {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#modalContent {
    line-height: 1.6;
    color: #333;
}

#modalContent img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 5px;
}

#modalContent p {
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .nav-links li {
        margin: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero #title {
        font-size: 1.2rem;
    }
    
    .hero #description {
        font-size: 1rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .about,
    .skills,
    .projects,
    .advantages,
    .contact {
        padding: 50px 0;
    }
    
    .about h2,
    .skills h2,
    .projects h2,
    .advantages h2,
    .contact h2 {
        font-size: 2rem;
    }
}