/* Based on https://my-qey.ubepure.cn/ style */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-color: #2c3e50;
    --text-light: #596a7d;
    --white: #ffffff;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    background: var(--white);
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    font-size: 24px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover, .header-nav a.active {
    color: #667eea;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
}

/* Card/Section Styles */
.section-title {
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    border-left: 5px solid #667eea;
    padding-left: 12px;
}

/* Search Box (Knowledge Base Specific) */
.search-box {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-gradient);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #a0aec0;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    background: white;
}

/* Grid Layout for Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: #667eea;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #667eea;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}
