/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F7F7F7;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #1661AB;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 添加传统纹样装饰 */
.header-content::before,
.header-content::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.header-content::before {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('../images/pattern-left.png');
}

.header-content::after {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('../images/pattern-right.png');
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    width: 80px;
    height: 80px;
    padding: 5px;
    border: 2px solid #1661AB;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(22, 97, 171, 0.1);
}

.logo h1 {
    font-size: 32px;
    color: #1661AB;
    font-family: "STZhongsong", "SimSun", serif;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(22, 97, 171, 0.1);
    position: relative;
    padding-bottom: 5px;
}

.logo h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #1661AB, transparent);
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background-color: #F7F7F7;
    border-radius: 20px;
}

.language-switch a {
    padding: 5px 10px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.language-switch a.active {
    color: #1661AB;
    font-weight: bold;
}

.language-switch span {
    color: #ddd;
}

.search {
    display: flex;
    gap: 10px;
}

.search input {
    width: 250px;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.search input:focus {
    border-color: #1661AB;
    outline: none;
}

.search button {
    padding: 10px 20px;
    background-color: #1661AB;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.search button:hover {
    background-color: #114B7D;
    transform: translateY(-1px);
}

/* 导航样式 */
nav {
    background-color: #1661AB;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

.main-nav a {
    color: #fff;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #114B7D;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.page-title {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1661AB;
}

.page-title h2 {
    font-size: 28px;
    color: #1661AB;
}

.breadcrumb {
    margin-top: 10px;
    color: #666;
}

.breadcrumb a {
    color: #1661AB;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #D4B185;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: #D4B185;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .main-nav li {
        flex: 0 0 50%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }
}

/* 通用动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
} 