/* 基础样式和字体设置 */
/* 移除外部字体导入，使用系统默认无衬线字体，提高加载速度 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* 莫奈尔风格柔和背景 - 印象派柔和渐变 */
    background: linear-gradient(135deg, 
        #f0e68c 0%, 
        #87ceeb 25%, 
        #add8e6 50%, 
        #98fb98 75%, 
        #9370db 100%);
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: #000000;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
}

/* 莫奈尔风格背景增强效果 - 柔和纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    z-index: -1;
    pointer-events: none;
    animation: monetShift 20s ease-in-out infinite alternate;
}

/* 莫奈尔风格背景流动动画 */
@keyframes monetShift {
    0% {
        background-position: 
            0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    100% {
        background-position: 
            50% 50%, 50% 50%, 50px 50px, 50px 50px;
    }
}

/* 彩虹色变换动画 */
@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* 彩虹色发光动画 */
@keyframes rainbowGlow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* 网格扫描动画 */
@keyframes gridScan {
    0% {
        background-position: 
            0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    100% {
        background-position: 
            0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 100%;
    }
}

/* 顶部导航栏 */
.header {
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    animation: slideDown 0.5s ease-out;
    border-bottom: 1px solid rgba(100, 255, 200, 0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(100, 255, 200, 0.8);
}

.logo span {
    margin-left: 0.5rem;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
}

.theme-toggle.dark {
    background: rgba(255, 255, 255, 0.15);
}

.theme-toggle.dark::before {
    left: 26px;
    background: linear-gradient(135deg, #4ecdc4, #ff6b6b);
}

.language-switcher {
    width: 50px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: #333333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.language-switcher:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(78, 205, 196, 0.3));
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(255, 107, 107, 0.3);
}

/* 主容器 */
.main-content {
    padding: 6rem 2rem 3rem;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #000000;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    text-shadow: 
        0 0 2px rgba(0, 0, 0, 0.1);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.05);
    }
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    perspective: 1000px;
}

/* 卡片通用样式 */
.card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
    flex: 1;
    transform: translateY(0) rotateY(0);
    backdrop-filter: blur(5px);
}

/* 卡片悬停效果 - 3D翻转和放大 */
.card:hover {
    transform: scale(1.05) translateY(-15px) rotateY(5deg);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.25),
        0 0 30px currentColor;
    z-index: 2;
}

/* 卡片特定样式 */
.card-1 {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #ffffff;
    text-align: center;
    border-color: #ff6b6b;
}

.card-2 {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    border-color: #4ecdc4;
}

.card-3 {
    background: linear-gradient(135deg, #feca57, #ff7f50);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    border-color: #feca57;
}

/* 卡片内容样式 */
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.card:hover .card-title {
    transform: translateY(-8px);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8);
}

.card-content {
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
    opacity: 1;
    color: #000000;
}

.card:hover .card-content {
    opacity: 1;
}

/* 信息项的交互动效 */
.info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    transform: translateZ(5px);
    overflow: hidden;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 200, 0.3), transparent);
    transition: all 0.6s ease;
    z-index: 1;
}

/* 为不同卡片的信息项添加独特边框色 */
.card-1 .info-item {
    border-color: rgba(100, 255, 200, 0.4);
}

.card-2 .info-item {
    border-color: rgba(255, 150, 100, 0.4);
}

.card-3 .info-item {
    border-color: rgba(100, 150, 255, 0.4);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05) translateZ(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(100, 255, 200, 0.2);
    border-color: rgba(100, 255, 200, 0.6);
}

.card-1 .info-item:hover {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(100, 255, 200, 0.2);
    border-color: rgba(100, 255, 200, 0.6);
}

.card-2 .info-item:hover {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 150, 100, 0.2);
    border-color: rgba(255, 150, 100, 0.6);
}

.card-3 .info-item:hover {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(100, 150, 255, 0.2);
    border-color: rgba(100, 150, 255, 0.6);
}

.info-item:hover::before {
    left: 100%;
}

