@font-face {
    font-family: 'Pixel';
    src: local('Courier New'), local('MS Gothic');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pixel', monospace;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    background-image: none;
    position: relative;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    max-width: 100vw;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 扫描线效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            rgba(253, 45, 92, 0.3) 1px,
            transparent 2px);
    background-size: 100% 2px;
    background-position: 0 0;
    pointer-events: none;
    z-index: 99;
}

/* 蓝移线效果 */
body::before {
    content: '';
    position: fixed;
    top: -200%;
    left: 0;
    width: 100%;
    height: 400%;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            rgba(0, 225, 255, 0.5) 1px,
            transparent 3px);
    background-size: 100% 5px;
    background-repeat: repeat-y;
    background-attachment: fixed;
    opacity: 0.7;
    pointer-events: none;
    z-index: 98;
    animation: blueShift 12s linear infinite;
}

/* 蓝移线动画 */
@keyframes blueShift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50%);
    }
}

/* 红移线效果 */
.red-shift {
    position: fixed;
    bottom: -200%;
    left: 0;
    width: 100%;
    height: 400%;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            rgba(255, 0, 60, 0.5) 1px,
            transparent 3px);
    background-size: 100% 5px;
    background-repeat: repeat-y;
    background-attachment: fixed;
    opacity: 0.7;
    pointer-events: none;
    z-index: 97;
    animation: redShift 50s linear infinite;
}

/* 红移线动画 */
@keyframes redShift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px;
    position: relative;
    background-color: #0a0a0a;
    border: 1px solid #fd2d5c;
    box-shadow: 0 0 20px rgba(253, 45, 92, 0.2);
    z-index: 101;
    margin-bottom: 20px;
}

/* 选中文字样式 */
::selection {
    background-color: #fd2d5c;
    color: #fff;
}

::-moz-selection {
    background-color: #fd2d5c;
    color: #fff;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
}

/* 标题部分样式 */
header h1 {
    font-size: 3.4rem;
    color: #fd2d5c;
    letter-spacing: 2px;
    transform: skew(-5deg);
    margin: 0;
    font-weight: bold;
    text-shadow:
        0 0 8px #fd2d5c,
        0 0 15px #fd2d5c,
        2px 0 0 rgba(255, 0, 0, 0.9),
        -2px 0 0 rgba(0, 255, 255, 0.9),
        0 2px 0 rgba(255, 0, 0, 0.7),
        0 -2px 0 rgba(0, 255, 255, 0.7);
    animation: intermittentShake 3s infinite ease-in-out;
}

/* 间歇性抖动动画 */
@keyframes intermittentShake {

    0%,
    93%,
    100% {
        transform: translateX(0);
    }

    94% {
        transform: translateX(-1px);
    }

    95% {
        transform: translateX(1px);
    }

    96% {
        transform: translateX(-1px);
    }

    97% {
        transform: translateX(1px);
    }

    98% {
        transform: translateX(-0.5px);
    }

    99% {
        transform: translateX(0.5px);
    }
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    color: #ffffff;
    margin-top: 10px;
}

.search-section {
    padding: 20px 20px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #fd2d5c;
    position: relative;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

#keyword {
    width: 100%;
    padding: 12px 15px;
    padding-right: 40px;
    font-size: 16px;
    border: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    outline: none;
    font-family: 'Pixel', monospace;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fd2d5c;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pixel', monospace;
    transition: all 0.2s ease;
    z-index: 10;
}

.clear-btn:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.clear-btn.hidden {
    display: none;
}

#keyword::placeholder {
    color: #666666;
}

#keyword:focus {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
    border-color: #ffffff;
}

#search-btn {
    padding: 12px 25px;
    font-size: 16px;
    background-color: #fd2d5c;
    color: #000000;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    font-family: 'Pixel', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#search-btn:hover {
    background-color: #ffffff;
    color: #fd2d5c;
    border-color: #fd2d5c;
    transform: scale(1.05);
}

