* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景星空装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #ffffff, transparent),
        radial-gradient(2px 2px at 60% 70%, #ffffff, transparent),
        radial-gradient(1px 1px at 50% 50%, #ffffff, transparent),
        radial-gradient(1px 1px at 80% 10%, #ffffff, transparent),
        radial-gradient(2px 2px at 90% 60%, #ffffff, transparent);
    background-size: 200% 200%;
    animation: twinkle 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-btn-group {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--light-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--glass-bg);
}

/* 毛玻璃卡片 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 首页英雄区 */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.hero-title {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-title span {
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 60px auto;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.form-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.form-tip a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}
/* 搜索页面样式 */
.search-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
}

.search-container {
    max-width: 800px;
    margin: 0 auto 60px;
}

.search-box {
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 70px 18px 24px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    color: var(--light-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    transform: scale(1.02);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.search-source-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.source-tag {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 搜索结果样式 */
.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.result-item {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-title a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: var(--primary-color);
}

.result-url {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    word-break: break-all;
}

.result-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.result-source {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.2);
    font-size: 11px;
    color: var(--primary-color);
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.no-result {
    text-align: center;
    padding: 60px 20px;
}

.no-result h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.no-result p {
    color: rgba(255, 255, 255, 0.5);
}

/* 后台管理样式 */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-sidebar {
    width: 220px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    height: calc(100vh - 100px);
    position: fixed;
    left: 20px;
    top: 80px;
}

.admin-main {
    margin-left: 260px;
    padding: 20px 0;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 10px;
}

.admin-menu li a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-menu li a:hover, .admin-menu li a.active {
    background: var(--primary-color);
    color: white;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.data-table th, .data-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table td {
    color: rgba(255, 255, 255, 0.75);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    margin-right: 5px;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-normal {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.status-banned {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .glass-card {
        padding: 25px 20px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 20px;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .search-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
