/* Here is your custom css styles. */

/* ==================== Liquid Glass Header ==================== */
/* 头部导航栏容器 - 悬浮居中 */
header.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 997;
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    pointer-events: none;
}

/* 导航栏液态玻璃效果 */
header.navbar-fixed nav#headNav {
    pointer-events: auto;
    max-width: 1140px;
    width: calc(100% - 40px);
    min-width: 600px;
    padding: 0 30px;
    margin: 0 auto;
    border-radius: 50px;
    /* 毛玻璃/液态玻璃效果 */
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* 玻璃边框光泽 */
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    /* 平滑过渡动画 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 滚动后的深色玻璃效果 */
header.navbar-fixed nav#headNav.bg-color:not(.nav-transparent) {
    background: rgba(30, 30, 30, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* 导航容器调整 - logo和菜单垂直居中 */
header.navbar-fixed nav#headNav .nav-wrapper {
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 导航项样式 */
header.navbar-fixed nav#headNav .nav-menu li a {
    position: relative;
    border-radius: 20px;
    margin: 0 2px;
    padding: 6px 14px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    z-index: 2;
}

header.navbar-fixed nav#headNav .nav-menu li a:hover {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 液态玻璃滑块指示器 - 由 JS 控制 */
.nav-slider-indicator {
    position: absolute;
    height: 35px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.nav-slider-indicator.active {
    opacity: 1;
}

/* Logo样式调整 */
header.navbar-fixed nav#headNav .brand-logo {
    padding-left: 10px;
}

header.navbar-fixed nav#headNav .brand-logo .logo-span {
    font-size: 1.6rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 小屏幕适配 */
@media only screen and (max-width: 992px) {
    header.navbar-fixed nav#headNav {
        min-width: auto;
        width: calc(100% - 40px);
        max-width: none;
        padding: 0 15px;
        border-radius: 30px;
    }

    /* 中小屏幕 header 布局 */
    header.navbar-fixed nav#headNav .nav-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        height: 56px;
    }

    /* 汉堡菜单按钮定位到左侧 */
    header.navbar-fixed nav#headNav .sidenav-trigger {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    /* 移动端搜索按钮 - 定位到右侧垂直居中 */
    .mobile-search-trigger {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        color: #fff;
        font-size: 1.1rem;
        padding: 0 !important;
        border-radius: 50%;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
    }

    .mobile-search-trigger i {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        line-height: inherit !important;
        margin: 0 !important;
    }

    .mobile-search-trigger:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    /* Logo 居中 */
    header.navbar-fixed nav#headNav .brand-logo {
        position: static !important;
        transform: none !important;
        left: auto !important;
        text-align: center;
    }

    /* 隐藏桌面端导航菜单在平板端及以下 */
    header.navbar-fixed nav#headNav .nav-menu {
        display: none;
    }
}

@media only screen and (max-width: 601px) {
    header.navbar-fixed {
        padding: 10px 15px;
    }

    header.navbar-fixed nav#headNav {
        width: calc(100% - 30px);
        border-radius: 25px;
    }

    header.navbar-fixed nav#headNav .brand-logo .logo-span {
        font-size: 1.3rem;
    }

    /* 手机端 header 布局 - logo 居中 */
    header.navbar-fixed nav#headNav .nav-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    /* 汉堡菜单按钮定位到左侧 */
    header.navbar-fixed nav#headNav .sidenav-trigger {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    /* 移动端搜索按钮 - 定位到右侧 */
    header.navbar-fixed nav#headNav .mobile-search-trigger {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        color: #fff;
        font-size: 1.1rem;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: auto;
        line-height: 1;
    }

    header.navbar-fixed nav#headNav .mobile-search-trigger:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    /* Logo 居中 */
    header.navbar-fixed nav#headNav .brand-logo {
        position: static !important;
        transform: none !important;
        left: auto !important;
        text-align: center;
    }

    /* 隐藏桌面端导航菜单在手机端 */
    header.navbar-fixed nav#headNav .nav-menu {
        display: none;
    }
}

/* 隐藏左侧汉堡菜单按钮（仅桌面端） */
@media only screen and (min-width: 993px) {
    header.navbar-fixed .sidenav-trigger {
        display: none !important;
    }
}