/* 搜索历史样式 */
.search-history {
    position: absolute;
    width: 100%;
    background-color: #000;
    border: 1px solid #fd2d5c;
    box-shadow: 0 2px 10px rgba(253, 45, 92, 0.2);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 0;
    top: 100%;
    left: 0;
    font-family: 'Pixel', monospace;
}

.search-history-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    border-bottom: 1px solid rgba(253, 45, 92, 0.1);
}

.search-history-item:hover {
    background-color: rgba(253, 45, 92, 0.1);
    color: #fd2d5c;
}

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

/* 关键词提示项样式 */
.keyword-suggestion {
    background-color: rgba(0, 225, 255, 0.05);
}

.keyword-suggestion:hover {
    background-color: rgba(0, 225, 255, 0.15);
}

/* 清除历史按钮 */
.clear-history {
    padding: 10px 15px;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(253, 45, 92, 0.1);
    border-top: 1px solid #fd2d5c;
}

.clear-history:hover {
    background-color: rgba(253, 45, 92, 0.2);
    color: #fd2d5c;
}

.hot-keywords {
    text-align: center;
    margin-top: 15px;
}

.hot-keywords h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fd2d5c;
    font-weight: bold;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.keyword-tag {
    padding: 6px 12px;
    background-color: rgba(255, 0, 0, 0.1);
    color: #ffffff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Pixel', monospace;
    transform: skew(-10deg);
}

.keyword-tag:hover {
    transform: skew(-10deg) scale(1.15);
}

/* 重置热门关键词样式，保持简洁 */
.hot-keywords .keyword-tag {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ffffff;
    padding: 6px 12px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    transform: skew(-10deg);
}

.hot-keywords .keyword-tag:hover {
    transform: skew(-10deg) scale(1.15);
}

.result-stats {
    margin-top: 15px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.results-section {
    padding: 20px 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.video-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(253, 45, 92, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 350px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.video-card img {
    pointer-events: none;
}

.video-info {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    border-color: #fd2d5c;
    background-color: rgba(253, 45, 92, 0.05);
    transform: translateY(-2px);
}

.video-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #000;
    margin-bottom: 15px;
    border: none;
    display: block;
}

.video-info {
    padding: 0;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 54px;
    min-height: 54px;
    color: #ffffff;
    font-family: 'Pixel', monospace;
}

.video-meta {
    font-size: 14px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: bold;
}

.video-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.video-author {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    color: #ffffff;
}

.video-bv {
    color: #fd2d5c;
    font-weight: bold;
    font-size: 16px;
}

.video-date {
    font-size: 14px;
    color: #ffffff;
}

.pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
    flex-wrap: wrap;
    line-height: 1;
}

.pagination-btn {
    padding: 6px 12px;
    background-color: #fd2d5c;
    color: #000000;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    font-family: 'Pixel', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin: 0 2px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #ffffff;
    color: #fd2d5c;
    border-color: #fd2d5c;
    transform: scale(1.05);
}

.pagination-btn:active {
    transform: scale(0.95);
}

.pagination-btn.active {
    background-color: #ffffff;
    color: #fd2d5c;
    border-color: #fd2d5c;
}

.pagination-ellipsis {
    color: #ffffff;
    margin: 0 8px;
    font-size: 16px;
}

.pagination-info {
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Pixel', monospace;
}

.jump-page {
    display: flex;
    align-items: center;
    gap: 5px;
}

.jump-input {
    width: 50px;
    padding: 6px 5px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #fd2d5c;
    color: #ffffff;
    font-family: 'Pixel', monospace;
    text-align: center;
    vertical-align: middle;
    height: auto;
}

/* 禁用数字输入框箭头 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.jump-btn {
    padding: 4px 8px;
    font-size: 12px;
    text-transform: none;
}

.jump-input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(253, 45, 92, 0.5);
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    color: #ffffff;
    margin: 20px 0;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #fd2d5c;
    display: none;
    font-weight: bold;
    font-family: 'Pixel', monospace;
}

.loading.active {
    display: block;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid #fd2d5c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* 骨架屏样式 */
.skeleton-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(253, 45, 92, 0.1);
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 350px;
    position: relative;
    z-index: 1;
}

.skeleton-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 15px;
}