/* 合约地址换行 - 优化 */
.contract-address {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 通用文字换行优化 */
.card-content,
.info-item,
.footer p {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
}

/* 长文本换行优化 */
.long-address {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* 按钮样式 - 统一为腰圆形 */
.btn {
    background: linear-gradient(135deg, 
        rgba(100, 255, 200, 0.2), 
        rgba(150, 100, 255, 0.2));
    color: #ffffff;
    border: 1px solid rgba(100, 255, 200, 0.5);
    padding: 1.2rem 2.2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transform: translateZ(5px);
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(100, 255, 200, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 200, 0.4), transparent);
    transition: all 0.6s ease;
    z-index: 1;
}

.btn:hover {
    background: linear-gradient(135deg, 
        rgba(150, 100, 255, 0.3), 
        rgba(100, 255, 200, 0.3));
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(100, 255, 200, 0.3);
    letter-spacing: 1px;
    border-color: rgba(100, 255, 200, 0.8);
}

.btn:hover::before {
    left: 100%;
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(0) translateZ(5px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(100, 255, 200, 0.2);
}

/* 特殊按钮样式 */
.pill-btn {
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, 
        rgba(100, 255, 200, 0.3), 
        rgba(150, 100, 255, 0.3)) !important;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(100, 255, 200, 0.2) !important;
    border: 1px solid rgba(100, 255, 200, 0.6) !important;
}

.pill-btn:hover {
    background: linear-gradient(135deg, 
        rgba(150, 100, 255, 0.4), 
        rgba(100, 255, 200, 0.4)) !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(100, 255, 200, 0.4) !important;
    border-color: rgba(100, 255, 200, 0.9) !important;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

/* 状态消息 */
.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.status-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-message.info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* 钱包安装提示样式 */
.wallet-install-prompt {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.install-prompt-message {
    font-size: 1.1rem;
    line-height: 1.5;
}

.install-prompt-btn {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.install-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #4ecdc4, #ff6b6b);
}

/* 暗色主题样式 */
body.dark-theme {
    background: linear-gradient(135deg, 
        #1a1a2e 0%, 
        #16213e 25%, 
        #0f3460 50%, 
        #16213e 75%, 
        #1a1a2e 100%);
    color: #ffffff;
}

body.dark-theme .header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(100, 255, 200, 0.3);
}

body.dark-theme .logo {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(100, 255, 200, 0.8);
}

body.dark-theme .card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(100, 255, 200, 0.3);
    color: #ffffff;
}

body.dark-theme .card-content {
    color: #ffffff;
}

body.dark-theme .info-item {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-theme .btn {
    background: linear-gradient(135deg, 
        rgba(100, 255, 200, 0.2), 
        rgba(150, 100, 255, 0.2));
    color: #ffffff;
    border: 1px solid rgba(100, 255, 200, 0.5);
}

body.dark-theme .btn:hover {
    background: linear-gradient(135deg, 
        rgba(150, 100, 255, 0.3), 
        rgba(100, 255, 200, 0.3));
    border-color: rgba(100, 255, 200, 0.8);
}

body.dark-theme .footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(100, 255, 200, 0.3);
    color: #ffffff;
}

body.dark-theme .footer p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .warning {
    color: rgba(255, 100, 100, 0.9);
}

body.dark-theme .status-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

body.dark-theme .status-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

body.dark-theme .status-message.info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* 装饰元素 */
.card-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-1 .card-decoration {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: white;
}

.card-2 .card-decoration {
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: #1b314f;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.card-3 .card-decoration {
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: #ff5c16;
    transform: rotate(45deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.card:hover .card-decoration {
    transform: scale(1.2) rotate(15deg);
    opacity: 0.15;
}

.card-3:hover .card-decoration {
    transform: scale(1.2) rotate(60deg);
}

/* 底部注意区域 */
.footer {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(100, 255, 200, 0.3);
    text-align: center;
    margin-top: 3rem;
    box-shadow: 
        0 -4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(100, 255, 200, 0.5);
}

.warning {
    color: rgba(255, 100, 100, 0.9);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

/* 响应式设计 */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
    
    .card {
        flex: 1;
    }
    
    .btn-group {
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
}

.card-1 {
    animation-delay: 0.2s;
}

.card-2 {
    animation-delay: 0.4s;
}

.card-3 {
    animation-delay: 0.6s;
}

/* 特定内容样式 */
.token-info {
    margin-top: 2.5rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

.token-info h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.claim-section {
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

/* 添加背景粒子效果容器 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 3D效果的卡片内容容器 */
.card-inner {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.card:hover .card-inner {
    transform: translateZ(15px);
}

/* 波纹动画 */
@keyframes ripple {
    from {
        transform: translate(calc(var(--x) - 50px), calc(var(--y) - 50px)) scale(0);
        opacity: 0.8;
    }
    to {
        transform: translate(calc(var(--x) - 50px), calc(var(--y) - 50px)) scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple 0.8s ease-out forwards;
}

/* 粒子动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-25px) rotate(10deg) scale(1.1);
        opacity: 0.8;
        filter: blur(1px);
    }
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, rgba(100, 255, 200, 0.6), rgba(150, 100, 255, 0.6));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
    box-shadow: 
        0 0 15px rgba(100, 255, 200, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
}

/* 语言切换按钮特殊样式 */
#languageSwitcher {
    min-width: 60px;
    text-align: center;
}