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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    color: #0066cc;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0066cc;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/images/port-background.svg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
    position: relative;
}

/* 文字内容容器 - 放在图片高度的五分之四位置（距离顶部20%） */
.hero-content {
    width: 100%;
    position: absolute;
    top: 20%; /* 图片高度的五分之四位置（距离顶部20%） */
    left: 50%;
    transform: translateX(-50%);
    padding: 0 15px;
    z-index: 2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮容器 - 放在图片下三分之一处 */
.hero-buttons {
    width: 100%;
    position: absolute;
    top: 66.67%; /* 图片高度的下三分之一处 */
    left: 50%;
    transform: translateX(-50%);
    padding: 0 15px;
    z-index: 2;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 集卡记账APP下载按钮特殊样式 */
#app-download {
    background-color: #28a745; /* 绿色背景 */
    margin-left: 15px;
}

#app-download:hover {
    background-color: #218838; /* 深一点的绿色 */
}

/* 服务区域样式 */
.services {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: #0066cc;
}

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

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.service-card i {
    color: #0066cc;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: #0066cc;
    margin-right: 20px;
    min-width: 40px;
}

.info-item h3 {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.footer a {
    color: #fff;
    text-decoration: underline;
}

.footer a:hover {
    color: #ccc;
}

/* 访问计数器样式 */
#visit-counter {
    font-weight: bold;
    color: #4caf50;
}

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 250px; /* 调整宽度为250px，足够显示菜单项 */
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        transition: 0.3s;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    }

    .nav-links.active {
        left: 0;
    }

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

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

/* 下载计数器样式 */
#download-counter {
    font-weight: bold;
    color: #28a745; /* 绿色 */
    font-size: 1.2rem;
    margin-top: 10px;
    display: block;
    text-align: center;
}