/* 公共样式 */
:root {
    --primary-color: #CD2626;    /* 中国红 */
    --secondary-color: #F5F5DC;  /* 米色 */
    --text-color: #333333;       /* 深灰 */
    --max-width: 1200px;         /* 最大宽度 */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: var(--primary-color);
}

.nav-item.active a {
    color: var(--primary-color);
}

.nav-item.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: #f8f8f8;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    margin-right: 30px;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a:hover {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #B22222;
}

/* 中国风装饰元素 */
.chinese-border {
    border: 1px solid var(--primary-color);
    padding: 20px;
    position: relative;
}

.chinese-border:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--primary-color);
    opacity: 0.5;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .nav-list {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-right: 0;
        margin-bottom: 30px;
    }
} 