/* 修复 logo 与导航项重叠问题 */
header.navbar-fixed nav#headNav .brand-logo {
    position: relative;
    max-width: 180px;
    white-space: nowrap;
    overflow: visible;
}

/* 导航菜单位置调整，避免与 logo 重叠 */
header.navbar-fixed nav#headNav .nav-menu {
    margin-left: auto;
}

/* 始终隐藏 GitHub 角标 */
header.navbar-fixed .github-corner,
nav#headNav .github-corner {
    display: none !important;
}

/* ==================== 移动端液态玻璃下拉菜单 ==================== */
/* 隐藏默认的侧边栏遮罩层 */
.sidenav-overlay {
    display: none !important;
}

/* 移动端导航 - 从顶部滑入的液态玻璃菜单 */
#mobile-nav.sidenav {
    /* 重置默认侧边栏样式 */
    position: fixed;
    top: 70px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-120%);
    width: calc(100% - 40px) !important;
    max-width: 400px;
    height: auto !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 996;

    /* 液态玻璃效果 - 与 header 一致 */
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);

    /* 过渡动画 */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

/* 菜单打开状态 - 从顶部滑入 */
#mobile-nav.sidenav.sidenav-open,
#mobile-nav.sidenav[style*="transform: translateX(0"] {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1;
    visibility: visible;
}

/* 隐藏移动端头部区域 */
#mobile-nav .mobile-head {
    display: none;
}

/* 菜单列表样式 - 垂直居中排列 */
#mobile-nav .menu-list {
    padding: 20px 0;
    margin: 0;
    text-align: center;
}

#mobile-nav .menu-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#mobile-nav .menu-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    width: calc(100% - 40px);
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 15px;
    margin: 4px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

/* 移动端滑块指示器 - 由 JS 控制 */
.mobile-slider-indicator {
    position: absolute;
    left: 15px;
    right: 15px;
    height: 50px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.mobile-slider-indicator.active {
    opacity: 1;
}

#mobile-nav .menu-list li a i {
    margin: 0;
    color: #fff !important;
    font-size: 1.15rem;
}

/* 隐藏分隔线 */
#mobile-nav .divider {
    display: none;
}

/* 子菜单样式 */
#mobile-nav .menu-list ul {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin: 5px 15px;
    padding: 10px 0;
}

#mobile-nav .menu-list ul li a {
    padding: 12px 25px;
    font-size: 1rem;
    margin: 3px 10px;
}

/* 自定义遮罩层 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 995;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* hexo-filter-github-emojis */
.github-emoji {
    height: 2em;
    width: 2em;
    display: inline-block !important;
    position: relative;
    margin: 0 3px !important;
    padding: 0;
}

.github-emoji:hover {
    animation: emoji-face 5s infinite ease-in-out;
}

@keyframes emoji-face {
    2% {
        transform: translate(0, 1.5px) rotate(1.5deg);
    }

    4% {
        transform: translate(0, -1.5px) rotate(-0.5deg);
    }

    6% {
        transform: translate(0, 1.5px) rotate(-1.5deg);
    }

    8% {
        transform: translate(0, -1.5px) rotate(-1.5deg);
    }

    10% {
        transform: translate(0, 2.5px) rotate(1.5deg);
    }

    12% {
        transform: translate(0, -0.5px) rotate(1.5deg);
    }

    14% {
        transform: translate(0, -1.5px) rotate(1.5deg);
    }

    16% {
        transform: translate(0, -0.5px) rotate(-1.5deg);
    }

    18% {
        transform: translate(0, 0.5px) rotate(-1.5deg);
    }

    20% {
        transform: translate(0, -1.5px) rotate(2.5deg);
    }

    22% {
        transform: translate(0, 0.5px) rotate(-1.5deg);
    }

    24% {
        transform: translate(0, 1.5px) rotate(1.5deg);
    }

    26% {
        transform: translate(0, 0.5px) rotate(0.5deg);
    }

    28% {
        transform: translate(0, 0.5px) rotate(1.5deg);
    }
}

