/* 全局重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 色彩方案 */
    --bg-white: #FFFFFF;
    --bg-pale-yellow: #FFFDE7;
    --bg-soft-lavender: #F3E5F5;
    --footer-text: #6D6A6A;
    --avatar-bg: #E3F2FD;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    /* background: linear-gradient(135deg, var(--bg-white) 10%, var(--bg-pale-yellow) 25%, var(--bg-soft-lavender) 50%, var(--bg-white) 75%, var(--bg-pale-yellow) 100%); */
    /* background-size: 100% 100%; */
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 页面容器 */
.page-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: url('./bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.bgIcon01 {
    position: absolute;
    right: 5%;
    bottom: 15%;
    width: 11.25%;
    height: auto;
    max-width: 54px;
    z-index: 1;
}

.bgIcon02 {
    position: absolute;
    right: 8%;
    top: 12%;
    width: 12.9%;
    height: auto;
    max-width: 62px;
    z-index: 1;
}

.bgIcon03 {
    position: absolute;
    left: 7.5%;
    top: 18%;
    width: 10.2%;
    height: auto;
    max-width: 49px;
    z-index: 1;
}

.bgIcon04 {
    position: absolute;
    left: -4%;
    bottom: 5%;
    width: 20.6%;
    height: auto;
    max-width: 99px;
    z-index: 1;
}


/* 头部区域 */
.header {
    text-align: center;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 30px;
    z-index: 10;
}

.app-name {
    font-size: clamp(20px, 5vw, 24px);
    position: absolute;
    top: clamp(55px, 12%, 67px);
    left: clamp(15%, 18%, 20%);
    z-index: 2;
}

.slogan {
    font-size: clamp(20px, 5vw, 24px);
    position: absolute;
    top: clamp(110px, 25%, 136px);
    right: clamp(12%, 15%, 18%);
    z-index: 2;
}

.headertext {
    font-weight: 500;
    color: #67204A;
}

/* Hero人物区域 */
.hero {
    margin-top: clamp(150px, 45%, 237px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(50px, 20%, 90px);
    z-index: 10;
    position: relative;
    width: 100%;
}

.avatar-container {
    position: relative;
    width: clamp(180px, 45%, 220px);
    height: clamp(180px, 45%, 220px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* 操作按钮区域 */
.actions {
    width: 100%;
    max-width: 320px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: clamp(30px, 10%, 50px);
    z-index: 10;
    position: relative;
}

.btn-primary {
    width: 100%;
    height: clamp(42px, 12%, 47px);
    line-height: clamp(42px, 12%, 47px);
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    color: white;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 500;
    letter-spacing: clamp(5px, 1.5vw, 7px);
    border: none;
    background: linear-gradient(94deg, #C574F8 -5%, #607FF1 52%, #4E8DF5 70%, #DAEDFB 131%, rgba(0, 24, 71, 0) 131%), #D8D8D8;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 40px rgba(166, 82, 255, 0.4),
        0 6px 20px rgba(106, 130, 251, 0.3);
}

.btn-primary:active {
    transform: scale(0.98) translateY(0);
    box-shadow:
        0 5px 20px rgba(166, 82, 255, 0.3),
        0 2px 10px rgba(106, 130, 251, 0.2);
}


.btn-primary span,

/* 底部信息区域 */
.footer {
    z-index: 10;
    position: relative;
    padding-top: 10px;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.footer .fotterText {
    font-size: clamp(11px, 3vw, 14px);
    color: var(--footer-text);
    line-height: clamp(32px, 10%, 40px);
    letter-spacing: clamp(0.15em, 0.2em, 0.2em);
    text-decoration: none;
    display: block;
}

.footer .version {
    letter-spacing: clamp(0.005em, 0.01em, 0.01em);
}

/* 响应式设计 - 超小屏幕适配 */
@media screen and (max-width: 360px) {
    .app-name {
        top: 50px;
        left: 12%;
    }

    .slogan {
        top: 100px;
        right: 10%;
    }

    .bgIcon04 {
        left: -8%;
        bottom: 2%;
    }
}

@media screen and (min-width: 481px) {
    .page-container {
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }
}