:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --dark: #2d3436;
    --light: #dfe6e9;
    --danger: #d63031;
    --success: #00b894;
    --ethereum: #627eea;
    --polygon: #8247e5;
    --binance: #f3ba2f;
    --solana: #00ffbd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden; /* 防止水平滾動 */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.nftdump-detail header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.dumpster {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #444;
    transition: all 0.3s ease;
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

.dumpster:hover {
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
    border-color: var(--primary);
}

.dumpster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chain-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.chain-tab {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    opacity: 0.6;
}

.chain-tab.active {
    background-color: #333;
    border-color: currentColor;
    opacity: 1;
    font-weight: bold;
}

.chain-tab:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.chain-tab.ethereum {
    color: var(--ethereum);
}

.chain-tab.polygon {
    color: var(--polygon);
}

.chain-tab.binance {
    color: var(--binance);
}

.chain-tab.solana {
    color: var(--solana);
}

.chain-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.addresses {
    margin-bottom: 30px;
}

.address-container {
    display: none;
}

.address-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.address-box {
    background-color: #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid currentColor;
}

.address-box.ethereum {
    color: var(--ethereum);
}

.address-box.polygon {
    color: var(--polygon);
}

.address-box.binance {
    color: var(--binance);
}

.address-box.solana {
    color: var(--solana);
}

.address-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.address-value {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #222;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1rem;
    word-break: break-all;
    position: relative;
}

