/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #0a0a0a;
    --color-black-soft: #1a1a1a;
    --color-red: #c41e3a;
    --color-red-dark: #8b1528;
    --color-red-glow: #ff1744;
    --color-gold: #d4af37;
    --color-gold-light: #f4e4bc;
    --color-white: #ffffff;
    --color-gray-light: rgba(255, 255, 255, 0.7);
    --color-gray-lighter: rgba(255, 255, 255, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Hero background with parallax */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('image.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.75) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 1;
}

/* Ink smoke gradient drift */
.ink-smoke {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(196, 30, 58, 0.15) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 80%,
        rgba(212, 175, 55, 0.1) 0%,
        transparent 50%
    );
    animation: smokeDrift 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes smokeDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, -30px) scale(1.1);
        opacity: 0.8;
    }
}

/* Particles animation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 4px var(--color-gold);
}

.particle:nth-child(odd) {
    background: var(--color-red);
    box-shadow: 0 0 4px var(--color-red-glow);
    animation-duration: 20s;
}

.particle:nth-child(3n) {
    width: 1px;
    height: 1px;
    animation-duration: 25s;
    opacity: 0.4;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 1rem;
}

.hero-image-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        0 0 30px rgba(196, 30, 58, 0.4),
        0 0 60px rgba(212, 175, 55, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(10, 10, 10, 0.6);
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 40px rgba(196, 30, 58, 0.6),
        0 0 80px rgba(212, 175, 55, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.9);
}

.main-headline {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 
        0 0 20px rgba(255, 23, 68, 0.5),
        0 0 40px rgba(255, 23, 68, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.main-headline:hover {
    text-shadow: 
        0 0 30px rgba(255, 23, 68, 0.7),
        0 0 60px rgba(255, 23, 68, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: glitchShimmer 2s ease-in-out infinite;
}

@keyframes glitchShimmer {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-1px);
    }
    75% {
        transform: translateX(1px);
    }
}

.chinese-text {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gold-light);
    margin-bottom: 1rem;
    text-shadow: 
        0 0 15px rgba(212, 175, 55, 0.4),
        1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.chinese-text-alt {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-gray-light);
    opacity: 0.6;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
}

/* Links section */
.links-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 600px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid var(--color-red);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.2);
}

.link-btn svg {
    flex-shrink: 0;
}

.link-btn:hover,
.link-btn:focus {
    background: rgba(196, 30, 58, 0.4);
    border-color: var(--color-red-glow);
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.5);
    transform: translateY(-2px);
    outline: none;
}

.link-btn:active {
    transform: translateY(0);
}

.link-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Token section */
.token-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.token-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.token-label {
    display: block;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    color: var(--color-gray-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.token-address-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.token-address {
    flex: 1;
    min-width: 200px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--color-white);
    background: rgba(10, 10, 10, 0.6);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    border-radius: 6px;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover,
.copy-btn:focus {
    background: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
    outline: none;
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.copy-btn svg {
    flex-shrink: 0;
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    border: 1px solid var(--color-red-glow);
    color: var(--color-white);
    border-radius: 8px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.4);
}

.buy-btn:hover,
.buy-btn:focus {
    background: linear-gradient(135deg, var(--color-red-glow) 0%, var(--color-red) 100%);
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.6);
    transform: translateY(-2px);
    outline: none;
}

.buy-btn:active {
    transform: translateY(0);
}

.buy-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(212, 175, 55, 0.95);
    color: var(--color-black);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer */
.footer {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-gray-lighter);
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
}

.footer p {
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-image {
        max-height: 300px;
        padding: 6px;
    }
    
    .hero-section {
        margin-bottom: 3rem;
        padding: 1rem;
    }
    
    .links-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .link-btn {
        justify-content: center;
    }
    
    .token-address-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .token-address {
        min-width: auto;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-image {
        max-height: 250px;
        padding: 4px;
    }
    
    .main-headline {
        font-size: 1.75rem;
    }
    
    .chinese-text {
        font-size: 1.25rem;
    }
    
    .chinese-text-alt {
        font-size: 0.9rem;
    }
    
    .token-card {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .hero-bg,
    .ink-smoke,
    .particles {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

