html, body {
    width: 100%;
    overflow-x: hidden;
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 性能优化 */
html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* 预加载关键资源 */
.hero-section {
    will-change: transform;
}

.slide {
    will-change: transform, opacity;
}

.glass, .glass-strong {
    will-change: backdrop-filter;
}



:root {
    --primary-color: #8B5CF6;
    --secondary-color: #A855F7;
    --accent-color: #C084FC;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background-primary: #FBFBFD;
    --background-secondary: #F5F5F7;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(139, 92, 246, 0.15);
    --shadow-medium: 0 16px 64px rgba(139, 92, 246, 0.2);
    --shadow-heavy: 0 24px 96px rgba(139, 92, 246, 0.25);
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    --gradient-secondary: linear-gradient(135deg, #C084FC 0%, #DDD6FE 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-primary);
    overflow-x: hidden;
}

/* 毛玻璃效果基础类 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-medium);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent; /* 默认透明 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent; /* 默认透明边框 */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(251, 251, 253, 0.8); /* 滚动后恢复背景 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px; /* 再次减小导航栏高度 */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px; /* 改为方形圆角 */
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-logo h1 {
    font-size: 16px; /* 再次缩小Logo文字 */
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* 主要内容区域 */
.hero-main-section {
    min-height: 80vh;
    padding: 50px 0 10px;
    background: white;
    position: relative;
}

/* 桌面端：左右布局 */
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 24px;
    align-items: stretch;
    min-height: 70vh;
}

/* AI对话框包装器 */
.ai-chat-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 轮播图包装器 */
.hero-slider-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-medium);
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-logo {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slide-content {
    flex: 0 0 50%;
    color: var(--text-primary);
    z-index: 2;
    text-align: left;
    padding-left: 30px;
}

.hero-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 2px; /* 再次减小标题下方间距 */
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 2px; /* 再次减小副标题下方间距 */
    color: var(--text-secondary);
}

.hero-description {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    margin-bottom: 8px; /* 再次减小描述文字下方间距 */
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* 3D Glassmorphism Button Styles */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(173, 113, 255, 0.8), rgba(132, 59, 255, 0.9));
    color: white;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.5),
                0 8px 32px rgba(132, 59, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6),
                0 12px 40px rgba(132, 59, 255, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(173, 113, 255, 0.25), rgba(132, 59, 255, 0.35));
    color: #f0f0f0; /* Use a light color for better contrast */
    border-color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(173, 113, 255, 0.4), rgba(132, 59, 255, 0.5));
    transform: translateY(-2px);
    color: white;
}







/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 紧凑型section-header */
.section-header.compact {
    margin-bottom: 15px;
}

.section-header.compact h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 5px;
}

.section-header.compact p {
    font-size: 0.9rem;
}

/* AI对话框容器 */
.ai-chat-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    animation: messageSlide 0.5s ease-out;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: var(--gradient-primary);
}

.ai-avatar {
    background: none !important;
    padding: 0;
    overflow: hidden;
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--gradient-secondary);
}

.message-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 15px 20px;
    max-width: 70%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.chat-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Applying Glassmorphism to Chat Buttons */
.chat-btn {
    flex: 1;
    padding: 6px 10px; /* 减小按钮高度 */
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(173, 113, 255, 0.8), rgba(132, 59, 255, 0.9));
    color: white;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.5),
                0 4px 15px rgba(132, 59, 255, 0.35);
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6),
                0 8px 25px rgba(132, 59, 255, 0.45);
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.chat-input-container {
    padding: 10px 20px; /* 减小整个输入区域的高度 */
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px; /* 减小输入框与按钮组的间隙 */
}

/* 专门缩小 AI 助手中的 安卓/苹果 下载按钮 */
#android-app-download-btn,
#apple-app-download-btn {
    line-height: 1.2;

    flex: 0 0 auto; /* 不要拉伸占满 */
    padding: 4px 8px; /* 更小的内边距 */
    font-size: 0.85rem; /* 字号略小 */
    border-radius: 14px; /* 圆角略小，整体更精致 */
}

