/* 自定义样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.site-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.site-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.site-icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.click-count {
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(108, 117, 125, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.category-title {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 2rem 0 1rem 0;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.1) 0%, transparent 100%);
    padding: 0.5rem 1rem;
    border-radius: 0 10px 10px 0;
}

.search-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.search-input {
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    background: rgba(248, 249, 250, 0.8);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(0, 123, 255, 0.25);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.stats-card {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

footer {
    background: rgba(52, 58, 64, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        margin: 1rem;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .site-card {
        margin-bottom: 1rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 标签样式 */
.tag {
    display: inline-block;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 2px;
}

/* 新增网站高亮 */
.new-site {
    position: relative;
}

.new-site::after {
    content: 'NEW';
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

/* 联系我们部分样式 */
.contact-section {
    margin-top: 3rem;
}

.contact-section .card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.qr-code-container {
    position: relative;
    display: inline-block;
}

.qr-code-container img {
    transition: all 0.3s ease;
    border: 3px solid rgba(0, 123, 255, 0.1);
}

.qr-code-container:hover img {
    transform: scale(1.05);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.contact-info .alert {
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.05) 0%, rgba(108, 117, 125, 0.05) 100%);
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 15px;
}

.contact-info i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 响应式设计 - 联系部分 */
@media (max-width: 768px) {
    .contact-section {
        margin-top: 2rem;
    }
    
    .contact-section .card-body {
        padding: 2rem 1rem;
    }
    
    .qr-code-container img {
        max-width: 150px !important;
    }
} 