/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    background: #2c2c2c;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* 首页横幅 */
.hero {
    background: url('1667656384188504.jpg') center/cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: normal;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #4267d1;
    color: #fff;
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #3556b8;
}

/* 关于我们 */
.about {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.about p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
    color: #666;
}

/* 服务项目 */
.services {
    padding: 60px 0;
    background: #f5f5f5;
}

.services .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 4px;
}

.service-item.service-blue {
    background: #4267d1;
    color: #fff;
}

.service-item.service-blue h3,
.service-item.service-blue p {
    color: #fff;
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #666;
    line-height: 1.8;
}

/* 服务价格 */
.pricing {
    padding: 60px 0;
    background: #fff;
}

.pricing h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: #f9f9f9;
    padding: 40px 30px;
    text-align: center;
    border-radius: 4px;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-card h4 {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
    font-weight: normal;
}

.price {
    font-size: 36px;
    color: #4267d1;
    font-weight: bold;
    margin: 20px 0;
}

.pricing-card hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.pricing-card p {
    color: #666;
    margin: 20px 0;
    line-height: 1.8;
}

/* 案例中心 */
.cases {
    padding: 60px 0;
    background: #f5f5f5;
}

.cases h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
}

.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-item p {
    padding: 20px;
    font-size: 16px;
    color: #333;
}

/* 资讯中心 */
.news {
    padding: 60px 0;
    background: url('banner_bg2.jpg') center/cover;
    color: #fff;
    position: relative;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 0;
}

.news .container {
    position: relative;
    z-index: 1;
}

.news h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}

.news .subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #ccc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 4px;
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-item p {
    color: #ddd;
    line-height: 1.8;
}

/* 友情链接 */
.links {
    padding: 30px 0;
    background: #4267d1;
    color: #fff;
}

.links h3 {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
}

.links ul {
    display: inline-block;
    list-style: none;
}

.links li {
    display: inline-block;
    margin-right: 20px;
}

.links a {
    color: #fff;
    text-decoration: none;
}

/* 联系我们 */
.contact {
    padding: 40px 0;
    background: #4267d1;
    text-align: center;
    color: #fff;
}

.contact p {
    font-size: 18px;
}

.contact-btn {
    display: inline-block;
    background: #fff;
    color: #4267d1;
    padding: 10px 30px;
    margin-left: 20px;
    text-decoration: none;
    border-radius: 4px;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #999;
    text-decoration: none;
}

.footer-col a:hover {
    color: #4267d1;
}

.footer-col p {
    margin-bottom: 8px;
}

.footer hr {
    border: none;
    border-top: 1px solid #333;
    margin: 20px 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
    margin: 0 10px;
}

/* 侧边栏工具 */
.sidebar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.sidebar-item {
    display: block;
    width: 50px;
    height: 50px;
    background: #fff;
    margin-bottom: 10px;
    text-align: center;
    line-height: 50px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    position: relative;
}

.sidebar-item .icon {
    font-size: 24px;
}

.sidebar-item .text {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 14px;
}

.sidebar-item:hover .text {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .services .container,
    .pricing-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        right: 10px;
        bottom: 80px;
    }
    
    .sidebar-item {
        width: 45px;
        height: 45px;
        line-height: 45px;
    }
}
