/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}


/* 日志表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table {
    font-size: 0.9rem;
}

.table th {
    white-space: nowrap;
}

/* 用户代理提示 */
td[title] {
    cursor: help;
    border-bottom: 1px dotted #999;
}

/* 活动导航链接 */
.nav-link.active {
    color: #4a90e2;
    font-weight: bold;
}


/* 快捷操作按钮组 */
.quick-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.quick-actions .btn-group {
    justify-content: center;
    margin-top: 1rem;
}

/* 统计卡片 */
.stats {
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h5 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stat-card .count {
    font-size: 2rem;
    font-weight: bold;
    color: #4a90e2;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #a8edea, #fed6e3, #a8edea, #fed6e3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
    filter: blur(5px);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}


/* 幸运抽奖按钮专属样式 */
.btn-success {
    background-color: #2ecc71;
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.btn-success:active {
    transform: translateY(1px);
}

/* 按钮发光动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* 按钮内部装饰元素 */
.btn-success::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.btn-success:hover::before {
    left: 100%;
    top: 100%;
}

/* 按钮文字效果 */
.btn-success span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 星星装饰 */
.btn-success::after {
    content: "★";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f1c40f;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(-5px) rotate(10deg);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-success {
        animation: none; /* 在小屏幕上禁用动画以提升性能 */
    }
    
    .btn-success::after {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #333;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* 导航样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90e2;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4a90e2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #4a90e2;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #f8f9fa;
}

.page-item.active .page-link {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}


/* 用户中心专用样式 */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.dashboard-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    color: #4a90e2;
    font-size: 1.2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.info-label {
    font-weight: 500;
    color: #555;
}

.info-value {
    color: #333;
    font-weight: 600;
}

/* 不同类型的卡片 */
.info-card {
    background: rgba(234, 245, 255, 0.8);
}

.security-card {
    background: rgba(255, 240, 240, 0.8);
}

.membership-card {
    background: rgba(240, 255, 240, 0.8);
}

.action-card {
    grid-column: 1 / -1;
    background: rgba(255, 255, 240, 0.8);
    text-align: center;
}

.alert-card {
    grid-column: 1 / -1;
    background: rgba(255, 230, 230, 0.8);
}

/* 按钮图标 */
.btn i {
    margin-right: 0.5rem;
}

/* 大按钮样式 */
.btn-group-large {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    min-width: 150px;
    text-align: center;
}

/* 抽奖结果样式 */
.lottery-result {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    border: 2px dashed #4a90e2;
}

.prize-display {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-group-large {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1rem;
    }
}