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

html, body {
    height: 100%;
}
a{
    text-decoration-line: none;
}
body {
    background: linear-gradient(135deg, #012b2e, #000000);
    background-attachment: fixed;
    background-size: cover;
    color: #e2e8f0;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    margin-bottom: 40px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

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

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.nav-buttons {
    display: flex;
    gap: 40px;
}

.nav-btn {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-btn.active {
    color: #ffffff;
    border-bottom: 2px solid #05979be0;
    padding-bottom: 5px;
}
.nav-btn:hover {
    color: #ffffff;
}

.right-section {
    display: flex;
    align-items: center;
}

.sign-in-btn {
    background-color: #070c145e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sign-in-btn:hover {
    background-color: #05979b;
}
.nav-buttons .nav-btn .active {
    color: #ffffff;
    border-bottom: 2px solid #05979be0;
    padding-bottom: 5px;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.hero-text {
    text-align: center;
    margin-bottom: 40px;
}

.contract-address {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: auto;
}

.contract-address .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00f7b9;
    border-radius: 50%;
    margin-right: 8px;
}

.contract-address span {
    font-family: monospace;
    font-size: 14px;
    color: #94a3b8;
}

.copy-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    padding: 0;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: #ffffff;
}

.hero-text h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 8px;
    background: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 20px;
    height: 58vh;
    width: calc(100vw - 80px);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
}

.middle-column {
    display: flex;
    flex-direction: column;
    background-color: #010e0bb0;
    border: 1px solid #1e293b;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow: hidden;
}

.comments-section {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.module-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    overflow-y: auto;
    padding: 15px;
}

.input-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    padding: 10px;
    background-color: #050a09d4;
    border-top: 1px solid #4a515c;
    border-radius: 0 0 8px 8px;
}

.module {
    background-color: #011410b0;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.module-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    position: relative;
}

.comments-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.middle-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #010e0bb0;
    border: 1px solid #1e293b;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

@media (max-width: 768px) {
    .mobile-section.active {
        display: block;
        height: 80vh;
        overflow-y: auto;
        width: calc(100% - 20px);
        margin: 0 10px;
        padding: 0;
    }

    .middle-column {
        width: calc(100% - 20px);
        margin: 0 10px;
        border-radius: 8px;
    }

    .comments-section {
        width: 100%;
        margin: 0;
        height: 65vh;
        overflow-y: auto;
        position: relative;
    }

    .module-content {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    .input-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        position: fixed;
        bottom: 60px;
    }
    .container{
        padding: 0;
    }

    .comments-section .module-content {
        position: static;
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: 60px;
    }
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    background-color: #070c145e;
}

.module-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.module-header i {
    margin-right: 8px;
}

.view-all {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.view-all:hover {
    color: #ffffff;
}

.module-content {
    padding: 15px;
    max-height: 100%;
    overflow-y: auto;
}

.module-content::-webkit-scrollbar {
    width: 4px;
}

.module-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.module-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.comments-section::-webkit-scrollbar {
    width: 4px;
}

.comments-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.comments-section::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.token {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s;
}

.token:hover {
    background-color: #043e3f;
}

.token-number {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #05979be0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.token-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.token-name-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-name {
    font-weight: 500;
}

.token-symbol {
    font-size: 12px;
    color: #94a3b8;
}

.token-details {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.token-price {
    color: #10b981;
    font-weight: 500;
}

.token-liquidity, .token-fdv {
    color: #94a3b8;
}

.token-created {
    font-size: 11px;
    color: #64748b;
}

.token-address {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
}

.middle-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #010e0bb0;
    border: 1px solid #1e293b;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comments-section {
    flex-grow: 1;
}

.input-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 10px;
    background-color: #050a09d4;
    border-top: 1px solid #4a515c;
    border-radius: 0 0 8px 8px;
}

.input-container input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #326264;
    border-radius: 4px;
    background-color: #091614;
    color: #ffffff;
    margin-right: 10px;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.send-btn {
    background-color: #05979be0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.send-btn:hover {
    background-color: #00c7cd;
}

.module-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #326264;
    border-radius: 4px;
    background-color: #010e0bb0;
    color: #5f5f5f;
    margin-bottom: 15px;
    font-size: 14px;
}

.module-content input::placeholder {
    color: #94a3b8;
}

.comment {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #042324;
}

.comment:hover {
    background-color: #043e3f;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #1e293b;
}

.comment-text {
    margin-left: 34px;
    color: #e2e8f0;
    word-break: break-word;
}

.comment p {
    margin-bottom: 5px;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #94a3b8;
}

.address-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.token-progress::after {
    content: attr(data-progress);
    position: absolute;
    top: -18px;
    right: 0;
    font-size: 12px;
    color: #94a3b8;
}

.token-progress::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #10b981;
    width: var(--progress);
    border-radius: 2px;
}

