/* ============================================================
   Bonus — 全站通用样式 · 「绯红爪印」主题
   Palette: crimson red (#d21f31) · warm gold (#f0a437) · cream (#fff9f1)
   ============================================================ */

:root {
    --brand-50: #fdf3f3;
    --brand-100: #fbe3e4;
    --brand-200: #f5c2c5;
    --brand-400: #e04557;
    --brand-500: #d21f31;
    --brand-600: #b3182a;
    --brand-700: #941223;
    --brand-800: #760d1b;
    --gold-200: #ffe6bd;
    --gold-300: #ffd08a;
    --gold-400: #f7b743;
    --gold-500: #eda12b;
    --cream: #fff9f1;
    --paper: #ffffff;
    --ink: #3b2420;
    --ink-soft: #6f5749;
    --ink-mute: #a38b7c;
    --line: rgba(210, 31, 49, 0.10);
    --line-strong: rgba(210, 31, 49, 0.22);
    --shadow-sm: 0 1px 2px rgba(150, 55, 40, 0.05), 0 2px 10px rgba(150, 55, 40, 0.06);
    --shadow-md: 0 4px 14px rgba(150, 55, 40, 0.10), 0 2px 4px rgba(150, 55, 40, 0.05);
    --shadow-lg: 0 18px 42px rgba(150, 45, 40, 0.16), 0 4px 12px rgba(150, 60, 40, 0.08);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
}

/* ===== 全局基础 ===== */
body {
    max-width: 660px;
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background:
        radial-gradient(1200px 500px at 85% -80px, rgba(247, 183, 67, 0.10), transparent 60%),
        radial-gradient(900px 420px at -10% 120px, rgba(210, 31, 49, 0.06), transparent 55%),
        linear-gradient(170deg, #fffaf3 0%, #fff4ea 45%, #fdf3ec 100%);
    background-attachment: fixed;
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

::selection {
    background: rgba(210, 31, 49, 0.18);
    color: var(--brand-800);
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-200), var(--brand-400));
    border-radius: 999px;
    border: 2px solid #fff4ea;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-500);
}

a {
    transition: color 0.25s ease, opacity 0.25s ease;
}

:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ===== Header ===== */
header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background:
        radial-gradient(300px 90px at 12% 0%, rgba(255, 208, 138, 0.22), transparent 70%),
        linear-gradient(140deg, var(--brand-500) 0%, var(--brand-600) 55%, var(--brand-700) 100%);
    color: #ffffff;
    height: 58px;
    z-index: 10;
    box-shadow: 0 6px 24px rgba(148, 18, 35, 0.28);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300) 30%, var(--gold-400) 60%, var(--gold-500));
    opacity: 0.95;
}

/* ===== 导航菜单图标 ===== */
#nav-open {
    display: block;
    position: relative;
    height: 20px;
    filter: brightness(0) invert(1);
    cursor: pointer;
}

#nav-close {
    display: none;
    position: relative;
    height: 22px;
    filter: brightness(0) invert(1);
}

.rajosd-menu-icon {
    padding: 10px;
    margin-right: -10px;
    border-radius: 10px;
    transition: background 0.25s ease;
}

.rajosd-menu-icon:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ===== Logo：图标 + 站名组合 ===== */
.rajosd-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.rajosd-logo-icon {
    height: 38px;
    width: 38px;
    display: block;
    border-radius: 11px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: var(--paper);
}

.rajosd-logo-icon:hover {
    transform: scale(1.08) rotate(-4deg);
}

.rajosd-logo-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.rajosd-logo-title:hover {
    opacity: 0.88;
}

/* ===== 导航栏 ===== */
.rajosd-navbar {
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 18px;
    position: relative;
}

/* ===== 侧边菜单 ===== */
.rajosd-menu {
    display: flex;
    width: 62%;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 58px;
    right: 0px;
    padding: 22px 14px;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
    box-shadow: -8px 0 44px rgba(148, 18, 35, 0.18);
    border-left: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.rajosd-menu li {
    position: relative;
    width: 100%;
}

.rajosd-menu li a {
    font-size: 0.92rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: all 0.28s ease;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: block;
    font-weight: 600;
    letter-spacing: 0.4px;
    border-left: 3px solid transparent;
}

.rajosd-menu li a:hover {
    color: var(--brand-600);
    background: linear-gradient(90deg, rgba(210, 31, 49, 0.08), rgba(247, 183, 67, 0.07));
    border-left-color: var(--brand-500);
    transform: translateX(4px);
}

.rajosd-menu.open {
    display: flex;
    flex-direction: column;
}

.rajosd-menu.open #nav-open {
    display: none;
}

