/* 作者：json */

/* 头部样式 - 与index.css相同 */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* 导航菜单样式 - 与index.css相同 */
.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 - 与index.css相同 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 横幅区域样式 */
.banner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 3rem;
}

.banner {
    position: relative;
    width: 100%;
    height: 500px;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/轮播2.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-color);
    width: 80%;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--light-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 设备内容区域样式 */
.devices-content {
    padding: 3rem 0;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.devices-content h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

/* 设备描述样式 */
.devices-description {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.8;
    padding: 0 1.5rem;
}

/* 设备网格布局 */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 设备卡片样式 */
.device-card {
    background-color: var(--light-blue);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    display: flex;
    flex-direction: column;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 滚动动画相关样式 */
.device-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.devices-description.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 设备图片样式 */
.device-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.device-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.device-card:hover .device-img {
    transform: scale(1.05);
}

/* 设备内容样式 */
.device-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.device-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.device-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.device-content .btn {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.device-content .btn:hover {
    background-color: var(--accent-color);
}

/* 页脚样式 - 与index.css相同 */
.footer {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.copyright p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 - 与index.css相同 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 0;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    /* 设备网格响应式调整 */
    .device-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .devices-description {
        padding: 0 1.5rem;
    }
    
    .device-image {
        height: 200px;
    }
    
    .device-content h3 {
        font-size: 1.2rem;
    }
}

/* 平板设备响应式设计 */
@media (min-width: 769px) and (max-width: 1024px) {
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
    }
}