/* ========== 现代深蓝紫色主题 ========== */

/* 平滑过渡关键帧 */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 全局 & 背景 ===== */
body {
    max-width: 660px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #0f0f1a;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e2e8f0;
    line-height: 1.6;
}

/* ===== 现代滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #a855f7);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #c084fc);
}

/* ===== 顶部导航 ===== */
header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    color: #ffffff;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5), transparent);
}

#nav-open {
    display: block;
    position: relative;
    height: 3vh;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

#nav-open:hover {
    transform: scale(1.1);
}

#nav-close {
    display: none;
    position: relative;
    height: 4vh;
}

.rubfvd-nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.rubfvd-nav-logo img {
    height: 4vh;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.rubfvd-nav-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

.rubfvd-nav-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rubfvd-navbar {
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

/* ===== 侧边菜单 ===== */
.rubfvd-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 6vh;
    right: 0px;
    padding: 20px 1rem;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(20px);
}

.rubfvd-menu li {
    position: relative;
    width: 100%;
}

.rubfvd-menu li a:hover {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(4px);
}

.rubfvd-menu.open {
    display: flex;
    flex-direction: column;
}

.rubfvd-menu.open #nav-open {
    display: none;
}

.rubfvd-menu.open #nav-close {
    display: block;
}

.rubfvd-menu li a {
    font-size: 0.95rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 500;
    display: block;
}

#rubfvd-menu {
    animation: slideInRight 0.3s ease;
}

/* ===== 游戏卡片 ===== */
.rubfvd-game-item {
    border-radius: 16px;
    position: relative;
    padding: 12px;
    background: linear-gradient(145deg, #1e1e32, #252540);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
    animation: fadeInUp 0.4s ease backwards;
}

.rubfvd-game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.rubfvd-game-item:hover::before {
    transform: scaleX(1);
}

.rubfvd-game-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(145deg, #252540, #2d2d4a);
}

.rubfvd-game-item:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.rubfvd-game-item a {
    text-decoration: none;
}

.rubfvd-game-item h3 {
    color: #c7d2fe;
    margin: 8px 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rubfvd-game-item p {
    color: #e2e8f0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== 游戏封面图 ===== */
.rubfvd-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rubfvd-game-cover img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}

.rubfvd-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.rubfvd-game-cover-recommend img:hover {
    transform: scale(1.03);
}

/* ===== 游戏信息 ===== */
.rubfvd-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.rubfvd-game-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

.rubfvd-game-info p:last-child {
    font-size: 0.8rem;
    color: #64748b;
}

/* ===== 右侧小按钮 ===== */
.common-game-right {
    display: flex;
    width: 20%;
    height: 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.common-game-right:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #818cf8, #a78bfa);
}

/* ===== 推荐区块 ===== */
.rubfvd-recomed-div {
    margin: 0px 10px;
    border-radius: 16px;
    padding: 10px 0px;
    animation: fadeInUp 0.5s ease backwards;
}

.rubfvd-recomed-div:nth-child(2) { animation-delay: 0.1s; }
.rubfvd-recomed-div:nth-child(3) { animation-delay: 0.15s; }
.rubfvd-recomed-div:nth-child(4) { animation-delay: 0.2s; }
.rubfvd-recomed-div:nth-child(5) { animation-delay: 0.25s; }

.rubfvd-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 16px;
    padding: 10px 0px;
}

/* ===== 分类标题栏 ===== */
.rubfvd-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 14px;
    background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.rubfvd-common-recommend-title:nth-of-type(odd) {
    background: linear-gradient(135deg, #3b0764 0%, #6d28d9 100%);
}

.rubfvd-common-recommend-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.rubfvd-common-recommend-title:hover {
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.rubfvd-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    margin: 10px 0px;
    font-weight: 600;
    z-index: 1;
}

.rubfvd-common-recommend-title img {
    width: 22px;
    height: 22px;
    z-index: 1;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.rubfvd-common-recommend-title:hover img {
    transform: translateX(4px);
}

.rubfvd-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.rubfvd-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.rubfvd-game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}

/* ===== 页脚 ===== */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 18px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    margin-top: 20px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5), transparent);
}

.rubfvd-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rubfvd-footer-links a {
    font-size: 0.8em;
    color: #c7d2fe;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.25s ease;
}

.rubfvd-footer-links a:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

footer .rubfvd-copyright {
    font-size: 0.8em;
    color: #64748b;
    margin: 8px 0px;
    font-weight: 400;
}

/* ===== 回到顶部 / 回首页按钮 ===== */
#back-top,
#back-home {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

#back-top:hover,
#back-home:hover {
    transform: scale(1.2);
}

#flow {
    position: fixed;
    bottom: 10rem;
    right: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #312e81, #4338ca);
    padding: 0.6rem;
    gap: 10px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

#flow:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
    animation: none;
}

/* ===== 游戏详情 ===== */
.rubfvd-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 1rem;
    border-radius: 16px;
}

.game-detail-iframe {
    width: 100%;
}

.rubfvd-game-detail-img {
    width: 80%;
}

.rubfvd-game-detail-img img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.rubfvd-detail-info {
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0px 20px;
    order: 1;
}

.rubfvd-detail-info h2 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin: 10px;
    font-weight: 600;
}

.rubfvd-detail-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 10px 0px;
}

.rubfvd-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

/* ===== 游戏说明 ===== */
.rubfvd-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(145deg, #1e1e32, #252540);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.rubfvd-game-instructions p {
    color: #e2e8f0;
    line-height: 1.6rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.rubfvd-game-gameplay-button {
    display: flex;
    border-radius: 16px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px;
}

.rubfvd-game-gameplay-button img {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(99, 102, 241, 0.4));
}

