* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #FBF7F2;
    color: #3A2E28;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 墨韵·彩墨浮光 - 动态彩墨晕染背景 ===== */
.ink-wash-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #FBF7F2;
    overflow: hidden;
}

/* 晕染色块 - 胭脂 */
.ink-wash-bg .wash-rouge {
    position: absolute;
    top: -10%;
    left: 5%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(210, 70, 90, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(85px);
    animation: inkDrift1 22s ease-in-out infinite;
}

/* 晕染色块 - 朱砂 */
.ink-wash-bg .wash-vermilion {
    position: absolute;
    bottom: -8%;
    right: 10%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(220, 110, 70, 0.38) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(95px);
    animation: inkDrift2 26s ease-in-out infinite;
}

/* 晕染色块 - 藤黄 */
.ink-wash-bg .wash-yellow {
    position: absolute;
    top: 30%;
    left: 25%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230, 190, 50, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: inkDrift3 20s ease-in-out infinite;
}

/* 晕染色块 - 靛蓝 */
.ink-wash-bg .wash-indigo {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 230px;
    height: 230px;
    background: radial-gradient(circle, rgba(50, 100, 160, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    animation: inkDrift4 24s ease-in-out infinite;
}

/* 晕染色块 - 翡翠 */
.ink-wash-bg .wash-jade {
    position: absolute;
    bottom: 20%;
    left: 15%;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(60, 160, 130, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(75px);
    animation: inkDrift5 28s ease-in-out infinite;
}

/* 晕染色块 - 紫罗兰 */
.ink-wash-bg .wash-violet {
    position: absolute;
    top: 15%;
    right: 30%;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(130, 90, 160, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: inkDrift6 23s ease-in-out infinite;
}

/* 墨点层1 - 彩色 */
.ink-wash-bg .ink-dots-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow:
        30px 60px 0 rgba(210,70,90,0.5),
        120px 150px 0 rgba(50,100,160,0.6),
        250px 80px 0 rgba(230,190,50,0.7),
        340px 220px 0 rgba(60,160,130,0.5),
        80px 300px 0 rgba(220,110,70,0.6),
        200px 320px 0 rgba(130,90,160,0.7);
    animation: dotsFloat 8s ease-in-out infinite;
}

/* 墨点层2 - 黑白 */
.ink-wash-bg .ink-dots-mono {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow:
        10px 40px 0 rgba(30,20,20,0.4),
        90px 200px 0 rgba(60,50,40,0.5),
        180px 30px 0 rgba(20,15,15,0.4),
        280px 160px 0 rgba(40,30,25,0.5),
        350px 300px 0 rgba(30,20,20,0.4),
        50px 360px 0 rgba(50,40,30,0.5);
    animation: dotsFloat 10s ease-in-out infinite reverse;
}

@keyframes inkDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 15px) scale(1.2); }
}

@keyframes inkDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, -20px) scale(1.15); }
}

@keyframes inkDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 25px) scale(1.25); }
}

@keyframes inkDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -10px) scale(1.1); }
}

@keyframes inkDrift5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -30px) scale(1.3); }
}

@keyframes inkDrift6 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 10px) scale(1.2); }
}

@keyframes dotsFloat {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-10px); opacity: 1; }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 10px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* ===== 墨韵·彩墨浮光 - 多样化水墨造型卡片 ===== */
.ink-card,
.ink-card-related {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
    border-radius: 16px 16px 8px 8px;
    border: 2px solid rgba(210,70,90,0.12);
    box-shadow:
        3px 4px 12px rgba(58,46,40,0.08),
        0 0 0 1px rgba(255,255,255,0.4),
        4px 0 15px var(--glow-a, rgba(210,70,90,0.10)),
        -4px 0 15px var(--glow-b, rgba(50,100,160,0.08));
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    animation: inkCardFloat 5s ease-in-out infinite;
}

/* 卷轴形卡片 - 顶部底部木质轴头 */
.ink-card[data-type="scroll"]::before,
.ink-card-related[data-type="scroll"]::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 5px;
    background: linear-gradient(90deg, #5C4033, #8B6914, #5C4033);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
    z-index: 1;
}

.ink-card[data-type="scroll"]::after,
.ink-card-related[data-type="scroll"]::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -1px;
    right: -1px;
    height: 5px;
    background: linear-gradient(90deg, #5C4033, #8B6914, #5C4033);
    border-radius: 0 0 8px 8px;
    pointer-events: none;
    z-index: 1;
}

/* 扇屏形卡片 - 下部大圆角 */
.ink-card[data-type="fan"],
.ink-card-related[data-type="fan"] {
    border-radius: 4px 4px 20px 20px;
}

.ink-card[data-type="fan"]::before,
.ink-card-related[data-type="fan"]::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 4px;
    background: linear-gradient(90deg, transparent 5%, rgba(230,190,50,0.3) 30%, rgba(230,190,50,0.3) 70%, transparent 95%);
    clip-path: polygon(0% 100%, 3% 0%, 97% 0%, 100% 100%);
    pointer-events: none;
    z-index: 1;
}

/* 印章形卡片 - 朱红边框+残破墨点 */
.ink-card[data-type="seal"],
.ink-card-related[data-type="seal"] {
    border: 2.5px solid rgba(200,60,60,0.35);
    border-radius: 8px;
}

