/* 全局样式重置 + 基础变量定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", 微软雅黑, sans-serif;
}

:root {
    --main-deep-purple: #2A1A45;
    --main-bright-purple: #7B2CBF;
    --main-gold: #FFD700;
    --main-white: #FFFFFF;
    --main-light-gray: #cccccc;
    --card-bg: rgba(42, 26, 69, 0.7);
    --border-glow: 0 0 12px rgba(123, 44, 191, 0.8);
}

body {
    background: url("../../images/guild/bg-1.png") no-repeat center / cover fixed;
    padding: 0 0;
    font-family: "Source Han Sans CN";
    min-height: 100vh;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    padding-top: 8px;
}
/* 头部左边logo和会长名称样式 */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo .guild-link {
    font-size: 30px;
    color: #FFFFFF;
    margin: 0 4px 0px 4px;
}

.logo .guild-name {
    padding-left: 4px;
    height: 26px;
    line-height: 26px;
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
}
/* 头部右边按钮样式 */
.header-right-btn {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.guild-login-btn {
    background-color: #F4C210;
    color: #000000;
    border: none;
    padding: 5px 32px;
    margin-left: 50px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.guild-login-btn:hover {
    background-color: #eed98d;
    transform: scale(1.05);
}

.guild-logout{
    display: flex;
    align-items: center;
} 

 .guild-logout-btn {
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
} 

.guild-logout-btn:hover {
    color: #F4C210;
}

.guild-review-btn {
    width: 100px;
    height: 35px;
    line-height: 35px;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    margin-left: 46px;
    text-align: center;
    border-radius: 20px;
    background: #F4C210;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.guild-review-btn:hover {
    background-color: #eed98d;
    transform: scale(1.05);
}

/* 主体内容区域 */

.card-title {
    position: relative;
    width: 308px;
    margin: -20px auto 20px auto;
}

.card-title .title-img {
    width: 100%;
    height: auto;
    display: block;
}

.logo .logo-img {
    display: block;
    height: auto;
    width: auto;
}

/* 福利板块通用样式：保留实体边框+发光，优化背景铺规则 */
.benefit-card {
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 30px;
    width: 100%;
    overflow: visible;
    /* 关键：允许子元素（人物图）溢出边框，实现突出效果 */
    position: relative;
    /* 让边框层级高于背景图，避免被遮挡 */
}

/* 福利一内容块 【精准修改：高度改为295.5px、背景图用cover等比例铺满、取消多余规则】 */
.card1 {
    height: 288px;
    /* 硬改为要求的实际高度295.5px */
    /* 背景图标准写法：no-repeat + 居中 + cover等比例铺满，解决消失+铺不满 */
    background: url("../../images/guild/welfare-bg-1.png") no-repeat center;
    margin-top: -50px;
    margin-bottom: 36px;
}

/* 福利二：背景图含边框，用 100% 铺满；cover 在高度变化时会裁掉左右描边 */
.card2 {
    height: 328px;
    background: url("../../images/guild/welfare-bg-2.png") no-repeat center / 100% 100%;
}

/* 板块左侧文字区域：层级高于背景，避免遮挡 */
.card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    flex-shrink: 0;
    z-index: 2;
    color: #FFFFFF;
    position: relative;
}

.card-desc {
    width: 481px;
    height: 54px;
    font-size: 37px;
    font-weight: bold;
    line-height: 54px;
    margin: 20px 0px 25px 15px;
    position: relative;
}

.card-desc2 {
    margin-top: 2px;
    margin-left: 17px;
}

.card-desc-promo {
    width: 481px;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    margin: 8px 0 0 17px;
    opacity: 0.95;
    position: relative;
}

/* 通用按钮样式 */
.common-btn {
    display: inline-block;
    width: 245.01px;
    height: 58.01px;
    font-size: 21px;
    font-weight: 500;
    color: #FFFFFF;
    border: none;
    background: url("../../images/guild/aply-btn-1.png") no-repeat center / cover;
    transition: all 0.3s ease;
    margin-left: 15px;
    line-height: 58px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.common-btn:hover {
    background: url("../../images/guild/aply-btn-2.png") no-repeat center / cover;
    transform: scale(1.05);
}

/* 板块右侧通用容器：card1人物图/card2产品卡通用 */
.card-right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 73px;
    height: 100%;
    margin-top: -7px;
    margin-right: 163px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

/* 福利二产品卡片样式 */
.product-card {
    width: 158px;
    height: 198px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding-bottom: 15px;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.4);
}

.card-month,
.card-year {
    background: url("../../images/guild/product-bg.png") no-repeat center / cover;
}

.hot-tag {
    position: absolute;
    top: -25px;
    right: -23px;
    background: url("../../images/guild/tuijian-bg.png") no-repeat center / cover;
    color: var(--main-white);
    font-size: 14px;
    font-weight: bold;
    width: 90px;
    height: 30px;
    line-height: 25px;
    text-align: center;
    z-index: 3;
}

.product-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--main-white);
    margin: 10px auto;
}

