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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    font-size: 15px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

p {
    margin-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: #fff;
}

/* 头部导航 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

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

.logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    gap: 8px;
}

.main-nav ul li a {
    display: block;
    padding: 8px 18px;
    color: #475569;
    font-weight: 500;
    border-radius: 6px;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    padding: 10px 20px !important;
    border-radius: 0 !important;
    background: none !important;
}

.dropdown li a:hover {
    background: #f1f5f9 !important;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-weight: 600;
    font-size: 18px;
}

.header-phone i {
    font-size: 20px;
}

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

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    color: #333;
    font-size: 16px;
}

/* Hero区域 */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #2563eb;
}

.hero-content p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(37,99,235,0.15);
}

.hero-card-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hero-card-item:last-child {
    border-bottom: none;
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.hero-card-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #1e293b;
}

.hero-card-item p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* 通用区块样式 */
.section {
    padding: 100px 0;
}

.section-gray {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37,99,235,0.1);
    color: #2563eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header h2 {
    color: #1e293b;
    margin-bottom: 16px;
}

.section-header p {
    color: #64748b;
    font-size: 17px;
}

/* 服务区块 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 12px;
}

.service-card .service-sub {
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.service-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: #2563eb;
    font-weight: 500;
    font-size: 14px;
}

.service-card .service-link:hover {
    gap: 10px;
}

/* 案例区块 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.case-image {
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    position: relative;
}

.case-card:nth-child(2n) .case-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.case-card:nth-child(3n) .case-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.case-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.95);
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.case-content {
    padding: 24px;
}

.case-content h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 10px;
}

.case-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #94a3b8;
}

.section-more {
    text-align: center;
    margin-top: 48px;
}

/* 新闻/洞察区块 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 30px rgba(37,99,235,0.1);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.news-date .date-month {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.news-date .date-info {
    font-size: 12px;
    color: #94a3b8;
}

.news-category {
    display: inline-block;
    padding: 2px 10px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-card h3 a {
    color: #1e293b;
}

.news-card h3 a:hover {
    color: #2563eb;
}

.news-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/* CTA区块 */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.cta-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-text p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.cta-phone {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-number {
    font-size: 32px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 8px;
}

.cta-phone p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.cta-phone .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
}

/* 页脚 */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-contact {
    margin-top: 20px;
    font-size: 14px;
    line-height: 2;
}

.footer-contact i {
    width: 20px;
    color: #60a5fa;
    margin-right: 8px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 24px;
}

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

.footer-col ul li a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 24px 0;
}

.footer-bottom-inner {
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* 固定侧边栏 */
.fixed-sidebar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-btn {
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    gap: 2px;
    transition: all 0.3s ease;
}

.sidebar-btn:first-child {
    border-radius: 8px 8px 0 0;
}

.sidebar-btn:last-child {
    border-radius: 0 0 8px 8px;
}

.sidebar-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.sidebar-btn i {
    font-size: 20px;
}

.back-to-top {
    display: none;
}

.back-to-top.show {
    display: flex;
}

/* 内页Banner */
.page-banner {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    text-align: center;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.page-banner p {
    color: #94a3b8;
    font-size: 18px;
}

/* 面包屑 */
.breadcrumb {
    padding: 20px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb-inner a {
    color: #64748b;
}

.breadcrumb-inner a:hover {
    color: #2563eb;
}

/* 联系表单 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1e293b;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 6px;
}

.contact-info-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.8;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* 文章详情 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.article-content {
    font-size: 16px;
    line-height: 2;
    color: #475569;
}

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

/* 响应式 */
@media (max-width: 1024px) {
    .services-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    
    .main-nav,
    .header-phone {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .services-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .fixed-sidebar {
        right: 10px;
        bottom: 20px;
    }
    
    .sidebar-btn {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
    
    .contact-form {
        padding: 24px;
    }
}