/* 全局样式 */
:root {
    --primary-color: #450c0b;
}

body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 顶部导航样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    margin-right: 2rem;
}

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

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

/* 轮播图样式调整 */
.carousel {
    margin-top: 60px;
    width: 100%;
    position: relative;
    text-align: center;
    background: #f8f9fa; /* 添加背景色，防止空白 */
}

.carousel-container {
    width: 1920px; /* 固定宽度 */
    margin: 0 auto; /* 居中显示 */
}

.carousel-container img {
    width: 1920px; /* 固定宽度 */
    height: 1018px; /* 固定高度 */
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-container img.active {
    display: block;
    opacity: 1;
}

.carousel-container img.fade-out {
    opacity: 0.5;
}

/* 响应式调整 */
@media (max-width: 1920px) {
    .carousel-container {
        width: 100%;
    }
    
    .carousel-container img {
        width: 100%;
        height: auto;
    }
}

/* APP简介样式调整 */
.app-intro {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.app-intro h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.intro-content {
    margin-top: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 页脚样式 */
footer {
    background: #333;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin: 0.5rem 0;
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 1rem;
    }

    .app-intro {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-block {
        flex-direction: column !important;
        padding: 2rem;
        margin: 1rem;
        gap: 2rem;
    }

    .feature-image {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info.left {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
    }

    .carousel {
        height: 300px; /* 在移动端减小高度 */
    }
}

/* 功能介绍页面样式 */
.features-page {
    padding-top: 80px;
    padding-bottom: 4rem;
    background: #f8f9fa;
}

.feature-block {
    display: flex;
    padding: 4rem;
    max-width: 1200px;
    margin: 2rem auto;
    align-items: center;
    gap: 4rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.feature-details p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #666;
}

.feature-image {
    flex: 0 0 350px;
    max-width: 350px;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-intro {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* 联系我们页面样式 */
.contact-page {
    padding-top: 60px;
}

.contact-banner {
    position: relative;
    width: 100%;
    height: 600px;
}

.contact-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

/* 联系我们页面样式调整 */
.contact-info.left {
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 400px;
}

/* 功能介绍页面调整 */
/* 删除这些代码：
.feature-block:nth-child(2),
.feature-block:nth-child(4) {
    flex-direction: row;
}

.feature-block:nth-child(1),
.feature-block:nth-child(3),
.feature-block:nth-child(5) {
    flex-direction: row-reverse;
}
*/

/* 修改导航栏hover效果颜色 */
nav ul li a:hover {
    color: var(--primary-color);
}

/* 修改APP简介标题和功能项颜色 */
.app-intro h2,
.feature-item h3 {
    color: var(--primary-color);
}

/* 修改功能介绍页面标题颜色 */
.feature-content h2,
.feature-intro {
    color: var(--primary-color);
}

/* 修改页脚链接hover效果 */
.footer-links a:hover {
    color: var(--primary-color);
} 