/* 基础样式：包含通用样式、布局和主题切换 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f8fafc;
    background-image:
        linear-gradient(rgba(200, 200, 200, 0.55), rgba(200, 200, 200, 0.55)),
        url('../images/bg-demo-eth.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;

    color: #222 !important;
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0.01em;
    transition: background-color 0.5s ease, color 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2vh;
}

body.dark-mode {
    background-color: #1a1a1a;
    background-image:
        linear-gradient(rgba(33, 44, 55, 0.60), rgba(33, 44, 55, 0.60)),
        url('../images/bg-demo-eth.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;

    color: #ffffff !important;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding: 8px 0;
    margin-top: -20px;
    letter-spacing: 0.02em;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主题切换按钮 */
.theme-btn {
    position: fixed;
    top: 6px;
    right: 6px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    min-width: 20px !important;
    max-width: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
    box-shadow: none !important;
}

.theme-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(24, 32, 54, 0.85);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
    z-index: -1;
    transition: all 0.3s ease;
}

.theme-btn i {
    font-size: 12px;
    line-height: 1;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 表单行布局 */
.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
