/* custom-styles.css */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: #0f0f1a;
}

.glow {
    text-shadow: 0 0 38px #00ffff, 0 0 0 #00ffff;
}

@media (min-width: 1024px) {
    #why-choose .grid {
        grid-auto-rows: minmax(0, 1fr);
    }
}

.glowing-border {
    border: 2px solid transparent;
    background-image: linear-gradient(#0f0f1a, #0f0f1a), radial-gradient(circle at left top, #00ffff, #ff00ff);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.bg-time-loop {
    background-image: url('../images/bg-1.png?v1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}

.hover-3d:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg) rotateZ(0deg);
    transition: transform 0.3s ease;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu.active {
        display: block;
    }

    .bg-time-loop {
        /*background-image: url('../images/bg-1.png');*/
        background-attachment: scroll;
    }

    .bg-faq::before {
        background-color: rgba(15, 15, 26, 0.85);
    }
}

section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    section {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1280px) {
    section {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.faq-answer {
    display: none;
    transition: max-height 0.3s ease;
}

.faq-item {
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.copied-message {
    position: absolute;
    background-color: #4caf50;
    color: #ffffff;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 20;
    font-size: 0.875rem;
}

@media (min-width: 769px) {
    .copied-message {
        top: 50%;
        left: 110%;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .copied-message {
        top: 110%;
        left: 50%;
        transform: translateX(-50%);
    }
}

.copied-message.show {
    opacity: 1;
}

.bg-roadmap {
    background-image: url('../images/roadmap-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.bg-roadmap .fas {
    font-size: 1.25rem;
}


.bg-roadmap .fas:hover {
    color: #00ffff;
}

.completed-badge {
    @apply bg-green-500 text-white text-xs font-semibold px-2 py-1 rounded-full;
}

.transition-width {
    transition-property: width;
}


.bg-faq {
    background-image: url('../images/bg-4.png?v1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}

.bg-faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 15, 26, 0.6);
    z-index: 0;
}

@media (max-width: 768px) {
    .bg-faq {
        /*background-image: url('../images/bg-4.png');*/
        background-size: cover;
        background-attachment: scroll;
    }

    .bg-faq::before {
        background-color: rgba(15, 15, 26, 0.5);
    }
}

.bg-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-content {
    position: relative;
    z-index: 10;
}

.language-dropdown {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.language-dropdown.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.language-dropdown:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu a, .mobile-menu .language-button {
    width: 100%;
    text-align: center;
}

.mobile-menu .social-icons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.mobile-menu .social-icons a {
    margin: 0 0.5rem;
    color: #ffffff;
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu .social-icons a:hover {
    color: #00ffff;
    transform: scale(1.2);
}

#tokenomics .flex-wrap span {
    width: 16.6667%;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 768px) {
    #tokenomics .flex-wrap span {
        font-size: 0.75rem;
    }
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.about-feature img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.about-feature-content {
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .about-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-feature-content {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}


[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
}

[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-20px);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(-20px);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(20px);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
}


.token-overview {
    display: flex;
    flex-wrap: wrap;
}

.token-overview .flex-col {
    flex: 1 1 50%;
    padding: 1rem;
    text-align: center;
}

.token-overview span {
    word-break: break-word;
}

@media (max-width: 768px) {
    .token-overview .flex-col {
        flex: 1 1 100%;
        padding: 0.5rem;
    }
}

#countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

/* 地址显示优化 */
.contract-address, .private-address {
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    display: block;
}

@media (max-width: 640px) {
    .contract-address, .private-address {
        font-size: 0.75rem !important;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .contract-address, .private-address {
        font-size: 0.625rem !important;
        line-height: 1.1;
        padding: 0 0.25rem;
    }
}