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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    /* border-bottom: 1px solid #f0f0f0; */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.header-container {
    /* max-width: 1200px; */
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}
.header-link {
   font-weight: bold;
   color: #333333;
   font-size: 14px;
   margin-right: 20px;
}
.header-link:hover {
    color: #9852FF;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo img {
    width: 136px;
    height: 40px;
}
.logo-text-small {
    font-size: 14px;
    color: #666666;
    margin-bottom: 2px;
    font-weight: 400;
}

.logo-text-large {
    font-size: 28px;
    font-weight: 600;
    color: #333333;
    letter-spacing: 1px;
}

.search-bar {
    flex: 1;
    max-width: 470px;
    height: 40px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 11px 50px 11px 20px;
   border: none;
    border-radius: 24px;
    font-size: 16px;
    color: #333333;
    background-color: #F6F6F6;
    outline: none;
    transition: all 0.3s;
}
.search-input::placeholder {
    color: #B4B4B4;
}

.search-input:focus {
    /* border-color: #9852FF; */
    /* background-color: #ffffff; */
}

.search-icon {
    position: absolute;
    right: 18px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: url(./images/search.png) no-repeat center center;
    background-size: 20px;
}

.login-btn {
    padding: 0 20px 0 40px; 
    height: 40px;
    color: #333333;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
   border-radius: 24px;
   background: url(./images/btn.png) no-repeat 18px 11px;
   background-size: 18px;
   transition: background-image 0.3s;
   /* transition: background-color 0.3s; */
}

.login-btn:hover {
    background: url(./images/btn_hover.png) no-repeat 18px 11px #F7F2FF;
   background-size: 18px;
}

/* Main Content */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Banner Section */
.banner-section {
    width: 100%;
}

.banner {
    position: relative;
    /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); */
    /* border-radius: 12px; */
    overflow: hidden;
   height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 1;
    max-width: 400px;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: 2px;
}

.banner-subtitle {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 32px;
    font-weight: 400;
}

.banner-btn {
    padding: 14px 32px;
    background-color: #9852FF;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-btn:hover {
    background-color: #9852FF;
}

.banner-image {
    width: 100%;
    /* height: 280px; */
    background: linear-gradient(135deg, rgba(22, 25, 50, 1) 0%, rgb(59, 67, 115, 1) 100%);
    position: relative;
    flex-shrink: 0;
}
.banner-image img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: 280px;
    object-fit: center;
}
.banner-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Recommendations Section */
.recommendations-section {
    margin: 40px 0 0 0;
}

.section-title {
    font-size: 16px;
    font-weight: "bold";
    line-height: 18px;
    color: #333333;
   margin-bottom: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    /* height: 304px; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.card-image img {
    width: 100%;
    /* height: 304px; */
    object-fit: cover;
}

/* 用不同背景色代替图片 */
/* .card-image-1 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.card-image-2 {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
}

.card-image-3 {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
}

.card-image-4 {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.card-image-5 {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.card-image-6 {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.card-image-7 {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.card-image-8 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.card-image-9 {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
} */

.card-content {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 10px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    height: 20px;
}

.card-author-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /* background: linear-gradient(135deg, #9852FF 0%, #a78bfa 100%); */
    flex-shrink: 0;
}
.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 不同头像颜色 */
.card-avatar-1 {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.card-avatar-2 {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.card-avatar-3 {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

.card-avatar-4 {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.card-avatar-5 {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.card-avatar-6 {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.card-avatar-7 {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.card-avatar-8 {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

.card-avatar-9 {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

.card-author {
    font-weight: 400;
}

.card-likes-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 30px;
}

.card-like-icon {
   width: 20px;
   height: 20px;
   background: url(./images/zan.png) no-repeat center center;
   background-size: 16px;
}

.card-likes {
    font-size: 12px;
    line-height: 16px;
    color: #999999;
}

/* Footer */
.footer {
    /* background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0; */
    padding: 12px 0 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-copyright,.footer-icp {
    font-size: 12px;
    color: #999;
    line-height: 22px;
}

.footer-icp {
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 18px;
}

.footer-link {
    font-size: 12px;
    line-height: 18px;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s;
    text-decoration: underline;
}

.footer-link:hover {
    color: #9852FF;
}

.footer-separator {
    color: #cccccc;
    font-size: 13px;
}

.footer-qrcode {
    width: 88px;
    height: 88px;
    display: block;
    margin: 0 auto 12px auto;
}

.about-section {
    padding: 40px 0;
}
.about-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}
.about-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}
.about-section p {
    font-size: 14px;
    color: #333333;
    margin-bottom: 10px;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner-content {
        /* flex-direction: column;
        text-align: center; */
    }
    
    .banner-image {
       
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
    }
    
    .main-content {
        padding: 0 20px;
    }
    
    .banner {
        /* padding: 40px 30px; */
        /* height: 280px; */
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    
}
/* @media (max-width: 700px) {
    .header,.footer-content {
        display:none
    }
   
} */