#chatInput {
    flex: 1;
    padding: 6px 18px; /* 再次减少垂直内边距 */
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#chatInput:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

#chatInput::placeholder {
    color: var(--text-secondary);
}


.action-btn {
    padding: 3px 10px; /* 再次减小按钮宽度 */
    border: 1px solid transparent;
    border-radius: 25px;
    font-size: 11px; /* 再次减小字体大小 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.send-btn {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(75, 0, 130, 0.8) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding-left: 8px;  /* 减少发送按钮宽度 */
    padding-right: 8px; /* 减少发送按钮宽度 */
}

.send-btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9) 0%, rgba(75, 0, 130, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.clear-btn {
    /* 紫色渐变与毛玻璃质感 */
    background: #8C00FC; /* 改为 8C00FC */
    color: #2b2b2b; /* 深灰文字 */
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);

    /* 纵向布局，圆润的竖向药丸形状 */
    width: 20px;
    height: 34px;
    padding: 0; /* 使用固定宽高居中 */
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    writing-mode: vertical-rl;         /* 垂直排版，上下排列 */
    text-orientation: upright;         /* 保持中文直立不旋转 */

    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .clear-btn {
    width: 19px;   /* 移动端放大 2px */
    height: 31px;
    font-size: 8px;
  }
}

.clear-btn:hover {
    background: linear-gradient(135deg, rgba(192, 156, 219, 0.8), rgba(192, 156, 219, 0.9));
    transform: translateY(-1px);
}

/* Send icon button (paper plane) */
.send-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #ffffff !important;
    background: transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none !important;
}
.send-icon-btn:focus { outline: none; }
.send-icon-btn::-moz-focus-inner { border: 0; }
.send-icon-btn svg {
    width: 26px; /* 放大图标 */
    height: 26px; /* 放大图标 */
    fill: #AA7FC6;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.send-icon-btn:hover svg {
    transform: translateX(1px);
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    .send-icon-btn { width: 28px; height: 28px; }
    .send-icon-btn svg { width: 26px; height: 26px; margin-top: 3px; } /* 移动端下移 3px */
}

/* 产品中心 */
.products-section {
    padding-top: 0;



    background: var(--background-primary);
}

.products-grid {
    display: block;
    margin-top: 15px;
}

.product-card-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(400px, 500px);
    grid-template-columns: repeat(2, minmax(400px, 500px));
    gap: 20px;
    justify-content: center;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px; /* 减小内边距 */
    text-align: center;



    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    min-height: auto; /* 移除桌面端最小高度，让其自适应 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.3);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.product-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(139, 92, 246, 0.2);
}

.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 16px; /* 减小段落下边距 */
    line-height: 1.45; /* 减小行高 */
    text-align: left;
    font-size: 0.85rem; /* 减小字体大小 */
    flex: 1;
}


.inline-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -2px; /* 微调垂直对齐 */
}

.product-card p b {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 6px; /* 减小合约地址间距 */
    margin-bottom: 0; /* 移除合约地址区域下边距 */
}

.product-features span {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    padding: 6px 10px; /* 减小内边距 */
    border-radius: 8px;
    font-size: 0.75rem; /* 缩小字体 */
    font-weight: 500;
    font-family: 'Courier New', monospace;
    white-space: nowrap; /* 强制不换行 */
    overflow: hidden; /* 隐藏溢出部分 */
    text-overflow: ellipsis; /* 溢出时显示省略号 */
    text-align: left;
}