/* Mobile hamburger menu hover effect removal */
header .side-nav .menu-list a:hover {
    background-color: transparent !important;
}

/* Remove nav-show label on hover */
.nav-show {
    display: none !important;
}

/* Search popup liquid glass effect and rounded corners */
#searchModal {
    background: rgba(30, 30, 30, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#searchModal .modal-content {
    background: transparent !important;
    padding: 30px;
}

#searchModal .search-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

#searchModal .search-header .title {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchModal .search-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 12px 20px !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    box-sizing: border-box;
    width: 100%;
}

#searchModal .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchModal .search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#searchResult {
    color: #fff !important;
    max-height: calc(80vh - 150px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 10px 0 !important;
    padding: 0 10px !important;
}

#searchResult .search-result-list {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#searchResult::-webkit-scrollbar {
    display: none;
}

#searchResult a {
    color: #42b983 !important;
}

/* Mobile Search Result Height Fix */
@media only screen and (max-width: 601px) {
    #searchResult {
        max-height: 55vh !important;
    }
}

#searchResult .search-result-list li {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* Fix mobile menu clicks (pointer-events) */
#mobile-nav,
.side-nav {
    pointer-events: auto !important;
}

/* Fix desktop menu twitching - Strict Lock */
header.navbar-fixed nav#headNav .nav-menu li a {
    font-weight: 500;
    /* Set fixed font-weight */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure box model consistency */
    border: none;
    margin: 0 2px;
    padding: 6px 14px;
}

header.navbar-fixed nav#headNav .nav-menu li a:hover {
    font-weight: 500 !important;
    /* Prevent bolding on hover */
    background-color: transparent;
    /* Clean hover state */
    /* Lock layout properties */
    border: none !important;
    margin: 0 2px !important;
    padding: 6px 14px !important;
}

