/* dynamic.css */

:root {
    margin: 0;
    --liushen-card-bg: color-mix(in srgb, var(--card-bg), #ffffff 3%);
    --liushen-card-secondbg: var(--second-bg);
    --liushen-text: var(--font-color);
    --liushen-card-border: 1px solid var(--border-color);
}

/* ———————— 卡片容器 ———————— */
#talk {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ———————— 单个动态卡片 ———————— */
#talk .talk_item {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--liushen-card-bg);
    border: var(--liushen-card-border);
    box-sizing: border-box;
    box-shadow: var(--card-box-shadow);
    transition: box-shadow 0.3s ease-in-out;
    border-radius: 12px;
    padding: 20px;
    margin: auto auto 9px 0;
    min-height: auto;
}

#talk .talk_item:hover {
    box-shadow: var(--card-hover-box-shadow);
}

@media (max-width: 900px) {
    #talk .talk_item {
        width: calc(50% - 5px);
    }
}
@media (max-width: 450px) {
    #talk .talk_item {
        width: 100%;
    }
}

/* ———————— 头部 ———————— */
#talk .talk_meta {
    display: flex;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
}

#talk .talk_meta .avatar {
    margin: 0 !important;
    width: 60px;
    height: 60px;
    border-radius: 100px;
}

#talk .talk_meta .info {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

#talk .talk_meta .info .talk_nick {
    color: #6dbdc3;
    font-size: 1.2rem;
}

#talk .talk_meta .info svg.is-badge.icon {
    width: 15px;
    padding-top: 3px;
}

#talk .talk_meta .info span.talk_date {
    opacity: 0.6;
}

/* ———————— 内容 ———————— */
#talk .talk_content {
    margin-top: 10px;
}

#talk .talk_content .zone_imgbox {
    display: flex;
    flex-wrap: wrap;
    --w: calc(25% - 8px);
    gap: 10px;
    margin-top: 10px;
}

#talk .talk_content .zone_imgbox a {
    display: block;
    border-radius: 12px;
    width: var(--w);
    aspect-ratio: 1/1;
    position: relative;
}

#talk .talk_content .zone_imgbox a:first-child {
    width: 100%;
    aspect-ratio: 1.8;
}

#talk .talk_content .zone_imgbox img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
}

#talk .talk_content > a {
    margin: 0 3px;
    color: #ff7d73 !important;
}

#talk .talk_content > a:hover {
    text-decoration: none !important;
    color: #ff5143 !important;
}

/* ———————— 底部标签与按钮 ———————— */
#talk .talk_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ← tags 在左，按钮在右 */
    margin-top: 15px;
    padding-top: 10px;
    opacity: 0.9;
}

#talk .talk_bottom .talk_actions {
    display: flex;
    align-items: center;
    gap: 12px; /* 按钮间距 */
}

#talk .talk_bottom .talk_tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

#talk .talk_bottom .icon {
    transition: color 0.3s;
    cursor: pointer;
}

#talk .talk_bottom .icon:hover {
    color: #49b1f5;
}

#span.talk_tag {
    font-size: 14px;
    color: var(--liushen-text);
    padding: 3px 15px 3px 10px;
}

span.talk_tag:hover {
    color: #49b1f5;
}

/* 通过类名控制显示 */
.comment-box--show {
    display: block;
}

/* ———————— 响应式调整 ———————— */
@media screen and (max-width: 900px) {
    #talk .talk_content .zone_imgbox {
        --w: calc(33% - 5px);
    }
}

@media screen and (max-width: 768px) {
    .zone_imgbox {
        gap: 6px;
        --w: calc(50% - 3px);
    }
    span.talk_date {
        font-size: 14px;
    }
}

/* ———————— 特殊卡片 ———————— */
#talk .talk_content .douban-card {
    margin-top: 10px !important;
    text-decoration: none;
    align-items: center;
    border-radius: 12px;
    color: #faebd7;
    display: flex;
    justify-content: center;
    margin: 10px;
    max-width: 400px;
    overflow: hidden;
    padding: 15px;
    position: relative;
}

#talk .talk_content .shuoshuo-external-link {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    border-radius: 12px;
    background-color: var(--liushen-card-secondbg);
    color: var(--liushen-text);
    border: var(--liushen-card-border);
    transition: background-color 0.3s ease-in-out;
}

.shuoshuo-external-link:hover {
    background-color: var(--liushen-button-hover-bg);
}

.shuoshuo-external-link .external-link {
    display: flex;
    color: var(--liushen-text) !important;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.shuoshuo-external-link .external-link:hover {
    color: #6dbdc3 !important;
}

.shuoshuo-external-link .external-link-left {
    width: 60px;
    height: 60px;
    margin: 10px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.shuoshuo-external-link .external-link-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 80px);
    padding: 10px;
}

.shuoshuo-external-link .external-link-right .external-link-title {
    font-size: 1.0rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shuoshuo-external-link .external-link-right i {
    margin-left: 5px;
}

.limit {
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