.product-btn {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(75, 0, 130, 0.8) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9) 0%, rgba(75, 0, 130, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 小卡片样式 */
.mini-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.mini-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 16px 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mini-card:hover::before {
    left: 100%;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.mini-card-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.mini-card-logo {
    width: 45px;
    height: 45px;
    aspect-ratio: 1 / 1; /* 強制保持正方形 */
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    flex: 0 0 auto; /* 防止 Flex 拉伸變形 */
}

.mini-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill container so corners are clipped */
    border-radius: inherit;
    display: block;
}

.mini-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.mini-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* 缩小“星辰3分钟涨跌”小卡片的文字，避免换行导致卡片变高 */
.mini-card--xcsfz p {
    font-size: 0.9rem;
}

/* 小卡片内按钮样式 */
.mini-card-buttons {
    margin-top: 8px; /* 减小按钮上方间距 */
    display: flex;
    justify-content: center;
}

/* Applying Glassmorphism to Mini Buttons */
.mini-btn {
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(173, 113, 255, 0.8), rgba(132, 59, 255, 0.9));
    color: white;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.5),
                0 4px 15px rgba(132, 59, 255, 0.35);
}

.mini-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6),
                0 8px 25px rgba(132, 59, 255, 0.45);
}

@media (max-width: 768px) {
    .mini-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}


@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        height: 44px;
        padding: 0 15px;
    }

    .nav-logo-img {
        width: 30px;
        height: 30px;
    }

    .nav-logo h1 {
        font-size: 16px; /* 再次缩小移动端Logo文字 */
    }

    .nav-logo {
        gap: 8px;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* 移动端：上下布局 */
    .hero-main-section {
        min-height: auto;
        padding: 40px 0 10px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: auto;
    }

    /* 移动端轮播图在上面 */
    .hero-slider-wrapper {
        order: 1;
        height: 160px;
        min-height: 160px;
    }

    /* 移动端AI对话框在下面 */
    .ai-chat-wrapper {
        order: 2;
    }

    .ai-chat-container {
        min-height: 320px;
    }

    .slide {
        flex-direction: row;
        padding: 15px;
        align-items: center;
        justify-content: space-between;
    }

    .slide-logo {
        flex: 0 0 30%; /* 减小图片容器宽度 */
        margin-bottom: 0;
        max-height: 80px;
        max-width: 100px; /* 减小图片最大宽度 */
    }

    .slide-content {
        flex: 0 0 68%; /* 增大文字容器宽度 */
        text-align: left;
        padding-left: 10px; /* 减小左边距 */
    }

    .hero-title {
        font-size: clamp(1rem, 3vw, 1.3rem);
        margin-bottom: 1px; /* 再次减小移动端标题下方间距 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1px; /* 再次减小移动端副标题下方间距 */
    }

    .hero-description {
        font-size: clamp(0.8rem, 2.5vw, 0.95rem);
        margin-bottom: 5px; /* 再次减小移动端描述文字下方间距 */
        max-width: none;
    }

    .hero-buttons {
        display: flex; /* 确保按钮横向排列 */
        flex-direction: row; /* 强制横向 */
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap; /* 防止换行 */
    }

    .btn-primary, .btn-secondary {
        padding: 6px 12px; /* 减小内边距 */
        font-size: 11px; /* 减小字体大小 */
        white-space: nowrap; /* 防止文字换行 */
    }



    .products-grid {
        display: block;
    }

    .product-card-scroller {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* scroll-snap-type: x mandatory; */ /* 移除滚动吸附效果 */

        gap: 12px;
        /* 关键修复：移除容器的左右内边距，让滚动区域从屏幕边缘开始 */
        padding: 4px 0 8px;
        /* 让滚动区域内的第一张和最后一张卡片与页面内容对齐 */
        scroll-padding-left: 300px; /* 增加左侧滚动对齐距离 */
        scroll-padding-right: 20px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge legacy */
    }

    /* 为第一张卡片添加左边距，确保其在初始位置完整显示 */
    .product-card-scroller .product-card:first-child {
        margin-left: 300px;
    }

    /* 为最后一张卡片添加右边距，确保其在末尾位置完整显示 */
    .product-card-scroller .product-card:last-child {
        margin-right: 20px;
    }
    .product-card-scroller::-webkit-scrollbar { display: none; }

    .product-card {
        padding: 12px;
        min-height: auto; /* 移除高度限制，使其自适应内容 */
        flex: 0 0 85%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        justify-content: flex-start;
    }



    /* 收紧要素间距，提升紧凑度与对齐感 */
    .product-features {
        display: flex; /* 确保在移动端可见 */
        margin-bottom: 12px;
        gap: 4px;
    }

    .product-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .product-features span {
        font-size: 0.9rem; /* 放大字体 */
        padding: 4px 8px;
        white-space: normal !important; /* 强制允许换行 */
        word-break: break-all !important; /* 强制长字符串换行 */
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .product-header {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        justify-content: flex-start;
        align-items: center;
    }

    .product-logo {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .product-card h3 {
        font-size: 1.4rem;
        margin: 0;
    }

    .mini-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 25px;
        padding: 0 20px; /* 为小卡片区域补上内边距 */
    }

    .mini-card {
        padding: 8px 6px;
        height: 150px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .mini-card-icon {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .mini-card-logo {
        width: 35px;
        height: 35px;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        padding: 0;
        margin: 0 auto 6px;
        flex: 0 0 auto;
    }

    .mini-card h4 {
        font-size: 0.75rem;
        margin-bottom: 1px; /* 减小标题下方间距 */
    }

    .mini-card p {
        font-size: 0.65rem;
        line-height: 1.3;
    }
    .mini-card--xcsfz p {
        font-size: 0.6rem;
    }

    .chat-messages {
        padding: 15px;
        gap: 12px;
    }

    .chat-input-container {
        padding: 15px;
        flex-direction: row;
        gap: 10px;
    }

    #chatInput {
        flex: 1;
    }

    #sendButton.send-icon-btn {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        padding: 0;
    }
}

/* 关于我们部分 */
.about-section {
    padding: 20px 0; /* 减少顶部留白 */
    background: white;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}



.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 标题前置小图标样式 */
.feature-icon-inline {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.2em;
    line-height: 1;
    vertical-align: -2px;
}

.feature-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.15) 50%, transparent);
    transform: rotate(45deg);
    transition: transform 0.5s ease;
    transform-origin: bottom right;
    opacity: 0;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.25);
}