.token-progress, .token-graduated {
    font-size: 12px;
    color: #94a3b8;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #011410b0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

footer .contract-address {
    margin-bottom: 0;
}

footer .copyright {
    margin-top: 0;
    text-align: center;
}

footer .social-links {
    display: flex;
    gap: 15px;
}

footer .social-links a {
    color: #94a3b8;
    font-size: 20px;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 20px;
}

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

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.footer-links {
    display: flex;
    gap: 円20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #94a3b8;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffffff;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 20px;
}

.token-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #1e293b;
}

.token-logo.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.comments-section::-webkit-scrollbar {
    width: 4px;
}

.comments-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.comments-section::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.loading, .error {
    padding: 15px;
    text-align: center;
    color: #94a3b8;
}

.error {
    color: #ef4444;
}

.tutorials {
    grid-column: span 4;
    margin-top: 20px;
    width: calc(100vw - 80px);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
}

.view-controls {
    display: flex;
    gap: 8px;
}

.view-toggle {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.view-toggle:hover, .view-toggle.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.tutorials-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tutorials-content.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tutorials-content.list-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tutorials-content.list-view .tutorial-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.tutorials-content.list-view .tutorial-image {
    display: none;
}

.tutorials-content.grid-view .tutorial-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.tutorials-content .tutorial-card:hover {
    transform: translateY(-2px);
}

.tutorial-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tutorial-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tutorial-title {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

.tutorial-summary {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.tutorial-category {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.category-beginner {
    background-color: #10b981;
    color: #ffffff;
}
.token-tabs{
    display: none;
}
.category-intermediate {
    background-color: #f59e0b;
    color: #ffffff;
}

.category-advanced {
    background-color: #ef4444;
    color: #ffffff;
}

/* 移动端导航栏样式 */
.mobile-nav {
    display: none;
}

/* 默认隐藏移动端tabbar，只在移动端显示 */
.mobile-tabbar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        justify-content: center;
        margin-top: 10px;
        margin-bottom: 20px;
        width: 100%;
    }
    header {
        margin-bottom: 0;
    }
    .mobile-nav .nav-buttons {
        display: flex;
        gap: 50px;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    .hero-text{
        margin-bottom: 0;
    }
    
    .module-grid {
        display: block;
        width: 100vw;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        height: auto;
    }
    
    .module {
        margin-bottom: 15px;
    }
    
    .tutorials {
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        box-sizing: border-box;
    }
    
    .tutorials-content.grid-view {
        grid-template-columns: 1fr;
    }
    
    .tutorials-content.list-view {
        grid-template-columns: 1fr;
    }
    
    footer {
        display: none;
    }
    
    /* Mobile Tab Bar */
    .mobile-tabbar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #011410;
        border-top: 1px solid #1e293b;
        z-index: 1000;
        height: 60px;
    }
    .mobile-tabbar span{
        font-size: 12px;
    }
    .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none;
        font-size: 10px;
        padding: 8px 0;
        transition: color 0.3s;
    }
    
    .tab-item i {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .tab-item.active {
        color: #05979b;
    }
    
    /* Mobile Token Tabs */
    .token-tabs {
        display: flex;
        overflow-x: auto;
        background-color: #011410;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .token-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .token-tab {
        padding: 10px 15px;
        white-space: nowrap;
        color: #94a3b8;
        border: none;
        background: none;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }
    
    .token-tab.active {
        color: #05979b;
        border-bottom: 2px solid #05979b;
    }
    
    .token-section {
        display: none;
    }
    
    .token-section.active {
        display: block;
    }
    
    .mobile-section {
        display: none;
    }
    
    .mobile-section.active {
        display: block;
        height: 86vh;
        overflow-y: auto;
        width: calc(100% - 20px);
        margin: 0 10px;
        padding: 0;
    }
}

.chat-tabs {
    display: flex;
    background-color: #070c145e;
    border-bottom: 1px solid #1e293b;
    border-radius: 8px 8px 0 0;
}

.chat-tab {
    padding: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.3s;
}

.chat-tab.active {
    color: #ffffff;
    border-bottom: 2px solid #05979be0;
    background-color: rgba(5, 151, 155, 0.1);
}

.chat-tab:hover:not(.active) {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.comments-section.hidden {
    display: none;
}

#ai-chat {
    padding: 0;
    height: 100%;
}

#ai-chat-iframe {
    border: none;
    width: 100%;
    height: 100%;
    background-color: #010e0bb0;
}

@media (max-width: 768px) {
    .chat-tabs {
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .comments-section {
        height: calc(100% - 51px);
    }
    
    #ai-chat-section {
        display: none;
        height: 70vh;
        width: calc(100% - 20px);
        margin: 0 10px;
        border-radius: 8px;
        overflow: hidden;
        background-color: #010e0bb0;
        border: 1px solid #1e293b;
    }
    
    #ai-chat-section.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        margin: 0;
        border-radius: 0;
        z-index: 1500;
        border: none;
    }
    
    #ai-chat-section iframe {
        width: 100%;
        height: 100% !important;
        border: none;
    }
}