/* 核心动画定义（统一复用） */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}
@keyframes cardFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes songFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes shine {
    0% { left: -75%; }
    100% { left: 150%; }
}

/* 头部样式 */
#header .d_header {
    position: relative;
    margin-bottom: 0rem;
}
#header .d_header_img {
    width: 100%;
    height: 250px;
}
#header .d_header_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#header .d_header_filter {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
#header .d_header_filter::before {
    display: block;
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 1;
    background: -webkit-linear-gradient(bottom,#f8f8fe,rgba(255,255,255,0) 100%);
}
#header .d_header_frame {
    position: absolute;
    width: 100%;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.6rem 1.4rem;
}
#header .d_header_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#header .d_header_avatar {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}
#header .d_header_avatar img {
    width: 100%;
    height: 100%;
}
#header .d_header_census {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4,minmax(0,1fr));
    text-align: center;
    color: #333;
}
#header .d_header_census_box {
    padding: 0 5px;
    border-right: 1.3px solid #eee;
    white-space: nowrap;
}
#header .d_header_census_box:last-child {
    border-right: 0;
}
#header .d_header_nb {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}
#header .d_header_bt {
    font-size: 12px;
    margin-top: 4px;
    color: #888;
}
#header .d_header_qm {
    margin-top: 20px;
    font-size: 14px;
}

/* 搜索框样式 */
#d_search_bar {
    margin-top: 15px;
    padding: 0 5px;
}
#d_search_bar .submit {
    display: none;
}
#d_search_bar .d_search_input {
    width: 100%;
    border-radius: 14px;
    padding: 0 0.9rem;
    border: 1px solid var(--dark-green);
    outline: none;
    height: 38px;
    text-align: left;
    background: transparent !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}
#d_search_bar .d_search_input:focus {
    border-color: var(--dark-green);
    box-shadow: 0 0 0 2px rgba(74, 144, 119, 0.1);
}

/* 导航栏样式（精简版） */
.d_meun_list {
    padding: .5rem 1.2rem;
    margin: 0 15px; /* 合并左右margin，精简写法 */
    border-radius: 7px;
    box-shadow: 0 0 20px -5px rgb(158 158 158 / 22%);
}
.d_meun_ul {
    text-align: center;
    padding: 0;
    margin: 0;
    list-style: none;
}
.d_meun_li {
    display: inline-block;
    font-size: 15px;
    font-weight: 400;
    margin-right: 14px;
    padding: 0 2px;
    position: relative;
    color: #999;
    transition: all 0.28s ease;
}
/* 统一当前页/悬浮的下划线样式 */
.d_meun_li::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 3px;
    background-color: var(--dark-green);
    border-radius: 3px;
    transition: all 0.28s cubic-bezier(0.34, 1.1, 0.7, 1);
    transform: translateX(-50%);
    opacity: 0;
}
/* 悬浮效果 */
.d_meun_li:hover {
    color: #333;
}
.d_meun_li:hover::after {
    width: 82%;
    opacity: 0.85;
}
/* 当前页样式（和悬浮完全一致） */
.d_meun_li.current {
    color: #333;
}
.d_meun_li.current::after {
    width: 82%;
    opacity: 0.85;
}
/* 首页图片模块 */
.d_index_pic {
    padding: 1rem 1rem 0rem 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2,minmax(0,1fr));
}
.d_index_right,.d_index_left_sm {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}
.d_index_right_img,.d_index_left_img {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 60%;
    overflow: hidden;
}
.d_index_right_img img,.d_index_left_img img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 6px;
}
.d_index_right_name {
    position: absolute;
    left: 0px;
    width: 100%;
    bottom: 0;
    padding: 1rem;
    font-weight: 500;
    color: #FFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.d_index_left_box {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1,minmax(0,1fr));
}
.d_index_left_img {
    padding-top: 27.9%;
}
.d_index_right_img::after,.d_index_left_img::after {
    background-image: linear-gradient(to right,transparent,rgba(255,255,255,.2));
    content: "";
    position: absolute;
    display: block;
    width: 50%;
    height: 100%;
    top: 0;
    left: -75%;
    z-index: 2;
    transform: skewX(-25deg);
    pointer-events: none;
}
.d_index_right:hover .d_index_right_img:after,.d_index_left_sm:hover .d_index_left_img:after {
    animation: shine .85s;
}