.feature-item:hover::before {
    transform: rotate(45deg) translate(200%, 200%);
    opacity: 1;
}

.feature-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ecosystem-diagram {
    position: relative;
    width: 400px;
    height: 400px;
}

.ecosystem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
    animation: rotate 20s linear infinite;
}

.ecosystem-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
    animation: float 6s ease-in-out infinite;
}

.node:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.node:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3s;
}

.node:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 4.5s;
}




/* 发展路线 */
.roadmap-section {
    padding: 40px 0;
    background: var(--background-primary);
}

.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-item.completed .timeline-marker {
    background: #4CAF50;
    box-shadow: 0 0 0 4px white, 0 0 0 8px #4CAF50;
}

.timeline-item.active .timeline-marker {
    background: var(--accent-color);
    box-shadow: 0 0 0 4px white, 0 0 0 8px var(--accent-color);
    animation: pulse 2s infinite;
}

.timeline-content {
    flex: 1;
    max-width: 45%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    padding: 30px;
    transition: all 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.25);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-item.completed .timeline-status {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.timeline-item.active .timeline-status {
    background: rgba(255, 149, 0, 0.1);
    color: var(--accent-color);
}

.timeline-item:not(.completed):not(.active) .timeline-status {
    background: rgba(134, 134, 139, 0.1);
    color: var(--text-secondary);
}



/* 页脚 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 30px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}
/* 审查部分 */
.audit-section {
    padding: 40px 0;
    background: var(--background-primary);
}

.audit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
}

