* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --primary-blue: #2E85FF;
    --light-blue: #E6F0FF;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
}

/* 导航栏 */
.header {
    background: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
}

.logo-tp {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 900;
}

.logo-text {
    color: var(--text-dark);
}
/* 下拉菜单核心样式，和TokenPocket官网一致 */
.nav-item.dropdown {
    position: relative; /* 让下拉菜单绝对定位的父容器 */
}

/* 下拉菜单默认隐藏，hover时显示 */
.nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    list-style: none;
    min-width: 160px;
    padding: 8px 0;
    margin-top: 4px;
    display: none;
    z-index: 100;
}

/* 鼠标hover时，显示下拉菜单 */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* 下拉菜单项样式：hover变蓝，和官网一致 */
.dropdown-item {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 13px;
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
}

/* 箭头hover同步变蓝，和文字颜色一致 */
.nav-item.dropdown:hover .arrow {
    color: var(--primary-blue);
}

/* 修复active状态的蓝色下划线（和图片里的「产品」一致） */
.nav-link.active {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 12px; /* 调整位置，让下划线不挤导航栏 */
}
.nav-link.active + .arrow {
    color: var(--primary-blue);
}

/* 箭头样式微调，和官网扁箭头一致 */
.nav-item.dropdown .arrow {
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    color: var(--text-light);
    margin-left: 2px;
    transition: color 0.2s ease;
}
/* 导航栏 - 仅修复箭头，其余样式100%保留 */
.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Logo图片样式，和原文字Logo大小/位置100%匹配 */
/* 微调版：靠右 + 右侧留一点间距 */
.logo .logo-img {
    max-height: 34px;
    max-width: 140px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: 1px; /* 数值越小越靠右，0就是贴右边缘 */
}
.nav-item {
    position: relative;
}
.nav-item.dropdown .arrow {
    display: inline-block;
    /* 垂直压缩到60%，变扁效果刚好，可调整数值（0.5-0.8之间）控制扁度 */
    transform: scaleY(0.5);
    line-height: 1;
}
.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 13px;
    /* 核心：修复文字+箭头布局 */
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* 🔥 强制修复箭头：永久显示 + 颜色同步 */
.nav-link .arrow {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 10px;
    line-height: 1;
    /* 关键：箭头颜色和文字完全同步 */
    color: inherit !important;
    margin-left: 2px;
}

/* 原有hover效果 + 箭头同步变蓝 */
.nav-link:hover {
    color: var(--primary-blue);
}

/* 激活状态（工具）文字+箭头变蓝 */
.nav-link.active {
    color: var(--primary-blue);
}
.arrow {
    font-size: 10px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-light);
}

.language-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 13px;
}

.lang-icon {
    font-size: 14px;
}

.lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    list-style: none;
    width: auto; /* 自动适配最长语言名称 */
    min-width: 160px;
    display: none;
    z-index: 100;
    /* 去掉滚动条相关属性 */
    max-height: unset;
    overflow-y: visible;
}

.lang-menu li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-light);
    transition: background 0.2s;
    white-space: nowrap; /* 防止长名称换行 */
}

.lang-menu li:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}
.lang-menu.show {
    display: block;
}

/* Hero区域 */
.hero {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    min-height: 600px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 500px;
}

.hero-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #2374E0;
}

