/*视频网站模板样式*/
* {
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    width: 100%;
    height: 100%;
    color: #000;
    background: #fff;
    font-size: 14px;
    font-family: PingFangSC-Light, Microsoft YaHei UI Light, Microsoft YaHei UI, Microsoft YaHei, helvetica, sans-serif;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: #000;
}
#header {
    width: 100%;
    position: relative;
    height: 80px;
    background: #fff;
    line-height: 60px;
    text-align: center;
}
#header .logo {
    height: 60px;
    width: 150px;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 20;
    background: url(../image/280x280.jpg) no-repeat left top/contain;
    font-size: 21px;
    text-indent: 50px;
}
ul.bar {
    width: 40px;
    position: fixed;
    z-index: 10;
    bottom: 15px;
    right: 15px;
}
ul.bar li {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    background: #ddd;
    border-radius: 10px;
}
ul.bar a {
    color: #fff;
    display: block;
}
#content {
    width: calc(100% - 20px);
    max-width: 1100px;
    position: relative;
    margin: 0 auto 20px;
}
#content .search {
    width: calc(100% - 40px);
    float: left;
    padding: 30px 20px;
    height: 40px;
    background: #f3f3f3;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    clear: both;
}
#content .search form {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    max-width: 450px;
    border: 2px solid #4a90e2;
    background: #fff;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
    transition: all 0.3s ease;
}
#content .search form:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}
#content .search form #wd {
    display: block;
    width: calc(100% - 50px);
    background: #fff;
    text-indent: 20px;
    height: 100%;
    float: left;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}
#content .search form #wd::placeholder {
    color: #999;
}
#content .search form #submit {
    display: block;
    cursor: pointer;
    width: 50px;
    background: #29f;
    color: #fff;
    font-size: 14px;
    line-height: 40px;
    height: 100%;
    text-align: center;
    float: right;
    border: none;
    border-radius: 20px;
    transition: background 0.3s ease;
}
#content .search form #submit:hover {
    background: #1a7fcc;
}
#content .search .search-history {
    display: none;
    margin-top: 10px;
    padding: 10px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 40px);
    animation: slideDown 0.3s ease;
}
#content .search .search-history.show {
    display: block;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
#content .search {
    position: relative;
}
#content .search .search-history-title {
    padding: 0 15px 8px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#content .search .search-history-title .clear-history {
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
#content .search .search-history-title .clear-history:hover {
    color: #ff6b6b;
    background: #fff5f5;
}
#content .search .search-history-list {
    padding: 8px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#content .search .search-history-list .history-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}
#content .search .search-history-list .history-item:hover {
    background: #e8f4ff;
    border-color: #4a90e2;
    color: #4a90e2;
    transform: translateY(-1px);
}
#content .bd{
    width: calc(100% - 40px);
    float: left;
    padding: 20px;
    background: #f3f3f3;
    border-radius: 10px;
    margin: 10px 0;
    clear: both;
}
#content .bd #title .bd_title {
    width: 100%;
    text-indent: 10px;
    display: block;
    height: 40px;
    line-height: 40px;
    text-align: left;
    font-size: 18px;
    color: #000;
}
#content .bd .nav-container {
    width: 100%;
    clear: both;
    overflow: hidden;
}
#content .bd ul#nav {
    width: 100%;
    display: block;
    margin: 15px 0;
    padding: 0;
    overflow: hidden;
    clear: both;
}
#content .bd ul#nav li {
    margin: 0 8px 12px 0;
    float: left;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    height: 36px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: fit-content;
}
#content .bd ul#nav li:hover {
    border-color: #29f;
    box-shadow: 0 2px 8px rgba(41, 153, 255, 0.2);
    transform: translateY(-1px);
}
#content .bd ul#nav li.on {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}
#content .bd ul#nav li a {
    display: block;
    color: #333;
    padding: 0 20px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    line-height: 36px;
    height: 36px;
    box-sizing: border-box;
}
#content .bd ul#nav li.on a {
    color: #fff;
    font-weight: 600;
}
/* 当前播放集数标识样式 - 优化版，不影响布局 */
#content .bd ul#nav li.hsc {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    border: 2px solid #ff6b6b !important;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5) !important;
    color: #fff !important;
    animation: pulse-playing 2s ease-in-out infinite;
    z-index: 1;
    overflow: visible;
}
/* 播放图标 - 作为内容的一部分，与文字一起居中 */
#content .bd ul#nav li.hsc::before {
    content: "▶";
    display: inline-block;
    margin-right: 4px;
    font-size: 11px;
    line-height: 1;
    animation: pulse-icon 1.5s ease-in-out infinite;
    vertical-align: middle;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}