.product-price {
    text-align: center;
}

.price-original {
    font-size: 15px;
    font-weight: 400;
    color: #FFFFFFC9;
    text-decoration: line-through;
    margin-top: -5px;
}

.price-current {
    font-weight: 700;
    text-align: center;
    color: #FF1ADD;
    margin-top: -40px;
}

.price-current .yen {
    font-size: 20px;
}

.price-current .price {
    font-size: 42px;
}

.product-btn {
    display: block;
    width: 98px;
    height: 30px;
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 500;
    text-align: center;
    line-height: 30px;
    background: url("../../images/guild/buy-btn-1.png") no-repeat center / cover;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: url("../../images/guild/buy-btn-2.png") no-repeat center / cover;
    transform: scale(1.05);
}

/* 底部间距严格23px */
.footer {
    margin-top: 23px;
    text-align: center;
    padding: 10px 0;
    color: var(--main-light-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式适配：适配card1新高度295.5px，小屏正常显示 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }

    .header {
        margin-bottom: 40px;
        padding: 10px 0;
    }

    .login-btn {
        margin-left: 20px;
        padding: 5px 20px;
        font-size: 14px;
    }

    .logo .guild-name {
        font-size: 16px;
    }

    .logo .guild-link {
        font-size: 24px;
    }

    .card-title {
        width: 80%;
        margin: 0 auto 15px auto;
    }

    .benefit-card {
        flex-wrap: wrap;
        padding: 30px 20px;
        height: auto !important;
        margin-left: 0 !important;
    }

    .card1,
    .card2 {
        margin-bottom: 30px !important;
    }

    .card-text {
        width: 100%;
        align-items: center;
        margin-bottom: 20px;
    }

    .card-desc {
        width: 100%;
        font-size: 28px;
        text-align: center;
        margin: 0 0 20px 0 !important;
        height: auto;
        line-height: 1.2;
    }

    .card-desc2 {
        margin: 0 0 10px 0 !important;
    }

    .card-desc-promo {
        width: 100%;
        font-size: 14px;
        line-height: 1.45;
        text-align: center;
        margin: 0 0 20px 0 !important;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .common-btn {
        margin-left: 0;
        width: 200px;
        height: 50px;
        line-height: 50px;
        font-size: 18px;
    }

    .card-right {
        width: 100%;
        margin: 0 !important;
        gap: 30px;
        justify-content: center;
    }

    /* 小屏人物图适配 */
    .card-avatar {
        width: 80%;
        height: 250px;
        margin-top: 0;
        /* 小屏取消突出，正常显示 */
    }

    .product-card {
        width: 140px;
        height: 180px;
    }

    .product-name {
        font-size: 18px;
    }

    .price-current .price {
        font-size: 36px;
    }

    .price-current .yen {
        font-size: 18px;
    }

    .price-original {
        font-size: 13px;
    }

    .product-btn {
        width: 90px;
        height: 28px;
        line-height: 28px;
        font-size: 14px;
    }

    .hot-tag {
        width: 80px;
        height: 28px;
        top: -20px;
        right: -15px;
        font-size: 12px;
        line-height: 24px;
    }

    .footer {
        font-size: 12px;
        padding: 0 10px 20px;
    }
}

@media (max-width: 768px) {
    .card-right {
        flex-wrap: wrap;
        gap: 20px;
    }

    .card-avatar {
        height: 200px;
    }

    .product-card {
        width: 120px;
        height: 160px;
    }

    .common-btn {
        width: 180px;
        height: 45px;
        line-height: 45px;
        font-size: 16px;
    }

    .header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}