.rubfvd-game-gameplay-button img:hover {
    transform: scale(1.1);
}

.rubfvd-game-gameplay-button p {
    color: #fff;
    margin: 0px;
    font-weight: 600;
}

/* ===== iframe 游戏页 ===== */
.rubfvd-game-iframe {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
    position: relative;
}

#iframe-menu-btn {
    margin-top: 20px;
    margin-left: 60px;
    position: absolute;
    height: 40px;
}

#iframe-back-btn {
    margin-top: 20px;
    margin-left: 20px;
    position: absolute;
    height: 50px;
    filter: brightness(0) invert(1);
}

.rubfvd-news-detail {
    color: #e2e8f0;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}

.rubfvd-news-detail h3 {
    color: #c7d2fe;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.rubfvd-news-detail h4 {
    color: #a5b4fc;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.rubfvd-news-detail p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 12px;
}

.rubfvd-news-detail ul {
    color: #94a3b8;
    padding-left: 20px;
}

.rubfvd-news-detail li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.rubfvd-news-detail a {
    color: #818cf8;
    text-decoration: none;
}

.rubfvd-news-detail a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.rubfvd-news-detail img {
    width: 100%;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== 404 错误页 ===== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-page h1 {
    font-size: 2.2em;
    color: #818cf8;
    animation: fadeInUp 1s ease;
}

.error-page p {
    font-size: 1.2em;
    color: #94a3b8;
    padding: 1rem;
}

.error-page img {
    width: 100%;
    padding: 2rem 1rem;
    border-radius: 16px;
}

/* ===== 游戏标记 ===== */
.rubfvd-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 12px 12px;
    top: -10px;
    left: -10px;
}

.rubfvd-game-mark img {
    width: 50px;
    height: 25px;
}

.rubfvd-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 12px 12px;
    top: 0px;
    left: -10px;
}

.rubfvd-game-new img {
    width: 50px;
    height: 50px;
}

.rubfvd-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
    font-weight: 600;
}

#rubfvd-game-body {
    margin-top: 40px;
}

/* ===== iframe 侧边菜单 ===== */
.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, #1e1b4b, #252540);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 0vh;
    right: 0px;
    z-index: 8;
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 10px 10px;
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.iframe-menu.open {
    display: flex;
    flex-direction: column;
}

.iframe-menu li a {
    font-size: 0.95rem;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.iframe-list-item a {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: space-between;
    align-items: center;
}

.iframe-list-item a img {
    margin: 0px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.iframe-list-item a p {
    margin: 0px 20px;
    position: relative;
}

.iframe-list-item-close a {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: end;
    align-items: center;
}

.iframe-list-item-close img {
    margin: 0px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

#iframe-close-btn {
    right: 0px;
    top: 0px;
}

/* ===== 搜索框 ===== */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0px 10px;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    margin-right: 20px;
    background: #1e1e32;
    color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

#searchButton {
    padding: 20px 20px;
    font-size: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    background: url('/img/ic_search.png');
    color: #fff;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#searchButton:hover {
    transform: scale(1.05);
}

.wrap {
    min-height: 3vh;
    padding: 10px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 11px;
    position: relative;
    z-index: 30;
    padding: 0px 0px 0px 12px;
    width: 45%;
}

.search {
    height: 28px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    flex: 1;
}

.search_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search_icon:hover {
    transform: scale(1.1);
}

form {
    width: 85%;
    height: 100%;
    background: #1e1e32;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.search_wrap {
    background-color: #1e1e32;
    border-radius: 10px;
    color: #e2e8f0;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search_wrap:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.search_icon img {
    height: 20px;
    filter: brightness(0) invert(1);
}

form input {
    background: transparent;
    flex: 1;
    height: 80%;
    width: 80%;
    touch-action: manipulation;
    outline: none;
    border: none;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

form input::placeholder {
    color: #64748b;
}

form input:hover {
    border: none;
}

.search-close {
    color: #94a3b8;
    font-size: 14px;
    border: none;
}

.search-res {
    background-color: #1a1a2e;
    border-radius: 16px 16px 0 0;
    position: absolute;
    top: 6vh;
    height: 94vh;
    width: 100%;
    overflow-y: auto;
    z-index: 30;
    display: flex;
    left: 0px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.search-overlay-content {
    padding: 10px;
    height: auto;
}

/* 搜索清除按钮 */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z" fill="%23818cf8"></path></svg>') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

input[type="search"]::-moz-clear-button {
    -moz-appearance: none;
    height: 14px;
    width: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z" fill="%23818cf8"></path></svg>') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

input[type="search"]::-ms-clear {
    display: none;
}

/* ===== 列表项 ===== */
.rubfvd-item {
    display: flex;
    flex-direction: column;
    margin: 10px 0px;
}

.rubfvd-item a {
    text-decoration: none;
}

.item-up {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-self: start;
}

.item-up p {
    margin: 0px 10px;
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
}

.item-up img {
    width: 20%;
    object-fit: cover;
    border-radius: 12px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-position: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.item-up img:hover {
    transform: scale(1.05);
}

.item-down {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-down p {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #94a3b8;
}

.item-down-star {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.item-down-star-num {
    border-radius: 8px;
    padding: 1px 0px;
    margin-left: 10px;
    width: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.item-down-star p {
    font-size: 0.8rem;
    text-align: center;
    margin: 0px;
    color: #fff;
    font-weight: 500;
}

.item-down-star img {
    width: 15px;
    height: 15px;
}
