/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #007bff;
}

/* 幻灯片样式 */
.slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

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

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.slider-dot.active {
    background: #fff;
}

/* 服务模块样式 */
.services {
    max-width: 1200px;
    margin: -50px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.service-item {
    flex: 1;
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

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

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

.service-desc {
    color: #666;
    font-size: 14px;
}

/* 公司简介样式 */
.company-intro {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-content {
    flex: 1;
}

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

.intro-desc {
    color: #666;
    margin-bottom: 30px;
}

.intro-image {
    flex: 1;
    height: 400px;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 办公环境样式 */
.office-env {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.office-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.office-item-image {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.office-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.office-item-title {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 80px auto 30px;
    padding: 20px;
}

/* 文章列表样式 */
.latest-articles h2 {
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-price-notice {
    color: #ff4444;
    font-weight: bold;
    font-size: 16px;
    display: block;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.article-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    height: 160px;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

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

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

.article-content {
    flex: 1;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.article-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 14px;
    margin-top: auto;
}

.article-date {
    color: #999;
}

.article-tag {
    background: #f8f8f8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.article-price {
    color: #ff4444;
    font-size: 14px;
    margin-left: auto;
}

/* 底部样式 */
.footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

/* 付费提示弹窗 */
.pay-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.pay-modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.pay-modal-buttons {
    margin-top: 20px;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

/* 支付页面样式 */
.pay-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pay-qrcode {
    text-align: center;
    margin: 20px 0;
}

.pay-qrcode img {
    max-width: 200px;
}

/* 友情链接样式 */
.friend-links {
    max-width: 1200px;
    margin: 60px auto 30px;
    padding: 0 20px;
}

.friend-links h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.friend-links-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.friend-links-list a:hover {
    color: #007bff;
}

/* 底部导航样式 */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #007bff;
}

/* 列表页标题样式 */
.page-header {
    max-width: 1200px;
    margin: 80px auto 30px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
}

.page-price-notice {
    color: #ff4444;
    font-weight: bold;
    font-size: 16px;
}

/* 列表页文章列表样式 */
.article-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-page .article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-page .article-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    height: 200px;
}

.article-page .article-image {
    width: 300px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-page .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.article-page .article-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.article-page .article-desc {
    font-size: 15px;
    margin-bottom: 20px;
    -webkit-line-clamp: 3;
} 