.welcome-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/css/all/bga.png') center/cover no-repeat fixed;
    animation: fadeInOverlay 0.6s ease forwards;
}

.welcome-icon-img {
    display: block;
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
}

.welcome-overlay::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.welcome-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 50px 80px;
    border-radius: 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}

.welcome-title {
    font-size: 2rem;
    font-weight: bold;
    color: #111;
    margin: 0 0 30px 0;
    font-family: "SimHei", "黑体", sans-serif;
}

.enter-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.85), rgba(103, 58, 183, 0.85));
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

.enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutOverlay {
    from { opacity: 1; }
    to { opacity: 0; }
}

body::-webkit-scrollbar {
    display: none;
}

/* 全局移除所有焦点和激活状态的线条 */
*:focus,
*:active,
*:focus-visible {
    outline: none !important;
}
body, html {
    background-image: url('/css/all/bga.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 特别针对文章项和所有可点击元素，移除激活时的线条/背景变化 */
.blog-item:active,
.blog-item:focus,
.blog-item:focus-visible,
.friendly-link-item:active,
.friendly-link-item:focus,
.friendly-link-item:focus-visible,
.category-tab:active,
.category-tab:focus,
.category-tab:focus-visible,
.btn:active,
.btn:focus,
.enter-btn:active,
.enter-btn:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* 移除移动端点击时的灰色半透明背景 */
* {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background-color: rgba(243, 216, 13, 0.58);
    color: #000;
}

::-moz-selection {
    background-color: rgba(243, 216, 13, 0.58);
    color: #000;
}

/* 友情链接样式 - 液态玻璃版 */
.friendly-links-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    flex: 1;
    align-content: flex-start;
}

.friendly-link-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #222;
    padding: 12px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    word-break: break-all;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.friendly-link-item:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 40px 0;
    box-sizing: border-box;
}

.container::before {
    display: none;
}

.left-section, .center-section {
    position: relative;
    z-index: 2;
}

/* 左侧窗口 - 液态玻璃 */
.left-section {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 20px;
    border-radius: 28px;
    color: #222;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.reader-count {
    margin-bottom: 20px;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 主窗口 - 液态玻璃 */
.center-section {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 25px 30px;
    border-radius: 32px;
    color: #222;
    text-align: left;
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.center-section:first-of-type {
    height: 560px;
    overflow-y: auto;
}

.center-section:first-of-type .blog-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.center-section:last-of-type {
    margin-top: 30px;
    min-height: 200px;
    max-height: 280px;
    display: flex;
    flex-direction: column;
}

.friendly-links-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-top: 20px;
}

/* 滚动条样式 */
.center-section::-webkit-scrollbar,
.blog-list::-webkit-scrollbar,
.friendly-links-container::-webkit-scrollbar {
    width: 6px;
}

.center-section::-webkit-scrollbar-track,
.blog-list::-webkit-scrollbar-track,
.friendly-links-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.center-section::-webkit-scrollbar-thumb,
.blog-list::-webkit-scrollbar-thumb,
.friendly-links-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.center-section::-webkit-scrollbar-thumb:hover,
.blog-list::-webkit-scrollbar-thumb:hover,
.friendly-links-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.center-section h1,
.center-section h2 {
    font-size: 28px;
    margin: 0 0 20px 0;
    text-align: center;
    color: #111;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 分类标签 - 液态玻璃 */
.category-tabs {
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-tabs-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    flex: 1;
}

.category-tabs-container::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    color: #222;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
}

.category-tab.active {
    background: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    color: #000;
    border-color: rgba(255, 255, 255, 0.6);
}

.category-tabs-nav {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.category-tabs-nav:hover {
    background: rgba(0, 0, 0, 0.55);
}

.category-tabs-nav-prev {
    order: 1;
}

.category-tabs-container {
    order: 2;
}

.category-tabs-nav-next {
    order: 3;
}

/* 文章列表项 - 液态玻璃 */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-item {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    overflow: hidden;
    min-height: 120px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: none;
}

/* 移除文章项点击时的所有视觉效果 */
.blog-item:active {
    transform: none;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-item:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.blog-item-content {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 20px;
}

.blog-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    overflow: hidden;
}

.blog-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-icon {
    font-size: 32px;
    color: #555;
}

.blog-info {
    flex: 1;
    min-width: 0;
}

.blog-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #111;
    word-wrap: break-word;
    line-height: 1.3;
}

.blog-small-title {
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.4;
}

.blog-date {
    margin: 6px 0 0 0;
    color: #666;
    font-size: 12px;
}

.no-articles, .error {
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 40px 20px;
}

/* 开场页面 - 液态玻璃 */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.welcome-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 50px 80px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.welcome-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.welcome-subtitle {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* 动画类 */
.fade-out {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}

.fade-in {
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

.fly-in {
    animation: flyIn 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes flyIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error {
    color: #d32f2f;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .left-section {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 20px;
        width: 90%;
    }
    
    .container {
        padding: 20px 0;
    }
    
    .center-section {
        padding: 20px;
    }
    
    .friendly-links-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .friendly-link-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .welcome-content {
        padding: 30px 40px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .blog-item-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .category-tabs-nav {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .friendly-links-list {
        grid-template-columns: 1fr;
    }
    
    .welcome-content {
        padding: 20px 30px;
    }
    
    .enter-btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
}