/* ==================== Y Data 社区 - 白天亮色科技风主题 ==================== */

/* 基础背景 - 温和的白色渐变 */
body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%) !important;
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    transition: background 0.5s ease;
    color: #334155;
}

/* 动态网格背景 - 非常淡的蓝色 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 所有内容区域相对定位 */
.container,
.hero,
.stats,
.content-section {
    position: relative;
    z-index: 2;
}

/* ==================== 导航栏样式 ==================== */
/* 已注释：使用common.css中的默认导航栏样式，保持与SQL练习页面一致 */
/*
nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

nav .logo {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

nav .nav-link {
    color: #475569 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    transition: width 0.3s ease;
}

nav .nav-link:hover::after,
nav .nav-link.active::after {
    width: 100%;
}

nav .nav-link:hover {
    color: #3b82f6 !important;
}
*/

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%) !important;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    color: #475569 !important;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

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

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    color: white !important;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

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

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

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

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* ==================== 卡片样式 ==================== */
.card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15) !important;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ==================== Hero区域 ==================== */
.hero {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 80px 20px;
    margin: 40px auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.hero h1 {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.8;
}

/* ==================== 统计数据 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.stat-card h3 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-card p {
    color: #64748b;
    font-size: 14px;
}

/* ==================== 表单控件 ==================== */
.form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background: #ffffff !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
}

/* 文本域 */
textarea.form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

textarea.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* 下拉框 */
select.form-control {
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    appearance: none !important;
}

select.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

select.form-control option {
    background: #ffffff !important;
    color: #1e293b !important;
}

/* ==================== 模态框 ==================== */
.modal {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.2) !important;
    background: rgba(59, 130, 246, 0.05);
    padding: 25px 30px !important;
}

.modal-header h3 {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ==================== 徽章样式 ==================== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==================== 页面标题 ==================== */
.page-title {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6);
}

/* ==================== 筛选和搜索区域样式 ==================== */
.filter-section,
.search-section,
.filter-container,
.search-container-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px) !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
}

/* 筛选标题 */
.filter-section .filter-title,
.search-section .search-title {
    color: #334155 !important;
    font-weight: 600 !important;
}

/* 筛选按钮组 */
.filter-buttons,
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* 筛选按钮 */
.filter-btn,
.filter-buttons button {
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    color: #475569 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.filter-btn:hover,
.filter-buttons button:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px) !important;
}

.filter-btn.active,
.filter-buttons button.active {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9) !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

/* 搜索输入框 */
.search-input,
input[type="text"].search-input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    color: #1e293b !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.search-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* 搜索按钮 */
.search-btn,
button.search-btn {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9) !important;
    border: none !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.search-btn:hover,
button.search-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4) !important;
}

/* ==================== 岗位卡片 ==================== */
.job-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px) !important;
    transition: all 0.3s ease !important;
}

.job-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ==================== 视频卡片 ==================== */
.video-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.video-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ==================== 专栏卡片 ==================== */
.column-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px) !important;
    transition: all 0.3s ease !important;
}

.column-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ==================== 文档卡片 ==================== */
.doc-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px) !important;
    transition: all 0.3s ease !important;
}

.doc-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .page-title {
        font-size: 24px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.loading-text {
    animation: pulse 2s ease-in-out infinite;
}

/* ==================== 内容区域通用样式 ==================== */
.content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* ==================== 标签样式 ==================== */
.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* ==================== 链接样式 ==================== */
a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2563eb;
}

/* ==================== 分隔线 ==================== */
hr {
    border: none;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    margin: 20px 0;
}
