* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul li {
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    vertical-align: top;
    outline-width: 0ch;
}

body {
    max-width: 750px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}


/* ========== 表单容器 ========== */

.form-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
}


/* 背景图 */

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


/* 所有内容层（在背景之上） */

.form-container>*:not(.bg-image) {
    position: relative;
    z-index: 1;
}


/* ========== 顶部角花装饰 ========== */

.corner-decoration {
    position: absolute;
    top: 10px;
    width: 80px;
    height: auto;
    z-index: 2;
}

.corner-left {
    left: 10px;
}

.corner-right {
    right: 10px;
    transform: scaleX(-1);
}


/* ========== 顶部文字 LIVE RESIN + LIQUID DIAMONDS ========== */

.top-text {
    width: 85%;
    max-width: 320px;
    height: auto;
    margin-top: 15px;
    margin-bottom: 10px;
}


/* ========== 卡通人物图 ========== */

.character-image {
    width: 75%;
    max-width: 280px;
    height: auto;
    margin: 10px 0;
}


/* ========== BUSSHEAD GRABBA 彩色文字 ========== */

.brand-text {
    width: 80%;
    max-width: 300px;
    height: auto;
    margin: 10px 0;
}


/* ========== ENTER YOUR CODE 文字 ========== */

.enter-code-text {
    width: 85%;
    max-width: 340px;
    height: auto;
    margin: 15px 0 10px;
}


/* ========== 输入框 ========== */

.code-input {
    width: 80%;
    max-width: 320px;
    height: 50px;
    border: none;
    border-radius: 25px;
    background: #ffffff;
    padding: 0 20px;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.code-input::placeholder {
    color: #cccccc;
}

.code-input:focus {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}


/* ========== Check Code 按钮 ========== */

.check-btn {
    width: 60%;
    max-width: 240px;
    height: auto;
    border: none;
    background: transparent;
    padding: 0;
    margin: 15px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.check-btn:hover {
    transform: scale(1.05);
}

.check-btn:active {
    transform: scale(0.98);
}

.check-btn img {
    width: 100%;
    height: auto;
    display: block;
}


/* ========== Instagram 图标 ========== */

.instagram-link {
    display: inline-block;
    margin: 15px 0;
    transition: transform 0.2s ease;
}

.instagram-link:hover {
    transform: scale(1.1);
}

.instagram-icon {
    width: 55px;
    height: 55px;
    display: block;
}


/* ========== AIO DISPOSABLE 金色缎带横幅 ========== */

.ribbon-banner {
    width: 90%;
    max-width: 360px;
    height: auto;
    margin: 20px 0 15px;
}


/* ========== Home 链接 ========== */

.home-link {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px;
    transition: opacity 0.2s ease;
}

.home-link:hover {
    opacity: 0.8;
}


/* ========== 版权文字 ========== */

.copyright {
    color: #ffffff;
    font-size: 12px;
    margin: 5px 0 15px;
    opacity: 0.9;
}


/* ========== 移动端适配（核心要求：100vh × 100%） ========== */

@media screen and (max-width: 768px) {
    body {
        max-width: 100%;
    }
    .form-container {
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        padding: 15px 10px;
        justify-content: flex-start;
    }
    .corner-decoration {
        width: 60px;
        top: 8px;
    }
    .corner-left {
        left: 8px;
    }
    .corner-right {
        right: 8px;
    }
    .top-text {
        width: 65%;
        margin-top: 10px;
    }
    .character-image {
        width: 70%;
        margin: 8px 0;
    }
    .brand-text {
        width: 75%;
        margin: 8px 0;
    }
    .enter-code-text {
        width: 73%;
        margin: 12px 0 8px;
    }
    .code-input {
        width: 75%;
        height: 46px;
        font-size: 15px;
    }
    .check-btn {
        width: 55%;
        margin: 12px 0;
    }
    .instagram-icon {
        width: 50px;
        height: 50px;
    }
    .ribbon-banner {
        width: 85%;
        margin: 15px 0 12px;
    }
    .home-link {
        font-size: 15px;
    }
    .copyright {
        font-size: 11px;
        border-top: 1px solid #ffffff;
        padding-top: 10px;
    }
}

.copyright {
    border-top: 1px solid #ffffff;
    padding-top: 10px;
}


/* ========== 小屏幕手机适配 ========== */

@media screen and (max-width: 375px) {
    .form-container {
        padding: 12px 8px;
    }
    .corner-decoration {
        width: 50px;
        top: 6px;
    }
    .top-text {
        width: 75%;
        margin-top: 8px;
    }
    .character-image {
        width: 65%;
    }
    .brand-text {
        width: 70%;
    }
    .enter-code-text {
        width: 75%;
    }
    .code-input {
        width: 70%;
        height: 42px;
        font-size: 14px;
    }
    .check-btn {
        width: 50%;
    }
    .instagram-icon {
        width: 45px;
        height: 45px;
    }
    .ribbon-banner {
        width: 80%;
    }
    .home-link {
        font-size: 14px;
    }
    .copyright {
        font-size: 10px;
    }
}


/* ========== 大屏幕桌面适配 ========== */

@media screen and (min-width: 769px) {
    .form-container {
        max-width: 750px;
        margin: 0 auto;
        padding: 30px 20px;
    }
    .corner-decoration {
        width: 100px;
        top: 15px;
    }
    .corner-left {
        left: 15px;
    }
    .corner-right {
        right: 15px;
    }
    .top-text {
        width: 70%;
        max-width: 400px;
        margin-top: 20px;
    }
    .character-image {
        width: 60%;
        max-width: 350px;
    }
    .brand-text {
        width: 65%;
        max-width: 380px;
    }
    .enter-code-text {
        width: 70%;
        max-width: 420px;
    }
    .code-input {
        width: 60%;
        max-width: 380px;
        height: 55px;
        font-size: 18px;
    }
    .check-btn {
        width: 45%;
        max-width: 280px;
    }
    .instagram-icon {
        width: 60px;
        height: 60px;
    }
    .ribbon-banner {
        width: 75%;
        max-width: 450px;
    }
    .home-link {
        font-size: 18px;
    }
    .copyright {
        font-size: 14px;
    }
}