:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --secondary-color: #f0f7ff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #eaeaea;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

.section-padding {
    padding: 80px 0;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.w-100 { width: 100%; }

h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 6px;
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.9rem;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Section Title */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Home Services */
.home-services .card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.icon-large {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Home Cases */
.case-thumb {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.case-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.case-thumb p {
    padding: 15px;
    font-weight: 500;
    background: var(--white);
    margin: 0;
}

/* About Section */
.about-desc {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
}

.advantage-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services Section */
.service-row {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-row:hover {
    background: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.service-text h3 {
    margin-bottom: 10px;
}

.service-text p {
    color: var(--text-light);
}

/* Cases Section */
.category-title {
    font-size: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

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

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.case-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.case-info {
    padding: 20px;
}

.case-info h4 {
    margin-bottom: 8px;
}

.case-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-item {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.contact-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-item p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    display: flex;
    gap: 40px;
    align-items: center;
}

.modal-qr {
    flex: 0 0 240px;
    text-align: center;
}

.modal-qr img {
    width: 200px;
    height: 200px;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 10px;
    background: #fff;
}

.qr-tip {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal-info {
    flex: 1;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-info p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
    text-align: justify;
}

/* Clickable items */
.clickable-case {
    cursor: pointer;
}

.case-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-beian {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-beian a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.footer-beian a img {
    width: 18px;
    height: 18px;
}

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

/* Responsive */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
    }

    .mobile-menu-btn { display: block; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content .subtitle { font-size: 1.1rem; }
    
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    
    .service-row { flex-direction: column; text-align: center; gap: 15px; }
    
    .section-padding { padding: 50px 0; }

    /* Modal Responsive */
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    .modal-body {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .modal-qr {
        flex: 0 0 auto;
    }

    .modal-info h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .modal-info p {
        font-size: 0.95rem;
    }
}
