/*首页start*/
/* 通知栏 */
.notice-bar {
    flex: 1;
    margin: 0 20px;
    position: relative;
    overflow: hidden;
    height: 25px;
}

.notice-list {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 25px;
}

.notice-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.notice-item a:hover {
    text-decoration: underline;
}

/* 特殊公告样式 */
.notice-item.hot {
    color: #ffdd59;
}

.notice-item.hot a {
    color: #ffdd59;
    font-weight: 600;
}

/* 移动端公告栏 */
.mobile-notice-bar {
    display: none;
    background: var(--gradient);
    color: white;
    padding: 0 20px;
    margin: 80px 0 20px; 
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    height: 44px; 
    align-items: center;
    transition: margin-top 0.4s ease;
}

.stats-hidden .mobile-notice-bar {
    margin-top: 20px;  
}

.mobile-notice-list {
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    top: 0;
    transition: transform 0.5s ease;
}

.mobile-notice-bar .notice-item {
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

/* 模块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 90px 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: margin-top 0.4s ease;
}

.stats-hidden .section-header {
    margin-top: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.more-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.more-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* 最近更新 */
.recent-updates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.update-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.update-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.update-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.update-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.update-item:hover .update-img img {
    transform: scale(1.05);
}

.update-content {
    padding: 20px;
}

.update-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.update-title a{
        text-decoration: none;
        color: #262626;
        font-weight: 600;  
        }
.update-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.update-price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* 最新文章 */
.recent-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.article-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    cursor: pointer;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.article-img {
    width: 120px;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-item:hover .article-img img {
    transform: scale(1.05);
}

.article-content {
    padding: 15px;
    flex: 1;
}
.article-content a{
        text-decoration: none;
        color: #262626;
        font-weight: 600;  
        }
.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 15px;
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.article-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 友情链接 */
.friend-links {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 50px;
}

.friend-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.friend-links-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.apply-link {
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.apply-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.link-item {
    padding: 20px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.link-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
}

.link-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.link-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-content {
    flex: 1;
}

.link-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: .9rem;
}

.link-desc {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.5;
}

/* 页面1特有响应式 */
@media (max-width: 992px) {
    .recent-updates {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .notice-bar {
        display: none;
    }
    
    .mobile-notice-bar {
        display: flex;
        margin: 80px 0 20px;
    }
    
    .stats-hidden .mobile-notice-bar {
        margin-top: 20px;
    }
    
    .stats-hidden .section-header {
        margin-top: 20px;
    }
    
    .section-header {
        margin-top: 30px;
    }
    
    .recent-updates {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .mobile-notice-bar .notice-item {
        font-size: 0.85rem;
    }
    
    .mobile-notice-bar .notice-item svg {
        width: 14px;
        height: 14px;
    }
}
/*首页end*/