/* 移除阻塞渲染的Google Fonts import */
/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap'); */

@font-face {
    font-family: 'OKXSans';
    src: url('fonts/HarmonyOS_Sans_Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #00f2ff;
    --secondary-color: #0072ff;
    --accent-color: #ff0066;
    --bg-color: #010818;
    --text-color: #e6e6e6;
    --highlight-color: #00f2ff;
    --button-bg: #ffad0b;
    --button-hover: #00f2ff;
    --button-active: #e22e2e;
    --dark-overlay: rgba(1, 8, 24, 0.85);
    --glow: 0 0 10px rgba(0, 242, 255, 0.5);
    --section-spacing: 60px;
    --text-indent: 2rem;
}

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

body {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    color: var(--text-color);
    font-family: "OKXSans", "apple-system", "BlinkMacSystemFont", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Arial", sans-serif;
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 防止语言元素闪烁 - JavaScript加载前隐藏所有语言元素 */
.lang-zh, .lang-en {
    display: none;
}

/* JavaScript加载后会通过JS设置正确的显示状态 */
body.js-loaded .lang-zh,
body.js-loaded .lang-en {
    display: none; /* 默认隐藏，JS会控制显示 */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(1, 8, 24, 0.3);
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 60px; */
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}

header h1 {
    font-family: 'OKXSans', 'Orbitron', sans-serif;
    font-size: 3.5rem;
    text-shadow: var(--glow);
}

.letter-spacing {
    letter-spacing: 0.13em;
}

.highlight-zh, .highlight-en {
    color: var(--highlight-color);
}

.language-switch {
    margin-left: auto;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid var(--highlight-color);
    color: var(--highlight-color);
    padding: 8px 0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: var(--glow);
    font-family: 'OKXSans', 'Orbitron', sans-serif;
    width: 50px;
    height: 30px;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.lang-btn:hover {
    background-color: var(--highlight-color);
    color: var(--bg-color);
}

.lang-en {
    display: none;
}

title.lang-zh {
    display: block;
}

title.lang-en {
    display: none;
}

/* Section Styles */
section {
    margin-bottom: 0;
    padding: var(--section-spacing) 0;
    position: relative;
}

section::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    margin-top: 0;
    opacity: 0.5;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

section:last-child::after {
    display: none;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.left-column {
    flex: 1;
    min-width: 300px;
    padding-left: var(--text-indent);
}

.right-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: var(--text-indent);
}

.image-container {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: flex;
    justify-content: flex-end;
}

.right-column .image-container {
    align-self: flex-end;
}

.feature-image {
    max-width: 100%;
    height: auto;
    mix-blend-mode: screen;
    /* 优化图片渲染性能 */
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Intro Section */
.intro h2 {
    font-family: 'OKXSans', 'Orbitron', sans-serif;
    color: var(--highlight-color);
    margin-bottom: 30px;
    font-size: 2.2rem;
    text-shadow: var(--glow);
    letter-spacing: 2px;
    text-align: left;
}

.intro p {
    margin-bottom: 25px;
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
    font-family: 'OKXSans', sans-serif;
    text-align: left;
}

/* 英文版文字紧凑样式 */
.intro p.lang-en {
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--highlight-color);
    color: var(--highlight-color);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-right: 10px;
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.social-icon:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-3px);
}

.social-icon:hover img {
    filter: brightness(0);
}

.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--highlight-color);
    color: var(--highlight-color);
    text-decoration: none;
    padding: 3px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'OKXSans', 'Orbitron', sans-serif;
    font-weight: bold;
    box-shadow: var(--glow);
    letter-spacing: 0.1rem;
}

.buy-button span {
    margin-left: 0px;
}

.buy-button:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
    color: #000;
    transform: translateY(-3px);
}

.buy-button:hover img {
    filter: brightness(0);
}

.uniswap-logo {
    width: 40px;
    height: 40px;
}

/* About & Tokenomics Sections */
.about, .tokenomics {
    position: relative;
}

.about h3, .tokenomics h3 {
    font-family: 'OKXSans', 'Orbitron', sans-serif;
    color: var(--highlight-color);
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: var(--glow);
    letter-spacing: 2px;
    text-align: left;
}

/* Tokenomics center layout */
.tokenomics-center {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tokenomics-center h3 {
    text-align: center;
}

.tokenomics-center .tokenomics-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tokenomics-center .address-container {
    justify-content: center;
    max-width: 500px;
}

.tokenomics-center .token-info {
    text-align: center;
}

.about p, .token-info {
    margin-bottom: 25px;
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
    font-family: 'OKXSans', sans-serif;
    text-align: left;
}

/* 英文版about文字紧凑样式 */
.about p.lang-en {
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 中文版about文字紧凑样式 - 与英文版保持一致 */
.about p.lang-zh {
    line-height: 1.5;
    margin-bottom: 20px;
}

/* about标题样式调整 - 中英文保持一致 */
.about h3.lang-en,
.about h3.lang-zh {
    margin-bottom: 25px;
}

.tokenomics-item {
    margin-bottom: 25px;
}

.address-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 4px;
    padding: 10px;
    position: relative;
}

.address-text {
    font-family: 'OKXSans', monospace;
    font-size: 1rem;
    color: var(--text-color);
    margin-right: 15px;
    word-break: keep-all;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-align: left;
    flex-grow: 1;
}

.copy-icon {
    background-color: transparent;
    color: var(--highlight-color);
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-icon i {
    font-size: 1.2rem;
}

.copy-icon:hover {
    color: var(--button-hover);
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.tooltip::after {
    display: none;
}

.tooltip.show {
    opacity: 1;
}

.token-info {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
}

.token-info br {
    display: block;
    content: "";
    margin-bottom: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 0px 0;
    margin-top: 20px;
}

.contact-email {
    color: var(--highlight-color);
    text-decoration: none;
    cursor: default;
    font-family: "OKXSans", sans-serif;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        align-items: center;
    }
    
    .logo-container {
        flex-grow: 1;
    }
    
    .language-switch {
        margin-left: auto;
        display: block;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .section-content {
        flex-direction: column;
        align-items: center;
    }
    
    .left-column, 
    .right-column {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .intro h2, 
    .tokenomics h3, 
    .about h3 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .intro p, 
    .about p, 
    .token-info {
        text-align: center;
    }
    
    .tokenomics-center {
        padding: 0 10px;
    }
    
    .social-icons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icons .social-icon {
        display: inline-flex;
    }
    
    .social-icons .social-icon:nth-child(2),
    .social-icons .social-icon:nth-child(3) {
        display: inline-flex;
        margin: 0 10px;
    }
    
    .twitter-telegram-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    .buy-button {
        margin-top: 20px;
        width: 100%;
        max-width: 250px;
    }
    
    .address-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        padding: 8px;
        min-height: 40px;
        height: auto;
    }
    
    .address-text {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-all;
        overflow-wrap: break-word;
        text-align: center;
        line-height: 1.3;
    }

    .address-text.mobile {
        display: inline-block;
        max-width: 80%;
    }
    
    .image-container {
        justify-content: center;
        align-self: center;
    }
    
    .right-column .image-container {
        align-self: center;
    }
}

/* 宇宙背景动画效果 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

 