/* 黑金风格主题 */
:root {
    --primary-black: #000000;
    --dark-black: #0a0a0a;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8941f;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --text-gold: #d4af37;
    --text-white: #ffffff;
    --text-gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-black);
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
}

/* 背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 导航栏 */
.navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-gold) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 300;
}

.nav-link {
    color: var(--text-white) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--text-gold) !important;
    background: rgba(212, 175, 55, 0.1);
}

.lang-switch {
    background: var(--gold-gradient) !important;
    color: var(--primary-black) !important;
    font-weight: bold;
    border-radius: 20px;
}

/* 下拉菜单样式 */
.dropdown-menu {
    background: rgba(10, 10, 10, 0.95) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-white) !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    color: var(--text-gold) !important;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    border-top-color: var(--text-gold);
}

.nav-link.dropdown-toggle:hover {
    color: var(--text-gold) !important;
}

/* 移动端折叠菜单：隐藏所有金色横线，与 PC 版兼容（PC 保留 hover 下划线） */
@media (max-width: 991.98px) {
    /* 隐藏每个 nav-link 底部的金色 ::before 线（首页、MEHD、ATMC、NFT、产品、博客、资料、社群、关于） */
    .navbar-collapse .nav-link::before,
    .navbar-collapse .nav-link.dropdown-toggle::before {
        display: none !important;
    }
    /* 折叠菜单内下拉框：去掉顶部金线，避免“产品”下方出现一条横线 */
    .navbar-collapse .dropdown-menu {
        border-top: none !important;
        margin-top: 0.25rem;
        padding-top: 0.5rem;
    }
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: none;
    pointer-events: none;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    animation: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--text-gray);
}

