/* CSS 变量定义 */
:root {
    --primary-color: #4481eb;
    --primary-light: #6fa8f7;
    --primary-dark: #2d5cb8;
    --secondary-color: #04befe;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* 最近更新页面样式 */
.litheme-recent-updates {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
    min-height: 100vh;
    margin-top: -16px;
}

/* 页面头部样式 */
.update-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0 7rem;
    position: relative;
    color: #fff;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.update-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0.6;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-description {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.breadcrumb-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.15);
}

.breadcrumb-item i {
    font-size: 0.875rem;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* 内容区域样式 */
.update-content {
    padding: 0 0 4rem;
    position: relative;
}

.update-list-wrapper {
    position: relative;
    margin-top: -5rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 10;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.title-icon i {
    font-size: 24px;
    color: white;
}

.title-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.section-meta {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: white;
    color: var(--gray-700);
    font-size: 0.9rem;
    min-width: 140px;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(68, 129, 235, 0.1);
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 应用列表样式 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.app-card {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(20px);
}

.app-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.app-card-inner {
    padding: 1.5rem;
}

.app-header {
    display: flex;
    margin-bottom: 1rem;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 1.25rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.app-card:hover .app-icon {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover .app-icon img {
    transform: scale(1.1);
}

.no-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 2rem;
    color: #adb5bd;
}

.app-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
}

.new-badge {
    background: linear-gradient(135deg, var(--danger-color), #ff8a80);
    color: #fff;
    animation: pulse 2s infinite;
}

.new-badge i {
    font-size: 0.65rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.app-info {
    flex-grow: 1;
    min-width: 0; /* 防止内容溢出 */
}

.app-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.app-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-title a:hover {
    color: var(--primary-color);
}

/* 版本号样式 */
.app-title .app-version {
    display: inline-flex;
    align-items: center;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-title .app-version::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.app-card:hover .app-title .app-version::before {
    left: 100%;
}

.app-card:hover .app-title .app-version {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.app-category, .app-update-time, .app-rating {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 0.375rem 0.875rem;
    border-radius: 25px;
    background-color: var(--gray-100);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    gap: 0.375rem;
}

.app-category {
    text-decoration: none;
}

.app-category:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.app-rating {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
    color: white;
    font-weight: 600;
}

.app-rating i {
    color: #fff;
}

.app-meta i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.app-desc {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 1rem 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-600);
    padding: 0.375rem 0.875rem;
    border-radius: 25px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
    white-space: nowrap;
    transition: all 0.3s ease;
    gap: 0.375rem;
}

.app-tag:hover {
    background-color: var(--gray-200);
    transform: translateY(-1px);
}

.app-tag i {
    font-size: 0.875rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.platform-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.platform-tag i {
    color: white;
}

.size-tag {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
    border-color: transparent;
}

.size-tag i {
    color: white;
}

.lang-tag {
    background: linear-gradient(135deg, var(--secondary-color), #0ea5e9);
    color: white;
    border-color: transparent;
}

.lang-tag i {
    color: white;
}

.download-tag {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

.download-tag i {
    color: white;
}

.view-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transition: all 0.3s ease;
    white-space: nowrap;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.view-detail-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.view-detail-btn:hover::before {
    left: 100%;
}

.view-detail-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.view-detail-btn i {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.view-detail-btn:hover i:last-child {
    transform: translateX(4px);
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.b2-pagenav {
    display: inline-flex;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* 空状态样式 */
.empty-state {
    padding: 6rem 2rem;
    text-align: center;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
}

.empty-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.empty-icon i {
    font-size: 3rem;
    color: var(--gray-400);
    z-index: 1;
    position: relative;
}

.empty-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.empty-content p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.back-to-apps {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.back-to-apps:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(68, 129, 235, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(68, 129, 235, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

.app-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.update-header {
    animation: slideInFromLeft 0.8s ease-out;
}

.section-header {
    animation: slideInFromRight 0.8s ease-out 0.2s both;
}

.title-icon {
    animation: pulse 3s infinite;
}

.app-icon:hover {
    animation: float 2s ease-in-out infinite;
}

/* 响应式调整 */
@media (min-width: 992px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .update-header {
        padding: 3.5rem 0 6rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .update-list-wrapper {
        margin-top: -4.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .section-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .update-header {
        padding: 3rem 0 5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .header-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .breadcrumb-nav {
        font-size: 0.85rem;
        padding: 0.4rem 1.25rem;
    }
    
    .update-list-wrapper {
        padding: 1.5rem;
        margin-top: -4rem;
        border-radius: 0.75rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-title i {
        font-size: 1.5rem;
    }
    
    .app-card-inner {
        padding: 1.25rem;
    }
    
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .app-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }
    
    .app-meta {
        justify-content: center;
    }
    
    .app-desc {
        text-align: center;
        line-clamp: 3;
    }
    
    .app-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .app-tags {
        justify-content: center;
        width: 100%;
    }
    
    .view-detail-btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    .sort-select {
        min-width: 160px;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .update-header {
        padding: 2.5rem 0 4.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
    
    .update-list-wrapper {
        padding: 1.25rem;
        margin-top: -3.5rem;
    }
    
    .app-title {
        font-size: 1.2rem;
    }
    
    .app-title .app-version {
        font-size: 0.65em;
        padding: 0.15rem 0.5rem;
        margin-left: 0.4rem;
        border-radius: 10px;
    }
    
    .app-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .app-category, .app-update-time {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
} 