/* ==================== 回到顶部按钮液态玻璃效果 ==================== */
.top-scroll .btn-floating {
    background: rgba(30, 30, 30, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-scroll .btn-floating:hover {
    background: rgba(50, 50, 50, 0.75) !important;
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.top-scroll .btn-floating i {
    line-height: 50px;
    font-size: 1.5rem;
    color: #fff;
}

/* ==================== 桌面端文章列表水平布局 ==================== */
/* 桌面端样式 - 每行一个文章，左图右内容 */
@media only screen and (min-width: 993px) {
    /* 每行一个文章 */
    .articles .article.col.s12 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* 水平卡片容器 */
    .article-horizontal-card {
        overflow: hidden;
    }

    /* flexbox 水平布局 */
    .article-row-layout {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 200px;
    }

    /* 左侧图片区域 */
    .article-row-layout .article-image-link {
        flex: 0 0 320px;
        display: block;
    }

    .article-row-layout .article-image {
        width: 320px;
        height: 100%;
        min-height: 200px;
        background-color: #222;
        overflow: hidden;
        border-radius: 8px 0 0 8px;
    }

    .article-row-layout .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.85;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .article-row-layout .article-image-link:hover img {
        opacity: 1;
        transform: scale(1.05);
    }

    /* 右侧内容区域 */
    .article-row-layout .article-info-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px 25px;
        position: relative;
        min-width: 0;
    }

    /* 右上角分类 */
    .article-row-layout .article-category-top {
        position: absolute;
        top: 15px;
        right: 20px;
        display: flex;
        gap: 8px;
    }

    .article-row-layout .category-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 12px;
        background: linear-gradient(135deg, #42b983 0%, #3aa876 100%);
        color: #fff !important;
        font-size: 0.8rem;
        font-weight: 500;
        border-radius: 15px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .article-row-layout .category-badge:hover {
        background: linear-gradient(135deg, #3aa876 0%, #2e9c6a 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(66, 185, 131, 0.3);
    }

    .article-row-layout .category-badge i {
        font-size: 0.75rem;
    }

    /* 标题 */
    .article-row-layout .article-title-link {
        text-decoration: none;
        margin-right: 120px;
    }

    .article-row-layout .article-title {
        margin: 0 0 12px 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #34495e;
        line-height: 1.4;
        transition: color 0.3s ease;
    }

    .article-row-layout .article-title-link:hover .article-title {
        color: #42b983;
    }

    /* 简介 */
    .article-row-layout .article-summary {
        flex: 1;
        font-size: 0.95rem;
        color: #666;
        line-height: 1.6;
        margin-bottom: 15px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    /* 时间 */
    .article-row-layout .article-meta {
        margin-bottom: 12px;
    }

    .article-row-layout .article-date {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        color: #888;
    }

    .article-row-layout .article-date i {
        color: #aaa;
    }

    /* 标签 - 液态玻璃效果 */
    .article-row-layout .article-tags-inline {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: auto;
    }

    .article-row-layout .article-tags-inline .chip {
        margin: 0;
        font-size: 0.8rem;
        font-weight: 500;
        height: 28px;
        line-height: 28px;
        padding: 0 14px;
        color: #2c3e50;
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .article-row-layout .article-tags-inline a:hover .chip {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
}

/* 平板和手机端保持原有的纵向卡片布局 */
@media only screen and (max-width: 992px) {
    /* 平板端 - 两列布局 */
    .articles .article.col.s12 {
        width: 50%;
        max-width: 50%;
    }

    .article-row-layout {
        display: flex;
        flex-direction: column;
    }

    .article-row-layout .article-image-link {
        display: block;
    }

    .article-row-layout .article-image {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }

    .article-row-layout .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .article-row-layout .article-info-wrapper {
        padding: 15px;
        position: relative;
    }

    .article-row-layout .article-category-top {
        position: absolute;
        top: -30px;
        right: 10px;
    }

    .article-row-layout .category-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 10px;
        background: rgba(66, 185, 131, 0.9);
        color: #fff !important;
        font-size: 0.75rem;
        font-weight: 500;
        border-radius: 12px;
        text-decoration: none;
    }

    .article-row-layout .article-title {
        margin: 0 0 10px 0;
        font-size: 1.2rem;
        font-weight: 600;
        color: #34495e;
        line-height: 1.3;
    }

    .article-row-layout .article-summary {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.5;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-row-layout .article-meta {
        margin-bottom: 10px;
    }

    .article-row-layout .article-date {
        font-size: 0.8rem;
        color: #888;
    }

    .article-row-layout .article-tags-inline {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .article-row-layout .article-tags-inline .chip {
        font-size: 0.75rem;
        height: 24px;
        line-height: 24px;
        padding: 0 10px;
        color: #2c3e50;
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

/* 手机端 - 单列布局 */
@media only screen and (max-width: 600px) {
    .articles .article.col.s12 {
        width: 100%;
        max-width: 100%;
    }

    .article-row-layout .article-image {
        height: 180px;
    }

    .article-row-layout .article-title {
        font-size: 1.1rem;
    }
}

/* ==================== 文章卡片默认使用深色文字 ==================== */
/* 文章水平卡片 - 深色文字 */
.article-horizontal-card .article-title {
    color: #34495e !important;
}

.article-horizontal-card .article-summary {
    color: #666 !important;
}

.article-horizontal-card .article-date {
    color: #888 !important;
}

.article-horizontal-card .article-date i {
    color: #aaa !important;
}

.article-horizontal-card .article-info-wrapper {
    color: #34495e;
}

/* Article card background image effect - Liquid Glass Style */
.article-horizontal-card {
    background: transparent !important;
    box-shadow: none !important;
}

.article-row-layout .article-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    opacity: 1;
    filter: blur(180px) saturate(180%);
    z-index: 0;
    transition: all 0.5s ease;
}

.article-horizontal-card:hover .article-bg {
    opacity: 1;
    filter: blur(150px) saturate(200%);
    transform: scale(1.05);
}

/* Add glass border and shine to the wrapper */
.article-row-layout .article-info-wrapper {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: none; /* Connect seamlessly with image */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border-radius: 0 8px 8px 0; /* Maintain card radius */
}

/* Ensure content stays above the background */
.article-row-layout .article-info-wrapper > *:not(.article-bg):not(.article-category-top) {
    position: relative;
    z-index: 1;
}

/* Ensure category badge stays above everything */
.article-row-layout .article-category-top {
    z-index: 2;
}