/* ========== 科技感/未来风主题样式 ========== */

/* 全局变量 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tech-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --dark-card: rgba(15, 23, 42, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --glow-color: #667eea;
    --success-glow: #00f2fe;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    background: var(--dark-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(118, 75, 162, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 172, 254, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 242, 254, 0.2) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background: var(--dark-card) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.navbar-brand i {
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--tech-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
}

/* 标签筛选 */
.tag-filter, .tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 0;
}

.tag-item {
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--tech-gradient);
    transition: all 0.4s ease;
    z-index: -1;
}

.tag-item:hover {
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.tag-item:hover::before {
    left: 0;
}

.tag-item.active {
    background: var(--primary-gradient);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tag-item i {
    margin-right: 0.5rem;
}

/* 网站卡片 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.site-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.site-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.3),
        0 0 40px rgba(79, 172, 254, 0.2);
}

.site-card:hover::before {
    opacity: 0.1;
}

.site-card > * {
    position: relative;
    z-index: 1;
}

.site-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    transition: all 0.3s ease;
}

.site-card:hover .site-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.5));
}

.site-logo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--tech-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-bottom: 1.5rem;
}

.site-name, .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.site-desc, .card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.site-tags .badge {
    padding: 0.4rem 0.8rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 20px;
    color: #4facfe;
    font-size: 0.85rem;
    font-weight: 500;
}

.site-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-meta i {
    margin-right: 0.3rem;
    color: #4facfe;
}

/* 详情页样式 */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.detail-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.site-logo-large {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 2rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 2px solid var(--glass-border);
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-url {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--tech-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.detail-url:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.5);
    color: white;
}

.detail-section, .site-description, .site-features {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.detail-section h3 i {
    margin-right: 0.75rem;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-section p,
.detail-section ul,
.site-description p,
.site-description ul,
.site-features ul {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.detail-section ul,
.site-description ul,
.site-features ul {
    list-style: none;
    padding: 0;
}

.detail-section li,
.site-description li,
.site-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.detail-section li::before,
.site-description li::before,
.site-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4facfe;
    font-size: 1.2rem;
}

/* 页脚 */
footer {
    background: var(--dark-card) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .site-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tag-filter, .tags-filter {
        gap: 0.75rem;
    }

    .tag-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .site-logo-large {
        width: 80px !important;
        height: 80px !important;
    }
}

/* 按钮样式 */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* 表单样式 */
.form-control {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 15px;
    padding: 0.75rem 1.25rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #4facfe !important;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3) !important;
    color: var(--text-primary) !important;
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* 卡片样式 */
.card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
}

.card-body {
    color: var(--text-primary);
}

/* 警告框样式 */
.alert {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 15px !important;
    color: var(--text-primary) !important;
}

.alert-danger {
    border-color: rgba(245, 87, 108, 0.5) !important;
    background: rgba(245, 87, 108, 0.1) !important;
}

.alert-success {
    border-color: rgba(0, 242, 254, 0.5) !important;
    background: rgba(0, 242, 254, 0.1) !important;
}

/* 空状态样式 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-bg);
    border-radius: 5px;
    border: 1px solid var(--glass-border);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.site-card {
    animation: fadeIn 0.5s ease-out;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(79, 172, 254, 0.8);
    }
}
