/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(79, 142, 247, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(90deg, #4F8EF7 0%, #2DD4BF 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-info span {
    margin-right: 20px;
}

.header-top-links a {
    margin-left: 15px;
    opacity: 0.9;
}

.header-top-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(90deg, #4F8EF7 0%, #2DD4BF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    border-radius: 8px;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #4F8EF7;
    background: rgba(79, 142, 247, 0.08);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #4F8EF7, #2DD4BF);
    border-radius: 2px;
}

/* Banner轮播 */
.banner {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-slide-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.banner-content {
    color: #fff;
    padding: 0 80px;
    max-width: 600px;
}

.banner-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
}

.banner-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: #4F8EF7;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 区块标题 */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4F8EF7, #2DD4BF);
    border-radius: 2px;
}

.section-title p {
    color: #7f8c8d;
    font-size: 15px;
    margin-top: 20px;
}

/* 服务分类卡片 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(79, 142, 247, 0.2);
}

.category-card-header {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.category-card-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.category-card-header::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -60px;
    left: -60px;
}

.category-1 .category-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-2 .category-card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-card-body {
    padding: 25px;
}

.category-card-body h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.category-card-body p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.category-card-more {
    color: #4F8EF7;
    font-size: 14px;
    font-weight: 500;
}

.category-card-more:hover {
    color: #2DD4BF;
}

/* 服务列表 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(79, 142, 247, 0.15);
}

.service-card-img {
    height: 160px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(odd) .service-card-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card:nth-child(even) .service-card-img {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-card:nth-child(3n) .service-card-img {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-card:nth-child(4n) .service-card-img {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.service-card-content {
    padding: 18px;
}

.service-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.5;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(90deg, #4F8EF7, #2DD4BF);
    color: #fff;
    font-size: 12px;
    border-radius: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination button {
    padding: 10px 18px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: #4F8EF7;
    color: #4F8EF7;
}

.pagination button.active {
    background: linear-gradient(90deg, #4F8EF7, #2DD4BF);
    color: #fff;
    border-color: transparent;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    margin-left: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

/* 页面标题区 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 0 0 40px 40px;
}

#logname:hover {
    cursor: pointer;
}

.page-header.marketing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.page-header.fabu {
    background: linear-gradient(135deg, #bf1cd1 0%, #081283 100%);
}

.page-header.about {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.page-header.contact {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.85;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 详情页 */
.detail-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.detail-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.detail-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    gap: 25px;
    color: #7f8c8d;
    font-size: 14px;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-banner {
    height: 300px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #fff;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

.detail-content {
    color: #444;
    font-size: 16px;
    line-height: 2;
}

.detail-content h3 {
    color: #2c3e50;
    font-size: 20px;
    margin: 25px 0 15px;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.detail-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #4F8EF7;
    font-size: 15px;
}

.back-btn:hover {
    color: #2DD4BF;
}

/* 关于我们 */
.about-section {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #4F8EF7, #2DD4BF);
    border-radius: 2px;
}

.about-section p {
    color: #555;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 142, 247, 0.15);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* 联系我们 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-info-card h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F8EF7, #2DD4BF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-item-text p {
    color: #7f8c8d;
    font-size: 14px;
}

.contact-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-card h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4F8EF7;
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #4F8EF7, #2DD4BF);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 142, 247, 0.3);
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #4F8EF7, #2DD4BF);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-links li a:hover {
    color: #4F8EF7;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: #bdc3c7;
}

.footer-bottom a:hover {
    color: #4F8EF7;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px;
    color: #7f8c8d;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* 响应式 */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .banner-content {
        padding: 0 30px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}