html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主要内容区域 - 添加这个包装器 */
.main-content {
    flex: 1;
}

.div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
    /* align-items: center; */
}

.input {
    padding: 10px 10px;
    width: 1010px;
    height: 30px;
    border-radius: 5px;
    font-size: 18px;
    color: #f41e3d;
    border: 1px solid #f41e3d;
    outline: none;
}

@media (max-width: 768px) {
    .input {
        border: 1px solid #f41e3d;
        outline: none;
    }
}

.submits {
    width: 120px;
    height: 52px;
    padding: 10px;
    margin-left: -8px;
    border: none;
    outline: none;
    background: #f41e3d;
    color: #FFF;
    font-size: 1em;
    box-shadow: 0.1px 2px 8px 4px rgba(0, 0, 0, 0.05);
}

.inputline{
    margin-top:8%
}

.inputlines{
    margin-top:1%
}

.listtop{
    margin-top:-50px;
}

.like{
    width: 60%;
    padding-left:36px;
    margin-top: 10px;
    /* background-color: #FFFFFF; */
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
    color: #feb4bf;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #feb4bf;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #feb4bf;
}

a {
    color: #000
}

p {
    color: #000
}

.infotext{
    font-weight:400;font-size:13px;margin-top:20px;color:#9D9D9D
}