.card:hover {
    border-color: var(--text-gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

.card-title {
    color: var(--text-gold);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 卡片内未加类的段落也使用浅色，避免黑底上文字看不清 */
.card-body p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 卡片内列表项统一浅色，避免黑底上看不清 */
.card-body ul li,
.card-body ol li {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 深色块内的标题与文字（如 .bg-dark-black）保证可读 */
.bg-dark-black,
.bg-dark-black h5,
.bg-dark-black h6,
.bg-dark-black p {
    color: var(--text-white);
}
.bg-dark-black .text-gold {
    color: var(--text-gold) !important;
}

/* 卡片内所有正文默认浅色，避免黑底黑字（含社区列表等未包在 p/li 内的文字） */
.card-body {
    color: var(--text-gray);
}
.card-body .card-title,
.card-body .text-gold {
    color: var(--text-gold) !important;
}
.card-body .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Bootstrap .bg-dark 仅设背景，在深色主题下需强制浅色文字 */
.bg-dark {
    color: rgba(255, 255, 255, 0.9) !important;
}
.bg-dark .text-gold {
    color: var(--text-gold) !important;
}
.bg-dark .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Bootstrap .bg-secondary 等深色背景在主题下需浅色文字 */
.bg-secondary {
    color: rgba(255, 255, 255, 0.9) !important;
}
.bg-secondary .text-gold {
    color: var(--text-gold) !important;
}

/* 深色表格内文字保证可读 */
.table-dark,
.table-dark th,
.table-dark td {
    color: rgba(255, 255, 255, 0.9) !important;
}
.table-dark .text-gold {
    color: var(--text-gold) !important;
}

/* 深色提示框内文字保证可读，避免反色/看不清 */
.alert-dark {
    color: rgba(255, 255, 255, 0.95) !important;
}
.alert-dark .text-gold {
    color: var(--text-gold) !important;
}

/* 社群页 DeBox 提示框：高对比度、易读 */
.alert-debox-info {
    background: rgba(25, 25, 25, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 1rem 1.25rem;
}
.alert-debox-info .alert-debox-text {
    color: #ffffff;
}
.alert-debox-info .text-gold {
    color: var(--text-gold) !important;
}

/* 按钮样式 */
.btn-gold {
    background: var(--gold-gradient);
    color: var(--primary-black);
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    color: var(--primary-black);
}

.btn-outline-gold {
    border: 2px solid var(--text-gold);
    color: var(--text-gold);
    background: transparent;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: var(--primary-black);
    border-color: var(--text-gold);
}

/* 文本颜色 */
.text-gold {
    color: var(--text-gold) !important;
}
.text-white {
    color: var(--text-white) !important;
}

.bg-black {
    background-color: var(--primary-black) !important;
}

.bg-dark-black {
    background-color: var(--dark-black) !important;
}

/* 修复text-muted在黑色背景上的可见性 */
.text-muted {
    color: var(--text-gray) !important;
}

.card .text-muted,
.card-body .text-muted {
    color: #b0b0b0 !important;
}

/* 添加text-white-50类，用于在黑色背景上显示清晰的浅色文字 */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.list-unstyled li {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 页脚 */
.footer {
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-logo {
    display: block;
    object-fit: contain;
}
.footer-brand-text {
    color: var(--text-gold);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
}
.footer-tagline {
    font-size: 0.85rem;
}
.footer-intro {
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 280px;
}
.footer-title {
    color: var(--text-gold);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-gold);
}

.footer-divider {
    border-color: rgba(212, 175, 55, 0.3);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 数据展示 */
.data-card {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--text-gold);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 1rem;
}

.data-value {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.data-label {
    color: var(--text-gray);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* MEHD 实时价格与 LP：动感、跳跃感 */
.mehd-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
    animation: mehd-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes mehd-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px var(--gold); }
    50% { opacity: 0.6; transform: scale(1.2); box-shadow: 0 0 20px var(--gold-light); }
}
.mehd-live-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.mehd-live-card:hover {
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}
.mehd-live-value {
    transition: transform 0.2s ease;
}
.mehd-live-value.mehd-pulse {
    animation: mehd-value-jump 0.6s ease;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
@keyframes mehd-value-jump {
    0% { transform: scale(1); }
    25% { transform: scale(1.08); }
    50% { transform: scale(0.98); }
    75% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* 元IM 等产品页：能力标签、技术架构、发展计划 */
.capability-pills {
    gap: 0.5rem;
}
.capability-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}
.capability-pill:hover {
    color: var(--text-gold);
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.1);
}
.card.border-gold-highlight {
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
}
.architecture-card .small-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.architecture-card .card-text.small {
    font-size: 0.95rem;
    margin-bottom: 0;
}
.roadmap-year {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 2px;
}
.roadmap-list li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}
.roadmap-list .small-dot {
    font-size: 0.5rem;
    vertical-align: middle;
}

/* 元会议等产品页：功能特色勾选列表、为什么选择对比 */
.feature-check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.feature-check-list li {
    color: var(--text-gray);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.feature-check-list li i {
    color: var(--text-gold);
    margin-right: 0.5rem;
    width: 1rem;
}
.why-choose-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    overflow: hidden;
}
.why-choose-row .col-traditional,
.why-choose-row .col-product {
    padding: 1.25rem 1rem;
    flex: 1;
}
.why-choose-row .col-vs {
    padding: 1rem 0.75rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--text-gold);
    font-weight: bold;
    display: flex;
    align-items: center;
    min-width: 3rem;
    justify-content: center;
}
.why-choose-row .col-traditional { background: rgba(30, 30, 30, 0.6); color: var(--text-gray); }
.why-choose-row .col-product { background: rgba(10, 10, 10, 0.8); color: var(--text-white); }
.why-choose-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-gold); margin-bottom: 0.35rem; }
@media (max-width: 768px) {
    .why-choose-row { flex-direction: column; }
    .why-choose-row .col-vs { min-width: auto; }
}

/* 博文列表页：卡片、侧栏、分页 */
.blog-card {
    overflow: hidden;
}
.blog-card-img-link {
    display: block;
    overflow: hidden;
}
.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-card-img-link:hover .blog-card-img {
    transform: scale(1.03);
}
.blog-sidebar .form-control.bg-dark-black {
    background: rgba(10, 10, 10, 0.9) !important;
    color: var(--text-white);
}
.blog-sidebar .form-control:focus,
.blog-sidebar .form-control.border-gold {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.2);
}
.border-gold {
    border-color: rgba(212, 175, 55, 0.4) !important;
}

/* 首页生态产品入口卡片：整卡可点、悬停反馈 */
.product-entry-card {
    transition: all 0.3s ease;
}
a:hover .product-entry-card {
    border-color: var(--text-gold) !important;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.25);
    transform: translateY(-3px);
}

/* 首页合作资源区块 */
.partners-section {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.partners-title {
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 1px;
}
.partners-card {
    background: var(--dark-black);
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}
.partners-card:hover {
    border-color: var(--text-gold);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}
a:hover .partners-card {
    border-color: var(--text-gold);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}
.partners-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.pagination-gold .page-link {
    background: rgba(10, 10, 10, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-gray);
}
.pagination-gold .page-link:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--text-gold);
}
.pagination-gold .page-item.active .page-link {
    background: var(--gold-gradient);
    border-color: var(--text-gold);
    color: var(--primary-black);
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .data-value {
        font-size: 2rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-gold);
}

/* 特殊效果 */
.glow-effect {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* 文章富文本内容展示 */
.article-content {
    line-height: 1.7;
}
.article-content p {
    margin-bottom: 0.75rem;
}
.article-content ul, .article-content ol {
    margin: 0.5rem 0 0.75rem 1.25rem;
    padding-left: 0.5rem;
}
.article-content li {
    margin-bottom: 0.25rem;
}
.article-content strong {
    color: var(--text-gold);
}

/* MEHD 合约地址突出显示 */
.contract-address-block {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}
.contract-address-value {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gold);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    word-break: break-all;
    letter-spacing: 0.5px;
}
@media (min-width: 768px) {
    .contract-address-value {
        font-size: 1.05rem;
    }
}

