/* 
    Guangzhou Xiaolian Network Technology Co., Ltd. Official Website
    Style: Tech-style, Responsive, Modern
    Color Palette: Tech Blue, White, Gray
*/

:root {
    --primary-color: #0066ff;
    --primary-dark: #004ecc;
    --secondary-color: #f5f8ff;
    --accent-color: #00c2ff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e5e5e5;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.nav-cta:hover {
    background-color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Section Shared --- */
section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* --- Advantage Grid --- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 15px;
    color: var(--text-light);
}

/* --- Platforms --- */
.platform-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.platform-item {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.platform-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Service Grid --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    background-color: var(--secondary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card li {
    font-size: 15px;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- AI Section --- */
.ai-delivery {
    display: flex;
    align-items: center;
    gap: 60px;
}

.ai-text {
    flex: 1;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ai-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.ai-feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ai-feature {
    display: flex;
    gap: 20px;
}

.ai-feature i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.ai-feature h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.ai-feature p {
    color: var(--text-light);
    font-size: 15px;
}

.ai-visual {
    flex: 1;
}

.ai-visual img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* --- Case Grid --- */
.case-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.case-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-info {
    padding: 25px;
}

.case-tag {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.case-info h3 {
    margin: 10px 0 20px;
    font-size: 20px;
}

.case-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.stat span {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat p {
    font-size: 12px;
    color: var(--text-light);
}

/* --- Solution Grid --- */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.solution-item {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.solution-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.solution-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

/* --- About Us --- */
.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feat-item {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feat-item i {
    color: var(--primary-color);
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-box .num {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.info-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.info-item i {
    color: var(--primary-color);
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #eee;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    position: relative;
}

.api-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #333;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.btn-block {
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #999;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a, .footer-legal a {
    color: #999;
}

.footer-links a:hover, .footer-legal a:hover {
    color: #fff;
}

.footer-contact p {
    color: #999;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* --- Fixed Elements --- */
.fixed-kefu {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
    z-index: 999;
    cursor: pointer;
}

.fixed-kefu i {
    font-size: 24px;
}

.fixed-kefu span {
    font-size: 10px;
    margin-top: 2px;
}

/* --- Animations --- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .ai-delivery { flex-direction: column; }
    .about-flex { flex-direction: column; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        padding: 100px 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.3s ease;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        display: none;
        z-index: 1000;
    }

    .nav-overlay.active {
        display: block;
    }
    
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; padding: 0 10px; }
    
    .section-header h2 { font-size: 28px; }
    
    section { padding: 60px 0; }
    
    .advantage-grid, .service-grid, .case-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card, .service-card, .case-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand, .footer-links, .footer-contact, .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
}