.ink-card[data-type="seal"]::before,
.ink-card-related[data-type="seal"]::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(200,60,60,0.25);
    border-radius: 2px;
    transform: rotate(3deg);
    pointer-events: none;
    z-index: 2;
}

.ink-card[data-type="seal"]::after,
.ink-card-related[data-type="seal"]::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 6px;
    height: 6px;
    background: rgba(58,46,40,0.2);
    border-radius: 50%;
    box-shadow: 10px -4px 0 rgba(58,46,40,0.15), -3px 8px 0 rgba(58,46,40,0.12);
    pointer-events: none;
    z-index: 2;
}

/* 徽章形卡片 - 圆形+水墨描边 */
.ink-card[data-type="badge"],
.ink-card-related[data-type="badge"] {
    border-radius: 50% 50% 12px 12px;
}

.ink-card[data-type="badge"]::before,
.ink-card-related[data-type="badge"]::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 6px;
    background: radial-gradient(ellipse at center, rgba(58,46,40,0.2) 0%, transparent 70%);
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}

@keyframes inkCardFloat {
    0%, 75%, 100% {
        transform: translateY(0);
    }
    80% {
        transform: translateY(-2px);
    }
    82% {
        transform: translateY(0);
        box-shadow:
            3px 4px 12px rgba(58,46,40,0.08),
            0 0 0 1px rgba(255,255,255,0.4),
            4px 0 15px var(--glow-a, rgba(210,70,90,0.10)),
            -4px 0 15px var(--glow-b, rgba(50,100,160,0.08)),
            0 0 18px rgba(210,70,90,0.08);
    }
}

/* 图片容器 */
.card-image-wrap {
    position: relative;
    overflow: hidden;
    margin: 1px;
    border-radius: 14px 14px 8px 8px;
}

/* 水墨纹理覆盖在图片上 */
.card-ink-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg, rgba(58,46,40,0.04) 0px, rgba(58,46,40,0.04) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(-45deg, rgba(58,46,40,0.03) 0px, rgba(58,46,40,0.03) 1px, transparent 1px, transparent 14px);
    border-radius: 14px 14px 8px 8px;
    pointer-events: none;
    z-index: 1;
    transition: all 0.35s ease;
    mix-blend-mode: multiply;
}

/* 触摸反馈 - 各类型不同动效 */
.ink-card:active,
.ink-card-related:active {
    transform: scale(0.97) translateY(2px);
    transition: all 0.15s ease;
    background: rgba(255,255,255,0.7);
    border-style: solid;
    border-color: rgba(210,70,90,0.3);
    box-shadow:
        2px 2px 10px rgba(58,46,40,0.18),
        0 0 20px rgba(210,70,90,0.18);
}

.ink-card:active .card-ink-texture,
.ink-card-related:active .card-ink-texture {
    background:
        repeating-linear-gradient(45deg, rgba(210,70,90,0.12) 0px, rgba(210,70,90,0.12) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(-45deg, rgba(50,100,160,0.08) 0px, rgba(50,100,160,0.08) 1px, transparent 1px, transparent 14px);
}

.ink-card:hover,
.ink-card-related:hover {
    transform: translateY(-5px);
    box-shadow:
        5px 8px 22px rgba(58,46,40,0.14),
        0 0 0 1px rgba(255,255,255,0.6),
        6px 0 20px var(--glow-a, rgba(210,70,90,0.18)),
        -6px 0 20px var(--glow-b, rgba(50,100,160,0.14));
}

.ink-card:hover img,
.ink-card-related:hover img {
    transform: scale(1.05);
}

/* 标题文字 - 深墨灰 + 墨点装饰 */
.ink-card-title {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: #3A2E28;
    letter-spacing: 0.3px;
}

.ink-card-title::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    vertical-align: middle;
    background: radial-gradient(circle at 50% 45%, #D2465A 0%, #3264A0 80%, transparent 70%);
    border-radius: 50%;
}

hr, .divider {
    border: none;
    border-top: 2px dashed rgba(210,70,90,0.2);
    margin: 20px 0;
    opacity: 0.6;
}

hr.dashed, .divider-dashed {
    border: none;
    border-top: 2px dashed rgba(210,70,90,0.2);
    margin: 20px 0;
    opacity: 0.6;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .related-games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

button {
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #D2465A 0%, #3264A0 100%);
    border: 2px solid rgba(210,70,90,0.3);
    color: #FBF7F2;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 2px 3px 8px rgba(58,46,40,0.10), inset 0 1px 0 rgba(255,255,255,0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow:
        3px 5px 12px rgba(58,46,40,0.18),
        0 0 0 1px rgba(210,70,90,0.35),
        0 0 15px rgba(210,70,90,0.2);
    background: linear-gradient(135deg, #E85A6E 0%, #4278B0 100%);
}

img {
    max-width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

a {
    transition: all 0.4s ease;
    color: #3A2E28;
}

a:hover {
    color: #D2465A;
}

::selection {
    background: rgba(210,70,90,0.25);
    color: #fff;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #FBF7F2;
    border-left: 2px solid rgba(210,70,90,0.15);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D2465A 0%, #3264A0 100%);
    border-radius: 7px;
    border: 2px solid rgba(210,70,90,0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E85A6E 0%, #4278B0 100%);
}