/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #E3F2FD 0%, #F8F9FA 50%, #FFFFFF 100%);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}

/* 导航栏样式 */
.navbar {
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.navbar-custom {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 50%, #E3F2FD 100%) !important;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0;
}

.navbar-brand-custom {
    font-weight: 700;
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand-custom:hover {
    color: #F3F4F6 !important;
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(45deg, #FFFFFF, #E3F2FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.brand-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.navbar-brand {
    font-weight: 700;
    color: #0d6efd;
}

/* 导航链接样式 */
.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 4px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.navbar-custom .navbar-nav .nav-link.active {
    color: #0D47A1 !important;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.navbar-custom .navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #2196F3, #1976D2);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.6);
}

/* 导航栏切换按钮 */
.navbar-custom .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 4px 8px;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 用户下拉菜单样式 */
.navbar-custom .dropdown-toggle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-custom .dropdown-toggle:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.navbar-custom .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
    margin-top: 8px;
}

.navbar-custom .dropdown-item {
    color: #0D47A1;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 4px 8px;
    transition: all 0.3s ease;
}

.navbar-custom .dropdown-item:hover {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #1976D2;
    transform: translateX(4px);
}

.navbar-custom .dropdown-divider {
    border-color: rgba(33, 150, 243, 0.2);
    margin: 8px 16px;
}

/* 头像样式 */
.avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 500;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 商品卡片 */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    height: 180px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc3545;
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.25rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 5px;
    padding: 0.5rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: #fff;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

/* 订单状态标签 */
.status-badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 0.25rem;
}

/* 个人中心侧边栏 */
.profile-sidebar {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
}

.profile-sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 5px;
}

.profile-sidebar .nav-link:hover {
    background-color: #f8f9fa;
}

.profile-sidebar .nav-link.active {
    background-color: #e9ecef;
    font-weight: 500;
}

.profile-sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* 订单列表 */
.order-list .order-item {
    border-left: 4px solid #6c757d;
    transition: border-color 0.3s ease;
}

.order-list .order-item:hover {
    border-left-color: #0d6efd;
}

.order-list .order-item.pending {
    border-left-color: #ffc107;
}

.order-list .order-item.processing {
    border-left-color: #0dcaf0;
}

.order-list .order-item.completed {
    border-left-color: #198754;
}

.order-list .order-item.refunded {
    border-left-color: #6c757d;
}

.order-list .order-item.cancelled {
    border-left-color: #dc3545;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .card-img-top {
        height: 160px;
    }
    
    .product-card .card-img-top {
        height: 140px;
    }
}

/* 首页轮播图 */
.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
}

/* 游戏分类标签 */
.game-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #e9ecef;
    border-radius: 50px;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.game-tag:hover {
    background-color: #dee2e6;
}

.game-tag.active {
    background-color: #0d6efd;
    color: #fff;
}

/* 打手端样式 */
.worker-dashboard .stat-card {
    text-align: center;
    padding: 1.5rem;
}

.worker-dashboard .stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.worker-dashboard .stat-card .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 加载动画 */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}