*{margin:0;padding:0}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: rgba(65, 127, 249, 0.9);
    color: #fff;
    text-align: center;
    padding: 1em;
}

section {
    padding: 2em;
}

h2 {
    color: #333;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: none;
}

footer {
    background-color: #2196F3;
    color: #fff;
    text-align: center;
    padding: 1em;
    position: fixed;
    bottom: 0;
    width: 100%;
}
header{
    overflow: hidden;
    padding: 10px;
    vertical-align: middle;

}
header h1{
    font-size: 24px;
    color: white;
    font-weight: bold;
    display: block;
    width: auto;
    float: left;
}
.header-container{
    width: 90%;
    margin: 0 auto;
}
.lang-switch{
    float: right;
}
.lang-switch a{
    color: white;
    padding: 10px;

}
.c-loop{
    margin-top: 15px;
}
.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -moz-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}
    .content-container {
        display: flex;
        width: 90%;
        margin: 0 auto;
        padding: 20px 0;
    }

    .side-bar {
        width: 200px;
        margin-right: 20px;
        background: #fff;
        border-radius: 4px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .side-bar-item ul {
        margin: 0;
        padding: 0;
    }

    .side-bar-item li {
        margin: 10px 0;
    }

    .side-bar-item a {
        color: #333;
        display: block;
        padding: 8px 10px;
        border-radius: 4px;
        transition: all 0.3s;
    }

    .side-bar-item a:hover {
        background: #f5f5f5;
        color: #2196F3;
    }

    .main-content {
        flex: 1;
        /* background: #fff; */
        border-radius: 4px;
        padding: 20px;
        /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    }
    .category-section {
        width: 100%;
        margin-bottom: 30px;
    }
.flex, .f-item, .f-box {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.p-item {
    width: calc(33.333% - 18px);
    padding: 0 9px;
    margin-bottom: 20px;
}
.flex .f-box {
    width: 100%;
    height: 100%;
}
.p-item .f-box {
    display: block;
}

.p-item .item-title {
    line-height: 28px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    color: #3c3c3c;
    -o-text-overflow: clip;
    text-overflow: clip;
}
.p-item .item-ico {
    display: inline-block;
    vertical-align: top;
    width: 28px;
    height: 28px;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    overflow: hidden;
    margin-right: 5px;
}
.thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
}
.thumb-img img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}
.p-item .item-title .title {
    font-size: 16px;
    color: #3c3c3c;
}

.link {
    vertical-align: top;
    color: white;
    padding-bottom:10px;
    font-size: 14px;
    line-height: 24px;
    -webkit-transition: all.2s;
    -o-transition: all.2s;
    -moz-transition: all.2s;
    transition: all.2s
}
.link a{
    color: white;
}

@media (min-width: 1330px) {
    .p-item {
        width: 16.66666667%;
    }
}
@media (min-width: 1000px) and (max-width: 1659.5px) {
    .p-item .f-box {
        padding: 14px;
    }
}
@media (min-width: 1000px) {
    .p-item {
        width: 25%;
        padding: 0 10px;
    }
}

@media (min-width: 750px) {
    .p-item {
        width: 33.33333333%;
    }
    .p-item .f-box {
        padding: 20px;
        background-color: #fff;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        overflow: hidden;
        -webkit-transition: all .2s;
        -o-transition: all .2s;
        -moz-transition: all .2s;
        transition: all .2s;
    }
    .p-item .f-box:hover {
        -webkit-transform: translateY(-4px);
        -moz-transform: translateY(-4px);
        -ms-transform: translateY(-4px);
        -o-transform: translateY(-4px);
        transform: translateY(-4px);
        -webkit-box-shadow: 0 4px 20px rgba(0,0,0,0.04);
        -moz-box-shadow: 0 4px 20px rgba(0,0,0,0.04);
        box-shadow: 0 4px 20px rgba(0,0,0,0.04)
    }

    .p-item .f-box:hover .item-title {
        color: #ff6000
    }

    .p-item .f-box:hover .title {
        color: #ff6000;
    }

    .p-item .f-box:hover .show-hover {
        display: inline
    }

    .p-item .f-box:hover .item-desc {
        color: #5a5a5a
    }
}

/* 项目详情页样式 */
.project-detail {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.project-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-icon {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.project-info {
    flex: 1;
}

.project-info h2 {
    margin: 0 0 1rem;
    font-size: 1.8rem;
    color: #333;
}

.project-desc {
    margin: 0 0 1.5rem;
    color: #666;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #888;
}

.visit-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #4a90e2;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.visit-btn:hover {
    background: #357abd;
}

.related-projects {
    margin-top: 3rem;
}

.related-projects h3 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

/* 分类区块样式 */
.category-section {
    margin-bottom: 40px;
}

.category-section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2196F3;
}

@media (max-width: 1200px) {
    .p-item {
        width: calc(50% - 18px);
    }
}

@media (max-width: 768px) {
    .p-item {
        width: calc(100% - 18px);
    }
}