.rajosd-menu.open #nav-close {
    display: block;
}

#rajosd-menu {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }
    100% {
        opacity: 1;
        width: 62%;
    }
}

/* ===== 游戏卡片 ===== */
.rajosd-game-item {
    border-radius: var(--radius-lg);
    position: relative;
    padding: 7px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.32s ease, border-color 0.32s ease;
    overflow: hidden;
    border: 1px solid var(--line);
}

.rajosd-game-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-strong);
}

.rajosd-game-item a {
    text-decoration: none;
}

/* ===== 游戏封面图 ===== */
.rajosd-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 13px;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rajosd-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 13px;
    display: block;
}

.rajosd-game-item:hover .rajosd-game-cover img {
    transform: scale(1.06);
}

/* ===== 游戏标题 & 文字 ===== */
.rajosd-game-item h3 {
    color: var(--brand-600);
    margin: 5px 0px;
    font-size: 0.75rem;
    font-weight: 700;
}

.rajosd-game-item p {
    color: var(--ink);
    margin: 0px;
    font-size: 1rem;
}

.rajosd-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 7px 5px 4px;
}

.rajosd-game-info p:first-child {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9rem;
}

.rajosd-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.88rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.rajosd-game-info p:last-child {
    font-size: 0.78rem;
    color: var(--ink-mute);
    line-height: 1.45em;
    max-height: 4.35em;
    margin-top: 3px;
}

/* ===== 通用右侧按钮 ===== */
.common-game-right {
    display: flex;
    width: 20%;
    height: 30px;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    border-radius: 999px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(210, 31, 49, 0.32);
    transition: all 0.3s ease;
}

.common-game-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(210, 31, 49, 0.42);
}

/* ===== 推荐区块 ===== */
.rajosd-recomed-div {
    margin: 0px 10px;
    border-radius: var(--radius-lg);
    padding: 10px 0px;
}

.rajosd-detail-recomed-div {
    margin: 10px 20px;
    border-radius: var(--radius-lg);
    padding: 10px 0px;
}

/* ===== 分类标题栏 ===== */
.rajosd-common-recommend-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 13px 15px;
    background:
        radial-gradient(220px 60px at 8% 0%, rgba(255, 208, 138, 0.25), transparent 70%),
        linear-gradient(120deg, var(--brand-500) 0%, var(--brand-600) 55%, var(--brand-700) 100%);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(148, 18, 35, 0.24);
    border-bottom: 3px solid var(--gold-400);
}

.rajosd-common-recommend-title::before,
.rajosd-common-recommend-title::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold-300);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 208, 138, 0.8);
}

.rajosd-common-recommend-title::before {
    left: 16px;
}

.rajosd-common-recommend-title::after {
    right: 16px;
}

.rajosd-common-recommend-title p {
    color: #ffffff;
    font-size: 1.02rem;
    margin: 0;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1.6px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.rajosd-common-recommend-title img {
    display: none;
}

/* ===== 网格布局 ===== */
.rajosd-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.rajosd-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.rajosd-game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}

/* ===== Footer ===== */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px 26px;
    background: linear-gradient(165deg, #47141a 0%, #38100f 55%, #2b0b0d 100%);
    text-align: center;
    position: relative;
    margin-top: 26px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300) 35%, var(--gold-400) 65%, var(--gold-500));
}

.rajosd-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rajosd-footer-links a {
    font-size: 0.74em;
    color: rgba(255, 235, 214, 0.88);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 208, 138, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

.rajosd-footer-links a:hover {
    color: #ffffff;
    background: rgba(247, 183, 67, 0.16);
    border-color: rgba(255, 208, 138, 0.45);
    transform: translateY(-1px);
}

footer .rajosd-copyright {
    font-size: 0.78em;
    color: rgba(255, 235, 214, 0.62);
    margin: 10px 0px;
    letter-spacing: 0.4px;
}

/* ===== 回到顶部 / 回到首页 ===== */
#back-top,
#back-home {
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.3s ease;
}

#back-top:hover,
#back-home:hover {
    opacity: 1;
    transform: scale(1.15);
}

#flow {
    position: fixed;
    bottom: 10rem;
    right: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.55rem;
    gap: 10PX;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    transition: box-shadow 0.3s;
    z-index: 9;
}