/* 分页/文章底部样式 */
.prvenext {
    padding: 1.5rem 0;
}
.prvenext ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1.25rem;
}
.prvenext ul li {
    position: relative;
}
.prvenext ul li:before {
    content: '';
    left: 1px;
    right: 1px;
    height: 22%;
    background-color: var(--dark-green);
    opacity: .5;
    position: absolute;
    top: 80%;
    transform: translate(0%,-50%);
}
.post .post_eof {
    text-align: center;
    font-size: .9rem;
    line-height: 1em;
    margin: 0.8em auto;
    font-weight: 100;
    font-family: Microsoft Yahei,sans-serif;
}
.post .post_eof:before {
    content: '————';
    margin-right: 20px;
}
.post .post_eof:after {
    content: '————';
    margin-left: 20px;
}

/* 渐变卡片样式 */
.robes-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    background: linear-gradient(to right, #594d4d, #c4b6b6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #f0f0f0;
    padding: 20px;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.1, 0.7, 1) forwards 0.4s;
    transition: all 0.3s cubic-bezier(0.34, 1.1, 0.7, 1);
}
.robes-card p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* 首页卡片样式 */
.index_card {
    margin-bottom: 0.75rem;
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 6px;
    border-bottom: 0;
    opacity: 0;
    transform: translateY(12px);
    animation: cardFade 0.6s ease forwards;
    transition: all 0.3s cubic-bezier(0.34, 1.1, 0.7, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}
.index_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    scale: 1.015;
}
.index_card:nth-child(1) { animation-delay: 0.1s; }
.index_card:nth-child(2) { animation-delay: 0.2s; }
.index_card:nth-child(3) { animation-delay: 0.3s; }
.index_card:nth-child(4) { animation-delay: 0.4s; }
.index_card:nth-child(5) { animation-delay: 0.5s; }

/* 歌词/文本样式 */
.song {
    line-height: 1.8;
    word-wrap: break-word;
    font-size: 15px;
    text-align: justify;
    opacity: 0;
    animation: songFadeIn 1.5s ease-out forwards;
}
.song:nth-child(n) {
    animation-delay: calc(0.1s * var(--i));
}

/* 兴趣标签模块 */
.hobby-container {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    padding: 32px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    background-color: transparent;
}
.hobby-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}
.hobby-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.hobby-tag {
    padding: 8px 16px;
    background-color: var(--main-color-light);
    color: var(--main-color);
    font-size: 14px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-base);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}
.hobby-tag:nth-child(1) { animation-delay: 0.4s; }
.hobby-tag:nth-child(2) { animation-delay: 0.5s; }
.hobby-tag:nth-child(3) { animation-delay: 0.6s; }
.hobby-tag:nth-child(4) { animation-delay: 0.7s; }
.hobby-tag:nth-child(5) { animation-delay: 0.8s; }
.hobby-tag:nth-child(6) { animation-delay: 0.9s; }
.hobby-tag:nth-child(7) { animation-delay: 1s; }
.hobby-tag:hover {
    transform: translateY(-5px);
    background-color: var(--main-color-medium);
    box-shadow: 0 4px 8px rgba(119, 170, 173, 0.2);
    color: var(--main-color-dark);
}
.divider {
    height: 1px;
    background-color: var(--divider-color);
    margin: 0 0 20px 0;
    border: none;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 1s;
}
.note-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 1.1s;
}
.note-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 1.2s;
}

/* 评论交互模块 */
.cross_box_title {
    font-size: 14px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.1s;
}
.cross_frame {
    display: flex;
    flex: 1 1 auto;
    border: 2px solid rgba(0,0,0,0.125);
    border-radius: 6px;
    padding: .5rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.2s;
}
.cross_frame_avatar {
    width: 30px;
    height: 30px;
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: .9375rem;
}
.cross_frame_avatar img {
    width: 100%;
    height: 100%;
}
.comment-editor {
    flex: 1 1 auto;
}
.cross_frame textarea {
    width: 100%;
    resize: none;
    text-align: justify;
    overflow: hidden;
    font-size: .875rem;
    border: none;
    font-weight: 400;
    line-height: 1.5;
    height: 79px;
    font-family: inherit;
    -webkit-appearance: none;
    outline: none;
    background-color: transparent;
    color: #aaa;
}
.cross_tools {
    margin-top: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.3s;
}
.cross_tools_right {
    display: flex;
    align-items: center;
}
.cross_tools #submitComment {
    font-size: 12px;
    padding: .2rem .8rem;
    border-radius: 2px;
}
.cross-box {
    display: flex;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.4s;
}
.cross_left {
    margin-right: .8rem;
}
.cross-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}
.cross_right {
    width: 100%;
    background-color: #f1f4f8;
    border-radius: 6px;
}
.cross_right_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid rgba(222,229,231,.45);
    padding: 10px 15px;
}
.cross-excerpt {
    padding: 15px;
}
.cross-excerpt p {
    margin: 0;
}
.cross_right_foot {
    padding: 10px 15px;
    color: #555;
    font-size: 12px;
}
.cross_right_foot i {
    font-size: 14px;
}
.cross-img,.cross-imgg {
    max-height: 160px;
    border-radius: 5px;
    max-width: 100%;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.5s;
}

