 /* 全局样式 */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "kaiti";
}

body {
    background-color: #ece9db98;
    background-image: url(../img/bj/bj8.jpg) ;
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
header {
    background: linear-gradient(135deg, #668290,#aaa8a2a4);
    color: rgb(255, 255, 255);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: headerSlideDown 1s ease-out;
}
/* 动画效果 */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #f5f1ea;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: rgba(195, 86, 86, 0.909);
}

/* 主要内容区 */
main {
    margin-top: 80px;
    padding: 2rem 0;
}

.hero {
    background-image: url(../img/bj/bj24.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: light;
}

.hero-content {
    position: relative;
    background-color: #4e6875b9;
    border-radius: 10px;
    display: inline-block;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: rgb(252, 251, 250);
    margin-bottom: 1rem;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideUp 1.2s ease-out;
}

.btn {
    display: inline-block;
    background: #4E6875;
    color: rgb(255, 246, 246);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn:hover {
    background: #CDE6EA;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 内容卡片区 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #668290;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right,#668290,#aaa8a2a4);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background:#a1b2b5a5;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(39, 38, 38, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.card.animate {
    opacity: 1;
    transform: translateY(0);
    animation: cardAppear 0.6s ease-out forwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #6d6d6c;
}

.card p {
    margin-bottom: 1.5rem;
    color: #5f5757;
}

.card-btn {
    display: inline-block;
    background: #4E6875;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background:#8FB2C5;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg,#C5D4D9,#668290);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 2rem;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #4E6875;
}

.social-icons {
    margin-bottom: 2rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

/* 关于我们弹窗样式 */
.about-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #4e687539;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-container {
    width: 60%;
    max-width: 800px;
    height: 70%;
    background: linear-gradient(135deg,#e9eced,#dee1e2);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 1px solid #4e687539;
}

.about-content {
    height: calc(100% - 40px);
    overflow-y: auto;
    padding-right: 15px;
    color: #333;
    font-family: "SimSun", "楷体", serif;
}

.about-content h4 {
    color: rgb(47, 79, 76);
    margin: 20px 0 10px;
    border-bottom: 1px dashed rgb(20, 124, 112);
    padding-bottom: 5px;
}

.about-content ul {
    padding-left: 20px;
}

.about-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.source {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 3px;
    font-style: italic;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgb(47, 79, 76);
}

/* 显示时的动画 */
.about-overlay.active {
    display: flex;
    opacity: 1;
}

.about-overlay.active .about-container {
    transform: translateY(0);
}

/* 滚动条样式 */
.about-content::-webkit-scrollbar {
    width: 8px;
}

.about-content::-webkit-scrollbar-track {
    background: rgb(236, 249, 248);
}

.about-content::-webkit-scrollbar-thumb {
    background: #718f9f;
    border-radius: 4px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
}