/* 首页样式 */

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(209 209 209 / 75%) 0%, rgba(0, 51, 128, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 80px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 48px;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    color: #f18e0f;
}

/* 搜索框 */
.hero-search {
    max-width: 640px;
    margin: 0 auto 32px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.search-box input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-box button {
    padding: 18px 40px;
    border-radius: 0;
    font-weight: 500;
}

/* 快速分类 */
.hero-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-categories span {
    font-size: 15px;
    opacity: 0.8;
}

.hero-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 平台数据 */
.stats-section {
    padding: 80px 0;
    background: #f7f7f7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 2fr));
    gap: 24px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 32px 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-number {
    font-size: 40px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    color: #8590a6;
    font-weight: 400;
}

/* 核心价值 */
.values-section {
    padding: 80px 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.value-card {
    background: #f7f7f7;
    padding: 28px;
    border-radius: 12px;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
}

.value-card:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.value-card p {
    color: #8590a6;
    line-height: 1.6;
    font-size: 14px;
}

.value-link {
    display: inline-block;
    margin-top: 12px;
    color: #0066FF;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.value-link:hover {
    text-decoration: underline;
}

/* 分类导航 */
.categories-section {
    padding: 80px 0;
    background: #f7f7f7;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.category-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.category-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.category-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.category-card p {
    color: #8590a6;
    font-size: 13px;
}

/* 热门技能 */
.skills-section {
    padding: 80px 0;
    background: white;
}

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

.view-all {
    color: #0066FF;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

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

/* 技能卡片 */
.skill-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.skill-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.skill-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 缩略图 */
.skill-card-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f7f7f7;
}

.skill-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-card-thumbnail img {
    transform: scale(1.05);
}

.skill-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #ccc;
}

/* 卡片内容 */
.skill-card-body {
    padding: 20px;
}

/* 徽章 */
.skill-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(0, 102, 255, 0.1);
    color: #0066FF;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* 标题 */
.skill-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 描述 */
.skill-card-desc {
    font-size: 14px;
    color: #8590a6;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部 */
.skill-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.skill-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8590a6;
}

.skill-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover !important;
}

.skill-stats {
    font-size: 13px;
    color: #8590a6;
}

/* CTA区域 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    font-weight: 400;
}

.cta-section .btn-primary {
    background: white;
    color: #0066FF;
    border-radius: 24px;
    font-weight: 500;
}

.cta-section .btn-primary:hover {
    background: #f7f7f7;
}

/* 新闻中心 */
.news-section {
    padding: 80px 0;
    background: #f7f7f7;
}

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

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
}

.news-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumbnail img {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
}

.news-card-body {
    padding: 20px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 102, 255, 0.1);
    color: #0066FF;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
}

.empty-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #9ca3af;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card-thumbnail {
        height: 160px;
    }
}
