/* 全局样式 */
:root {
    --primary-color: #2870e3;
    --secondary-color: #ffc107;
    --background-color: #1a2c78;
    --background-gradient-start: #0f1e5a;
    --background-gradient-mid: #2a3fa0;
    --background-gradient-end: #1a2c78;
    --text-color: #ffffff;
    --border-color: #3a4c98;
    --card-bg-color: #2546a8;
    --admin-sidebar-bg: #101c4c;
    --admin-content-bg: #f5f8ff;
    --admin-card-bg: #ffffff;
    --admin-text-color: #444444;
}

body {
    font-family: 'Arial Rounded MT Bold', 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at 10% 20%, var(--background-gradient-start) 0%, var(--background-gradient-mid) 50%, var(--background-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    padding-bottom: 70px; /* 为底部导航留出空间 */
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    animation: lightEffect 15s infinite linear;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 60%);
    animation: lightEffect2 20s infinite linear;
    z-index: 0;
    pointer-events: none;
}

@keyframes lightEffect {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes lightEffect2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.mobile-device body {
    font-size: 16px;
}

/* 内容区域样式 */
.content-wrapper {
    padding-top: 60px;
    padding-bottom: 20px;
    min-height: calc(100vh - 130px);
    position: relative;
    z-index: 1;
}

/* 登录和注册页面 */
.auth-container {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(37, 70, 168, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.auth-container .form-group {
    margin-bottom: 20px;
}

/* 挖矿按钮样式 */
.mining-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
    text-align: center;
}

.mining-button {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    margin: 50px auto 30px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: url('../../coin.png') center center no-repeat;
    background-size: cover;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.mining-button:before {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.mining-button:active {
    transform: scale(0.92);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.mining-button.animate {
    animation: click-pulse 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes click-pulse {
    0% { transform: scale(1); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
    50% { transform: scale(0.92); box-shadow: 0 8px 15px rgba(0,0,0,0.3); }
    100% { transform: scale(1); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.mining-button-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.mining-icon {
    font-size: 46px;
    margin-bottom: 10px;
    animation: subtle-rotate 4s linear infinite;
}

.mining-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

@keyframes subtle-rotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.mining-stats {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    background-color: rgba(37, 70, 168, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.mining-stats::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.mining-progress {
    margin: 15px 0;
    height: 10px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.2);
}

.mining-progress .progress-bar {
    background-color: #ffc107;
}

/* 顶部状态卡片 */
.stats-card-container {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stats-card {
    background-color: rgba(37, 70, 168, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    width: 30%;
    padding: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.stats-card-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card-value {
    color: #ffffff;
    font-size: 12px;
}

.wallet-button {
    background-color: #FFB300;
    border-radius: 15px;
    color: #fff;
    padding: 8px 15px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 70px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.coin-count {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin: 15px 0;
}

.coin-rate {
    font-size: 16px;
    color: #4eff91;
    font-weight: bold;
    margin-bottom: 20px;
}

.energy-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.energy-icon {
    color: #ffcc00;
    margin-right: 10px;
}

.energy-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.energy-progress {
    height: 8px;
    width: 100px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.energy-progress-bar {
    height: 100%;
    background-color: #ffcc00;
}

.energy-max {
    color: #ffffff;
    font-size: 14px;
}

/* 社交功能按钮 */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-button {
    background-color: var(--card-bg-color);
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* 底部导航栏 */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 30, 90, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav .nav-link.active {
    color: var(--secondary-color);
}

.mobile-nav .nav-link.active::before {
    opacity: 1;
    bottom: 0;
}

.mobile-nav .nav-link i {
    font-size: 22px;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}

/* 矿机列表样式 */
.miner-card {
    background-color: rgba(37, 70, 168, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.miner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.miner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.miner-img {
    height: 150px;
    background-color: #f1f1f1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.miner-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.miner-info {
    padding: 15px;
}

.miner-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.miner-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.miner-rate {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* 资产页面样式 */
.asset-card {
    background-color: rgba(37, 70, 168, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.asset-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.asset-title {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 18px;
}

.asset-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff;
}

.asset-subtitle {
    color: rgba(255,255,255,0.7);
}

/* 顶部导航 */
.navbar {
    background-color: var(--background-color) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 20px;
}

/* 修改按钮样式 */
.btn-primary {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    border-radius: 20px;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

/* 点数增加动画 */
.coin-increment {
    position: absolute;
    font-size: 30px;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    user-select: none;
}

/* 点击后右侧显示的图标 */
.click-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    font-size: 28px;
    color: #FFD700;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
}

@keyframes fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* 屏幕适配 */
@media (max-width: 576px) {
    .mining-button {
        width: 200px;
        height: 200px;
        margin: 30px auto 15px;
    }
    
    .mining-button:before {
        top: -20px;
        left: -20px;
        width: 240px;
        height: 240px;
    }
    
    .content-wrapper {
        padding-top: 70px;
    }
    
    .stats-card-container {
        padding: 5px;
    }
    
    .stats-card {
        padding: 8px 5px;
    }
    
    /* 修复移动端背景黑影旋转问题 */
    body::before, 
    body::after {
        animation: none;
        opacity: 0.3;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: auto;
        transform: none;
        background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 70%);
    }
}

/* 头像菜单 */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffc107;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 5px;
}

.user-menu {
    display: flex;
    align-items: center;
}

/* 顶部图标导航 */
.top-icons {
    display: flex;
    padding: 10px 15px;
    justify-content: flex-start;
    gap: 20px;
}

.top-icon {
    width: 40px;
    height: 40px;
    background-color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

/* 适配波纹效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.8s linear;
    pointer-events: none;
}

.animate-ripple {
    animation: ripple 0.8s linear;
}

@keyframes ripple {
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 后台管理系统样式 */
.admin-sidebar {
    background-color: var(--admin-sidebar-bg);
    min-height: 100vh;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
}

.admin-content {
    background-color: var(--admin-content-bg);
    min-height: 100vh;
    padding: 20px;
    color: var(--admin-text-color);
}

.admin-card {
    background-color: var(--admin-card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.admin-card-header {
    background-color: rgba(0,0,0,0.02);
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-card-body {
    padding: 20px;
}

.admin-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
}

.admin-card .table {
    margin-bottom: 0;
}

.admin-card .table th {
    border-top: none;
    font-weight: 600;
}

/* 适配移动设备的后台 */
@media (max-width: 767.98px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        z-index: 1000;
    }
    
    .navbar-toggler {
        top: 10px;
        left: 10px;
        z-index: 1001;
    }
    
    .admin-content {
        padding-top: 60px;
    }
} 