/* 公共样式 */
:root {
    --primary-color: #2b5797;
    --header-bg: #2b5797;
    --nav-bg: #1a3b6c;
    --text-color: #333;
    --link-color: #666;
    --border-color: #eee;
    --white: #fff;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 工具栏样式 */
.toolbar {
    background: var(--header-bg);
    height: 30px;
    line-height: 30px;
}

.toolbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar__link {
    color: var(--white);
    font-size: 12px;
    text-decoration: none;
    margin-right: 20px;
    opacity: 0.9;
}

.toolbar__link:hover {
    opacity: 1;
}

.toolbar__search {
    display: flex;
    align-items: center;
}

.toolbar__input {
    width: 160px;
    height: 22px;
    border: none;
    border-radius: 2px 0 0 2px;
    padding: 0 8px;
    font-size: 12px;
}

.toolbar__btn {
    height: 22px;
    line-height: 22px;
    padding: 0 12px;
    background: var(--nav-bg);
    color: var(--white);
    border: none;
    border-radius: 0 2px 2px 0;
    font-size: 12px;
    cursor: pointer;
}

.toolbar__btn:hover {
    background: #132d52;
}

/* 头部导航样式 */
.header {
    background: var(--header-bg);
    position: relative;
    z-index: 100;
}

.header__top {
    padding: 20px 0;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.header__logo {
    width: 400px;
    display: flex;
    align-items: center;
}

.header__logo img {
    width: 100%;
    height: auto;
}

.header__slogan {
    margin-left: auto;
}

.header__slogan h2 {
    color: var(--white);
    font-size: 36px;
    font-family: "华文行楷", "楷体", serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.header__nav {
    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav__list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
}

.nav__item {
    position: relative;
    padding: 0 5px;
}

.nav__item a {
    display: block;
    color: var(--white);
    font-size: 15px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav__item a:hover,
.nav__item--active a {
    background: rgba(255,255,255,0.1);
}

.nav__item--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

/* 移动端菜单按钮 */
.header__menu-btn {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.header__menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.header__menu-btn span:nth-child(1) {
    top: 6px;
}

.header__menu-btn span:nth-child(2) {
    top: 14px;
}

.header__menu-btn span:nth-child(3) {
    top: 22px;
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    padding: 30px 0;
    color: rgba(255,255,255,0.9);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__info {
    line-height: 2;
    font-size: 14px;
}

.footer__info p {
    margin: 0;
}

.footer__qrcode {
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

.footer__qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__qrcode {
        margin-top: 20px;
    }
}

/* 底部资源链接 */
.resource-links {
    background: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.resource-links__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.resource-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.resource-link__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.resource-link__text {
    font-size: 14px;
} 