/* 颜色变量 - 根据设计稿token定义 */
:root {
    /* 背景色 */
    --primary-bg: #F5F7FA;
    /* 一级背景色 */
    --secondary-bg: #FFFFFF;
    /* 二级背景色 */

    /* 文字色 */
    --primary-text: #222222;
    /* 一级文字 */
    --secondary-text: #666666;
    /* 三级文字 */
    --tertiary-text: #999999;
    /* 四级文字 */
    --white-text: #FFFFFD;
    /* 同色白色文字 */

    /* 主题色 */
    --standard-red: #EB413D;
    /* 标准红 */
    --standard-yellow: #FF9F1D;
    /* 标准黄 */
    --yellow-bg: #FFF4DF;
    /* 黄色背景 */

    /* 渐变 */
    --price-gradient: linear-gradient(180deg, #FF5533 0%, #FF9F8C 100%);
    /* 价格渐变 */
    --button-gradient: linear-gradient(270deg, #FF884D 0%, #EB413D 100%);
    /* 按钮渐变 */
    --tag-gradient: linear-gradient(180deg, #FAC948 0%, #FFA539 100%);
    /* 标签渐变 */
    --price-bg-gradient: linear-gradient(90deg, rgba(255, 159, 29, 0.15) 0%, rgba(255, 159, 29, 0.05) 100%);
    /* 价格背景渐变 */
}

@font-face {
    font-family: "BarlowSemi";
    src:
        url("https://j.gamersky.com/web2015/v1/woff/BarlowSemiBold-Regular.woff2") format("woff2"),
        url("https://j.gamersky.com/web2015/v1/woff/BarlowSemiBold-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 700;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    /* 保持滚动流畅度 */

}

[data-theme="Dark"] body {

    /* 背景色 */
    --primary-bg: #17171A;
    /* 一级背景色 */
    --secondary-bg: #222226;
    /* 二级背景色 */

    /* 文字色 */
    --primary-text: #D7D7D9;
    /* 一级文字 */
    --secondary-text: #A3A3A6;
    /* 三级文字 */
    --tertiary-text: #717173;
    /* 四级文字 */
    --white-text: #FFFFFD;
    /* 同色白色文字 */

    /* 主题色 */
    --standard-red: #EB413D;
    /* 标准红 */
    --standard-yellow: #FF9F1D;
    /* 标准黄 */
    --yellow-bg: #FFF4DF;
    /* 黄色背景 */

    /* 渐变 */
    --price-gradient: linear-gradient(180deg, #FF5533 0%, #FF9F8C 100%);
    /* 价格渐变 */
    --button-gradient: linear-gradient(270deg, #FF884D 0%, #EB413D 100%);
    /* 按钮渐变 */
    --tag-gradient: linear-gradient(180deg, #FAC948 0%, #FFA539 100%);
    /* 标签渐变 */
    --price-bg-gradient: linear-gradient(90deg, rgba(255, 159, 29, 0.15) 0%, rgba(255, 159, 29, 0.05) 100%);
    /* 价格背景渐变 */
}


.price-card {
    width: 100%;
    height: 148px;
    background-color: var(--primary-bg);
    border-radius: 6px;
    padding: 14px;
    box-sizing: border-box;
}

.game-info {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}

.cover {
    width: 84px;
    height: 120px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.text-content {
    flex: 1;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 1;
}

.title {
    font-family: "PingFangSC", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: var(--primary-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.channel {
    font-family: "PingFang SC", sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: var(--tertiary-text);
    margin: 0;
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-details {
    flex-shrink: 1;
}

.tags {
    display: flex;
    gap: 6px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    background-color: var(--secondary-bg);
    border-radius: 2px;
    height: 18px;
}

.tag-icon {
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tag-text {
    font-size: 10px;
    line-height: 14px;
    color: var(--secondary-text);
}

.tag-text strong {
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
}
.tag-text svg {
    margin-left: 2px;
}

.price-related {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    background: var(--price-bg-gradient);
    border-radius: 4px;
    padding: 6px 0 6px 8px;
    height: 32px;
}

.current-price {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    flex: 1;
}

.currency-symbol {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    color: var(--standard-red);
    align-self: flex-end;
}

.price-amount {
    font-family: "BarlowSemi";
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    background: var(--button-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-start {
    font-family: "PingFang SC", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    color: var(--standard-yellow);
    align-self: flex-end;
}

.original-price {
    margin-left: 3px;
    font-size: 10px;
    line-height: 14px;
    text-decoration: line-through;
    color: var(--primary-text);
    opacity: 0.2;
    align-self: flex-end;
}

.buy-button {
    width: 66px;
    height: 32px;
    background: var(--button-gradient);
    border: none;
    border-radius: 0px 4px 4px 0px;
    padding: 8px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 1;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: "PingFang SC", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--white-text);
}

.buy-button:hover {
    opacity: 0.9;
}

.buy-button:active {
    opacity: 0.8;
}

[data-theme="Dark"] body {
    background-color: transparent;

}