/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1a3a8f 0%, #0d1b4c 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.site-url {
    color: #a0c1ff;
    font-size: 0.9rem;
}

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

.main-nav a {
    color: #d0ddff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.header-contact p {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
}

/* 主横幅 */
.hero {
    background: linear-gradient(rgba(10, 30, 80, 0.85), rgba(10, 30, 80, 0.9)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(to right, #ff7b00, #ff5500);
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(255, 123, 0, 0.4);
}

/* 通用区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1a3a8f;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ff7b00, #ff5500);
    border-radius: 2px;
}

/* 服务网格 */
.services {
    padding: 80px 20px;
    background-color: white;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #1a3a8f;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: #1a3a8f;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #222;
}

/* 新闻列表 */
.latest-news {
    padding: 80px 20px;
    background-color: #f5f7ff;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.news-item {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
    background: #1a3a8f;
    color: white;
    padding: 20px;
    min-width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date .day {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 1.1rem;
    margin-top: 5px;
}

.news-content {
    padding: 25px;
    flex: 1;
}

.news-content h3 {
    margin-bottom: 12px;
}

.news-content h3 a {
    color: #1a3a8f;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #ff7b00;
}

.news-tags {
    margin-top: 15px;
}

.news-tags a {
    display: inline-block;
    background: #eef2ff;
    color: #4a6bdf;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
}

.news-image {
    width: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.text-center {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #1a3a8f;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #1a3a8f;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1a3a8f;
    color: white;
}

/* TAG云 */
.tag-cloud {
    padding: 60px 20px;
    background-color: white;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tags a {
    display: inline-block;
    padding: 10px 22px;
    background: #f0f5ff;
    color: #4455aa;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: 1px solid #d0ddff;
}

.tags a:hover {
    background: #1a3a8f;
    color: white;
    transform: translateY(-3px);
}

.tag-large {
    font-size: 1.1rem;
    font-weight: bold;
    background: #e6eeff !important;
}

/* 页脚 */
footer {
    background: #0d1b4c;
    color: #b0c4ff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0c4ff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #ff7b00;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #253570;
    font-size: 0.95rem;
    color: #8a9dd6;
}

.footer-bottom a {
    color: #a0c1ff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .news-item {
        flex-direction: column;
    }
    .news-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
}