/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏滚动条 */
/* Chrome, Safari, Opera */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
* {
    scrollbar-width: none;
}

/* IE, Edge */
* {
    -ms-overflow-style: none;
}

/* 全局变量 */
:root {
    --primary-color: #003876;
    --secondary-color: #0056b3;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #ffffff;
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* 标题样式 */
h1, h2, h3 {
    margin-bottom: 20px;
}

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* 导航栏 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo p {
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    animation: underline 0.3s ease-out;
}

@keyframes underline {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 768px) {
    nav ul li a.active::after {
        bottom: -2px;
    }
}

/* 主横幅 */
.banner {
    background: linear-gradient(rgba(0, 56, 118, 0.8), rgba(0, 86, 179, 0.8)), url('../images/background.avif');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.banner h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* 关于我们 */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-item h3 {
    font-size: 2.5em;
    color: var(--secondary-color);
}

/* 服务卡片 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card .btn {
    margin-top: 20px;
    padding: 8px 20px;
    font-size: 0.9em;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.service-card .btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 服务流程 */
.process {
    background-color: var(--light-gray);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin: 0 auto 20px;
}

/* 联系我们 */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.info-item {
    text-align: center;
    padding: 20px;
}

.info-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(-1) invert(1);  /* 使logo在深色背景上显示为白色 */
}

.footer-logo p {
    color: var(--light-gray);
    font-size: 14px;
    margin-top: 5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* 微信二维码弹出层样式 */
.wechat-container {
    position: relative;
    display: inline-block;
}

.qr-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    width: 180px;
    border: 1px solid #eee;
}

.qr-popup img {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.qr-popup p {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
}

.qr-popup::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.wechat-link:hover + .qr-popup,
.qr-popup:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .qr-popup {
        width: 150px;
        padding: 10px;
    }
    
    .qr-popup img {
        width: 120px;
        height: 120px;
    }
    
    .qr-popup p {
        font-size: 12px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        margin: 0;
    }

    .banner {
        height: auto;
        padding: 100px 0;
    }

    .banner h1 {
        font-size: 2.5em;
    }

    .process-steps {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .step, .info-item {
    animation: fadeIn 0.6s ease-out forwards;
}