.skeleton-title {
    height: 54px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 10px;
    border-radius: 2px;
}

.skeleton-meta {
    height: 40px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 2px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 复古滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
    border: 1px solid #fd2d5c;
}

::-webkit-scrollbar-thumb {
    background: #fd2d5c;
}

::-webkit-scrollbar-thumb:hover {
    background: #fd2d5c;
}


/* 主要内容区域样式 */
.main-content {
    flex: 1;
    padding: 40px 0 0 0;
    width: 100%;
}

/* 底部footer样式 - 与geelain-sample完全一致 */
.site-footer {
    text-align: center;
    padding: 15px;
    font-size: 0.7rem;
    color: #666;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #0a0a0a;
    margin-top: 40px;
    border-top: 2px solid #fd2d5c;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.8);
    font-family: 'Pixel', monospace;
}

/* 访问计数器样式 */
.view-counter {
    font-family: 'Pixel', monospace;
    font-size: 0.9rem;
    color: #ffffff;
    margin: 10px 0;
    text-align: center;
    text-shadow: 0 0 5px rgba(253, 45, 92, 0.5);
    display: block;
}

/* 确保眼睛SVG与数字对齐 */
.view-counter svg {
    display: inline-block;
    vertical-align: bottom;
    margin-right: 4px;
    margin-bottom: -1px;
}

.view-counter span {
    display: inline-block;
    vertical-align: bottom;
    line-height: 1;
}

.site-footer p:first-child {
    color: #fd2d5c;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    margin: 5px auto 0;
    text-align: center;
}

.footer-section {
    margin-bottom: 5px;
    padding: 5px;
    border: 1px solid #1a1a1a;
    background-color: #050505;
    border-radius: 2px;
}

.footer-section-title {
    font-weight: bold;
    color: #fd2d5c;
    margin-bottom: 3px;
    font-size: 0.8rem;
    display: block;
}

.footer-section-content {
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.3;
    display: block;
}

/* 链接图标样式 */
.link-icon {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.footer-section-content a:hover .link-icon {
    transform: scale(1.1);
}

/* 页脚链接样式 */
.footer-section-content a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-section-content a:hover {
    color: #fd2d5c;
    border-bottom-color: #fd2d5c;
    text-shadow: 0 0 8px #fd2d5c;
}

/* 响应式设计 */
/* 超大屏幕 - 桌面显示器和电视 (1600px+) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

/* 大屏幕 - 大屏幕桌面显示器 (1200px-1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .container {
        max-width: 1300px;
    }
}

/* 中等屏幕 - 标准桌面显示器 (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 1100px;
    }

    .video-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }

    .video-cover {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* 小屏幕 - 笔记本电脑和平板 (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 85%;
        margin: 0 auto;
        background-color: rgba(0, 0, 0, 0.75);
        margin-bottom: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .video-cover {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    header h1 {
        font-size: 2.4rem;
    }
}

/* 平板竖屏和大屏手机 (576px-767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 90%;
        margin: 0 auto;
        background-color: rgba(0, 0, 0, 0.7);
        margin-bottom: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .video-cover {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    header h1 {
        font-size: 2.2rem;
    }
}

/* 标准手机 (376px-575px) */
@media (min-width: 376px) and (max-width: 575px) {
    .container {
        max-width: 95%;
        margin: 0 8px;
        background-color: rgba(0, 0, 0, 0.65);
        margin-bottom: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-cover {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    header h1 {
        font-size: 2.4rem;
    }

    .search-box {
        flex-direction: column;
    }

    #search-btn {
        margin-top: 10px;
    }
}

/* 视频详情区域的返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Pixel', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    background-color: #0a0a0a;
    border: 2px solid #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    line-height: 1;
    vertical-align: middle;
    background-clip: padding-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.back-btn:hover {
    background-color: #555555;
    color: white;
    border-color: white;
    transform: scale(1.1);
}

.video-detail-section {
    padding: 20px 20px;
    margin-bottom: 20px;
}

.video-header {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

.video-cover-large {
    width: 400px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #000;
    border: none;
    min-height: 225px;
}

.video-info-large {
    width: 100%;
    max-width: 600px;
}

.video-title-large {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #ffffff;
    font-family: 'Pixel', monospace;
}

.video-meta-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #ffffff;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.meta-label {
    font-weight: bold;
    color: #fd2d5c;
    min-width: 70px;
}

/* 视频详情区域的B站按钮 */
.bilibili-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Pixel', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    background-color: #fd2d5c;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bilibili-link:hover {
    background-color: white;
    color: #fd2d5c;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
}

.bilibili-link svg {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* +按钮hover效果 */
.add-keyword-btn:hover {
    background-color: #555 !important;
    transform: skew(-10deg) scale(1.15) !important;
}

.video-description {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border: 1px solid rgba(253, 45, 92, 0.1);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    font-family: 'Pixel', monospace;
}

.keywords-section {
    padding: 20px 20px;
}

.keywords-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.keywords-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fd2d5c;
}

.keyword-input-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#newKeyword {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    outline: none;
    transition: all 0.3s;
    font-family: 'Pixel', monospace;
}

