﻿.mycontainer-div {
    width: 100%;
    max-width: 1200px; /* 与 fre-menu-bar 保持一致 */
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
/* 容器：linkbox */
.linkbox {
    width: 100%;
    
}

/* 列表项：linkboxitem（每个科目分类） */
.linkbox .linkboxitem {
    display: flex;
    flex-wrap: nowrap;         /* 不允许换行 */
    gap: 5px; /* 响应式下也保持 5px 间距 */
    overflow-x: auto;          /* 超出时横向滚动 */
    list-style: none;          /* 去掉小点 */
    justify-content: space-between; /* 让li平均分布 */
    margin-bottom: 1px; /* 底部间距减少 */
    padding: 1px; /* 内边距减少（原15px→10px） */
    background-color: white;
    border-radius: 4px; /* 圆角同步缩小 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-height: 20px; /* 最小高度（避免内容挤压） */
    margin: 0;                 /* 去除ul默认外边距 */
}

/* 列表项中的链接 */
.linkbox .linkboxitem li {
    list-style: none;          /* 再次确保li无小点 */
    flex: 1 1 0;
    text-align: center; /* 让内容居中 */
   
    margin: 0; /* 去除多余间距 */
    margin: 3px 0; /* 上下间距减少（原5px→3px） */
}

.linkbox .linkboxitem li a {
    font-size: 14px; /* 字体大小缩小（原16px→14px） */
}

/* 突出显示科目标题 */
.linkbox .linkboxitem li a font {
    font-weight: 500;
}

/* 响应式布局：屏幕宽度小于 768px 时调整 */
@media (max-width: 768px) {
    .linkbox {
        padding: 10px;
    }

    .linkbox .linkboxitem {
        padding: 8px;
        gap: 5px; /* 响应式下也保持 5px 间距 */
    }

    .linkbox .linkboxitem li a {
        font-size: 13px;
    }
}

.paper-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paper-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

/* 鼠标悬停时 */
    .paper-list-item:hover {
        background: #FAFAD2;
        color: #0056b3;
    }

/* 点击时 */
.paper-list-item:active {
    background: #cce0ff;
    color: #888;
}

.paper-list-item:active,
.paper-list-item .paper-name a:active {
    background: #2d8cf0 !important;
    color: #fff !important;
}

.paper-list-item .paper-name a:visited {
    color: #a94442 !important;
}

/* 如果 li 里有 a 标签，增强 a 的交互色 */
.paper-list-item .paper-name a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.paper-list-item:hover .paper-name a,
.paper-list-item:active .paper-name a {
    color: #0056b3;
    text-decoration: underline;
}

.paper-name {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paper-time {
    color: #888;
    min-width: 90px;
    text-align: right;
    font-size: 13px;
}
.myrow {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 10px; /* 两列之间5px间距 */
}

.row-left {
    flex: 0 0 30%; /* 1/6 */
    max-width: 30%;
    box-sizing: border-box;
    padding-right: 16px;
    position: sticky;
    top: 0;
    align-self: flex-start; /* 如果父容器是flex布局时建议加上 */
    z-index: 10;
    background: #fff;
}

.row-right {
    flex: 1 1 70%; /* 5/6 */
    max-width: 70%;
    box-sizing: border-box;
}

.detail-right {
    width: 100%
}

.details-top {
    position: sticky;
    top: 0;
    z-index: 10; /* 保证在内容之上 */
    background: #fff; /* 建议加背景色，避免内容穿透 */

    display: flex;
    width: 100%;
    margin-bottom: 16px;
    background-color: white;
    border-radius: 20px; /* 圆角同步缩小 */
}

.details-top-left {
    flex: 0 0 80%;
    max-width: 80%;
    padding-right: 16px;
    box-sizing: border-box;
    padding: 20px;
}

.details-top-right {
    flex: 0 0 20%;
    max-width: 20%;
    box-sizing: border-box;
    text-align: right;
}
.details-top-search {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    display: flex;
    width: 100%;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 20px;
    border: 1px solid transparent; /* 默认透明边框，防止抖动 */
    transition: border-color 0.3s;

}

    .details-top-search:hover {
        border: 1px solid #7ed6a5; /* 柔和浅绿色，清新自然 */
        box-shadow: none; /* 不加阴影，避免视觉跳动 */
    }

.details-top-left-search {
    flex: 0 0 80%;
    max-width: 80%;
    padding-right: 16px;
    box-sizing: border-box;
    padding: 20px;
}

.details-top-right-search {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    padding-right: 16px;
    min-height: 120px; /* 可根据实际内容调整高度 */
}


.tl-papername-title {
    color: #222;
    font-weight: bold;
}

.tl-papername-inf {
    display: flex;
    flex-direction: row;
    gap: 18px;
    padding: 0;
    margin: 12px 0 0 0;
    list-style: none;
}

    .tl-papername-inf i {
        margin-right: 4px;
    }

    .tl-papername-inf span {
        margin-left: 0;
    }

.tl-papername-inf li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .details-top {
        flex-direction: column;
    }

    .details-top-left,
    .details-top-right {
        flex: 1 1 100%;
        max-width: 100%;
        padding-right: 0;
        text-align: left;
    }
}

.download-free-wrap {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-end;
    height: 30px;
}
.pre-download {
    display: inline-flex;
    align-items: center; /* 图标和文字垂直居中 */
    margin-right: 30px; /* 右边距20px */
    padding: 6px 20px;
    background: #2d8cf0;
    color: #fff !important;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
   
    border: none;
    outline: none;
}

    .pre-download i {
        margin-right: 6px;
    }

.details-content {
    display: flex;
    width: 100%;
    margin-bottom: 16px;
    background-color: white;
    border-radius: 20px; /* 圆角同步缩小 */
}

.imgs-wrap {
    text-align: center;
    margin: 10px 0;
}

#preview-container {
    display: inline-block;
    margin: 10px;
}

    #preview-container img {
        display: block;
        margin: 10px auto;
        max-width: 100%;
        border: 1px solid #1cc;
    }

