/* Index Page Specific Styles */

/* Main Content - index.html */
.main-content {
    padding: 40px;
    background: linear-gradient(135deg, #fff5f7, #ffeef1);
    background-image: radial-gradient(circle at 20% 80%, rgba(229, 92, 111, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 138, 128, 0.1) 0%, transparent 50%);
    text-align: center;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(229, 92, 111, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 182, 193, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.title h1 {
    font-size: 48px;
    background: linear-gradient(135deg, #e55c6f, #ff8a80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: heartbeat 2s ease-in-out infinite;
    position: relative;
}

.title h1::after {
    content: '💕';
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 20px;
    animation: float 3s ease-in-out infinite;
}

.title .subtitle {
    font-size: 16px;
    color: #fff;
    background: linear-gradient(45deg, #ff7e5f, #feb47b, #ff7e5f);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite, pulse 2s ease-in-out infinite;
    padding: 6px 15px;
    border-radius: 20px;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(254, 180, 123, 0.4);
    font-weight: 500;
}

.input-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    gap: 20px;
    animation: slideInRight 0.8s ease-out 0.6s both;
}

.input-group {
    width: 48%;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.input-group:hover {
    transform: translateY(-3px);
}

.gender-tab {
    padding: 15px;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gender-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.gender-tab:hover::before {
    left: 100%;
}

.gender-tab.male {
    background: linear-gradient(135deg, #a8d8ff, #7bb3ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 216, 255, 0.4);
}


.gender-tab.female {
    background: linear-gradient(135deg, #ffb6c1, #ff9fb3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}


.gender-tab.active {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: pulse 1.5s ease-in-out infinite;
}

.input-group input {
    width: 100%;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-top: none;
    box-sizing: border-box;
    border-radius: 0 0 15px 15px;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    position: relative;
}

.input-group input:focus {
    outline: none;
    border-color: #e55c6f;
    box-shadow: 0 0 20px rgba(229, 92, 111, 0.3), 0 0 40px rgba(229, 92, 111, 0.1);
    transform: translateY(-2px);
    background: #fff;
}

.input-group input::placeholder {
    color: #bbb;
    transition: all 0.3s ease;
}

.input-group input:focus::placeholder {
    color: #e55c6f;
    transform: translateY(-2px);
}

.test-button {
    width: 100%;
    max-width: 300px;
    padding: 18px;
    background: linear-gradient(135deg, #e55c6f, #ff8a80, #ffb6c1);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    border-radius: 35px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto 25px auto;
    box-shadow: 0 6px 20px rgba(229, 92, 111, 0.4);
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.test-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.test-button:hover::before {
    left: 100%;
}

.test-button::after {
    content: '✨';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

.test-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 92, 111, 0.4);
    background-position: 100% 100%;
}

.test-button:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

#testButtonFooter {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 9999 !important;
    opacity: 0;
    transition: opacity 0.5s ease, margin-bottom 0.5s ease, transform 0.5s ease; /* 增加过渡时间使其更平滑 */
    pointer-events: none;
    width: 90% !important;
    max-width: 400px !important;
    margin: 0 !important;
    padding: 18px !important;
}

/* 底部按钮的显示和隐藏状态类 */
#testButtonFooter.footer-button-hidden {
    opacity: 0 !important;
    margin-bottom: -100px !important; /* 使用 margin 而不是 transform 来控制显示/隐藏 */
    pointer-events: none !important;
    transition: opacity 0.5s ease, margin-bottom 0.5s ease, transform 0.5s ease !important; /* 确保隐藏状态也有过渡效果 */
}

#testButtonFooter.footer-button-visible {
    opacity: 1 !important;
    margin-bottom: 0 !important; /* 使用 margin 而不是 transform 来控制显示/隐藏 */
    pointer-events: auto !important;
    transform: translateX(-50%) !important; /* 确保按钮居中 */
    transition: opacity 0.5s ease, margin-bottom 0.5s ease, transform 0.6s ease !important; /* 增加transform过渡时间使效果更平滑 */
}

/* 确保底部按钮的 hover 效果正常工作 */
#testButtonFooter.footer-button-visible:hover {
    transform: translateX(-50%) translateY(-3px) !important; /* 合并 transform 值 */
    transition: transform 0.6s ease, box-shadow 0.6s ease, background-position 0.6s ease !important; /* 增加hover过渡时间使效果更平滑 */
}

.agreement {
    margin-bottom: 20px;
    color: #888;
    animation: fadeInUp 0.8s ease-out 1s both;
    transition: all 0.3s ease;
}

.agreement:hover {
    transform: translateY(-1px);
    color: #666;
}

.agreement input {
    margin-right: 10px;
    vertical-align: middle;
    transform: scale(1.2);
    accent-color: #e55c6f;
}

.agreement input:checked {
    animation: pulse 0.3s ease;
}

.agreement a {
    color: #e55c6f;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.agreement a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e55c6f, #ff8a80);
    transition: width 0.3s ease;
}

.agreement a:hover::after {
    width: 100%;
}

.order-link {
    display: block;
    margin-bottom: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 1.1s both;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.order-link::before {
    content: '📋';
    margin-right: 8px;
    font-size: 16px;
}

.order-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 92, 111, 0.2);
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.notice {
    color: #999;
    font-size: 11px;
    line-height: 1.6;
    padding: 15px;
    /* background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #e55c6f;
    animation: fadeInUp 0.8s ease-out 1.2s both;
    position: relative; */
}

/* .notice::before {
    content: '💡';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 14px;
} */

.notice {
    padding-left: 45px;
}

.info-section {
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out calc(1.4s + var(--delay, 0s)) both;
    transition: all 0.3s ease;
}

.info-section:nth-child(5) {
    --delay: 0s;
}

.info-section:nth-child(6) {
    --delay: 0.1s;
}

.info-section:nth-child(7) {
    --delay: 0.2s;
}

.info-section:nth-child(8) {
    --delay: 0.3s;
}

.info-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-section img {
    width: 100%;
    display: block;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-section:hover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.footer {
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    position: relative;
    animation: fadeInUp 0.8s ease-out 1.8s both;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e55c6f, #ff8a80, #ffb6c1, #e55c6f);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.footer p {
    margin: 5px 0;
    transition: all 0.3s ease;
}

.footer p:hover {
    color: #666;
    transform: translateY(-1px);
}

.footer p:first-child {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-bottom: 10px;
}

.customer-service-notice {
    color: #999;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
    opacity: 0.8;
}

.footer p:first-child::before {
    content: '💰';
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 100vh !important;
        box-shadow: none !important;
        /* padding-bottom: 90px; */
    }

    .main-content {
        padding: 20px;
    }

    .title h1 {
        font-size: 36px;
    }

    .input-section {
        flex-direction: row;
        gap: 10px;
    }

    .input-group {
        width: 48%;
    }

    .gender-tab {
        padding: 10px 8px;
        font-size: 14px;
    }

    .input-group input {
        padding: 15px 8px;
        font-size: 14px;
    }

    .test-button {
        font-size: 18px;
        padding: 16px;
        margin: 0 auto 20px auto;
        display: block;
        max-width: 280px;
    }

    .container .honesty {
        padding: 15px;
        font-size: 14px;
        text-align: center;
        margin-top: 20px;
        border-radius: 8px;
        color: #e55055;
        text-align: center;
        margin-top: 20px;
        padding: 15px;
        border-radius: 8px;
        color: #e55055;
        font-size: 14px;
    }

    .container .honesty img {
        max-width: 150px;
        margin-top: 10px;
    }
}