/* ===========================
   全局样式
=========================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: rgb(189, 223, 224);
    color: rgb(0, 0, 0);
}

/* ===========================
   导航栏
=========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: white;
    box-shadow: 0 2px 10px #25808a;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-logo a {
    font-size: 1.2em;
    font-weight: bold;
    color: #25808a;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #25808a;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2d7a91;
}

/* ===========================
   首页容器
=========================== */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 120px auto 50px auto; /* 顶部留导航栏 */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.text-box {
    width: 55%;
}

.text-box h1 {
    color: #25808a;
    font-size: 2em;
    margin-bottom: 15px;
}

.text-box p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.text-box a {
    color: #2d7a91;
    text-decoration: none;
}

.photo-box {
    width: 40%;
    text-align: center;
}

.photo-box img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    object-fit: cover;
}

/* ===========================
   作品集页面
=========================== */
/* 作品集布局 */
/* ===========================
   白色底容器
=========================== */
.work-container {
    background: white;
    max-width: 1200px;
    margin: 100px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: calc(100vh - 140px); /* 保证底部高度，露蓝色背景 */
    position: relative;
}

/* ===========================
   作品集布局
=========================== */
.work-folder {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start; /* 左上角排列 */
}

/* 每个作品“文件夹” */
.work-item {
    width: 260px; /* 稍大一点 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white; /* 底衬 */
}

/* 上半部分大矩形（图片容器） */
.work-top {
    width: 100%;
    height: 180px; /* 大一点 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgb(189, 223, 224); /* 首页蓝色背景 */
}

/* 图片自适应 */
.work-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 下半部分小矩形（作品名称） */
.work-bottom {
    background: white;
    padding: 15px 0;
    text-align: center;
}

.work-bottom p {
    margin: 0;
    font-weight: bold;
    color: #25808a;
}

/* ===========================
   页面背景露蓝色
=========================== */
body {
    background-color: rgb(189, 223, 224); /* 首页一样的蓝色 */
}

/* 响应式 */
@media (max-width: 1024px) {
    .work-item {
        width: 45%; /* 两列自适应 */
    }
}

@media (max-width: 768px) {
    .work-item {
        width: 90%; /* 手机一列显示 */
    }
}
