/* * style.css - 火币 HTX (Huobi) 品牌风格维护版 
 * 核心色值：火币蓝 #0052ff, 科技青 #00ccff, 深蓝底 #030a1a
 */

/* --- 0. 全局基础修正 --- */
html, body {
    background-color: #030a1a !important; /* 火币标志性深蓝底色 */
    color: #e5e9f2 !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- 1. 新闻卡片 (自适应高度 + 火币蓝悬停) --- */
.news-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(0, 82, 255, 0.15) !important; /* 暗蓝色边框 */
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: auto !important; 
    min-height: 100px;
    text-decoration: none;
    overflow: hidden;
    position: relative;
}

.news-card:hover {
    border-color: #0052ff !important; /* 激活火币蓝 */
    background-color: rgba(0, 82, 255, 0.05) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* --- 2. 缩略图容器 (16:9 比例) --- */
.thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9 !important; 
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .thumb-img {
    transform: scale(1.08);
}

/* --- 3. 玻璃质感组件 (火币深色半透明) --- */
.glass-card {
    background-color: rgba(10, 20, 45, 0.7) !important;
    border: 1px solid rgba(0, 82, 255, 0.3) !important;
    border-radius: 12px;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: #00ccff !important; /* 悬停变为青蓝色 */
    background-color: rgba(0, 82, 255, 0.1) !important;
}

/* --- 4. 页脚样式 --- */
.footer-link-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none;
    color: #848e9c;
    margin-bottom: 12px;
}

.footer-link-item:hover {
    color: #0052ff; /* 悬停变火币蓝 */
}

.icon-box {
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* --- 5. FAQ 问答系统 (火币蓝交互) --- */
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.faq-item.active {
    border-color: #0052ff;
    background: rgba(0, 82, 255, 0.03);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-icon {
    color: #0052ff; /* 火币蓝图标 */
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    content: "−"; /* 或者使用旋转逻辑保持一致 */
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #b7bdc6;
    line-height: 1.6;
}

/* --- 6. 品牌工具类 --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 核心强调色：火币蓝 */
.brand-highlight {
    color: #0052ff !important;
}

/* 辅助强调色：科技青 */
.brand-point {
    background-color: #00ccff !important;
}

.brand-color {
    color: #00ccff !important;
}

/* 导航栏背景 (HTX 磨砂蓝) */
.nav-blur {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(3, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 移除移动端点击蓝色背景 */
* { -webkit-tap-highlight-color: transparent; }

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #030a1a;
}
::-webkit-scrollbar-thumb {
    background: #1e2329;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0052ff;
}