#newKeyword::placeholder {
    color: #666666;
}

#newKeyword:focus {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
    border-color: #ffffff;
}

#newKeywordCategory {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #fd2d5c;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    outline: none;
    font-family: 'Pixel', monospace;
}

#addKeywordBtn {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #fd2d5c;
    color: #000000;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    font-family: 'Pixel', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#addKeywordBtn:hover {
    background-color: #ffffff;
    color: #fd2d5c;
    border-color: #fd2d5c;
    transform: scale(1.05);
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-count {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    transform: skew(0deg) !important;
}

/* 确保keyword-tag的hover效果正确应用 */
.keyword-tag:hover .keyword-count {
    background-color: rgba(255, 255, 255, 0.5);
}

/* 移除旧的keyword-item样式，使用统一的keyword-tag样式 */
.keyword-item {
    display: none;
}

/* 删除关键词按钮样式 */
.delete-keyword-btn {
    display: none;
    margin-left: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.delete-keyword-btn:hover {
    opacity: 1;
    color: #fd2d5c;
    transform: scale(1.2);
}

/* 编辑和删除视频按钮样式 */
.edit-video-btn,
.delete-video-btn {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: 2px solid #fd2d5c;
    cursor: pointer;
    font-family: 'Pixel', monospace;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.edit-video-btn:hover,
.delete-video-btn:hover {
    background-color: #fd2d5c;
    color: white;
    transform: scale(1.05);
}

.delete-video-btn {
    border-color: #e74c3c;
}

.delete-video-btn:hover {
    background-color: #e74c3c;
    border-color: white;
}

.no-video {
    text-align: center;
    padding: 50px 20px;
    color: #ffffff;
    margin: 20px 0;
}

/* 小屏手机 (320px-375px) */
@media (min-width: 320px) and (max-width: 375px) {
    .container {
        max-width: 100%;
        margin: 0 5px;
        background-color: rgba(0, 0, 0, 0.6);
        margin-bottom: 20px;
        padding: 12px 12px;
    }

    body {
        margin: 20px 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .video-cover {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .search-box {
        flex-direction: column;
    }

    #search-btn {
        margin-top: 10px;
    }
}

/* 详情页响应式设计 */
@media (max-width: 991px) {
    .video-header {
        flex-direction: column;
    }
    
    .video-cover-large {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    .video-meta-large {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .keyword-input-box {
        flex-direction: column;
    }
}

/* 添加视频页面样式 */
.add-video-section {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #fd2d5c;
    font-weight: bold;
    font-size: 16px;
}

.video-info-inputs {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border: 1px solid #fd2d5c;
    border-radius: 5px;
    margin-bottom: 15px;
}

.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.input-row label {
    min-width: 80px;
    color: #ffffff;
    font-size: 14px;
}

.input-row input,
.input-row textarea {
    flex: 1;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 14px;
}

.input-row input:focus,
.input-row textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
}

.json-input-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #fd2d5c;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 14px;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
}

.btn-secondary {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: 2px solid #fd2d5c;
    cursor: pointer;
    font-family: 'Pixel', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #fd2d5c;
    color: white;
    transform: scale(1.05);
}

.keywords-editor {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border: 1px solid #fd2d5c;
    border-radius: 5px;
}

.keywords-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.keywords-input-group input {
    flex: 1;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.keywords-input-group input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #ffffff;
}

.keywords-input-group input::placeholder {
    color: #666666;
}

.keywords-input-group select {
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.keywords-input-group select:hover {
    background-color: rgba(253, 45, 92, 0.1);
    border-color: #ffffff;
}

.keywords-input-group select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
}

/* 关键词提示框 */
.keyword-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #000;
    border: 1px solid #fd2d5c;
    box-shadow: 0 2px 10px rgba(253, 45, 92, 0.2);
    z-index: 1000;
    display: none;
    margin-bottom: 10px;
}

/* 关键词提示项 */
.keyword-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Pixel', monospace;
    font-size: 14px;
    transition: background-color 0.2s;
    background-color: rgba(0, 225, 255, 0.05);
    border-bottom: 1px solid rgba(253, 45, 92, 0.2);
}

/* 关键词提示项悬停效果 */
.keyword-suggestion-item:hover {
    background-color: rgba(0, 225, 255, 0.15);
}

/* 关键词管理页面专用样式 */
.keyword-admin-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border: 1px solid rgba(253, 45, 92, 0.3);
    border-radius: 5px;
}

