/*@import url('common.css');*/
@import url('common.min.css');
@import url('../fonts/Font-Impact.css');

.ui.container .ui.cards .card {

    position: relative;

    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.12);

    opacity: 0;

    transition:
            transform 0.25s cubic-bezier(.2,.8,.2,1),
            box-shadow 0.25s cubic-bezier(.2,.8,.2,1),
            border-color 0.25s ease;

    overflow: hidden;
}

/* 亮色模式 hover 悬浮感：保持你原来的效果 */
.ui.container .ui.cards .card:hover {
    transform: translateY(-8px) scale(1.04);

    border-color: rgba(120, 120, 120, 0.55);

    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.45);
}

/* 深色模式下的毛玻璃底色和阴影：保持你原来的效果 */
.dark-mode .ui.container .ui.cards .card {
    background: linear-gradient(
            180deg,
            rgba(80, 90, 160, 0.35) 0%,
            rgba(30, 35, 60, 0.65) 100%
    ) !important;

    box-shadow: none;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-color: rgba(255, 255, 255, 0.10);
}

/* 暗色模式 hover：原来的放大、背景、阴影都保留 */
.dark-mode .ui.container .ui.cards .card:hover {
    transform: translateY(-10px) scale(1.05);

    background: linear-gradient(
            180deg,
            rgba(124, 124, 255, 0.35) 0%,
            rgba(40, 45, 90, 0.85) 100%
    );

    border-color: rgba(255, 255, 255, 0.10);

    box-shadow:
            0 18px 45px rgba(0, 0, 0, 1);
}

/* 暗色模式专用：只在边框上显示斜向玻璃反光 */
.dark-mode .ui.container .ui.cards .card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;

    background: linear-gradient(
            135deg,
            transparent 0%,
            transparent 35%,
            rgba(255, 255, 255, 0.95) 45%,
            rgba(180, 225, 255, 1) 50%,
            rgba(255, 255, 255, 0.95) 55%,
            transparent 65%,
            transparent 100%
    );

    background-size: 300% 300%;
    background-position: 100% 100%;

    /*
      关键：把中间挖空，只保留边框区域
    */
    -webkit-mask:
            linear-gradient(white, white) content-box,
            linear-gradient(white, white);
    -webkit-mask-composite: xor;

    mask:
            linear-gradient(white, white) content-box,
            linear-gradient(white, white);
    mask-composite: exclude;

    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

/* hover 时启动边框反光 */
.dark-mode .ui.container .ui.cards .card:hover::before {
    opacity: 1;
    animation: cardDiagonalBorderShine 1.1s ease forwards;
}

/* 斜光从左上角扫到右下角 */
@keyframes cardDiagonalBorderShine {
    from {
        background-position: 100% 100%;
    }

    to {
        background-position: 0% 0%;
    }
}


.ui.cards .card .image>img{
    background: rgba(255, 255, 255, 0.03);

    height: 200px;
    object-fit: contain;
    filter:
            drop-shadow(0 6px 12px rgba(0,0,0,.35))
            saturate(0.95) !important;
    opacity: 0.95 !important;
}

.card .header{
    /*font-family: 'Inter', sans-serif !important;*/
    font-family: 'Roboto Thin',sans-serif !important;

    font-size: 22px !important;
    font-weight: bold !important;

}

.description{
    font-family: 'Roboto Thin',sans-serif !important;
    font-size: 17px !important;
    color: darkgrey !important;
}
.card .extra.content span {
    font-size: 16px; /* 字体大小 */
    color: dimgrey; /* 字体颜色 */
}

.card-0 { animation: fadeIn ease-in-out 0.5s 0.1s forwards; }
.card-1 { animation: fadeIn ease-in-out 0.5s 0.2s forwards; }
.card-2 { animation: fadeIn ease-in-out 0.5s 0.3s forwards; }
.card-3 { animation: fadeIn ease-in-out 0.5s 0.2s forwards; }
.card-4 { animation: fadeIn ease-in-out 0.5s 0.3s forwards; }
.card-5 { animation: fadeIn ease-in-out 0.5s 0.4s forwards; }
.recent-blogs {
    opacity: 0;
    animation: fadeIn ease-in-out 0.5s 0.3s forwards;
}

.ui.container.segment.recent-blogs > a.header {
    font-size: 26px;
    font-weight: bold;
}

/* Recent Blogs —— 默认状态（不悬浮） */
.ui.container.segment.recent-blogs {
    position: relative;
    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.40);
    border-radius: 18px;
    border: 1px solid rgba(120, 120, 120, 0.25);

    box-shadow:
            0 0 0 1px rgba(120, 120, 120, 0.18);

    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);

    transform: translateY(0) scale(1);

    transition:
            transform 0.28s cubic-bezier(.2,.8,.2,1),
            box-shadow 0.28s cubic-bezier(.2,.8,.2,1),
            border-color 0.28s ease,
            background-color 0.28s ease;
}

