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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.qq-code img {height: 100%;border-radius: 10px}
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #3498db;
}

.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 ease;
    position: relative;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .active a {
    color: #3498db;
}

.nav-links .active a::after {
    width: 100%;
}

/* Hero区域样式 */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #3498db;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 资源分类区域 */
.categories {
    padding: 80px 0;
    background-color: #fff;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: #666;
}

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

.category-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.category-icon {
    width: 80px;
    height: 80px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background-color: #bbdefb;
}

.category-icon img {
    width: 40px;
    height: 40px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.category-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.category-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #2980b9;
}

/* 热门资源区域 */
.popular-resources {
    padding: 80px 0;
    background-color: #f5f7fa;
}

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

.resource-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.resource-img {
    width: 100%;
    height: 180px;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #3498db;
}
.resource-img img{height: 100%}
.resource-content {
    padding: 20px;
}

.resource-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.resource-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 学习路径区域 */
.learning-paths {
    padding: 80px 0;
    background-color: #fff;
}

.paths-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.path-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.path-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.path-icon {
    width: 100px;
    height: 100px;
    background-color: #e3f2fd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    flex-shrink: 0;
}

.path-icon img {
    width: 50px;
    height: 50px;
}

.path-content {
    flex: 1;
}

.path-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.path-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.path-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.step {
    background-color: #e3f2fd;
    color: #3498db;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.path-link {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.path-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 社区交流区域 */
.community {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.community-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.community h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.community p {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.qq-group {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.qq-group:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qq-group h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.qq-code {
    width: 200px;
    height: 200px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.qq-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.qq-desc {
    font-size: 14px;
    color: #666;
}
.github_icon{
    background: url('../../images/icon/daf.png') no-repeat;
    border-radius: 25px;
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    background-size: cover;
    -moz-background-size: cover;
    left: 5px;
    top: 5px;
}
#communication span,a{display: block}
/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.footer-about p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.footer-links h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* 网站数据统计样式 */
.stats-section {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    opacity: 0.1;
}

.stats-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.stats-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.stats-header p {
    font-size: 18px;
    opacity: 0.9;
    color: #fff;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stats-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.stats-item:hover::before {
    transform: scaleX(1);
}

.stats-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    color: #fff;
}

.stats-item:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(255, 255, 255, 0.3);
}

.stats-label {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 500;
}

.stats-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

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

.stats-item {
    animation: fadeInUp 0.6s ease-out;
}

.stats-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stats-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stats-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* 友情链接样式 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.friend-link-item {
    display: inline-block;
    padding: 5px 10px;
    /*background-color: #444;*/
    border-radius: 4px;
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: all 0.3s ease;
    max-width: 120px;
    text-align: center;
}

.friend-link-item:hover {
    /*background-color: #3498db;*/
    color: #fff;
    transform: translateY(-2px);
}

.friend-link-item img {
    max-width: 80px;
    max-height: 30px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 15px 15px;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin-left: 0;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    .resource-content{padding: 0!important;}
    .step{padding: 5px}
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .category-card,
    .resource-card {
        padding: 20px;
    }

    .path-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .path-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .qq-group {
        padding: 20px;
    }

    .qq-code {
        width: 150px;
        height: 150px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-section {
        padding: 40px 0;
    }

    .stats-header h2 {
        font-size: 28px;
    }

    .user-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-item {
        padding: 25px 15px;
    }

    .stats-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .stats-icon svg {
        width: 20px;
        height: 20px;
    }

    .stats-value {
        font-size: 24px;
    }
}