.keyword-admin-section .keyword-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.keyword-admin-section #keywordInput {
    flex: 2;
    min-width: 200px;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
}

.keyword-admin-section #keywordInput:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #ffffff;
    transform: scale(1.01);
}

.keyword-admin-section #keywordInput::placeholder {
    color: #666666;
}

.keyword-admin-section #categoryInput {
    padding: 12px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.keyword-admin-section #categoryInput:hover {
    background-color: rgba(253, 45, 92, 0.15);
    border-color: #ffffff;
    transform: scale(1.02);
}

.keyword-admin-section #categoryInput:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #ffffff;
}

/* 自定义select下拉箭头 */
.keyword-admin-section #categoryInput {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fd2d5c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.keyword-admin-section #categoryInput:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* 自定义select选项样式 */
.keyword-admin-section #categoryInput option,
.keyword-filter #filterCategory option {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Pixel', monospace;
    font-size: 14px;
    padding: 10px;
    border: none;
}

.keyword-admin-section #categoryInput option:checked,
.keyword-filter #filterCategory option:checked {
    background-color: #fd2d5c;
    color: #000000;
    font-weight: bold;
}

.keyword-admin-section #descriptionInput {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid rgba(253, 45, 92, 0.5);
    font-family: 'Pixel', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
}

.keyword-admin-section #descriptionInput:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #fd2d5c;
}

.keyword-admin-section #descriptionInput::placeholder {
    color: #666666;
}

.keyword-admin-section .btn-add {
    padding: 12px 25px;
    background-color: #fd2d5c;
    color: #000000;
    border: 2px solid #ffffff;
    cursor: pointer;
    font-family: 'Pixel', monospace;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.keyword-admin-section .btn-add:hover {
    background-color: #ffffff;
    color: #fd2d5c;
    border-color: #fd2d5c;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
}

.keyword-admin-section .btn-add:active {
    transform: scale(0.95);
}

/* 关键词筛选区域 */
.keyword-filter {
    margin-bottom: 15px;
}

.keyword-filter #filterCategory {
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.keyword-filter #filterCategory:hover {
    background-color: rgba(253, 45, 92, 0.15);
    border-color: #ffffff;
    transform: scale(1.02);
}

.keyword-filter #filterCategory:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #ffffff;
}

/* 自定义filterCategory下拉箭头 */
.keyword-filter #filterCategory {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fd2d5c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.keyword-filter #filterCategory:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* 关键词列表区域 */
.keyword-admin-section .keywords-list {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 1px solid rgba(253, 45, 92, 0.2);
    border-radius: 5px;
    min-height: 100px;
}

