:root {
    --primary: #1a5fb4;
    --primary-dark: #104a8e;
    --accent: #26a269;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

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

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 140px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: #1e8c58;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--primary-dark);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* About */
.about {
    background: var(--bg);
}

.about-content p {
    margin-bottom: 18px;
    color: var(--text-light);
    text-align: center;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.service-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

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

/* Contact */
.contact {
    background: var(--bg);
    text-align: center;
}

.contact-desc {
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item .label {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1c2431;
    color: #adb5bd;
    padding: 28px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin: 6px 0;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .nav {
        gap: 18px;
    }

    .hero {
        padding: 160px 0 80px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    section {
        padding: 56px 0;
    }
}