/* 深色模式适配 */
.dark .d_meun_list {
    box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
}
.dark #header .d_header_filter::before {
    background: -webkit-linear-gradient(bottom,#191919,rgba(255,255,255,0) 70%);
}
.dark #header .d_header_box {
    color: #FFF;
}
.dark #d_search_bar .d_search_input,.dark #header .d_header_census_box {
    border-color: #444;
}
.dark #header .d_header_census {
    color: #FFF;
}
.dark #header .d_header_bt {
    color: #bbb;
}
.dark #d_search_bar .d_search_input {
    background: transparent !important;
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}
.dark #d_search_bar .d_search_input::placeholder {
    color: rgba(255,255,255,0.6);
}
.dark .d_meun_li {
    color: rgba(255,255,255,0.6);
}
.dark .d_meun_li:hover {
    color: #fff;
}
.dark .d_meun_li.current {
    color: #fff;
}
.dark .robes-card {
    border-color: rgba(255, 255, 255, 0.15);
    color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.dark .index_card,.obje .index_card {
    animation: cardFade 0.6s ease forwards;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.dark .index_card:hover,.obje .index_card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-6px);
    scale: 1.015;
}

/* 移动端适配 */
@media print,screen and (max-width:580px) {
    /* 新增：隐藏首页三个大图模块 */
    .d_index_pic {
        display: none !important;
    }

    .d_index_right_name {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    }
    #header .d_header_avatar {
        width: 60px;
        height: 60px;
    }
    #header .d_header_stat {
        padding-left: 50px;
    }
    #header .d_header_census {
        gap: 5px;
    }
    #header .d_header_nb {
        font-size: 13px;
    }
    #header .d_header_bt {
        font-size: 11px;
        margin-top: 3px;
    }
    #d_search_bar {
        margin-top: 10px;
    }
    #d_search_bar .d_search_input {
        height: 34px;
        font-size: 13px;
    }
    #header .d_header_qm {
        margin-top: 15px;
        display: none;
    }
    .d_meun_li {
        font-size: 13px;
    }
    /* 原有相关样式可删除（因为模块已隐藏）：
    .d_index_pic {
        grid-template-columns: repeat(1,minmax(0,1fr));
    }
    .d_index_right_img,.d_index_left_img {
        padding-top: 33.3333%;
    }
    */
    .index_card {
        animation-duration: 0.4s;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }
    .index_card:hover {
        transform: translateY(-4px);
        scale: 1.008;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    .index_card:nth-child(1) { animation-delay: 0.05s; }
    .index_card:nth-child(2) { animation-delay: 0.1s; }
    .index_card:nth-child(3) { animation-delay: 0.15s; }
    .index_card:nth-child(4) { animation-delay: 0.2s; }
    .index_card:nth-child(5) { animation-delay: 0.25s; }
    .obje .index_card:hover,.dark .index_card:hover {
        transform: translateY(-4px);
        scale: 1.008;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    }
    .robes-card {
        padding: 15px;
    }
    .hobby-container {
        padding: 24px;
        animation-duration: 0.6s;
    }
    .hobby-tag:hover {
        transform: translateY(-3px);
        box-shadow: 0 3px 6px rgba(119, 170, 173, 0.15);
    }
}

    /* ========== 新增：运行时间深色模式样式 ========== */
    /* 浅色模式默认颜色（保留你原有颜色） */
    #run_time {
        color: #3d3737 !important;
    }
    /* 深色模式下文字变白色 */
    body.dark #run_time {
        color: #ffffff !important;
    }