* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
    background-color: #0a0a1f;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a1a3a 100%);
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@keyframes gradientAnimation {
    0% {
        background: linear-gradient(45deg, #ff6b6b, #4834d4);
        box-shadow: 0 0 50px rgba(255, 107, 107, 0.5);
    }
    12.5% {
        background: linear-gradient(45deg, #4834d4, #00ff88);
        box-shadow: 0 0 50px rgba(72, 52, 212, 0.5);
    }
    25% {
        background: linear-gradient(45deg, #00ff88, #ff3399);
        box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
    }
    37.5% {
        background: linear-gradient(45deg, #ff3399, #ffcc00);
        box-shadow: 0 0 50px rgba(255, 51, 153, 0.5);
    }
    50% {
        background: linear-gradient(45deg, #ffcc00, #00ffff);
        box-shadow: 0 0 50px rgba(255, 204, 0, 0.5);
    }
    62.5% {
        background: linear-gradient(45deg, #00ffff, #9933ff);
        box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
    }
    75% {
        background: linear-gradient(45deg, #9933ff, #ff6600);
        box-shadow: 0 0 50px rgba(153, 51, 255, 0.5);
    }
    87.5% {
        background: linear-gradient(45deg, #ff6600, #33ff33);
        box-shadow: 0 0 50px rgba(255, 102, 0, 0.5);
    }
    100% {
        background: linear-gradient(45deg, #33ff33, #ff6b6b);
        box-shadow: 0 0 50px rgba(51, 255, 51, 0.5);
    }
}

@keyframes glowAnimation {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.container {
    max-width: 1200px;  /* 增加容器寬度 */
    margin: 0 auto;
    padding: 20px;
    perspective: 1000px;
}



.header {
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(45deg, #4a2b9e, #1e4d5c);
    box-shadow: 0 0 30px rgba(74, 43, 158, 0.3);
    animation: glow 3s infinite alternate;
    transform-style: preserve-3d;
    transform: rotateX(10deg);
    margin-bottom: 40px;
}

.header h1 {
    font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 
        2px 2px 0px #4a2b9e,
        4px 4px 0px #1e4d5c,
        6px 6px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.coin-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;  /* 增加間距 */
    margin: 40px 0;
    padding: 30px;
    background: rgba(45, 45, 75, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: rotateX(5deg);
}

.model-viewer {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    animation: 
        gradientAnimation 20s ease infinite,
        glowAnimation 3s ease-in-out infinite;
}
.model-viewer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 255, 255, 0.1) 70%);
    pointer-events: none;
    mix-blend-mode: overlay;
}
.features {
    padding: 30px;
    background: rgba(30, 30, 60, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

h2 {
    font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
    color: #7dd3fc;
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}

.feature-item {
    margin: 25px 0;
    padding: 20px;
    background: rgba(25, 25, 50, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateZ(20px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-item h3 {
    font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
    color: #7dd3fc;
    font-size: 1em;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}

.feature-item p {
    font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
    font-size: 0.7em;
    line-height: 1.8;
    color: #ffffff;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    padding: 0 20px;
}

.stat-card {
    background: rgba(25, 25, 50, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateZ(30px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.emoji {
    font-size: 2em;
    margin-bottom: 15px;
    display: block;
}

.stat-value {
    font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
    color: #7dd3fc;
    font-size: 2em;
    margin: 15px 0;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}

.stat-card p {
    font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
    font-size: 0.7em;
    color: #ffffff;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(74, 43, 158, 0.3);
        transform: rotateX(10deg) translateZ(0);
    }
    to {
        box-shadow: 0 0 40px rgba(74, 43, 158, 0.6);
        transform: rotateX(10deg) translateZ(20px);
    }
}

@keyframes pump {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pump-text {
    font-size: 1.2em;
    color: #ff4d4d;
    font-weight: bold;
    animation: pump 1s infinite;
    text-shadow: 3px 3px 0 #000;
}

.moon-text {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 3px 3px 0 #000;
    margin-top: 15px;
}

/* 更新手機版本的媒體查詢部分 */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }

    .header {
        padding: 12px 8px;
        margin-bottom: 10px;
        text-align: center; /* 確保標題置中 */
    }

    .header h1 {
        font-size: 1.4em;
        margin-bottom: 8px;
        line-height: 1.2;
        text-align: center;
        word-spacing: -2px; /* 調整字間距 */
    }

    .pump-text {
        font-size: 0.6em;
        margin: 5px 0;
        text-align: center;
        line-height: 1.2;
    }

    .moon-text {
        font-size: 0.6em;
        margin-top: 5px;
        text-align: center;
    }

    .coin-section {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        margin: 8px 0;
    }
    .model-viewer canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        clip-path: circle(50%);  /* 使用 clip-path 確保完美的圓形裁切 */
    }
    /* 手機版適配 */
@media (max-width: 768px) {
    .model-viewer {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        overflow: hidden;  /* 確保內容不會溢出 */
        position: relative;
        
    }
}

    .features {
        padding: 8px;
        text-align: center;
    }

    .feature-item {
        margin: 8px 0;
        padding: 8px;
    }

    .feature-item h3 {
        font-size: 0.7em;
        margin: 4px 0;
    }

    .feature-item p {
        font-size: 0.5em;
        line-height: 1.3;
    }

    h2 {
        font-size: 0.8em;
        margin-bottom: 8px;
        text-align: center;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 10px 0;
        padding: 0 5px;
    }

    .stat-card {
        padding: 10px;
        text-align: center;
    }

    .stat-value {
        font-size: 1em;
        margin: 5px 0;
    }

    .emoji {
        font-size: 1.2em;
        margin-bottom: 5px;
    }

    .stat-card p {
        font-size: 0.5em;
    }
}

/* 額外的間距優化 */
@media (max-width: 768px) {
    /* 減少內容之間的垂直間距 */
    .feature-item + .feature-item {
        margin-top: 5px;
    }

    /* 調整文字行高 */
    p {
        line-height: 1.2;
    }

    /* 優化卡片內部間距 */
    .feature-item, .stat-card {
        padding: 8px;
    }

    /* 減少標題和內容的間距 */
    h3 + p {
        margin-top: 3px;
    }
}
/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .header h1,
    .pump-text,
    .moon-text,
    .stat-value {
        -webkit-text-stroke: 0.5px;
    }
}