/* 林之奇SMM 豪华全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f0f2e 100%);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
}

/* 顶部导航 */
.navbar, .top-nav, header {
    background: rgba(10, 10, 26, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2) !important;
}

/* 卡片样式 */
.card, .panel, .box, .widget, .stat-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.card:hover, .panel:hover, .box:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2) !important;
}

/* 按钮样式 */
.btn, button, input[type="submit"], input[type="button"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.btn:hover, button:hover, input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* 输入框样式 */
input, select, textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* 表格样式 */
table {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2)) !important;
    color: #fff !important;
    padding: 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3) !important;
}

td {
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

tr:hover td {
    background: rgba(102, 126, 234, 0.05) !important;
}

/* 文字颜色 */
h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
}

p, span, label, li {
    color: rgba(255, 255, 255, 0.85) !important;
}

a {
    color: #a5b4fc !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

a:hover {
    color: #667eea !important;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 状态标签 */
.badge, .status, .tag {
    padding: 4px 12px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.badge-success, .status-active {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.badge-warning, .status-pending {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.badge-danger, .status-cancelled, .status-failed {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.badge-info, .status-processing {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #667eea !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
}

/* 侧边栏 */
.sidebar, .side-nav, .left-menu {
    background: rgba(10, 10, 26, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar a, .side-nav a, .left-menu a {
    padding: 12px 20px !important;
    border-radius: 10px !important;
    margin: 5px 10px !important;
    transition: all 0.3s !important;
}

.sidebar a:hover, .side-nav a:hover, .left-menu a:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #fff !important;
}

.sidebar a.active, .side-nav a.active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
}

/* 统计卡片 */
.stat-card {
    padding: 25px !important;
    text-align: center !important;
}

.stat-card .number {
    font-size: 32px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea, #f093fb) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-card .label {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 8px !important;
}

/* 弹窗/模态框 */
.modal, .popup, .dialog {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
}

/* 分页 */
.pagination a, .pagination span {
    padding: 8px 14px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0 3px !important;
}

.pagination a:hover, .pagination .active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

/* 动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 页脚 */
footer, .footer {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .card, .panel { padding: 15px !important; }
    h1 { font-size: 28px !important; }
    h2 { font-size: 22px !important; }
}