#flow:hover {
    box-shadow: var(--shadow-lg);
}

/* ===== 游戏详情页 ===== */
.rajosd-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 1rem;
    border-radius: var(--radius-md);
}

.game-detail-iframe {
    width: 100%;
}

.rajosd-game-detail-img {
    width: 80%;
}

.rajosd-game-detail-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.rajosd-detail-info {
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0px 20px;
    order: 1;
}

.rajosd-detail-info h2 {
    color: var(--ink);
    font-size: 1rem;
    margin: 10px;
    font-weight: 600;
}

.rajosd-detail-info p:first-child {
    color: var(--brand-600);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin: 14px 0 6px;
    text-align: center;
}

.rajosd-detail-info p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 10px 0px;
    line-height: 1.65;
}

.rajosd-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

/* ===== 游戏说明 ===== */
.rajosd-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: var(--paper);
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand-500);
    position: relative;
    overflow: hidden;
}

.rajosd-game-instructions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-300), var(--gold-400));
}

.rajosd-game-instructions p {
    color: var(--ink-soft);
    line-height: 1.7rem;
    font-size: 0.95rem;
    margin: 4px 0;
}

/* ===== 游戏按钮 ===== */
.rajosd-game-gameplay-button {
    display: flex;
    background: transparent;
    border-radius: 999px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px;
    right: -10px;
    filter: drop-shadow(0 12px 22px rgba(148, 18, 35, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 2;
}

.rajosd-game-gameplay-button:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 16px 30px rgba(210, 31, 49, 0.45));
}

.rajosd-game-gameplay-button img {
    width: 120px;
    height: 120px;
}

.rajosd-game-gameplay-button p {
    color: #fff;
    margin: 0px;
}

/* ===== 游戏 iframe 区域 ===== */
.rajosd-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;
    cursor: pointer;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.18));
    transition: transform 0.25s ease;
    z-index: 5;
}

#iframe-back-btn:hover {
    transform: translateX(-3px) scale(1.05);
}

/* ===== 新闻详情（关于/隐私等长文页） ===== */
.rajosd-news-detail {
    color: var(--ink-soft);
    text-align: start;
    padding: 1.4rem 1.3rem;
    margin: 22px 14px 0;
    line-height: 1.75;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.rajosd-news-detail h3 {
    color: var(--brand-600);
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.rajosd-news-detail h4 {
    color: var(--ink);
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--gold-400);
}

.rajosd-news-detail p {
    margin: 10px 0;
}

.rajosd-news-detail a {
    color: var(--brand-500);
    text-decoration: none;
    border-bottom: 1px dashed var(--brand-200);
}

.rajosd-news-detail a:hover {
    color: var(--brand-700);
    border-bottom-style: solid;
}

.rajosd-news-detail ul {
    padding-left: 6px;
}

.rajosd-news-detail li {
    margin: 8px 0;
}

.rajosd-news-detail img {
    width: 100%;
    object-fit: contain;
}

/* ===== 404 错误页 ===== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-page h1 {
    font-size: 2em;
    color: var(--brand-600);
}

.error-page p {
    font-size: 1.4em;
    color: var(--ink-soft);
    padding: 1rem;
}

.error-page img {
    width: 100%;
    padding: 2rem 1rem;
}

.error-page a img {
    width: 130px;
    padding: 0;
    transition: transform 0.3s ease;
}

.error-page a img:hover {
    transform: scale(1.08);
}

/* ===== 游戏标记 ===== */
.rajosd-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: -10px;
    left: -10px;
    filter: drop-shadow(0 3px 6px rgba(150, 55, 40, 0.3));
    z-index: 2;
}

.rajosd-game-mark img {
    width: 50px;
    height: 25px;
}

.rajosd-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: 0px;
    left: -10px;
    z-index: 2;
}

.rajosd-game-new img {
    width: 50px;
    height: 50px;
}

.rajosd-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#rajosd-game-body {
    margin-top: 20px;
}

/* ===== iframe 侧边菜单 ===== */
.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #ffffff, var(--cream));
    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 var(--line);
    box-shadow: -8px 0 40px rgba(148, 18, 35, 0.16);
}

.iframe-menu.open {
    display: flex;
    flex-direction: column;
}

.iframe-menu li a {
    font-size: 1rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.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: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    box-shadow: var(--shadow-sm);
}

.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: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

#iframe-close-btn {
    right: 0px;
    top: 0px;
}
