/* 全局重置：SEO友好，消除浏览器默认样式，提升页面一致性 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
html {
    scroll-behavior: smooth; /* 平滑滚动，提升用户体验 */
}
body {
    color: #333;
    background-color: #f5f7fa;
    line-height: 1.6;
    font-size: 16px;
}
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #004999;
}
ul, ol {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    transition: all 0.3s ease;
}
h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #222;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}
h3 {
    font-size: 1.5rem;
}
p {
    margin-bottom: 1rem;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    margin-right: 1rem;
    margin-bottom: 1rem;
}
.primary-btn {
    background-color: #0066cc;
    color: #fff;
}
.primary-btn:hover {
    background-color: #004999;
    color: #fff;
}
.secondary-btn {
    background-color: #fff;
    color: #0066cc;
    border: 2px solid #0066cc;
}
.secondary-btn:hover {
    background-color: #f0f7ff;
}
.big-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}
.tip {
    color: #ff6600;
    font-weight: bold;
    background-color: #fff8e6;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1rem 0;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    display: block;
}
.nav-list {
    display: flex;
}
.nav-item {
    margin-left: 2rem;
}
.nav-item a {
    color: #333;
    font-weight: 500;
}
.nav-item a:hover, .nav-item.active a {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
}
.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #333;
    padding: 0.5rem;
}

/* 面包屑导航：SEO必备，提升内部链接权重 */
.breadcrumb {
    background-color: #f0f7ff;
    padding: 1rem 0;
    margin-top: 80px;
}
.breadcrumb a {
    color: #0066cc;
}
.breadcrumb span {
    color: #666;
}

/* 主内容样式 */
.main {
    margin-top: 100px;
    padding-bottom: 4rem;
}
.page-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* 首页横幅 */
.banner {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: #fff;
    padding: 4rem 0;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 4rem;
}
.banner h1 {
    color: #fff;
    margin-bottom: 1rem;
}
.banner h1 span {
    color: #ffd700;
}
.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.banner img {
    margin: 2rem auto 0;
    border-radius: 8px;
}

/* 核心优势 */
.advantages {
    text-align: center;
    margin-bottom: 4rem;
}
.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.advantage-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.advantage-item h3 {
    color: #0066cc;
}

/* 核心功能 */
.features {
    margin-bottom: 4rem;
}
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.feature-item a {
    color: #333;
}
.feature-item a:hover {
    color: #0066cc;
}
.feature-item h3 {
    margin-bottom: 0.5rem;
}

/* 热门新闻 */
.news-hot {
    margin-bottom: 4rem;
}
.news-hot .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.news-hot .news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.news-hot .news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-hot .news-item a {
    color: #333;
}
.news-hot .news-item a:hover h3 {
    color: #0066cc;
}
.news-hot .news-item h3 {
    padding: 0 1rem;
    font-size: 1.2rem;
}
.news-hot .news-item p {
    padding: 0 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
}
.more-btn {
    margin-top: 2rem;
}

/* 代币安全检测页面 */
.detect-form {
    background-color: #f0f7ff;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}
.detect-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 16px;
}
.detect-steps ol {
    list-style: decimal;
    margin-left: 2rem;
    margin-bottom: 2rem;
    line-height: 2;
}

/* 私钥生成器页面 */
.generator-box {
    background-color: #f0f7ff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}
.key-result {
    background-color: #fff;
    padding: 2rem;
    border-radius: 4px;
    margin-top: 2rem;
    text-align: left;
}
.key-result span {
    font-family: "Courier New", monospace;
    color: #0066cc;
    font-weight: bold;
}
.key-tips ul {
    list-style: disc;
    margin-left: 2rem;
    line-height: 2;
}

/* 批量转账页面 */
.transfer-steps ol {
    list-style: decimal;
    margin-left: 2rem;
    margin-bottom: 2rem;
    line-height: 2;
}
.transfer-features ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
    line-height: 2;
}

/* 新闻中心页面 */
.news-desc {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.news-item a {
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.news-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-content {
    padding: 1.5rem;
    flex: 1;
}
.news-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.news-brief {
    color: #666;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-pagination {
    text-align: center;
    margin-top: 2rem;
}
.page-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 0.5rem;
}
.page-btn.active {
    background-color: #0066cc;
    color: #fff;
}
.page-btn:hover:not(.active) {
    background-color: #f0f7ff;
}
.news-detail {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-top: 3rem;
}
.detail-content {
    line-height: 1.8;
}
.detail-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* 关于REX页面 */
.rex-relation ul, .rex-tips ul {
    list-style: disc;
    margin-left: 2rem;
    line-height: 2;
    margin-bottom: 2rem;
}

/* 页脚样式 */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}
.footer-sitemap {
    margin-bottom: 2rem;
}
.footer-sitemap h3 {
    color: #fff;
    font-size: 1.2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.footer-sitemap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-sitemap a {
    color: #ccc;
}
.footer-sitemap a:hover {
    color: #0099ff;
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0066cc;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: none;
    z-index: 998;
}
.back-to-top:hover {
    background-color: #004999;
}
.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式布局：适配移动端/平板，符合移动端优先收录规则 */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .nav-item {
        margin-left: 1.5rem;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    /* 移动端导航 */
    .menu-btn {
        display: block;
    }
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        top: 79px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
        transition: left 0.3s ease;
        z-index: 997;
    }
    .nav-list.show {
        left: 0;
    }
    .nav-item {
        margin: 0;
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
    }
    .nav-item a {
        font-size: 1.2rem;
    }
    .btn {
        padding: 0.6rem 1.5rem;
        margin-right: 0.5rem;
    }
    .banner {
        padding: 3rem 0;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
    .footer-sitemap ul {
        flex-direction: column;
        gap: 1rem;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}
@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .banner p {
        font-size: 1rem;
    }
    .btn {
        display: block;
        margin-right: 0;
        width: 100%;
    }
    .page-content {
        padding: 1rem;
    }
}