/* 播放中标签 - 已移除，避免影响布局 */
/* #content .bd ul#nav li.hsc::after {
    content: "播放中";
    position: absolute;
    top: -8px;
    right: -3px;
    font-size: 10px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: #fff;
    padding: 3px 7px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.6);
    z-index: 11;
    line-height: 1.2;
    pointer-events: none;
} */
#content .bd ul#nav li.hsc a {
    color: #fff !important;
    font-weight: 700 !important;
    position: relative;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    line-height: 36px;
    height: 36px;
    box-sizing: border-box;
}
@keyframes pulse-playing {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.7);
    }
}
@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}
#content .bd ul#nav.sub-nav {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    position: relative;
    clear: both;
}
#content .bd ul#nav.sub-nav li {
    margin: 0 10px 12px 0;
    font-size: 13px;
    height: 34px;
    line-height: 34px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
#content .bd ul#nav.sub-nav li:hover {
    background: #f0f7ff;
    border-color: #4a90e2;
    color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
    transform: translateY(-1px);
}
#content .bd ul#nav.sub-nav li.on {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
    transform: translateY(-1px);
}
#content .bd ul#nav.sub-nav li.on a {
    color: #fff;
    font-weight: 600;
}
#content .bd ul#nav.sub-nav li a {
    padding: 0 18px;
    color: #555;
    font-weight: 400;
    display: block;
    transition: color 0.3s ease;
}
#content .bd ul#list {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}
#content .bd ul#list li {
    width: 120px;
    margin: 17px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: 0.3s all;
}
#content .bd ul#list li a {
    display: block;
    position: relative;
    border-radius: 5px;
}
#content .bd ul#list li img {
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
#content .bd ul#list li span {
    display: block;
    width: 100%;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
#content .bd ul#list li em {
    display: block;
    text-align: center;
    font-style: normal;
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    position: absolute;
    top: 156px;
    z-index: 100;
    left: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
}
#content .bd ul#list li em b {
    color: #e09015;
}
#content .bd ul#list li:hover {
    background: #fff;
    box-shadow: 0 1px 20px 0 #ddd;
}
#content .bd #more {
    width: 100%;
    height: 30px;
    margin: 10px 0;
    line-height: 30px;
}
#content .bd #more a {
    display: block;
    width: 180px;
    background: #eee;
    height: 30px;
    border-radius: 15px;
    color: #999;
    font-size: 16px;
    text-align: center;
    margin: 0 auto;
}
.page {
    width: calc(100% - 40px);
    max-width: 800px;
    padding: 25px 20px;
    background: #fff;
    border-radius: 10px;
    margin: 10px auto;
    text-align: center;
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.page-info {
    margin-bottom: 18px;
    width: 100%;
}
.page-info .page-text {
    font-size: 14px;
    color: #666;
    display: inline-block;
}
.page-info .page-current {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}
.page-info .page-total {
    color: #333;
    font-weight: 600;
}
.page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    width: 100%;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    height: 36px;
    min-width: 80px;
    line-height: 1;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}
.page-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.page-btn.disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}
.page-jump {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.page-input {
    width: 80px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.page-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.page-go-btn {
    height: 36px;
    padding: 0 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.page-go-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.page-go-btn:active {
    transform: translateY(0);
}
#foot {
    clear: both;
    font-size: 12px;
    text-align: center;
    width: 100%;
    position: relative;
    margin: 0 auto;
    background: #fff;
    line-height: 20px;
    padding: 20px 0;
    color: #999;
}
#foot span {
    line-height: 50px;
}
#foot span a {
    color: #f03;
}
/* 播放页面操作按钮 */
.play-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding: 10px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.share-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.share-btn:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.favorite-btn {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(252, 182, 159, 0.4);
}