@media (max-width: 600px) {
    .infotext{
        padding:0 20px;font-size:13px;margin-top:15px;color:#9D9D9D
    }

    .listtop{
        margin-top:-30px;
    }

    .inputline{
        margin-top:10%
    }

    .inputlines{
        margin-top:1%
    }

    .row {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .input {
        padding: 10px 10px;
        border: 2px solid #f41e3d;
        width: 100%;
        height: 27px;
        border-radius: 10px 0 0 10px;
        font-size: 18px;
        color: #f41e3d;
        outline: none;
        box-shadow: 0.1px 2px 8px 4px rgba(0, 0, 0, 0.05);
    }

    .submits {
        margin-left: -5px;
        width: 60px;
        height: 51px;
        border: none;
        outline: none;
        border-radius: 0 10px 10px 0;
        background: #f41e3d;
        color: #FFF;
        font-size: 1em;
        box-shadow: 0.1px 2px 8px 4px rgba(0, 0, 0, 0.05);
    }

    input:-moz-placeholder,
    textarea:-moz-placeholder {
        color: #feb4bf;
    }

    input:-ms-input-placeholder,
    textarea:-ms-input-placeholder {
        color: #feb4bf;
    }

    input::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder {
        color: #feb4bf;
    }

    a {
        color: #000
    }

    p {
        color: #000
    }
}

.list {
    width: 60%;
    margin: 10px;
    padding: 15px 15px;
    border-radius: 8px;
    background-color: #FFF;
    margin-top: 40px;
}

.listdiv {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listimage {
    width: 130px;
    height: 160px;
    margin-right: 22px;
    background-color: #EEEEEE;
    border-radius: 5px;
}

.info {
    color: #000;
    font-size: 14px;
    display: block;
    margin-top: 6px;
    flex: 1;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    opacity: .7;
}

.pic {
    width: 120px;
    height: 160px;
    border-radius: 5px;
}

.picwidth{
    max-width: 100px;
}

.name {
    color: #f41e3d;
    font-weight: 700;
}

.tag {
    color: #7B7B7B;
    font-size: 14px;
    margin-top: 6px;
    flex: 1;
    opacity: .7;
}

.bottom{
    border-bottom:1px dashed #E1E1E1;padding:5px 0;margin-bottom:10px
}

.sm{
    width: 48%;margin:10px;background-color:#EFEFEF;padding:30px 10px;border-radius:5px;color:#767676;font-size:14px
}

@media (max-width: 600px) {
    .sm{
        width: 90%;margin:10px;background-color:#EFEFEF;padding:10px 10px;border-radius:5px;color:#767676;font-size:14px
    }

    .list {
        width: 92%;
        border-radius: 8px;
        background-color: #FFF;
        margin-top: -20px;
    }

    .listdiv {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .listimage {
        width: 130px;
        height: 160px;
        margin-right: 22px;
        background-color: #EEEEEE;
        border-radius: 5px;
    }

    .picwidth{
        max-width: 90px;
    }

    .pic {
        margin-top:3px;
        width: 120px;
        height: 160px;
        border-radius: 5px;
    }

    .info {
        color: #000;
        font-size: 14px;
        display: block;
        margin-top: 6px;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        opacity: .7;
    }

    .name {
        color: #f41e3d;
        font-weight: 700;
    }

    .tag {
        color: #7B7B7B;
        font-size: 12px;
        margin-top: 6px;
        display: flex;
        flex: 1;
        opacity: .7;
    }

    .bottom{
        border-bottom:1px dashed #E1E1E1;padding:5px 0;margin-bottom:10px
    }
}

.plays{
    width: 100%;
    height: 830px;
}

.vodclass{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.indextagarr{
    background-color: rgba(0,0,0,0.04);
    padding: 6px 6px;
    border-radius:5px;
    margin-left: 5px;
    color: #7B7B7B;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.1s;
}

.tagarr{
    background-color: #222222;
    padding: 6px 6px;
    border-radius:5px;
    margin-left: 5px;
    color: #7B7B7B;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.1s;
}

@media (max-width: 767px) {
    .input {
        padding: 10px 10px;
        border: 2px solid #f41e3d;
        width: 100%;
        height: 27px;
        border-radius: 10px 0 0 10px;
        font-size: 18px;
        color: #f41e3d;
        outline: none;
        box-shadow: 0.1px 2px 8px 4px rgba(0, 0, 0, 0.05);
    }

    .submits {
        margin-left: -5px;
        width: 160px;
        height: 51px;
        border: none;
        outline: none;
        border-radius: 0 10px 10px 0;
        background: #f41e3d;
        color: #FFF;
        font-size: 1em;
        box-shadow: 0.1px 2px 8px 4px rgba(0, 0, 0, 0.05);
    }

    .div {
        margin: 3px;
    }

    .plays{
        width: 100%;
        height: 240px;
    }

    .vodclass{
        padding: 0 3px;
        margin-top: 10px;
        background-color: #FFFFFF;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .like{
        width: 95%;
        margin-left:-20px;
        margin-top: 10px;
        background-color: #FFFFFF;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .tagarr{
        padding: 6px 6px;
        border-radius:5px;
        margin-left: 5px;
        color: #A1A1A2;
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
    }
}

a {
    color: #000;
    text-decoration: none;
    transition: color 0.5s ease;
}

.indextagarr:hover{
    color: #f41e3d;
}

.name:hover {
    color: #18bda0;
}

a:hover {
    color: #f41e3d;
}

.alink{
    color:#7B7B7B
}

.alink:hover {
    background-color: #f41e3d;
    color: #FFFFFF;
}

/* 观看历史按钮样式 */
.history-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f41e3d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.history-btn:hover {
    background-color: #d81b35;
}

/* 历史记录弹窗样式 */
.history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.history-content {
    background-color: white;
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 20px; */
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.history-title {
    font-size: 20px;
    font-weight: bold;
    color: #f41e3d;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #f41e3d;
}

.history-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item a {
    color: #333;
    text-decoration: none;
}

.history-item a:hover {
    color: #f41e3d;
}

.history-time {
    font-size: 12px;
    color: #999;
}

.clear-history {
    background-color: #f41e3d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
}

.clear-history:hover {
    background-color: #d81b35;
}

.no-history {
    text-align: center;
    color: #999;
    padding: 20px;
}
.vod_actor {
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
/* 观看历史弹窗样式 */
.history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.history-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.history-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background: linear-gradient(135deg, #4a6baf, #8253aa); */
    color: white;
    flex-shrink: 0;
}

.history-title {
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: #f41e3d;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#historyListContainer {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    padding-top: 0px;
    flex-grow: 1;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item a {
    color: #333;
    text-decoration: none;
    flex: 1;
    margin-right: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.history-item a:hover {
    color: #4a6baf;
}

.history-time {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.no-history {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 14px;
}

.clear-history {
    width: 100%;
    padding: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}

.clear-history:hover {
    background: #c82333;
}

.history-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f41e3d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
}

.history-btn:hover {
    opacity: 0.9;
}

/* 防止弹窗打开时背景滚动 */
body.modal-open {
    overflow: hidden;
}
/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 10px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f41e3d;
    color: white;
    border-color: #f41e3d;
}

.pagination .current {
    background-color: #f41e3d;
    color: white;
    border-color: #f41e3d;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background-color: transparent;
    color: #ccc;
    border-color: #ddd;
}

.page-info {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 15px;
}

@media (max-width: 600px) {
    .pagination a, .pagination span {
        padding: 6px 12px;
        margin: 0 2px;
        font-size: 14px;
    }
    
    .page-info {
        font-size: 15px;
    }
}
/* 对联广告样式 */
.couplet-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    z-index: 998;
    transition: all 0.3s ease;
    /* 禁用文本选择 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.couplet-ad-left {
    left: 10px;
}

.couplet-ad-right {
    right: 10px;
}

.couplet-ad img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    /* 禁用图片选择和拖动 */
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* .couplet-ad img:hover {
    transform: scale(1.05);
} */

.ad-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #f41e3d;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.couplet-ad-left .ad-close {
    right: -10px;
    left: auto;
}

.couplet-ad-right .ad-close {
    right: -10px;
    left: auto;
}

footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 8px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: auto; 
}

footer p {
    margin: 5px 0;
    color: #666;
}

@media (max-width: 768px) {
    footer {
        padding: 8px 0;
        font-size: 12px;
    }
}
/* 移动端隐藏 */
@media (max-width: 768px) {
    .couplet-ad {
        display: none !important;
    }
}

/* 大屏幕调整位置 */
@media (min-width: 1400px) {
    .couplet-ad-left {
        left: 20px;
    }
    
    .couplet-ad-right {
        right: 20px;
    }
    
    .couplet-ad {
        width: 140px;
    }
}

/* ==================== 分享功能样式 ==================== */

/* 悬浮分享按钮样式 */
.floating-share-btn {
    position: fixed;
    right: 30px;
    top: 80%;
    transform: translateY(-50%);
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-share-btn:hover {
    background: #218838;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-share-btn i {
    font-size: 24px;
}

/* 透明分享弹窗样式 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background: transparent;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.share-image-container {
    position: relative;
    display: inline-block;
    max-width: 90vw;
    max-height: 80vh;
    margin-bottom: 20px;
}

.share-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

.close-share {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-share:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.1);
}

/* 保存图片按钮样式 */
.save-image-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.save-image-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.save-image-btn:active {
    transform: translateY(0);
}

.save-image-btn i {
    font-size: 18px;
}

/* 响应式设计 - 手机端分享功能 */
@media (max-width: 768px) {
    /* 手机端悬浮分享按钮 */
    .floating-share-btn {
        right: 15px;
        width: 50px;
        height: 50px;
        padding: 12px;
    }
    
    .floating-share-btn i {
        font-size: 20px;
    }

    /* 手机端关闭按钮 */
    .close-share {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: -12px;
        right: -12px;
    }

    /* 手机端保存按钮 */
    .save-image-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .save-image-btn i {
        font-size: 16px;
    }

    .share-image-container {
        max-height: 70vh;
        margin-bottom: 15px;
    }
    
    .share-image {
        max-height: 70vh;
    }
}

/* 超小屏幕进一步优化 */
@media (max-width: 480px) {
    /* 超小屏幕悬浮分享按钮 */
    .floating-share-btn {
        right: 10px;
        width: 45px;
        height: 45px;
        padding: 10px;
    }
    
    .floating-share-btn i {
        font-size: 18px;
    }

    /* 超小屏幕关闭按钮 */
    .close-share {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: -10px;
        right: -10px;
    }

    /* 超小屏幕保存按钮 */
    .save-image-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .share-image-container {
        max-height: 65vh;
        margin-bottom: 12px;
    }
    
    .share-image {
        max-height: 65vh;
    }
}