* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.brand {
    text-decoration: none;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    color: #165DFF;
}

.brand-slogan {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.main-nav li.active > a,
.main-nav a:hover {
    color: #165DFF;
}

/* 二级菜单：默认隐藏，悬浮显示 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 4px 4px;
}

.main-nav li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px  width: 100% solid #f0f0f0;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
}

/* 全站深蓝色横幅 */
.hero-banner {
    background: linear-gradient(135deg, #114790 0%, #0B3368 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* 主体内容 */
.main-content {
    min-height: calc(100vh - 300px);
    padding-bottom: 40px;
}

.home-content {
    line-height: 1.8;
}

.home-content h1, .home-content h2, .home-content h3 {
    margin: 30px 0 15px;
}

.home-content p {
    margin-bottom: 15px;
}

.home-content ul, .home-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.home-content a {
    color: #165DFF;
    text-decoration: none;
}

.home-content a:hover {
    text-decoration: underline;
}

.page-desc {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 列表页 */
.content-list {
    display: grid;
    gap: 20px;
}

.list-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.list-item:hover, .list-item:active {
    background: #8B0D17;
    border-color: #8B0D17;
    box-shadow: 0 6px 16px rgba(139, 13, 23, 0.25);
}

.list-item:hover h3 a, .list-item:active h3 a,
.list-item:hover p, .list-item:active p,
.list-item:hover .date, .list-item:active .date {
    color: #fff !important;
}

.list-item:hover h3 a:hover, .list-item:active h3 a:hover {
    color: #fff;
}

.list-item h3 a {
    color: #222;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.list-item p {
    color: #666;
    margin: 8px 0;
    font-size: 14px;
    transition: color 0.3s;
}

.list-item .date {
    color: #999;
    font-size: 12px;
    transition: color 0.3s;
}

/* 文章页 */
.article {
    max-width: 100%;
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin: 30px 0 15px;
    color: #222;
}

.article-content h1 {
    font-size: 28px;
}

.article-content h2 {
    font-size: 22px;
}

.article-content h3 {
    font-size: 18px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th, .article-content td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
}

.article-content th {
    background: #f8f9fa;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.article-content a {
    color: #165DFF;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* 页脚 */
.site-footer {
    background: #222;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-info h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-contact h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-contact ul {
    list-style: none;
    font-size: 14px;
    line-height: 2;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-nav ul {
        gap: 15px;
    }
    .main-nav a {
        font-size: 14px;
    }
    .hero-banner {
        padding: 40px 0;
    }
    .hero-banner h1 {
        font-size: 24px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
