/* ============================================================
   首页专属样式
   包含：Hero欢迎区/双栏布局/公告列表/推荐卡片
   ============================================================ */

/* ============================================================
   主页 - Hero 欢迎区
   ============================================================ */
.home-hero {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
    z-index: 5;
}
.home-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #eaf4ff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 30px rgba(80,160,255,0.3);
    margin-bottom: 10px;
    letter-spacing: 3px;
}
.home-hero .slogan {
    font-size: 14px;
    color: rgba(180,210,250,0.7);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}
.home-hero .stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
}
.home-hero .stat-item {
    text-align: center;
}
.home-hero .stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #7ab8f5;
    text-shadow: 0 0 15px rgba(80,160,255,0.4);
}
.home-hero .stat-label {
    font-size: 11px;
    color: rgba(170,200,240,0.6);
    margin-top: 2px;
}

/* ============================================================
   主页 - 双栏布局（公告 + 推荐）
   ============================================================ */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 700px) {
    .home-grid { grid-template-columns: 1fr; }
}

/* 公告列表 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
    color: #d0e4ff;
}
.notice-item:hover {
    background: linear-gradient(180deg, rgba(100,170,240,0.2), rgba(70,130,210,0.15));
    border-color: rgba(120,180,255,0.3);
}
.notice-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    background: linear-gradient(180deg, #f0a050, #d07020);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
.notice-badge.new { background: linear-gradient(180deg, #50c878, #2a9050); }
.notice-text {
    flex: 1;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-date {
    flex-shrink: 0;
    font-size: 11px;
    color: rgba(160,190,230,0.5);
}

/* 推荐软件卡片 */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 500px) {
    .recommend-grid { grid-template-columns: 1fr; }
}
.recommend-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 6px;
    background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(120,170,230,0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.recommend-card:hover {
    background: linear-gradient(160deg, rgba(100,170,240,0.2) 0%, rgba(70,130,210,0.12) 100%);
    border-color: rgba(120,180,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.recommend-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 8px;
    background: linear-gradient(180deg, #5a9fd8, #2a60a0);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 2px 6px rgba(0,0,0,0.3);
}
.recommend-icon svg { width: 22px; height: 22px; }
.recommend-info { min-width: 0; flex: 1; }
.recommend-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #eaf4ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}
.recommend-desc {
    font-size: 11px;
    color: rgba(170,200,240,0.6);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