/* 主关键词区域样式 */
.main-keyword-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 1px solid rgba(253, 45, 92, 0.2);
    border-radius: 5px;
    margin-bottom: 15px;
}

.main-keyword-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#mainKeywordSearch {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
}

#mainKeywordSearch:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #ffffff;
    transform: scale(1.01);
}

#mainKeywordSearch::placeholder {
    color: #666666;
}

.main-keyword-input .btn-add {
    padding: 12px 25px;
    background-color: #fd2d5c;
    color: #000000;
    border: 2px solid #ffffff;
    cursor: pointer;
    font-family: 'Pixel', monospace;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-keyword-input .btn-add:hover {
    background-color: #ffffff;
    color: #fd2d5c;
    border-color: #fd2d5c;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
}

.main-keyword-input .btn-add:active {
    transform: scale(0.95);
}

.main-keyword-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.main-keyword-tag {
    transition: all 0.3s ease;
}

.main-keyword-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
}

.remove-main-btn {
    transition: all 0.2s ease;
}

.remove-main-btn:hover {
    opacity: 1;
    color: #fd2d5c;
    transform: scale(1.2);
}

/* 主关键词搜索下拉框样式 */
.main-keyword-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid #fd2d5c;
    border-radius: 5px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.main-keyword-search-result {
    transition: all 0.2s ease;
}

.main-keyword-search-result:hover {
    background-color: rgba(253, 45, 92, 0.2);
    transform: translateX(5px);
}

/* 关联关键词区域样式 */
.related-keywords-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 1px solid rgba(253, 45, 92, 0.2);
    border-radius: 5px;
    margin-bottom: 15px;
}

.related-keywords-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#relatedKeywordSearch {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid #fd2d5c;
    font-family: 'Pixel', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
}

#relatedKeywordSearch:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #ffffff;
    transform: scale(1.01);
}

#relatedKeywordSearch::placeholder {
    color: #666666;
}

.related-keywords-input .btn-add {
    padding: 12px 25px;
    background-color: #fd2d5c;
    color: #000000;
    border: 2px solid #ffffff;
    cursor: pointer;
    font-family: 'Pixel', monospace;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.related-keywords-input .btn-add:hover {
    background-color: #ffffff;
    color: #fd2d5c;
    border-color: #fd2d5c;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(253, 45, 92, 0.6);
}

.related-keywords-input .btn-add:active {
    transform: scale(0.95);
}

.related-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.related-keyword-tag {
    transition: all 0.3s ease;
}

.related-keyword-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
}

.remove-related-btn {
    transition: all 0.2s ease;
}

.remove-related-btn:hover {
    opacity: 1;
    color: #fd2d5c;
    transform: scale(1.2);
}

/* 关联关键词搜索下拉框样式 */
.related-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000;
    border: 1px solid #fd2d5c;
    box-shadow: 0 4px 15px rgba(253, 45, 92, 0.3);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 5px;
    margin-top: 5px;
    width: 100%;
}

.related-search-result {
    transition: all 0.2s ease;
}

.related-search-result:hover {
    background-color: rgba(253, 45, 92, 0.2);
}

/* 响应式设计 */
@media (max-width: 767px) {
    .keyword-admin-section .keyword-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .keyword-admin-section #keywordInput,
    .keyword-admin-section #categoryInput,
    .keyword-admin-section #descriptionInput,
    .keyword-admin-section .btn-add {
        width: 100%;
        min-width: auto;
    }
    
    .keyword-admin-section #categoryInput:hover,
    .keyword-admin-section .btn-add:hover {
        transform: scale(1.02);
    }
    
    .keyword-filter #filterCategory {
        width: 100%;
    }
    
    .keyword-filter #filterCategory:hover {
        transform: scale(1.02);
    }
}

.btn-add {
    padding: 8px 16px;
    background-color: #fd2d5c;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    font-family: 'Pixel', monospace;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background-color: white;
    color: #fd2d5c;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary {
    padding: 12px 30px;
    background-color: #fd2d5c;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    font-family: 'Pixel', monospace;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: white;
    color: #fd2d5c;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(253, 45, 92, 0.5);
}