.btn-outline {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.hero-image {
    width: 550px;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 背景装饰元素 */
.decor {
    position: absolute;
    background: rgba(46, 133, 255, 0.1);
    border-radius: 4px;
    z-index: 1;
}

.decor-1 {
    top: 100px;
    left: 40%;
    width: 60px;
    height: 40px;
}

.decor-2 {
    top: 80px;
    left: 43%;
    width: 80px;
    height: 60px;
}

.decor-3 {
    top: 120px;
    left: 48%;
    width: 70px;
    height: 50px;
}

.decor-4 {
    top: 100px;
    right: 22%;
    width: 50px;
    height: 40px;
}

.decor-5 {
    top: 80px;
    right: 25%;
    width: 60px;
    height: 50px;
}

.decor-6 {
    bottom: 80px;
    left: 32%;
    width: 60px;
    height: 40px;
}

.decor-circle {
    position: absolute;
    top: 150px;
    right: 20%;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, rgba(46, 133, 255, 0.1) 0%, rgba(127, 255, 212, 0.1) 100%);
    border-radius: 50%;
    z-index: 1;
}

/* 信任数据区域 */
.trust {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.trust-title {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.trust-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 48px;
    line-height: 1.6;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 24px 40px;
    min-width: 300px;
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
}

/* 通用模块样式 */
.section {
    padding: 80px 0;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 75px;
}

.section-text {
    max-width: 500px;
}

.section-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.section-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.section-tags {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.tag-item {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.tag-title {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.tag-subtitle {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.tag-icon {
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
}

.section-image {
    width: 500px;
    height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 安全模块 */
.security-section {
    background: var(--white);
}

/* 兑换交易模块 */
.swap-section {
    background: var(--white);
}

/* DApp商店模块 */
.dapp-section {
    background: var(--white);
}

/* 社区模块 */
.community-section {
    background: var(--white);
}

/* 底部CTA模块 */
.cta-section {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1px 0;
}
/* 统计模块图片图标样式，和原emoji大小/布局一致 */
.stat-icon .stat-img {
  width: 48px;    /* 图标宽度，和原emoji大小匹配 */
  height: 48px;   /* 图标高度 */
  object-fit: contain; /* 图片不变形 */
  display: inline-block;
  vertical-align: middle;
}
.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 40px;
}

.cta-text {
    max-width: 600px;
}

.cta-title {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.cta-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    padding: 10px 28px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
}

.cta-image {
    width: 300px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
/* 按钮基础样式（胶囊型椭圆边框，和原图一致） */
.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db; /* 浅灰色边框，和原图匹配 */
    border-radius: 9999px; /* 关键：超大圆角实现胶囊椭圆效果 */
    padding: 10px 32px; /* 内边距：上下10px，左右32px，和原图按钮高度/宽度匹配 */
    display: inline-flex;
    align-items: center; /* 图标+文字垂直居中 */
    gap: 12px; /* 图标和文字的间距，和原图一致 */
    font-size: 16px; /* 文字大小和原图匹配 */
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 按钮hover效果（可选，和原图保持一致） */
.btn-outline:hover {
    border-color: #2E85FF;
    color: #2E85FF;
}

/* 按钮图标样式（统一大小，和文字对齐） */
.btn-icon-img {
    width: 20px; /* 图标宽度，和文字比例匹配 */
    height: 20px; /* 图标高度，保持正方形不变形 */
    object-fit: contain; /* 防止图标拉伸变形 */
    flex-shrink: 0; /* 禁止图标被压缩 */
}
/* 保留原有功能，仅美化UI + hover蓝色效果 */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
/* 按钮基础胶囊样式 */
.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
/* 图标样式 */
.hero-buttons .btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* 🔥 下载按钮：蓝色背景（和图片一致） */
.hero-buttons .download-btn {
  background: #2E85FF;
  color: #fff;
}
/* 🔥 KeyPal按钮：灰色边框 */
.hero-buttons .keypal-btn {
  background: transparent;
  color: #333;
  border: 1px solid #ccc;
}

/* 🔥 鼠标悬浮：KeyPal变蓝色（图片效果） */
.hero-buttons .keypal-btn:hover {
  border-color: #2E85FF;
  color: #2E85FF;
}
.footer-left {
    max-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-logo .logo-tp {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 900;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.footer-columns {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 120px;
}

.column-title {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    font-weight: 500;
}

.column-list {
    list-style: none;
}

.column-list li {
    margin-bottom: 10px;
}

.column-list a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.column-list a:hover {
    color: var(--primary-blue);
}

.mt-4 {
    margin-top: 24px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .trust-stats {
        flex-direction: column;
        align-items: center;
    }
    .nav-menu {
        display: none;
    }
    .hero-image {
        width: 100%;
        height: auto;
    }
    .section-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .section-buttons, .section-tags {
        justify-content: center;
    }
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-container {
        flex-direction: column;
    }
    .footer-columns {
        justify-content: flex-start;
    }
}