
/* ==============================
   页面基础
============================== */

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: #090d16;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.game-menu {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 6%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 45%, #18243b 0%, #0b111e 55%, #070a11 100%);
}

/* ==============================
   顶部标题
============================== */

.menu-header {
    text-align: center;
    margin-bottom: 48px;
}

.menu-subtitle {
    color: #7f9bc4;
    font-size: 12px;
    letter-spacing: 5px;
    margin-bottom: 12px;
}

.menu-header h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: 5px;
    margin: 0;
}

.menu-header p {
    color: #8c9bb2;
    font-size: 14px;
    margin-top: 12px;
}

/* ==============================
   左右工具面板
============================== */

.tool-selection {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 480px;
    margin: 0 auto;
    align-self: center;
    position: relative;
}

.tool-card {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;

    transition:
        transform 0.35s ease,
        filter 0.35s ease,
        box-shadow 0.35s ease;

    filter: brightness(0.78);
}

/* 左侧斜切 */
.award-card {
    margin-right: -4%;
    padding: 40px 9% 40px 7%;

    clip-path: polygon(
        0 0,
        100% 0,
        88% 100%,
        0 100%
    );

    background:
        linear-gradient(135deg, #243d65 0%, #172a48 50%, #101a2c 100%);
}

/* 右侧斜切 */
.transcript-card {
    padding: 40px 7% 40px 12%;

    clip-path: polygon(
        12% 0,
        100% 0,
        100% 100%,
        0 100%
    );

    background:
        linear-gradient(135deg, #31534f 0%, #1d3939 50%, #102322 100%);
}

/* 背景装饰纹理 */
.tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            transparent 40%,
            rgba(255, 255, 255, 0.08) 100%
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(255, 255, 255, 0.025) 40px
        );
}

/* 右下角装饰字母 */
.card-corner {
    position: absolute;
    right: 12%;
    bottom: -65px;
    font-size: 300px;
    line-height: 1;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.045);
    pointer-events: none;
    transition: transform 0.4s ease;
}

/* ==============================
   面板内容
============================== */

.card-content {
    position: relative;
    z-index: 1;
}

.card-number {
    font-size: 14px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 45px;
}

.card-category {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
}

.card-content h2 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.card-content p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    margin-bottom: 35px;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;

    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);

    transition: gap 0.3s ease;
}

/* ==============================
   Hover 选中效果
============================== */

.tool-selection:hover .tool-card {
    filter: brightness(0.65);
}

.tool-selection .tool-card:hover {
    z-index: 5;
    transform: scale(1.045);
    filter: brightness(1.2);
    box-shadow: 0 0 45px rgba(120, 180, 255, 0.2);
}

.tool-card:hover .card-corner {
    transform: scale(1.12) translate(-10px, -5px);
}

.tool-card:hover .card-action {
    gap: 22px;
}

.tool-card:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -5px;
    filter: brightness(1.2);
}

/* ==============================
   底部
============================== */

.menu-footer {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    margin: 45px auto 0;
    color: #58677d;
    font-size: 10px;
    letter-spacing: 3px;
}

/* ==============================
   手机屏幕
============================== */

@media (max-width: 768px) {

    .game-menu {
        padding: 35px 5%;
    }

    .menu-header {
        margin-bottom: 30px;
    }

    .tool-selection {
        flex-direction: column;
        height: auto;
        gap: 14px;
    }

    .tool-card {
        min-height: 260px;
        flex: none;
    }

    .award-card {
        margin-right: 0;
        padding: 30px 9%;
        clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
    }

    .transcript-card {
        padding: 30px 9%;
        clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
    }

    .card-number {
        margin-bottom: 25px;
    }

    .card-corner {
        font-size: 200px;
    }

    .menu-footer {
        margin-top: 30px;
        font-size: 8px;
    }
}



/* .award-card {
    background:
        linear-gradient(rgba(10, 15, 25, 0.25), rgba(10, 15, 25, 0.45)),
        url("../images/AwardBuilder.png") center / cover no-repeat;
}

.transcript-card {
    background:
        linear-gradient(rgba(10, 15, 25, 0.25), rgba(10, 15, 25, 0.45)),
        url("../images/TranscriptBuilder.png") center / cover no-repeat;
} */