.copy-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.network-info {
    margin: 20px 0;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 8px;
    padding: 15px;
    border-left: 5px solid var(--primary);
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

.network-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.network-info p {
    margin-bottom: 5px;
}

.network-info ul {
    margin-left: 20px;
    margin-top: 10px;
}

.network-info li {
    margin-bottom: 5px;
}

.network-tip {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    color: #aaa;
}

.history {
    margin-top: 60px;
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

.history h2 {
    margin-bottom: 30px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    color: var(--secondary);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.history-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.history-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #333;
}

.history-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.history-item:hover .history-img img {
    transform: scale(1.05);
}

.history-chain {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
}

.history-chain.ethereum {
    color: var(--ethereum);
}

.history-chain.polygon {
    color: var(--polygon);
}

.history-chain.binance {
    color: var(--binance);
}

.history-chain.solana {
    color: var(--solana);
}

.history-info {
    padding: 15px;
}

.history-info h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-date {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.history-address {
    font-family: monospace;
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.history-link:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .history-grid {
        grid-template-columns: 1fr;
    }
    .dump .title-container{
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .title-part {
        font-size: 2.5rem; /* 減小手機版字體大小 */
    }
    .throw-button {
        width: 80%; /* 確保按鈕不會超出屏幕 */
        max-width: 300px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .title-part {
        font-size: 2rem; /* 在更小的屏幕上進一步減小字體 */
        margin: 0 5px;
    }
    .throw-button {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

.dump {
    background-color: #1e1e2e;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-x: hidden; /* 防止水平滾動 */
    perspective: 1000px;
}

/* 地面 */
.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-color: #2a2a3c;
    clip-path: polygon(0 50%, 25% 40%, 50% 60%, 75% 45%, 100% 55%, 100% 100%, 0 100%);
}

/* 網格線 */
.grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: 
        linear-gradient(to right, rgba(58, 58, 92, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(58, 58, 92, 0.3) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(500px) rotateX(45deg);
    transform-origin: bottom;
}

/* NFT 基本類 */
.nft {
    position: absolute;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.nft:hover {
    transform: translateZ(20px) scale(1.05) !important;
    z-index: 1000 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* 各種 NFT 類型 */
.monkey {
    background: linear-gradient(135deg, #6b4e71, #8a6990);
    width: 120px;
    height: 120px;
    border: 2px solid #9c7fa3;
}

.monkey::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #9b7fa3;
    top: 30px;
}

.monkey::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    bottom: 20px;
    z-index: 0;
}

.pixel-art {
    background: linear-gradient(135deg, #546e7a, #78909c);
    border: 3px solid #78909c;
    width: 120px;
    height: 120px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    padding: 5px;
}

.pixel {
    width: 100%;
    height: 100%;
}

.abstract {
    background: #263238;
    border: 2px solid #37474f;
    width: 140px;
    height: 140px;
    position: relative;
}

.abstract::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(2, 136, 209, 0.7);
    top: 20px;
    left: 20px;
}

.abstract::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(244, 67, 54, 0.7);
    top: 10px;
    left: 40px;
}

.avatar {
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    border: 2px solid #6a1b9a;
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.avatar::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #9c27b0;
    top: 20px;
    left: 20px;
}

.card {
    background: linear-gradient(135deg, #1a237e, #303f9f);
    border: 2px solid #303f9f;
    width: 100px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.card-image {
    width: 80px;
    height: 60px;
    background-color: #c5cae9;
    border-radius: 2px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image::after {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3f51b5;
}

.card-text {
    width: 60px;
    height: 8px;
    background-color: #7986cb;
    border-radius: 2px;
    margin: 5px 0;
}

/* 垃圾碎片 */
.fragment {
    width: 40px;
    height: 40px;
    background-color: #512da8;
    border: 1px solid #5e35b1;
}

/* 閃爍效果 */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: white;
}

/* 標題容器 */
.title-container {
    position: relative;
    display: flex;
    flex-wrap: wrap; /* 允許在小屏幕上換行 */
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
    z-index: 10;
    text-align: center;
    box-sizing: border-box;
    padding: 0 15px;
}

/* 基本標題樣式 */
.title-part {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff69b4;
    text-shadow: 0 0 10px #ff69b4, 0 0 20px #ff69b4, 0 0 30px #ff69b4;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    animation: brightnessFlicker 3s infinite alternate;
    white-space: nowrap; /* 保持在一行 */
    font-family: 'Courier New', monospace;
}

/* 第二個 Dump 的特殊樣式 */
.title-part.broken {
    position: relative;
    transform-origin: top left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 使用彈跳曲線 */
    padding-left: 8px;
}

/* 懸掛效果 - 添加回彈動畫 */
.title-container:hover .title-part.broken {
    animation: fallAndBounce 1.2s ease-in-out forwards;
    opacity: 0.8;
    text-shadow: 
        0 0 5px rgba(255, 105, 180, 0.3),
        0 0 10px rgba(255, 105, 180, 0.3);
    filter: brightness(0.9);
}

/* 回彈動畫 */
@keyframes fallAndBounce {
    0% { transform: rotate(0deg) translateY(0); }
    20% { transform: rotate(15deg) translateY(10px); }
    30% { transform: rotate(12deg) translateY(8px); }
    40% { transform: rotate(17deg) translateY(12px); }
    50% { transform: rotate(15deg) translateY(10px); }
    60% { transform: rotate(16deg) translateY(11px); }
    70% { transform: rotate(14deg) translateY(9px); }
    80% { transform: rotate(15.5deg) translateY(10.5px); }
    90% { transform: rotate(14.8deg) translateY(10.2px); }
    100% { transform: rotate(15deg) translateY(10px); }
}

/* 修改電線效果，使其隨著回彈動畫變化 */
.title-part.broken::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 2px;
    height: 10px;
    background-color: #ff69b4;
    transform-origin: top center;
    transform: rotate(-10deg);
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title-container:hover .title-part.broken::before {
    opacity: 1;
    animation: wireStretch 1.2s ease-in-out forwards;
}

/* 電線伸展動畫 */
@keyframes wireStretch {
    0% { transform: rotate(-10deg) scaleY(1); }
    20% { transform: rotate(-15deg) scaleY(1.2); }
    30% { transform: rotate(-13deg) scaleY(1.15); }
    40% { transform: rotate(-16deg) scaleY(1.25); }
    50% { transform: rotate(-14deg) scaleY(1.2); }
    60% { transform: rotate(-15deg) scaleY(1.22); }
    70% { transform: rotate(-13.5deg) scaleY(1.18); }
    80% { transform: rotate(-14.5deg) scaleY(1.21); }
    90% { transform: rotate(-14deg) scaleY(1.2); }
    100% { transform: rotate(-14.5deg) scaleY(1.2); }
}

/* 增強掉落碎片效果 */
.title-container:hover .particle:nth-child(1) {
    animation: fallParticle 1s 0.2s forwards;
}

.title-container:hover .particle:nth-child(2) {
    animation: fallParticle 1.2s 0.3s forwards;
}

.title-container:hover .particle:nth-child(3) {
    animation: fallParticle 0.8s 0.1s forwards;
}

/* 添加掉落時的震動效果 */
@keyframes shakeEffect {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.title-container:hover {
    animation: shakeEffect 0.5s 0.2s;
}

/* 添加桃紅色發光動畫 */
@keyframes pinkGlow {
    from {
        text-shadow: 
            0 0 5px rgba(255, 105, 180, 0.5),
            0 0 10px rgba(255, 105, 180, 0.5),
            0 0 15px rgba(255, 105, 180, 0.5),
            0 0 20px rgba(255, 105, 180, 0.5);
    }
    to {
        text-shadow: 
            0 0 10px rgba(255, 105, 180, 0.7),
            0 0 20px rgba(255, 105, 180, 0.7),
            0 0 30px rgba(255, 105, 180, 0.7),
            0 0 40px rgba(255, 105, 180, 0.7),
            0 0 50px rgba(255, 105, 180, 0.5),
            0 0 60px rgba(255, 105, 180, 0.5);
    }
}

/* 添加標題懸停效果 */
.title:hover {
    transform: translateX(-50%) scale(1.05);
    text-shadow: 
        0 0 10px rgba(255, 105, 180, 0.9),
        0 0 20px rgba(255, 105, 180, 0.9),
        0 0 30px rgba(255, 105, 180, 0.9),
        0 0 40px rgba(255, 105, 180, 0.9),
        0 0 50px rgba(255, 105, 180, 0.7),
        0 0 60px rgba(255, 105, 180, 0.7),
        0 0 70px rgba(255, 105, 180, 0.7);
    cursor: default;
}

/* 區塊鏈地址 */
.address {
    position: absolute;
    font-family: monospace;
    font-size: 8px;
    color: #64ffda;
    opacity: 0.5;
}

@keyframes float {
    0% { transform: translateY(0) rotate(var(--rotation)); }
    50% { transform: translateY(-10px) rotate(var(--rotation)); }
    100% { transform: translateY(0) rotate(var(--rotation)); }
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* 浮動的 NFT */
.floating {
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

/* 設置動畫延遲 */
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }
.delay-4 { animation-delay: 2s; }

/* 閃爍動畫 */
.blink {
    animation: blink 2s ease-in-out infinite;
}

/* 添加到現有的 CSS 中 */
.nft-frame {
    position: absolute;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    background-color: #2a2a3c;
    min-width: 100px;
    min-height: 100px;
    z-index: 10;
}

.nft-frame:hover {
    transform: translateZ(20px) scale(1.05) !important;
    z-index: 1000 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nft-frame:hover .nft-image {
    transform: scale(1.05);
}

/* 不同形狀的 NFT 框架 - 縮小 15% */
.nft-frame.square {
    width: 153px;  /* 原 180px * 0.85 = 153px */
    height: 153px; /* 原 180px * 0.85 = 153px */
}

.nft-frame.rectangle {
    width: 128px;  /* 原 150px * 0.85 = 127.5px ≈ 128px */
    height: 170px; /* 原 200px * 0.85 = 170px */
}

.nft-frame.wide {
    width: 187px;  /* 原 220px * 0.85 = 187px */
    height: 136px; /* 原 160px * 0.85 = 136px */
}

.nft-frame.tall {
    width: 119px;  /* 原 140px * 0.85 = 119px */
    height: 187px; /* 原 220px * 0.85 = 187px */
}

.nft-frame.circle {
    width: 153px;  /* 原 180px * 0.85 = 153px */
    height: 153px; /* 原 180px * 0.85 = 153px */
    border-radius: 50%;
}

/* 框架邊框樣式 */
.nft-frame.border-gradient-1 {
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.nft-frame.border-gradient-1::before {
    content: '';
    position: absolute;
    top: -3px; right: -3px; bottom: -3px; left: -3px;
    background: linear-gradient(135deg, #6b4e71, #8a6990);
    border-radius: inherit;
    z-index: -1;
}

.nft-frame.border-gradient-2 {
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.nft-frame.border-gradient-2::before {
    content: '';
    position: absolute;
    top: -3px; right: -3px; bottom: -3px; left: -3px;
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    border-radius: inherit;
    z-index: -1;
}

.nft-frame.border-gradient-3 {
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.nft-frame.border-gradient-3::before {
    content: '';
    position: absolute;
    top: -3px; right: -3px; bottom: -3px; left: -3px;
    background: linear-gradient(135deg, #1a237e, #303f9f);
    border-radius: inherit;
    z-index: -1;
}

.nft-frame.border-solid-1 {
    border: 3px solid #78909c;
}

.nft-frame.border-solid-2 {
    border: 3px solid #37474f;
}

.nft-frame.border-solid-3 {
    border: 3px solid #6a1b9a;
}

/* NFT 信息覆蓋層 */
.nft-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nft-card:hover .nft-overlay {
    opacity: 1;
}

.view-on-opensea {
    color: white;
    background: rgba(108, 92, 231, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.nft-card:hover .view-on-opensea {
    transform: translateY(0);
}

/* 添加圖片加載狀態指示器 */
.image-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #6c5ce7;
    animation: spin 1s infinite linear;
    z-index: 1;
}

.image-loaded .image-loading-indicator,
.image-error .image-loading-indicator {
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 改进图片错误状态样式 */
.image-error img {
    opacity: 0.85;
    filter: brightness(0.8) contrast(0.9);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

/* 添加占位图边框 */
.nft-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #151520; /* 更深的背景色 */
}

/* 添加图片加载效果 */
.nft-image img {
    transition: all 0.3s ease;
}

.nft-image:hover img {
    transform: scale(1.05);
}

/* 改进加载指示器样式 */
.image-loading-indicator {
    border-width: 3px;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
}

/* 添加卡片悬停效果 */
.nft-card {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #1a1a2e; /* 更深的背景色 */
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* NFT 工具提示 */
.nft-tooltip {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1001;
    width: 150px;
    text-align: center;
}

.nft-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* 確保鏈標識可見 */
.nft-chain-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    z-index: 11;
}

/* 確保 NFT 鏈標識樣式正確 */
.nft-chain-badge.ethereum {
    background-color: #627eea;
}

.nft-chain-badge.polygon {
    background-color: #8247e5;
}

.nft-chain-badge.binance {
    background-color: #f3ba2f;
}

.nft-chain-badge.solana {
    background-color: #00ffbd;
    color: #000;
}

/* 可點擊的 NFT 框架 */
.nft-frame {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
}

.nft-frame:hover::after {
    content: '點擊查看詳情';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

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

/* 添加 3D 效果 */
.scene {
    perspective: 1000px;
}

.nft-frame {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.nft-frame:hover {
    transform: translateZ(50px) scale(1.1) !important;
    z-index: 1000 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* 添加陰影效果 */
.nft-frame::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10%;
    right: 10%;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    filter: blur(10px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
}

/* 添加浮動動畫 */
@keyframes float {
    0% { transform: translateY(0) rotate(var(--rotation)); }
    50% { transform: translateY(-10px) rotate(var(--rotation)); }
    100% { transform: translateY(0) rotate(var(--rotation)); }
}

.nft-frame {
    --rotation: 0deg;
    animation: float 8s ease-in-out infinite;
    animation-delay: calc(var(--index) * 0.5s);
}

/* 添加進入動畫 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(50px) rotate(var(--rotation)); }
    to { opacity: 1; transform: translateY(0) rotate(var(--rotation)); }
}

.nft-frame.fade-in {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

/* 載入動畫 */
.loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #64ffda;
    font-size: 18px;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

/* 空狀態 */
.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #64ffda;
    font-family: monospace;
    max-width: 80%;
    z-index: 1000;
}

.empty-state-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.empty-state-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.opensea-button {
    display: inline-block;
    background-color: #64ffda;
    color: #1e1e2e;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.opensea-button:hover {
    background-color: #4ad8b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.opensea-logo {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* 丟棄按鈕樣式 - 底部置中 */
.throw-button {
    position: absolute;
    bottom: 30px; /* 從底部向上 30px */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff69b4; /* 與標題相同的桃紅色 */
    color: #1e1e2e;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    max-width: max-content;
    width: 100%;
}

.throw-button:hover {
    background-color: #ff8dc7; /* 稍微亮一點的桃紅色 */
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.throw-button:active {
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.4);
}

/* 添加垃圾桶圖標 */
.throw-button::before {
    content: '🗑️';
    margin-right: 8px;
    font-size: 18px;
}

/* 添加發光效果 */
@keyframes buttonGlow {
    0% { box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3); }
    50% { box-shadow: 0 5px 20px rgba(255, 105, 180, 0.6); }
    100% { box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3); }
}

.throw-button {
    animation: buttonGlow 2s infinite;
}

/* 為 NFT Dump 部分添加震動和亮度變化效果 */
.title-container:hover .title-part:not(.broken) {
    animation: subtleShake 0.5s ease-in-out, brightnessFlicker 1s ease-in-out;
    filter: brightness(1.2);
}

/* 微妙的震動效果 */
@keyframes subtleShake {
    0% { transform: translateX(0) translateY(0); }
    15% { transform: translateX(-1px) translateY(0); }
    30% { transform: translateX(1px) translateY(-1px); }
    45% { transform: translateX(-1px) translateY(1px); }
    60% { transform: translateX(1px) translateY(0); }
    75% { transform: translateX(0) translateY(-1px); }
    90% { transform: translateX(-1px) translateY(0); }
    100% { transform: translateX(0) translateY(0); }
}

/* 亮度閃爍效果 */
@keyframes brightnessFlicker {
    0% { filter: brightness(1); }
    25% { filter: brightness(1.3); }
    50% { filter: brightness(1.1); }
    75% { filter: brightness(1.4); }
    100% { filter: brightness(1.2); }
}

/* 修改整體標題容器的震動效果 */
.title-container:hover {
    animation: containerShake 0.5s 0.1s ease-in-out;
}

/* 增強電流效果 */
.title-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0), rgba(255, 105, 180, 0.5), rgba(255, 105, 180, 0), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title-container:hover::after {
    opacity: 1;
    animation: electricCurrent 1s linear infinite;
}

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

/* 語言切換器樣式 - 確保在所有頁面上一致 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher:hover {
    opacity: 1;
}

.language-icon {
    font-size: 24px;
    color: #f0f0f0;
    cursor: pointer;
    transition: color 0.3s;
}

.language-icon:hover {
    color: #007bff;
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: #2a2a2a;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher:hover .language-dropdown,
.language-dropdown:hover {
    display: block;
}

.lang-option {
    color: #f0f0f0;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lang-option:hover {
    background-color: #3a3a3a;
}

.lang-option.active {
    background-color: #007bff;
    color: white;
}

/* 添加語言切換器的響應式樣式 */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        position: fixed; /* 確保固定在視窗右上角 */
        z-index: 9999; /* 確保它在最上層 */
    }
    
    .language-dropdown {
        position: fixed;
        top: 40px;
        right: 10px;
    }
}

.back-button {
    position: absolute;
    top: 24px;
    left: 24px;
}

.back-button a{
    color: var(--text-primary);
    opacity: 0.5;
    text-decoration: auto;
}

.nftdump-detail .nft-image{
    height: 200px;
}

.nftdump-detail h1, .nftdump-detail .subtitle {
    font-family: 'Courier New', monospace;
    margin-top: 30px;
    line-height: 1;
}

.nftdump-detail h1{
    font-size: 4.5rem;
}

.nftdump-detail .subtitle {
    margin-top: 15px !important;
}

/* 確保只有 active 的地址容器顯示 */
.address-container {
    display: none;
}

.address-container.active {
    display: block;
}

/* 鏈種標籤樣式 */
.chain-tab {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.chain-tab.active {
    opacity: 1;
    font-weight: bold;
}

/* 確保鏈標籤在點擊時有視覺反饋 */
.chain-tab:hover {
    opacity: 0.8;
}

/* NFT 卡片样式 */
.nft-card {
    background-color: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* NFT 图片容器 */
.nft-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nft-card:hover .nft-image img {
    transform: scale(1.05);
}

/* NFT 信息样式 */
.nft-info {
    padding: 15px;
    background-color: #1a1a2e; /* 确保与卡片背景一致 */
}

.nft-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #b388ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.nft-info p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #a0a0a0;
}

/* NFT 元数据样式 */
.nft-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: bold;
}

.chain {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chain i {
    color: #b388ff;
}

.token-id {
    width: 60px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    background-color: #2a2a2a;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(.disabled) {
    background-color: #3a3a3a;
}

.pagination-btn.active {
    background-color: #6c5ce7;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

/* 错误消息样式 */
.error-message {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
}

.error-message button {
    background-color: #6c5ce7;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.error-message button:hover {
    background-color: #5649c0;
}

/* NFT 日期样式 */
.nft-date {
    font-size: 0.8rem;
    color: #777;
    margin-top: 8px;
    text-align: right;
}