.favorite-btn:hover {
    box-shadow: 0 6px 20px rgba(252, 182, 159, 0.6);
}

.action-btn i {
    font-size: 16px;
}

/* 浮动收藏按钮（所有页面） */
.favorite-float-btn {
    position: fixed;
    left: 20px;
    bottom: 80px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(238, 90, 111, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.favorite-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(238, 90, 111, 0.7);
}

.favorite-float-btn .favorite-icon {
    color: #fff;
    font-size: 24px;
    animation: bounce 1.5s infinite;
}

.favorite-float-btn .favorite-text {
    color: #fff;
    font-size: 11px;
    margin-top: 2px;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(238, 90, 111, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(238, 90, 111, 0.8);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 分享弹窗 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-content {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.show .share-content {
    transform: scale(1);
}

.share-content h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #333;
    font-size: 20px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: left;
}

.share-item:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.share-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.share-item .fa-facebook {
    color: #1877f2;
}

.share-item .fa-twitter {
    color: #1da1f2;
}

.share-item .fa-whatsapp {
    color: #25d366;
}

.share-item .fa-telegram {
    color: #0088cc;
}

.share-item .fa-link {
    color: #667eea;
}

.close-share {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.close-share:hover {
    background: #e8e8e8;
}

/* 消息提示 */
.message-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: #fff;
    padding: 18px 30px;
    border-radius: 15px;
    z-index: 10001;
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
    text-align: center;
    line-height: 1.5;
}

.message-tip i {
    font-size: 20px;
    flex-shrink: 0;
}

.message-tip span {
    display: inline-block;
}

.message-tip.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.message-tip-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.5);
}

.message-tip-error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 30px rgba(245, 87, 108, 0.5);
}

.message-tip-info {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
    ul.bar {
        right: 3px;
    }
    .vbox {
        display: none;
    }
    #video{
    	height: 200px;
    }
    #content .bd ul#list li {
	    margin: 5px;
	}
	#content .bd ul#list {
	    justify-content:center;
	}
	
	.play-actions {
	    flex-direction: column;
	    gap: 10px;
	}
	
	.action-btn {
	    width: 100%;
	    justify-content: center;
	}
	
	.favorite-float-btn {
	    left: 10px;
	    bottom: 80px;
	    width: 50px;
	    height: 50px;
	}
	
	/* 移动端当前播放集数样式优化 */
	#content .bd ul#nav li {
	    min-width: 70px;
	    font-size: 13px;
	}
	#content .bd ul#nav li.hsc::before {
	    margin-right: 4px;
	    font-size: 10px;
	}
	/* 移动端播放中标签已移除 */
	/* #content .bd ul#nav li.hsc::after {
	    top: -8px;
	    right: -3px;
	    font-size: 8px;
	    padding: 1px 4px;
	} */
	#content .bd ul#nav li.hsc a {
	    padding-left: 18px !important;
	    padding-right: 15px !important;
	}
	
	.favorite-float-btn .favorite-icon {
	    font-size: 20px;
	}
	
	.favorite-float-btn .favorite-text {
	    font-size: 10px;
	}
	
	#content .bd ul#nav.sub-nav li {
	    margin: 0 6px 10px 0;
	    font-size: 12px;
	    height: 30px;
	    line-height: 30px;
	}
	
	#content .bd ul#nav.sub-nav li a {
	    padding: 0 14px;
	}
	
	.page {
	    padding: 15px 10px;
	}
	
	.page-info {
	    margin-bottom: 10px;
	}
	
	.page-info .page-text {
	    font-size: 12px;
	}
	
	.page-nav {
	    gap: 8px;
	}
	
	.page-btn {
	    padding: 6px 12px;
	    height: 32px;
	    line-height: 32px;
	    font-size: 12px;
	}
	
	.page-jump {
	    flex-direction: column;
	    gap: 8px;
	}
	
	.page-input {
	    width: 100%;
	    max-width: 120px;
	}
	
	.page-go-btn {
	    width: 100%;
	    max-width: 120px;
	}
}