/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

/* 头部导航 */
#header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

nav#nav ul {
    display: flex;
}

nav#nav ul li {
    margin-left: 30px;
    position: relative;
}

nav#nav ul li a {
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

nav#nav ul li a:hover {
    color: #0066cc;
}

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 100;
}

nav#nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

nav#nav ul li.dropdown .dropdown-content a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

nav#nav ul li.dropdown .dropdown-content a:last-child {
    border-bottom: none;
}

.phone a {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.phone a:hover {
    background-color: #0052a3;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

/* 移动端导航菜单 */
@media (max-width: 768px) {
    nav#nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: #fff;
        z-index: 9999;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    nav#nav.active {
        right: 0;
    }
    
    nav#nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav#nav ul li {
        margin: 0 0 15px 0;
    }
    
    nav#nav ul li.dropdown .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        margin-left: 15px;
        margin-top: 10px;
    }
    
    nav#nav ul li.dropdown.active .dropdown-content {
        display: block;
    }
    
    .menu-toggle {
        display: block;
        z-index: 10000;
    }
    
    .phone {
        display: none;
    }
    
    /* 移动端导航遮罩 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 9998;
        display: none;
    }
    
    .nav-overlay.active {
        display: block;
    }
}

/* 移动端电话按钮 */
.mobile-phone {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0066cc;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 99;
}

.mobile-phone a {
    color: #fff;
    display: block;
}

.mobile-phone i {
    font-size: 24px;
}

.mobile-phone span {
    display: none;
}

@media (max-width: 768px) {
    .mobile-phone {
        display: block;
    }
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
}

.breadcrumb .container {
    display: flex;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

.breadcrumb span:last-child {
    color: #333;
}

/* 英雄区域 */
.hero {
    background-image: url('../images/beijing.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: #0052a3;
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    background-color: #fff;
    color: #0066cc;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
    border: 1px solid #0066cc;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 80%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* 服务优势 */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 32px;
}

.service-item h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .services {
        padding: 40px 0;
    }
    
    .service-item {
        margin-bottom: 30px;
    }
}

/* 服务项目 */
.service-categories {
    padding: 80px 0;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.category-item {
    width: calc(33.333% - 20px);
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.category-info p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.category-link {
    display: inline-block;
    color: #0066cc;
    font-size: 14px;
    transition: color 0.3s;
}

.category-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .service-categories {
        padding: 40px 0;
    }
    
    .category-item {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* 文章列表样式 */
.articles-titles, .articles-summary, .articles-full {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.articles-summary {
    background-color: #fff;
}

.article-list-titles ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.article-list-titles li {
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-list-titles a {
    transition: color 0.3s;
}

.article-list-titles a:hover {
    color: #0066cc;
}

.article-list-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-item-summary h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.article-item-summary h3 a {
    color: #333;
    transition: color 0.3s;
}

.article-item-summary h3 a:hover {
    color: #0066cc;
}

.article-item-summary p {
    color: #666;
    font-size: 14px;
}

.article-list-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-item-full {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

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

.article-content h3 a {
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #0066cc;
}

.article-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.article-date {
    margin-right: 15px;
}

.article-tags a {
    color: #0066cc;
}

@media (max-width: 768px) {
    .articles-titles, .articles-summary, .articles-full {
        padding: 40px 0;
    }
    
    .article-list-full {
        grid-template-columns: 1fr;
    }
}

/* 标签云 */
.tags {
    padding: 80px 0;
    background-color: #fff;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tag {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.tag:hover {
    background-color: #0066cc;
    color: #fff;
}

@media (max-width: 768px) {
    .tags {
        padding: 40px 0;
    }
}

/* 文章列表页 */
.page-title {
    text-align: center;
    margin: 40px 0;
    font-size: 32px;
}

.article-list {
    margin-bottom: 60px;
}

.article-item {
    display: flex;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-item:last-child {
    margin-bottom: 0;
}

.article-item .article-image {
    flex: 0 0 300px;
}

.article-item .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-item .article-content {
    flex: 1;
    padding: 30px;
}

.article-item .article-content h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

.article-item .article-content h2 a {
    transition: color 0.3s;
}

.article-item .article-content h2 a:hover {
    color: #0066cc;
}

.article-item .article-content p {
    margin-bottom: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
        margin: 20px 0;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item .article-image {
        flex: 0 0 200px;
    }
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.article-meta {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #999;
}

.article-meta span {
    margin-right: 20px;
}

.article-content {
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content h2 {
    margin: 30px 0 15px;
    font-size: 22px;
    color: #333;
}

.article-tags {
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.article-tags a {
    display: inline-block;
    margin-right: 10px;
    color: #0066cc;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.prev-article, .next-article {
    font-size: 14px;
}

.prev-article a, .next-article a {
    color: #0066cc;
}

.article-copyright {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.article-copyright a {
    color: #0066cc;
}

@media (max-width: 768px) {
    .article-detail {
        padding: 20px;
        margin: 20px 0;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .prev-article {
        margin-bottom: 10px;
    }
}

/* 底部区域 */
#footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 30px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0066cc;
}

.footer-col p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #0066cc;
}

.footer-col ul li i {
    margin-right: 10px;
    color: #0066cc;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #444;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc;
}

.footer-links {
    display: flex;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0066cc;
}

@media (max-width: 768px) {
    #footer {
        padding: 40px 0 20px;
    }
    
    .footer-col {
        padding-right: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 15px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

/* 文章相关推荐样式 */
.article-related {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-related h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.related-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.related-title:hover {
    color: #0066cc;
}

.related-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .related-list {
        grid-template-columns: 1fr;
    }
}
