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

body {
    font-family: "Public Sans Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 顶部深蓝色栏 */
.top-header {
    background-color: #2b2b2b;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #E0B93C;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    color: white;
}

.site-title .dept-name {
    font-size: 1.1rem;
    font-weight: 400;
    display: block;
    margin-bottom: 0.25rem;
}

.site-title .main-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.top-nav {
    display: flex;
    gap: 1.5rem;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.top-nav a:hover {
    text-decoration: underline;
}

.main-nav {
    background-color: #2b2b2b;
    padding: 0 2rem;
}

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

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.main-nav a:hover {
    background-color: #1a1a1a;
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.7rem;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

.main-nav li:hover .dropdown {
    display: block;
}

.dropdown a {
    color: #1b1b1b;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e6e6e6;
}

.dropdown a:hover {
    background-color: #f0f0f0;
}

@media (max-width: 968px) {
    .top-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .top-right {
        align-items: center;
        width: 100%;
    }

    .site-title .main-title {
        font-size: 1.5rem;
    }

    .main-nav {
        overflow-x: auto;
    }

    .main-nav ul {
        white-space: nowrap;
    }
}

.top-header a{
    text-decoration: none;
}

.text-title{
    color: #162E51;
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 欢迎区域 */
.hero-section {
    background: linear-gradient(135deg, #162e51 0%, #1e3a5f 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #E0B93C;
    color: #1b1b1b;
}

.btn-primary:hover {
    background-color: #c9a535;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #162e51;
}

/* 特色内容区域 */
.featured-section {
    margin-bottom: 3rem;
}

.featured-section h3,
.quick-links h3,
.updates-section h3 {
    font-size: 1.75rem;
    color: #1b1b1b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #E0B93C;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-card h4 {
    color: #162e51;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.featured-card p {
    color: #4a4a4a;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-link {
    color: #162e51;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: #E0B93C;
}

/* 快速链接 */
.quick-links {
    margin-bottom: 3rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    border-left: 4px solid #162e51;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: #162e51;
    transform: translateX(4px);
}

.quick-link:hover .link-title,
.quick-link:hover .link-desc {
    color: white;
}

.link-title {
    font-weight: 700;
    color: #162e51;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.link-desc {
    color: #666;
    font-size: 0.9rem;
}

/* 更新日志 */
.updates-section {
    margin-bottom: 3rem;
}

.updates-list {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
}

.update-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.update-item:last-child {
    border-bottom: none;
}

.update-date {
    color: #666;
    font-size: 0.9rem;
    min-width: 100px;
}

.update-type {
    color: #E0B93C;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 80px;
}

.update-text {
    color: #1b1b1b;
    flex: 1;
}

/* 页脚 */
.site-footer {
    background-color: #2b2b2b;
    color: white;
    margin-top: 4rem;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #E0B93C;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #aaa;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #E0B93C;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #777;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .featured-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .update-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}