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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 背景动画 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 货币符号动画 */
.money-symbol {
    position: absolute;
    font-size: 2rem;
    opacity: 0.9;
    animation: moneyFloat 8s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.symbol-1 { top: 15%; left: 8%; animation-delay: 0s; }
.symbol-2 { top: 25%; right: 12%; animation-delay: 1.2s; }
.symbol-3 { top: 70%; left: 15%; animation-delay: 2.4s; }
.symbol-4 { top: 55%; right: 8%; animation-delay: 3.6s; }
.symbol-5 { top: 85%; right: 25%; animation-delay: 4.8s; }
.symbol-6 { top: 40%; left: 5%; animation-delay: 6s; }

/* 股市图表动画 */
.chart {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.8;
    animation: chartPulse 4s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 6px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-1 { 
    top: 30%; 
    left: 25%; 
    animation-delay: 0s;
}
.chart-2 { 
    top: 60%; 
    right: 35%; 
    animation-delay: 1.5s;
}
.chart-3 { 
    top: 45%; 
    left: 45%; 
    animation-delay: 3s;
}

/* 隐藏的小丑元素（低透明度，不易察觉） */
.hidden-clown {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.4;
    animation: sneakyFloat 12s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    padding: 4px;
    backdrop-filter: blur(5px);
}

.clown-1 { top: 20%; right: 40%; animation-delay: 0s; }
.clown-2 { top: 75%; left: 60%; animation-delay: 6s; }

/* 几何装饰形状 */
.geo-shape {
    position: absolute;
    background: rgba(156, 163, 175, 0.1);
    animation: geoRotate 10s linear infinite;
}

.geo-1 {
    width: 60px;
    height: 60px;
    top: 35%;
    right: 20%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 0s;
}

.geo-2 {
    width: 80px;
    height: 80px;
    top: 65%;
    left: 35%;
    border-radius: 50%;
    animation-delay: 2s;
}

.geo-3 {
    width: 50px;
    height: 50px;
    top: 10%;
    left: 60%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: 4s;
}

/* 动态网格背景 */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(156, 163, 175, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(156, 163, 175, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 20s linear infinite;
}

/* 资本流动效果 */
.capital-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(156, 163, 175, 0.3), transparent);
    animation: capitalFlow 6s linear infinite;
}

.line-1 {
    top: 25%;
    width: 200px;
    animation-delay: 0s;
}

.line-2 {
    top: 55%;
    width: 150px;
    animation-delay: 2s;
}

.line-3 {
    top: 75%;
    width: 180px;
    animation-delay: 4s;
}

/* 动画定义 */
@keyframes moneyFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.1); 
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1); 
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-15px) rotate(270deg) scale(0.9); 
        opacity: 0.8;
    }
}

@keyframes chartPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.9;
    }
}

@keyframes sneakyFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.2;
    }
}

@keyframes geoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gridShift {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

@keyframes capitalFlow {
    0% { 
        left: -200px; 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        left: 100%; 
        opacity: 0; 
    }
}

/* 弹窗覆盖层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.success-modal,
.modal-overlay.exit-modal {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 主弹窗 */
.modal {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    animation: modalIn 0.4s ease-out forwards;
    position: relative;
    overflow: hidden;
}

@keyframes modalIn {
    to {
        transform: scale(1);
    }
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* 弹窗头部 */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 500;
}

/* 按钮容器 */
.buttons-container {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.2rem;
}

/* 进度条容器 */
.progress-container {
    display: none;
    animation: slideIn 0.3s ease-out;
}

.progress-container.show {
    display: block;
}

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

.progress-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    text-align: center;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-status {
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

/* 成功弹窗 */
.modal.success {
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    max-width: 450px;
    min-width: 350px;
    position: relative;
    overflow: hidden;
}

.modal.success::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.modal.success::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

/* 成功图标 */
.success-header {
    margin-bottom: 20px;
}

.main-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0px) scale(1); }
    to { transform: translateY(-10px) scale(1.1); }
}

/* 成功标题 */
.success-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* 成功消息区域 */
.success-message {
    margin-bottom: 30px;
}

.main-text {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-text {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.time-highlight {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    display: inline-block;
}

/* 行动按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 页面右下角更多链接 */
.page-more-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: fadeInUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.page-more-link a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    animation: gentlePulse 3s ease-in-out infinite;
}

.page-more-link a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2, #667eea);
    animation: none; /* 悬停时停止脉冲动画 */
}

.page-more-link a:active {
    transform: translateY(-1px) scale(1.02);
}

.more-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.more-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 轻微的脉冲动画 */
@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
        transform: scale(1.02);
    }
}

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

/* 更多链接 */
.more-link {
    position: absolute;
    bottom: 15px;
    right: 20px;
    z-index: 10;
}

.more-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.more-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.more-link a:active {
    transform: translateY(0px);
}

.modal.success .btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-weight: 700;
}

.modal.success .btn-primary:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.modal.success .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.modal.success .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .modal.success {
        max-width: 95%;
        min-width: 320px;
        margin: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .success-title {
        font-size: 1.6rem;
    }
    
    .main-text {
        font-size: 1.1rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .sub-text {
        font-size: 1rem;
    }
    
    /* 移动端更多链接调整 */
    .more-link {
        bottom: 10px;
        right: 15px;
    }
    
    .more-link a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    /* 移动端页面更多链接调整 */
    .page-more-link {
        bottom: 20px;
        right: 20px;
    }
    
    .page-more-link a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .more-icon {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .main-text {
        font-size: 1rem;
    }
    
    .success-title {
        font-size: 1.4rem;
    }
    
    /* 小屏幕更多链接调整 */
    .more-link {
        bottom: 8px;
        right: 12px;
    }
    
    .more-link a {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    /* 小屏幕页面更多链接调整 */
    .page-more-link {
        bottom: 15px;
        right: 15px;
    }
    
    .page-more-link a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .more-text {
        display: none;
    }
    
    .more-icon {
        font-size: 1.2rem;
    }
}

/* 退出失败弹窗 */
.modal.exit {
    text-align: center;
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal.exit h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.modal.exit p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.modal.exit .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.modal.exit .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal {
        padding: 24px;
        margin: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .buttons-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* 更多提示 */
.more-hint {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    animation: fadeInBounce 2s ease-out 1s both;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 提示文字动画 */
@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.8);
    }
}

/* 移动端页面更多链接调整 */
.page-more-link {
    bottom: 20px;
    right: 20px;
}

.page-more-link a {
    padding: 10px 16px;
    font-size: 0.9rem;
}

.more-icon {
    font-size: 1rem;
}

.more-hint {
    font-size: 0.7rem;
    padding: 4px 8px;
}