/* ============================================================
   home.css - 首页专用样式（1:1 取自 4dj.net 首页内联样式）
   文件名：home.css
   所属模板：xiaok（小K风格导航）
   创建时间：2026-09-28
   功能描述：最新收录 latest-grid / latest-card 与友情链接 friend-links 样式
   ============================================================ */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 4px 0;
}
.latest-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 36px 12px 14px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #eef2f6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    min-height: 66px;
}
.latest-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #4a6cf7, #7c3aed);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}
.latest-card:hover::before { transform: scaleY(1); }
.latest-card:hover {
    border-color: #d0d9f0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(74, 108, 247, 0.10);
}
.latest-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.latest-icon img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.latest-card:hover .latest-icon { border-color: #d0d9f0; box-shadow: 0 4px 12px rgba(74, 108, 247, 0.12); }
.latest-info { flex: 1; min-width: 0; overflow: hidden; }
.latest-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.latest-card:hover .latest-name { color: #4a6cf7; }
.latest-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1; }
.latest-type {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.latest-type.type-site { background: linear-gradient(135deg, #e8f0ff, #d6e4ff); color: #4a6cf7; }
.latest-type.type-ai { background: linear-gradient(135deg, #f0e8ff, #e2d6ff); color: #7c3aed; }
.latest-type.type-news { background: linear-gradient(135deg, #fff3e0, #ffe0b3); color: #d97706; }
.latest-time { color: #a0aec0; font-size: 10px; white-space: nowrap; }
.latest-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #cbd5e0;
    transition: all 0.3s ease;
    opacity: 0.6;
}
.latest-card:hover .latest-arrow { color: #4a6cf7; opacity: 1; transform: translateY(-50%) translateX(3px); }
@media (max-width: 1400px) { .latest-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1200px) { .latest-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .latest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .latest-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .latest-card { padding: 10px 26px 10px 10px; min-height: 58px; gap: 8px; border-radius: 10px; }
    .latest-icon { width: 32px; height: 32px; border-radius: 8px; }
    .latest-name { font-size: 12px; }
    .latest-arrow { font-size: 14px; right: 8px; }
    .latest-type { font-size: 9px; padding: 1px 6px; }
    .latest-time { font-size: 9px; }
}
@media (max-width: 420px) {
    .latest-grid { gap: 6px; }
    .latest-card { padding: 8px 22px 8px 8px; min-height: 52px; }
    .latest-icon { width: 28px; height: 28px; }
    .latest-name { font-size: 11px; }
    .latest-meta { gap: 4px; }
}
body.dark-mode .latest-card { background: linear-gradient(135deg, #1a2a4a 0%, #16213e 100%); border-color: #2a3a5a; }
body.dark-mode .latest-card:hover { background: linear-gradient(135deg, #1e2a4a 0%, #1a2a4a 100%); border-color: #4a6cf7; box-shadow: 0 10px 28px rgba(74, 108, 247, 0.2); }
body.dark-mode .latest-icon { background: #16213e; border-color: #2a3a5a; }
body.dark-mode .latest-name { color: #e2e8f0; }
body.dark-mode .latest-card:hover .latest-name { color: #6a8cff; }
body.dark-mode .latest-arrow { color: #4a5568; }
body.dark-mode .latest-card:hover .latest-arrow { color: #6a8cff; }
body.dark-mode .latest-time { color: #718096; }
body.dark-mode .latest-type.type-site { background: linear-gradient(135deg, rgba(74,108,247,0.2), rgba(74,108,247,0.1)); color: #6a8cff; }
body.dark-mode .latest-type.type-ai { background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(124,58,237,0.1)); color: #a78bfa; }
body.dark-mode .latest-type.type-news { background: linear-gradient(135deg, rgba(217,119,6,0.2), rgba(217,119,6,0.1)); color: #f6ad55; }
.friend-links-section { margin-top: 10px; }
.friend-links-list { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; padding: 4px 0; }
.friend-link-text {
    color: #4a5568;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.friend-link-text:hover { color: #4a6cf7; background: #f0f5ff; }
.friend-links-sep { color: #cbd5e0; margin: 0 2px; }
body.dark-mode .friend-link-text { color: #a0aec0; }
body.dark-mode .friend-link-text:hover { color: #6a8cff; background: rgba(74,108,247,0.10); }
body.dark-mode .friend-links-sep { color: #4a5568; }
