/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 在 style.css 中添加 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;          /* 图片与文字间距 */
}

.logo-text {
    font-size: 26px;
    font-weight: 600;
    color: #2e7d32;     /* 可根据主色调自行调整 */
    white-space: nowrap;
}

.logo img {
    height: 50px;
    fill: #4CAF50;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #4CAF50;
}

/* 主要内容样式 */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

/* 首页英雄区域 */
.hero {
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
    color: #fff;
    margin-top: -80px; /* 补偿固定导航栏的高度 */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #45a049;
}

/* 服务内容样式 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* 联系我们样式 */
.contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-item {
        width: 100%;
        max-width: 300px;
    }
}

/* 添加汉堡菜单按钮样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.4s;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

/* 添加过渡动画 */
.service-item, .download-item {
    transition: transform 0.3s ease;
}

.service-item:hover, .download-item:hover {
    transform: translateY(-5px);
}

/* 添加渐入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 1s ease-out;
}

/* 服务图标样式 */
.service-item i {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #4CAF50;
    font-size: 2.5rem;
}

/* 联系方式图标样式 */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #4CAF50;
}

/* 新闻动态样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #4CAF50;
    text-decoration: none;
    margin-top: 1rem;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 反馈表单样式 */
.feedback-container {
    max-width: 600px;
    margin: 2rem auto;
}

.feedback-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-button {
    background: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #45a049;
}

/* 在线客服样式 */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.cs-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.cs-toggle:hover {
    transform: scale(1.1);
}

.cs-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    display: none;
}

.cs-panel.active {
    display: block;
}

.cs-header {
    padding: 1rem;
    background: #4CAF50;
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.cs-content {
    padding: 1rem;
}

.cs-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.cs-info i {
    margin-right: 0.5rem;
    color: #4CAF50;
}

.cs-qrcode {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.cs-qrcode img {
    width: 150px;
    height: 150px;
    margin-bottom: 0.5rem;
}

/* 新闻动态样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #4CAF50;
    text-decoration: none;
    margin-top: 1rem;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 反馈表单样式 */
.feedback-container {
    max-width: 600px;
    margin: 2rem auto;
}

.feedback-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-button {
    background: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #45a049;
}

/* 在线客服样式 */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.cs-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.cs-toggle:hover {
    transform: scale(1.1);
}

.cs-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    display: none;
}

.cs-panel.active {
    display: block;
}

.cs-header {
    padding: 1rem;
    background: #4CAF50;
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.cs-content {
    padding: 1rem;
}

.cs-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.cs-info i {
    margin-right: 0.5rem;
    color: #4CAF50;
}

.cs-qrcode {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.cs-qrcode img {
    width: 150px;
    height: 150px;
    margin-bottom: 0.5rem;
}

/* 产品展示样式 */
.coming-soon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #f9f9f9;
}

.coming-soon i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.coming-soon h3,
.coming-soon p {
    color: #666;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.download-item {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
}

.download-item i {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #4CAF50;
    font-size: 2.5rem;
}

.download-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #45a049;
}

/* APP介绍部分样式 */
.app-intro {
    background-color: #f8f9fa;
    padding: 50px 0;
    text-align: center;
}

.app-intro .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-intro .section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.app-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.app-info {
    flex: 1;
    max-width: 600px;
}

.app-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.app-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.app-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.app-info ul li i {
    margin-right: 10px;
    color: #28a745;
}

.app-image {
    flex: 1;
    max-width: 300px;
}

.app-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-info .cta-button {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.app-info .cta-button:hover {
    background-color: #218838;
}