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

:root {
    --primary-color: #1890ff;
    --primary-dark: #096dd9;
    --secondary-color: #52c41a;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e8e8e8;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 头部导航 */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    max-width: 150px;
    height: auto;
    max-height: 50px;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-light);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav li {
    position: relative;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* 下拉菜单箭头 - 文字右侧 */
.has-dropdown > a .dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* 下拉菜单 */
.dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    left: -10px;
    min-width: 160px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 100;
    list-style: none;
    border-top: 3px solid var(--primary-color);
}

.has-dropdown:hover > .dropdown {
    display: block !important;
    animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown li {
    margin: 0;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s;
}

.dropdown li a::after {
    display: none;
}

.dropdown li a:hover {
    color: var(--primary-color);
    background: #f0f7ff;
    padding-left: 24px;
}

.dropdown li a::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 2px;
    margin-right: 0;
    transition: height 0.2s;
    vertical-align: middle;
    margin-right: 10px;
}

.dropdown li a:hover::before {
    height: 14px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Banner轮播 */
.banner {
    margin-top: 80px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slide-content .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.dot.active {
    background-color: var(--white);
}

/* 通用section样式 */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* 核心业务 */
.services {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 36px;
    color: var(--white);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 关于我们 */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 为什么选择我们 */
.why-us {
    background-color: var(--bg-color);
}

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

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* 成功案例 */
.cases {
    background-color: var(--bg-color);
}

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

.case-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.case-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    border-radius: 20px;
}

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

/* 合作伙伴 */
.partners {
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-logo {
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.partner-logo:hover {
    box-shadow: var(--shadow);
    color: #1890ff;
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0);
}

/* 页面标题 */
.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 案例页面 */
.cases-page {
    background-color: var(--white);
}

.cases-page .cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.case-desc {
    color: var(--text-light);
    margin-bottom: 15px;
}

.case-info {
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.case-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.case-info i {
    color: var(--primary-color);
    width: 20px;
}

/* 底部 */
.footer {
    background: #1a1a2e;
}

.footer-top {
    background: #222238;
    padding: 30px 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 32px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: bold;
    color: var(--white);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

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

.footer-nav li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: #888;
    font-size: 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact p i {
    color: var(--primary-color);
    width: 14px;
}

.footer-center {
    text-align: center;
    padding: 20px 40px;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
}

.footer-center span {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.footer-center b {
    display: block;
    font-size: 28px;
    color: var(--white);
    font-weight: bold;
    margin: 8px 0;
}

.footer-center .contact-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.footer-center .contact-btn:hover {
    background: var(--primary-dark);
}

.footer-right {
    display: flex;
    gap: 20px;
}

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

.qrcode-item img {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.qrcode-item span {
    display: block;
    color: #888;
    font-size: 11px;
}

.footer-bottom {
    background: #1a1a2e;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #2a2a3e;
}

.footer-bottom span,
.footer-bottom a {
    color: #666;
    font-size: 12px;
}

.footer-bottom .divider {
    margin: 0 10px;
    color: #444;
}

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

.footer-bottom a:hover {
    color: #888;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-left {
        max-width: 100%;
    }

    .footer-center {
        border-left: none;
        border-right: none;
        border-top: 1px solid #333;
        border-bottom: 1px solid #333;
    }

    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .contact-info {
        display: none;
    }
    
    .banner {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-nav {
        justify-content: center;
    }

    .footer-center b {
        font-size: 22px;
    }

    .footer-bottom {
        font-size: 11px;
    }
}
