:root {
    --fe-primary: #0ea5e9;
    --fe-primary-dark: #0284c7;
    --fe-primary-light: #e0f2fe;
    --fe-text-main: #1e293b;
    --fe-text-muted: #64748b;
    --fe-bg-body: #f8fafc;
    --fe-bg-card: #ffffff;
    --fe-border: #e2e8f0;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--fe-bg-body);
    color: var(--fe-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    zoom: 80%;
}

@media (min-width: 1800px) {
    body {
        zoom: 100%;
    }
}

@media (max-width: 1279px) and (min-width: 720px) {
    body {
        zoom: 75%;
    }
}

@media (max-width: 719px) {
    body {
        zoom: 80%;
    }
}

.fe-topbar {
    background: #fff;
    border-bottom: 1px solid var(--fe-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

body.fe-has-topbar {
    padding-top: 92px;
}

.fe-brand {
    color: var(--fe-text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fe-brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

@media (max-width: 480px) {
    .fe-brand-logo {
        height: 42px;
    }
}

.fe-topbar-link {
    color: var(--fe-text-muted);
    font-weight: 600;
}

.fe-topbar-link:hover {
    color: var(--fe-primary-dark);
}

.fe-hero {
    background: linear-gradient(180deg, var(--fe-primary) 0%, var(--fe-primary-dark) 100%);
    padding: 3.5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

.fe-hero .breadcrumb {
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.fe-hero .breadcrumb a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
}

.fe-hero .breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.fe-hero .breadcrumb-item,
.fe-hero .breadcrumb-item.active {
    color: rgba(255,255,255,0.85);
}

.fe-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.55);
}

.fe-hero-title {
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.fe-hero-subtitle {
    color: rgba(255,255,255,0.88);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

.fe-search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 9999px;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 10px 25px rgba(2, 8, 23, 0.12);
}

.fe-search-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 12px 30px rgba(2, 8, 23, 0.18);
}

.fe-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 23, 42, 0.55);
}

.fe-search-suggestions {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}

.fe-search-suggestions a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.5);
    margin: 0 6px;
}

.fe-search-suggestions a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255,255,255,0.9);
}

.fe-panel {
    background: var(--fe-bg-card);
    border: 1px solid var(--fe-border);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.06);
}

.fe-panel-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fe-panel-subtitle {
    color: var(--fe-text-muted);
}

.fe-form .form-label {
    font-weight: 700;
    color: var(--fe-text-main);
}

.fe-form .form-control,
.fe-form textarea.form-control,
.fe-form .form-select {
    border-radius: 14px;
    border-color: var(--fe-border);
    padding: 12px 14px;
}

.fe-form .form-control:focus,
.fe-form textarea.form-control:focus,
.fe-form .form-select:focus {
    border-color: rgba(14, 165, 233, 0.65);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.fe-section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.fe-section-subtitle {
    text-align: center;
    color: var(--fe-text-muted);
}

.fe-category-card {
    background: var(--fe-bg-card);
    border: 1px solid var(--fe-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.fe-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(2, 8, 23, 0.05);
    border-color: var(--fe-primary);
}

.fe-category-icon {
    width: 48px;
    height: 48px;
    background-color: var(--fe-primary-light);
    color: var(--fe-primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.fe-category-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--fe-text-main);
}

.fe-category-desc {
    color: var(--fe-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.fe-article-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--fe-bg-card);
    border: 1px solid var(--fe-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--fe-text-main);
    transition: all 0.2s;
}

.fe-article-link:hover {
    border-color: var(--fe-primary);
    transform: translateX(4px);
}

.fe-article-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--fe-bg-card);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--fe-border);
}

.fe-cta-section {
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.06) 0%, rgba(2, 132, 199, 0.02) 100%);
    border-top: 1px solid rgba(2, 132, 199, 0.08);
    border-bottom: 1px solid rgba(2, 132, 199, 0.08);
}

.fe-cta-card {
    background: var(--fe-bg-card);
    border: 1px solid var(--fe-border);
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    height: 100%;
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fe-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(2, 8, 23, 0.10);
    border-color: rgba(14, 165, 233, 0.45);
}

.fe-cta-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.08));
    color: var(--fe-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.fe-cta-title {
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
}

.fe-cta-text {
    color: var(--fe-text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 16px;
}

.fe-btn {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
}

.fe-btn-outline {
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: var(--fe-primary-dark);
    background: rgba(255, 255, 255, 0.7);
}

.fe-btn-outline:hover {
    border-color: rgba(14, 165, 233, 0.55);
    background: rgba(224, 242, 254, 0.45);
    color: var(--fe-primary-dark);
}

.fe-btn-primary {
    background: linear-gradient(180deg, var(--fe-primary) 0%, var(--fe-primary-dark) 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.25);
}

.fe-btn-primary:hover {
    filter: brightness(0.98);
    color: #fff;
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.32);
}

.fe-footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid var(--fe-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--fe-text-muted);
    font-size: 0.9rem;
}

.fe-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--fe-text-muted);
}

.fe-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Article content styles */
.article-body {
    line-height: 1.7;
    font-size: 0.95rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--fe-text-main);
}

.article-body h1 { font-size: 1.8rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body h4 { font-size: 1.1rem; }

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--fe-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--fe-text-muted);
    font-style: italic;
}

/* Code block styles */
.article-body pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-body code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Inline code in headings */
.article-body h1 code,
.article-body h2 code,
.article-body h3 code,
.article-body h4 code,
.article-body h5 code,
.article-body h6 code {
    font-size: inherit;
    color: var(--fe-primary);
}

/* Table styles */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--fe-bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.article-body th,
.article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--fe-border);
}

.article-body th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--fe-text-main);
}

.article-body tr:last-child td {
    border-bottom: none;
}

/* Link styles */
.article-body a {
    color: var(--fe-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.article-body a:hover {
    color: var(--fe-primary-dark);
    text-decoration: underline;
}
