/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

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

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-logo {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-logo:hover {
    color: #666;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-item {
    margin-left: 30px;
}

.navbar-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: #666;
}

.navbar-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #666;
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

/* 当前活跃链接样式 */
.navbar-link.active {
    color: #666;
}

.navbar-link.active::after {
    width: 100%;
}

/* 汉堡菜单按钮 - 默认隐藏 */
.navbar-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: #333;
}

/* 主要内容区域 */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 140px);
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.hero-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* 页脚样式 */
.footer {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-item {
        margin: 15px 0;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
    
    /* 响应式图片网格 */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .gallery-section h2 {
        font-size: 1.8rem;
    }
    
    /* 响应式地图样式 */
    .map-section {
        padding: 20px;
        margin: 30px auto;
    }
    
    .map-button {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .map-description {
        font-size: 1rem;
    }
    
    /* 响应式媒体画廊样式 */
    .media-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px auto 0;
        padding: 0 15px;
    }
    
    .media-item {
        padding: 20px;
    }
    
    .media-image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .media-item p {
        margin-bottom: 25px;
        font-size: 0.9rem;
    }
    
    .media-button {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    /* 响应式硬件资源样式 */
    .hardware-section {
        padding: 0 15px;
    }
    
    .hardware-section h2 {
        font-size: 1.5rem;
    }
    
    .hardware-item {
        padding: 15px;
        flex-direction: row; /* 保持行布局 */
        text-align: left;
        align-items: center; /* 调整为center以确保图标和标题对齐 */
        border-radius: 10px; /* 略微减小圆角 */
    }
    
    .hardware-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 12px; /* 图标与文字之间的间距 */
        margin-bottom: 0; /* 移除底部边距 */
        flex-shrink: 0; /* 防止图标被压缩 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hardware-content {
        text-align: left;
        flex-grow: 1;
        min-width: 0; /* 防止内容溢出 */
    }
    
    /* 确保图标和标题在同一行 */
    .hardware-content h3 {
        font-size: 1rem;
        margin-bottom: 5px; /* 标题与描述之间的间距 */
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* 防止标题过长导致换行 */
    }
    
    /* 确保小字介绍单独占一行 */
    .hardware-content p {
        font-size: 0.8rem;
        margin-bottom: 0;
        display: block;
        line-height: 1.4;
        white-space: normal; /* 允许文本正常换行 */
        word-wrap: break-word; /* 允许长单词换行 */
        clear: both; /* 确保不会与标题在同一行 */
        margin-top: 0; /* 移除顶部边距 */
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section h1,
.hero-section p {
    animation: fadeIn 0.8s ease forwards;
}

.hero-section p {
    animation-delay: 0.2s;
    opacity: 0;
}

/* 图片展示区域样式 */
.gallery-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

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

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-description {
    padding: 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* 页面内容容器样式 */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.page-content p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 地图展示区域样式 */
.map-section {
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.map-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.map-image:hover {
    transform: scale(1.02);
}

.map-description {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 50px;
    text-align: center;
    padding: 0 10px;
}

.map-button {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

.map-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(51, 51, 51, 0.4);
}

/* 副标题样式 */
.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

/* 硬件资源展示区域样式 */
.hardware-section {
    max-width: 1000px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.hardware-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}

.hardware-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hardware-item {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0; /* 确保没有额外的底部边距 */
}

.hardware-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hardware-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.hardware-item:hover .hardware-icon {
    background-color: #333;
    color: #fff;
    transform: scale(1.1);
}

.hardware-content {
    flex-grow: 1;
    text-align: left;
}

.hardware-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.hardware-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 媒体画廊样式 */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.media-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.media-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.media-item:hover .media-image {
    transform: scale(1.05);
}

.media-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 10px;
    flex-grow: 1;
}

.media-button {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

.media-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(51, 51, 51, 0.4);
}

/* QQ群引导板块样式 */
.qq-section {
    max-width: 1000px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

/* 分界线 */
.qq-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 40px;
}

.qq-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.qq-content {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.qq-icon {
    flex-shrink: 0;
    margin-right: 30px;
}

.qq-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.qq-info {
    text-align: left;
    flex-grow: 1;
    padding: 0;
}

.qq-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    padding: 0;
    margin-left: 0;
    margin-top: 0;
}

.qq-info p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0;
    margin-top: 0;
    margin-left: 0;
}

/* QQ按钮样式 */
.qq-button {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.qq-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(51, 51, 51, 0.4);
}

/* QQ群引导板块响应式设计 */
@media screen and (max-width: 768px) {
    .qq-section {
        padding-top: 30px;
        margin: 40px auto 30px;
    }
    
    .qq-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .qq-content {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .qq-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .qq-icon img {
        width: 60px;
        height: 60px;
    }
    
    .qq-info {
        text-align: center;
    }
    
    .qq-info h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .qq-info p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .qq-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

/* 页脚导航栏样式 */
.footer-nav {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 40px 0 20px; /* 增加左右内边距，左侧也增加一些间距 */
    border-right: 1px solid #444;
}

.footer-nav h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

/* 在桌面端移除最后一个板块的右侧边框 */
.footer-nav:last-child,
.wechat-section:last-child {
    border-right: none;
    padding-right: 20px; /* 保持右侧内边距一致 */
}

.footer-nav-list {
    list-style: none;
}

.footer-nav-item {
    margin-bottom: 10px;
}

.footer-nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: #fff;
}

/* 微信公众号关注引导样式 */
.wechat-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 40px 0 20px; /* 增加左右内边距，左侧也增加一些间距 */
    border-right: 1px solid #444;
}

.wechat-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.wechat-content {
    display: flex;
    align-items: center;
}

.wechat-icon {
    margin-right: 25px; /* 增加图标与文字之间的间距 */
}

.wechat-icon img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
}

.wechat-info {
    flex: 1;
}

.wechat-info p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* 版权信息样式 */
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav,
    .wechat-section {
        min-width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
        border-right: none;
    }
    
    /* 修改快速导航在手机上水平显示 */
    .footer-nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-nav-item {
        margin: 0 10px 10px 0;
    }
    
    .wechat-content {
        flex-direction: column;
        text-align: center;
    }
    
    .wechat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .wechat-icon img {
        width: 50px;
        height: 50px;
    }
}