.audit-section .audit-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    padding: 25px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.audit-section .audit-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.25);
}

.audit-section .audit-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.audit-section .audit-item p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.audit-section .audit-item code {
    display: block;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    padding: 12px 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    word-break: break-all;



    font-size: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.audit-section .address-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.audit-section .address-list li {
    margin-bottom: 10px;
}

.audit-section .address-list li span {
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.audit-section .address-list li code {
    font-size: 0.85rem;
    padding: 10px 15px;
}


.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* 额外的响应式样式 */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .ecosystem-diagram {
        width: 300px;
        height: 300px;
    }

    .node {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }

    .ecosystem-center {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .roadmap-timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-item .timeline-content {
        text-align: left !important;
        max-width: 100%;
    }

    .timeline-marker {
        left: 20px !important;
        transform: none !important;
    }



    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ecosystem-diagram {
        width: 250px;
        height: 250px;
    }

    .node {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }

    .ecosystem-center {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }
}


/* 专用于“星辰信用借”轮播：缩小Logo尺寸 */

/* 新产品介绍文字样式 */
.new-products-intro {
    text-align: left; /* 改为左对齐 */
    padding: 1px 0; /* 减小垂直留白 */
    margin-bottom: 30px; /* 增加与下方内容的间距 */
}

.new-products-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.new-products-intro .highlight {
    color: var(--text-primary);
}


@media (max-width: 768px) {
    .new-products-intro {
        margin-bottom: 20px; /* 调整移动端间距 */
    }
    .new-products-intro p {
        font-size: 1rem;
    }
}

.slide.credit-loan .slide-logo img {
    max-width: 92%;
    max-height: 92%;
}

@media (max-width: 768px) {
    .slide.credit-loan .slide-logo {
        flex: 0 0 32%;
        max-width: 110px;
        max-height: 85px;
    }
    .slide.credit-loan .slide-logo img {
        max-width: 90%;
        max-height: 90%;
    }
}


/* 紫水晶3D毛玻璃风格 */
.product-card-amethyst {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.65), rgba(124, 58, 237, 0.75)); /* 再次增加透明度 */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(224, 204, 255, 0.4);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.5); /* 再次加深阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-amethyst:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.6); /* 再次加深悬停阴影 */
}

/* 调整内部文字颜色以保证可读性 */
.product-card-amethyst p,
.product-card-amethyst p b {
    color: rgba(255, 255, 255, 0.95);
}

.product-card-amethyst .product-features {
    gap: 4px; /* 减小合约地址间距 */
}

.product-card-amethyst .product-features span {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95); /* 加深文字颜色 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 4px; /* 减小垂直内边距 */
    padding-bottom: 4px; /* 减小垂直内边距 */



}

/* 单独放大UXC卡片文字 */
.uxc-description {
    font-size: 1rem; /* 放大字体 */
    line-height: 1.5; /* 增加行高以提高可读性 */
}



/* 普通文本提示样式 */
.product-features .plain-text {
    background: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 6px 0;
    border: none;
    white-space: normal;
    word-break: normal;
}



/* 移动端紧凑布局调整 */
@media (max-width: 768px) {
    /* 核心介绍部分 */
    .about-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .feature-item {
        padding: 20px;
    }
    .feature-list {
        gap: 15px;
    }

    /* 发展路线部分 */
    .roadmap-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .timeline-content {
        padding: 20px;
    }
    .timeline-item {
        margin-bottom: 20px;
    }

    /* 审核部分 */
    .audit-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .audit-item {
        padding: 20px;
    }
    .audit-grid {
        gap: 15px;
    }
}



/* 添加到桌面按钮 (FAB) */
.fab {
    position: fixed;
    bottom: 90px; /* 避免与AI聊天按钮重叠 */
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease;
}

.fab:hover {
    transform: scale(1.1);
}

/* 添加到桌面提示框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-content {
    background: white;




    padding: 25px;
    border-radius: 15px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}
