/**
 * Theme Name:        Binance Four
 * Theme URI:         https://host.four.com
 * Description:       Custom theme description...
 * Version:           1.0.0
 * Author:            xhr
 * Author URI:        https://en-binance.net/
 * Tags:              Binance, 加密货币，区块链、赛博朋克
 * Requires PHP:      8.0
 */

/* ==================== 赛博朋克风格CSS变量 ==================== */
:root {
    /* 赛博朋克主色调 */
    --primary: #00ff88;                    /* 霓虹绿色 - 主强调色 */
    --primary-dark: #00cc6a;              /* 深绿色 */
    --primary-light: #33ff99;             /* 浅绿色 */

    /* 赛博朋克背景色 */
    --theme-black: #0a0a0a;                /* 深黑色背景 */
    --theme-black-light: #1a1a1a;         /* 次深黑色 */
    --theme-black-lighter: #2a2a2a;        /* 浅黑色 */

    /* 背景色 */
    --bg-dark: #0a0a0a;                    /* 主背景 */
    --bg-header: #1a1a1a;                  /* 头部背景 */
    --bg-section: #121212;                  /* 区域背景 */
    --bg-card: rgba(255, 255, 255, 0.03);  /* 卡片背景 - 玻璃态 */
    --bg-card-hover: rgba(255, 255, 255, 0.05); /* 卡片悬停 */
    --bg-light: #f5f5f5;                   /* 浅色背景 */

    /* 文字色 */
    --text-white: #ffffff;                  /* 主文字 */
    --text-light: #e0e0e0;                  /* 亮文字 */
    --text-gray: #94a3b8;                   /* 灰文字 */
    --text-muted: #64748b;                  /*  muted文字 */
    --text-dark: #333333;                   /* 深色文字 */

    /* 按钮 - 霓虹绿底黑字 */
    --btn-bg: #00ff88;                     /* 按钮背景 */
    --btn-bg-hover: #00cc6a;               /* 按钮悬停 */
    --btn-text: #000000;                   /* 按钮文字 */
    --btn-text-hover: #000000;              /* 按钮悬停文字 */
    --btn-secondary-border: #00ff88;       /* 次按钮边框 */
    --btn-secondary-text: #00ff88;         /* 次按钮文字 */

    /* 赛博朋克特效 */
    --shadow: 0 4px 15px rgba(0, 255, 136, 0.2);      /* 发光阴影 */
    --shadow-hover: 0 8px 25px rgba(0, 255, 136, 0.3); /* 悬停发光 */
    --neon-glow: 0 0 20px rgba(0, 255, 136, 0.4);      /* 霓虹发光 */

    /* 圆角 */
    --radius: 12px;                          /* 赛博朋克圆角 */

    /* 过渡动画 */
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


a {
    text-decoration: none;
    color: inherit;
    outline: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}


.mat15 {
    margin-top: 15px;
}

.mb20 {
    margin-bottom: 20px;
}

.mb40 {
    margin-bottom: 40px;
}

/* 侧边栏容器 - 赛博科技风格 */
.sidebar {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 136, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 赛博朋克网格背景 */
.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* 顶部霓虹光条 */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 20%, 
        var(--primary-light) 50%, 
        var(--primary) 80%, 
        transparent 100%);
    box-shadow: 0 0 10px var(--primary);
    z-index: 1;
}

/* 侧边栏内容 */
.sidebar-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* 侧边栏头部 */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    gap: 0.75rem;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.08), transparent);
    position: relative;
}

/* 头部左边框发光 */
.sidebar-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light), var(--primary));
    box-shadow: 0 0 8px var(--primary);
}

/* 侧边栏图标 */
.sidebar-header-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.6));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.6));
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.9));
    }
}

/* 侧边栏标题 */
.sidebar-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* 平台图标包装器 - 通用样式 */
.platform-icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.platform-icon-wrapper svg {
    width: 70%;
    height: 70%;
}

/* OKX 平台图标 - 黑白色鎏金效果 */
.platform-icon-wrapper.okx {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 50%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 鎏金光泽 */
.platform-icon-wrapper.okx::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: metallicShine 4s infinite;
}

@keyframes metallicShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.platform-icon-wrapper.okx svg path {
    fill: #ffffff;
}

/* Binance 平台图标 - 黑黄鎏金效果 */
.platform-icon-wrapper.binance {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 50%, #1a1a2e 100%);
    border: 1px solid rgba(240, 185, 11, 0.3);
    box-shadow: 
        0 0 15px rgba(240, 185, 11, 0.2),
        inset 0 1px 0 rgba(240, 185, 11, 0.15);
    position: relative;
    overflow: hidden;
}

/* 鎏金光泽 */
.platform-icon-wrapper.binance::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(240, 185, 11, 0.15), transparent);
    animation: goldenShine 3s infinite;
}

@keyframes goldenShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.platform-icon-wrapper.binance svg path {
    fill: #f0b90b;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .sidebar-header {
        padding: 1rem 1rem;
        gap: 0.625rem;
    }
    
    .sidebar-header-icon {
        width: 18px;
        height: 18px;
    }
    
    .sidebar-header-title {
        font-size: 0.9rem;
    }
}

