* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color: #333;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 17px;
    font-weight: bold;
}

.nav-links a:hover {
    color: #1890ff;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-btn {
    padding: 6px 12px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 横幅 */
.banner {
    position: relative;
    overflow: hidden;
}

.banner-slider {
    width: 100%;
    height: 400px;
}

.slider-container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 400px;
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    position: relative;
    top: -50px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1890ff;
    transform: scale(1.2);
}

.dot:hover {
    background: #40a9ff;
}

/* 核心设计分类 */
.categories {
    padding: 40px 0;
    background: #f5f5f5;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-item {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 32px;
    color: #1890ff;
    margin-bottom: 15px;
}

.category-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.category-desc {
    font-size: 14px;
    color: #666;
}

/* 推荐内容 */
.recommended {
    padding: 40px 0 15px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header a{
    text-decoration: none;
    color: #1890ff;
    font-size: 14px;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.pagination-controls {
    display: flex;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d9d9d9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    border-color: #d9d9d9;
    color: inherit;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.recommended-item {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.recommended-item:hover {
    transform: translateY(-5px);
}

.recommended-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.recommended-content {
    padding: 15px;
}

.recommended-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.recommended-content .recommended-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.recommended-content .recommended-desc {
    font-size: 14px;
    color: #666;
}

.recommended-overlay .recommended-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.recommended-overlay .recommended-desc {
    font-size: 14px;
    opacity: 0.8;
    color: white;
}

/* 特色分类 */
.featured-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.featured-category {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-category-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.featured-category-content {
    padding: 15px;
}

.featured-category-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 创意大赛 */

.contest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contest-item {
    background: white;
    /* border-radius: 8px; */
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
}

.contest-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.contest-content {
    padding: 15px 0px;
}

.contest-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contest-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.contest-desc {
    font-size: 14px;
    color: #666;
}

/* 设计胜览 */
.design-showcase {
    padding: 40px 0;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.design-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.design-item.image-item {
    position: relative;
    display: inline-block;
}

.design-item .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    box-sizing: border-box;
}
.design-item .image-overlay a{
    color: white;
}

.design-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.design-content {
    padding: 15px;
}

.design-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.design-left {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
}

.design-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.design-year {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.design-right {
    flex: 1;
}

.design-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.design-desc {
    font-size: 14px;
    color: #666;
}

/* 最新大赛 */
.contest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.contest-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.contest-header a {
    text-decoration: none;
    color: #1890ff;
    font-size: 14px;
}

.contest-content {
    display: flex;
    gap: 30px;
}

.contest-featured {
    flex: 1;
}

.contest-featured img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.contest-featured h3 {
    margin-bottom: 10px;
}

.contest-featured p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* 特色大赛卡片样式 */
.contest-featured-card {
    position: relative;
    display: inline-block;
}

.contest-featured-title {
    color: white;
    /* background: rgba(0,0,0,0.6); */
    margin: 0;
}
.contest-featured-title a,.contest-featured-desc  a{color: white;}
.contest-featured-desc {
    color: white;
    /* background: rgba(0,0,0,0.6); */
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.contest-list {
    flex: 1;
}

.contest-list .contest-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
}

.contest-list .contest-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contest-list .contest-item .contest-left {
    width: 80px;
    flex-shrink: 0;
}

.contest-list .contest-item .contest-date {
    font-size: 14px;
    color: #1890ff;
    margin-bottom: 5px;
}

.contest-list .contest-item .contest-year {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.contest-list .contest-item .contest-right {
    flex: 1;
}

.contest-list .contest-item h4 {
    margin: 0 0 5px 0;
}

.contest-list .contest-item .contest-desc {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    margin-top: 8px;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 40px 0 20px 0 ;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: white;
}

.footer-contact {
    text-align: left;
    font-size: 14px;
    color: #ccc;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-qrcodes {
    display: flex;
    gap: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item p {
    margin-top: 5px;
    font-size: 12px;
    color: #ccc;
}

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

.qrcode {
    width: 100px;
    height: 100px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-btn {
    width: 44px;
    height: 44px;
    background: #1890ff;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.floating-btn:hover {
    background: #40a9ff;
    transform: scale(1.1);
}

.qrcode-btn {
    position: relative;
}

.qrcode-popup {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qrcode-popup img {
    width: 120px;
    height: 120px;
    display: block;
}

.qrcode-btn:hover .qrcode-popup {
    display: block;
    opacity: 1;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: white;
}

@media (max-width: 768px) {
    .floating-buttons {
        right: 10px;
        bottom: 10px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
    }
    
    .qrcode-popup {
        right: 50px;
    }
    
    .qrcode-popup img {
        width: 100px;
        height: 100px;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommended-grid,
    .featured-categories,
    .contest-grid,
    .design-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}


/* 单页内容 start */
 .news-detail {
            padding: 40px 0;
        }
        
        .news-container {
            display: flex;
            gap: 30px;
        }
        
        .news-main {
            flex: 1;
            background: white;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .news-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
        }
        
        .news-meta {
            display: flex;
            gap: 20px;
            color: #999;
            font-size: 14px;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .news-content {
            font-size: 16px;
            line-height: 1.8;
            color: #333;
        }
        
        .news-content p {
            margin-bottom: 20px;
        }
        
        .news-content img {
            max-width: 100%;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .news-sidebar {
            width: 350px;
            flex-shrink: 0;
        }
        
        .sidebar-box {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .sidebar-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #1890ff;
            color: #333;
        }
        
        .news-list {
            list-style: none;
        }
        
        .news-list li {
            padding: 12px 0;
            border-bottom: 1px solid #eee;
        }
        
        .news-list li:last-child {
            border-bottom: none;
        }
        
        .news-list a {
            text-decoration: none;
            color: #333;
            font-size: 14px;
            display: block;
            transition: color 0.3s ease;
        }
        
        .news-list a:hover {
            color: #1890ff;
        }
        
        .news-list .news-date {
            color: #999;
            font-size: 12px;
            margin-top: 5px;
        }
/* 单页内容 start */
