:root {
    --primary-color: #1a237e; /* 深蓝 */
    --secondary-color: #ff6f00; /* 活力橙 */
    --accent-color: #ffca28; /* 金黄 */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.btn-primary:hover {
    background-color: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

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

/* 导航栏 */
.header {
    background-color: transparent; /* 初始透明 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white); /* 初始白色 */
    transition: color 0.3s;
}

.header.scrolled .logo a {
    color: var(--primary-color);
}

.logo img {
    height: 45px;
    margin-right: 10px;
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

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

.nav-list a:hover::after {
    width: 100%;
}

.header.scrolled .nav-list a {
    color: var(--text-dark);
}

.header.scrolled .nav-list a:hover {
    color: var(--secondary-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

.header.scrolled .bar {
    background-color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    /* 可以添加一个背景图片叠加 */
    /* background-image: url('../images/hero-bg.jpg'); */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--accent-color);
}

.hero .subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero .description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* 核心优势 Features */
.features-section {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

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

.icon-box svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 服务范围 */
.services-section {
    background-color: #f0f2f5;
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.highlight-text {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

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

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

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    /* 给图片本身添加轻微的悬浮阴影，增加层次感 */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
    transition: transform 0.3s ease;
}

.about-logo-wrapper img:hover {
    transform: scale(1.02);
}

.about-content {
    flex: 1;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.quote-box {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-top: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-box p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-dark);
}

/* 底部 */
.footer {
    background-color: #0f1642; /* 更深的蓝色 */
    color: #aab0c7;
    padding-top: 80px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand, .footer-contact-info, .footer-qr-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-brand .slogan {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.contact-list li {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-list .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.qr-grid {
    display: flex;
    gap: 20px;
}

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

.qr-img-wrapper {
    background: var(--white);
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 110px;
    height: 110px;
}

.qr-img-wrapper img {
    width: 100%;
    height: 100%;
}

.qr-box span {
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

/* 动画相关 CSS */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-list {
        position: fixed;
        right: -100%;
        top: 70px; /* 假设头部高度 */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li {
        margin: 20px 0;
    }

    .header.scrolled .nav-list {
        top: 55px; /* 滚动后头部变窄 */
    }

    .nav-list a {
        color: var(--text-dark);
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }

    .about-wrapper {
        flex-direction: column;
    }
    
    .footer-top {
        flex-direction: column;
    }
}
