/**
 * Te-Xiao Black Theme - 组件样式
 */

/* 通知组件样式 */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 350px;
    min-width: 250px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 不同类型的通知样式 */
.notification-info {
    border-left: 4px solid #2196F3;
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-warning {
    border-left: 4px solid #FF9800;
}

.notification-error {
    border-left: 4px solid #f44336;
}

/* 文章/内容样式 */
.posts-container {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.post-item {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(30, 30, 30, 0.8));
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.post-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ff6b6b;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.post-meta span {
    position: relative;
}

.post-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.4);
}

.post-content {
    margin-bottom: 25px;
}

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-numbers {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-numbers:hover,
.page-numbers.current {
    background: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
}

.page-numbers.prev,
.page-numbers.next {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 142, 142, 0.8));
}

/* 无内容样式 */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(30, 30, 30, 0.8));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-posts h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.no-posts p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 按钮点击效果 */
.clicked {
    animation: clickPulse 0.3s ease-out;
}

@keyframes clickPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: scale(0.95);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Header隐藏效果 */
.header-container.header-hidden {
    transform: translateY(-100%);
}

/* 搜索框焦点状态 */
.search-form.focused {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* 移动端菜单打开时的body样式 */
body.menu-open {
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .notification-container {
        right: 10px;
        left: 10px;
    }
    
    .notification {
        max-width: none;
        min-width: auto;
    }
    
    .post-item {
        padding: 20px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-meta {
        font-size: 13px;
        gap: 10px;
    }
    
    .post-meta span:not(:last-child)::after {
        margin-left: 10px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .read-more-btn {
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }
    
    .pagination {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .page-numbers {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .post-item {
        padding: 15px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-excerpt {
        font-size: 14px;
    }
    
    .no-posts {
        padding: 40px 15px;
    }
    
    .no-posts h2 {
        font-size: 24px;
    }
}