.download-preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 24px 0 0 0;
    padding: 18px 24px;
    background: #f8fafd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.06);
    min-height: 56px;
    font-size: 15px;
}

.remain-previews {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    background: #e3f2fd;
    border-radius: 8px;
    padding: 4px 12px;
    display: inline-block;
    line-height: 1.6;
}

.continue-read-link {
    display: flex;
    align-items: center;
    color: #1976d2;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    gap: 4px;
    transition: color 0.2s;
}

    .continue-read-link:hover {
        color: #0d47a1;
    }

.row-fit-param {
    background: white;
    border-radius: 16px;
    padding: 25px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    gap: 12px;
}

    .row-fit-param select.form-control {
        border-radius: 8px;
        border: 1px solid #ced4da;
        padding: 6px 28px 6px 12px;
        font-size: 15px;
        background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center/16px 10px;
        appearance: none;
        width:100px;
        min-width: 10px;
        margin-right: 0;
        transition: border-color 0.2s;
    }

        .row-fit-param select.form-control:focus {
            border-color: #409eff;
            outline: none;
        }
    .row-fit-param .btn-primary {
        border-radius: 8px;
        padding: 6px 22px;
        font-size: 15px;
        background: #409eff;
        border: none;
        transition: background 0.2s;
    }

        .row-fit-param .btn-primary:hover {
            background: #2077c6;
        }

        /*分页*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
}

    .pagination a {
        display: inline-block;
        padding: 6px 14px;
        border-radius: 4px;
        background: #f3f4f6;
        color: #374151;
        text-decoration: none;
        font-size: 15px;
        transition: background 0.2s, color 0.2s;
    }

        .pagination a.active {
            background: #2d8cf0;
            color: #fff !important;
            font-weight: bold;
        }

        .pagination a.disabled {
            pointer-events: none;
            background: #e5e7eb;
            color: #bbb !important;
        }

        .pagination a:hover:not(.active):not(.disabled) {
            background: #2077c6;
            color: #fff;
        }




.profile-headimg {
      
    object-fit: cover;
    display: flex;
    vertical-align: middle;
}
.profile-headimg img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
 
   
}
.profile-username {
    font-size: 28px;
    color: #333;
    margin: 20px;
}
.profile-vip {
    margin: 20px;
}
#vipdiv {
    margin-bottom: 10px;
}

#timediv {
    margin-bottom: 10px;
}




.profile-r1-left {
  
    box-sizing: border-box;
    padding-right: 1px;
    position: sticky;
   
    align-self: flex-start; /* 如果父容器是flex布局时建议加上 */
    z-index: 10;
    background: #fff;
}