/* 让 Recent Blogs 里面的内容压在反光层上面 */
.ui.container.segment.recent-blogs > * {
    position: relative;
    z-index: 2;
}

/* 亮色模式 hover：保持你原来的效果 */
.ui.container.segment.recent-blogs:hover {
    transform: translateY(-6px) scale(1.02);

    box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.45),
            0 0 0 1px rgba(120, 120, 120, 0.35);

    border-color: rgba(120, 120, 120, 0.55);
}

/* 深色模式下 Recent Blogs 的毛玻璃背景 */
.dark-mode .ui.container.segment.recent-blogs {
    background-color: rgba(15, 23, 42, 0.5) !important;
    box-shadow: none;

    border: 1px solid rgba(148, 163, 184, 0.45);
}

/* 暗色模式 hover：保留上浮、放大、阴影、背景变深 */
.dark-mode .ui.container.segment.recent-blogs:hover {
    transform: translateY(-8px) scale(1.03);

    border-color: rgba(148, 163, 184, 0.45);

    box-shadow:
            0 18px 45px rgba(0, 0, 0, 0.95);

    background-color: rgba(15, 23, 42, 0.6) !important;
}

/* 暗色模式专用：Recent Blogs 边框玻璃反光 */
.dark-mode .ui.container.segment.recent-blogs::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;

    background: linear-gradient(
            135deg,
            transparent 0%,
            transparent 35%,
            rgba(255, 255, 255, 0.95) 45%,
            rgba(180, 225, 255, 1) 50%,
            rgba(255, 255, 255, 0.95) 55%,
            transparent 65%,
            transparent 100%
    );

    background-size: 300% 300%;
    background-position: 100% 100%;

    /*
      把中间挖空，只保留边框区域
    */
    -webkit-mask:
            linear-gradient(white, white) content-box,
            linear-gradient(white, white);
    -webkit-mask-composite: xor;

    mask:
            linear-gradient(white, white) content-box,
            linear-gradient(white, white);
    mask-composite: exclude;

    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* hover 时启动边框反光 */
.dark-mode .ui.container.segment.recent-blogs:hover::before {
    opacity: 1;
    animation: recentBlogsDiagonalBorderShine 1.6s ease forwards;
}

/* 和 card 一样：斜光从左上角扫到右下角 */
@keyframes recentBlogsDiagonalBorderShine {
    from {
        background-position: 100% 100%;
    }

    to {
        background-position: 0% 0%;
    }
}

.ui.container.segment>a.header{
    font-size: 26px;
    font-weight: bold
}

.ui.container .item .right.icon {
    color: #6366F1 !important;
    /*height: 80px !important;*/
    transition: transform 0.1s ease-in-out;
}
/* 只针对你这个 item 列表，避免影响别的 Semantic UI item */
.ui.container a.item{
    display: flex;
    align-items: center;        /* 垂直居中 */
}

/* 让 content 吃满剩余空间，箭头自然贴右 */
.ui.container a.item .content{
    flex: 1;
}

/* 箭头本身当成块级，更不受基线影响 */
.ui.container a.item > i.right.icon{
    display: block;
    margin-left: auto;          /* 保持靠最右 */
    align-self: center;         /* 再保险：自己也居中 */
}



/* 鼠标悬停时的样式 */
.ui.container .item:hover .right.icon {
    transform: translateX(12px); /* 向右移动12px */
    animation: moveRight 0.1s ease-in-out; /* 动画持续0.3秒 */
}
.ui.container .item .header {
    /* 添加初始样式 */
    display: inline-block;          /* 让 transform 更可控 */
    transform: scale(1);            /* 初始状态 */
    transform-origin: left center;  /* 从左侧放大，避免左右“晃” */
    transition: transform 0.1s ease-in-out ; /* 为颜色和字体粗细设置过渡效果 */
    will-change: transform;
    /*transition: font-size 0.1s ease-in-out ,color 0.1s ease; !* 为颜色和字体粗细设置过渡效果 *!*/
}

.ui.container .item:hover .header.m-text-spaced {
    color: #0e0f12 !important;
    /*color: #ffffff; !* 悬停高亮颜色 *!*/
    transform: scale(1.1);
    font-size: 22px !important;
    /*color: #ffffff !important;*/
}
.dark-mode
.ui.container .item:hover .header.m-text-spaced{
    color: #FFFFFF !important;

}

img.blog-picture{
    max-height: 70px !important;
    border-radius: 6px !important;
}

.admin-icon{
    position: absolute;
    top: 50%; /* 使元素的顶部居中 */
    right: 2.5em; /* 将元素靠右对齐 */
    transform: translateY(-50%); /* 垂直居中 */

}

.article-title {
    font-size: 4em;
    font-family: 'Impact',sans-serif ;
}
