@font-face {
    font-family: 'ChillKSans';
    src: url('/static/media/fonts/ChillKSans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GlowSansSC';
    src: url('/static/media/fonts/GlowSansSCWideExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: #E9E9E9;
}

body.shop-page {
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    color: #333;
    padding-top: 60px;
}

/* ========== 自设委托 ========== */
.commission-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
}

.commission-bg {
    position: absolute;
    inset: 0;
}

.commission-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.commission-text-block {
    position: relative;
    z-index: 2;
    width: 70%;
    background: #0B51FF;
    padding: 28px 0 20px 0;
    margin-left: auto;
    margin-bottom: 70px;
}

.commission-title {
    font-family: 'ChillKSans', 'Chill K Sans', 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(36px, 8vw, 128px);
    line-height: 1.1;
    color: #FFFFFF;
    text-align: start;
    padding-left: 20px;
    padding-right: 20px;
}

.commission-subtitle {
    font-family: 'GlowSansSC', 'Glow Sans SC', 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: clamp(14px, 2vw, 32px);
    line-height: 1.5;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    text-align: start;
    padding-left: 20px;
    padding-right: 20px;
}

.commission-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* ========== 角色商店 ========== */
.character-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.character-text-block {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 60px 40px 0px;
}

.character-title {
    font-family: 'ChillKSans', 'Chill K Sans', 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(40px, 12vw, 180px);
    line-height: 1.1;
    color: #0B51FF;
}

.character-subtitle {
    font-family: 'GlowSansSC', 'Glow Sans SC', 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: clamp(16px, 3vw, 48px);
    line-height: 1.46;
    letter-spacing: 0.1em;
    color: #0B51FF;
}

.character-bg {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 40vh;
    overflow: hidden;
}

.character-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.character-bg-overlay {
    position: absolute;
    inset: 0;
    background: #0B51FF;
    opacity: 0.5;
}

.character-link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .commission-text-block {
        width: 85%;
    }

    .commission-title {
        padding-left: 16px;
        padding-right: 16px;
    }

    .commission-subtitle {
        padding-left: 16px;
        padding-right: 16px;
    }

    .character-text-block {
        padding: 40px 24px 0;
    }

    .character-bg {
        min-height: 35vh;
    }
}

@media (max-width: 600px) {
    body.shop-page {
        padding-top: 56px;
    }

    .commission-text-block {
        width: 90%;
        padding: 20px 0 16px 0;
        margin-bottom: 40px;
    }

    .commission-title {
        padding-left: 12px;
        padding-right: 12px;
    }

    .commission-subtitle {
        padding-left: 12px;
        padding-right: 12px;
    }

    .character-text-block {
        padding: 32px 16px 0;
    }

    .character-bg {
        min-height: 30vh;
    }
}