.profile-r1-right {
    width:100%;
    background: #fff;
    box-sizing: border-box;
}

/*vip page*/
.vip-head {
    width: 100%;
}

.vip-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color:aliceblue;
    box-sizing: border-box;
    margin-bottom:0px;
}


.vip-box {
    background: #fff;
    border-radius: 18px;
    border: 2px solid #ccc;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 8px 18px 18px 18px;    
    cursor: pointer;
    margin: 10px;
   
}


    .vip-box:hover,
    .vip-box.selected {
        background: #fff8e1; /* 淡金色 */
        border-color: #ffd700; /* 金色高光 */
    }

.vip-box-title, .vip-box-new, .vip-box-old, .vip-box-day {
    text-align: center;
    margin: 10px;
}

/* 选中与未选中颜色定义 */
.vip-box-title h2 {
    color: #222; /* 未选中黑色 */
    margin: 0;
}
.vip-box.selected .vip-box-title h2 {
    color: #a80000; /* 选中暗红 */
}

.vip-box-new h1 {
    color: #aa0000; /* 未选中暗红 */
    margin: 20px;
    font-weight: bold;
}
.vip-box.selected .vip-box-new h1 {
    color: #e60000; /* 选中红色 */
}

.vip-box-old h3 {
    color: #444; /* 未选中暗黑 */
    text-decoration: line-through;
    margin: 0;
}
.vip-box.selected .vip-box-old h3 {
    color: #a80000; /* 选中暗红 */
    text-decoration: line-through;
}

.vip-box-day h4 {
    color: #444; /* 未选中暗黑 */
    margin: 0;
}
.vip-box.selected .vip-box-day h4 {
    color: #a80000; /* 选中暗红 */
}

.vip-btn {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px 0;
}

    .vip-btn a {
        display: inline-block;
        padding: 22px 90px; /* 增大内边距 */
        font-size: 28px; /* 增大字体 */
        font-weight: bold;
        color: #fff;
        background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
        border: none;
        border-radius: 48px; /* 增大圆角 */
        box-shadow: 0 6px 24px rgba(255, 215, 0, 0.18);
        text-decoration: none;
        letter-spacing: 3px;
        transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
        outline: none;
    }

        .vip-btn a:hover, .vip-btn a:focus {
            background: linear-gradient(90deg, #ffb300 0%, #ff9800 100%);
            box-shadow: 0 6px 24px rgba(255, 152, 0, 0.18);
            color: #fff;
            transform: translateY(-2px) scale(1.03);
            text-decoration: none;
        }

.vip-mark {
    margin: 24px auto 0 auto;
    padding: 16px 28px;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    color:#333;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
    letter-spacing: 1px;
    line-height: 1.8;
}

    .vip-mark a {
        color: #1976d2;
        text-decoration: underline;
        font-weight: 500;
        transition: color 0.2s;
    }

        .vip-mark a:hover {
            color: #e67c00;
            text-decoration: underline;
        }


.panel-heading-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-link {
    text-decoration: none;
}

.searchlist {
    flex: 1 1 99%; /* 5/6 */
    max-width: 99%;
    box-sizing: border-box;
    align-items: center;
}

.vip-renew-btn {
    margin-left: 32px;
    padding: 4px 18px;
    background: linear-gradient(90deg, #ffecb3 0%, #ffd54f 100%);
    color: #d35400;
    border-radius: 16px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(255, 215, 64, 0.15);
    transition: background 0.2s, color 0.2s;
}

    .vip-renew-btn:hover {
        background: #ffe082;
        color: #b34700;
        text-decoration: none;
    }