/* ====== Page Default 通用页面正文 ====== */
.loopes-page,
.loopes-listing-page {
    min-height: 60vh;
    background: var(--loopes-bg);
}

.loopes-article__body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--loopes-text);
}

.loopes-article__body h1,
.loopes-article__body h2,
.loopes-article__body h3,
.loopes-article__body h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.35;
    color: var(--loopes-text);
}

.loopes-article__body p {
    margin: 0 0 1.2em;
}

.loopes-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--loopes-radius);
}

.loopes-article__body a {
    color: var(--loopes-primary);
}

.loopes-article__body ul,
.loopes-article__body ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.loopes-article__body blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--loopes-primary);
    background: var(--loopes-bg-secondary);
    border-radius: 0 var(--loopes-radius) var(--loopes-radius) 0;
    font-style: italic;
    color: var(--loopes-text-secondary);
}

.loopes-article__body pre {
    margin: 1.5em 0;
    padding: 16px 20px;
    background: #1e293b;
    border-radius: var(--loopes-radius);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.loopes-article__body code {
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--loopes-bg-secondary);
    border-radius: 4px;
}

.loopes-article__body pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
}

.loopes-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.loopes-article__body th,
.loopes-article__body td {
    padding: 10px 14px;
    border: 1px solid var(--loopes-border);
    text-align: left;
}

.loopes-article__body th {
    background: var(--loopes-bg-secondary);
    font-weight: 600;
}


/* ====== 404 页面 ====== */
.loopes-error-page {
    min-height: 100vh;
    background: #F8FAFC;
}

/* Hero */
.loopes-error-hero {
    position: relative;
    padding: 110px 0 70px;
    overflow: hidden;
    text-align: center;
}

.loopes-error-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 450px at 50% -10%, rgba(26, 115, 232, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 20% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 80% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.loopes-error-hero__content {
    position: relative;
    z-index: 1;
}

.loopes-error-hero__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #9CA3AF;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 6px 18px;
    border-radius: 20px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
}

.loopes-error-hero__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 28px;
}

.loopes-error-hero__digit {
    display: inline-block;
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -8px;
    background: linear-gradient(135deg, #1A73E8 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loopseErrorDigitFloat 3s ease-in-out infinite;
}

.loopes-error-hero__digit:nth-child(2) {
    animation-delay: 0.4s;
}

.loopes-error-hero__digit:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes loopseErrorDigitFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.loopes-error-hero__desc {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
}

.loopes-error-hero__sub {
    font-size: 15px;
    color: #9CA3AF;
    margin: 0;
}

/* Body */
.loopes-error-body {
    padding: 0 0 100px;
}

.loopes-error-body__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

/* 信息卡片 */
.loopes-error-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.loopes-error-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FEF2F2;
    color: #EF4444;
    margin-bottom: 20px;
}

.loopes-error-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.loopes-error-card__desc {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
}

/* 操作按钮 */
.loopes-error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.loopes-error-actions__primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #1A73E8;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.loopes-error-actions__primary:hover {
    background: #1557B0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.25);
}

.loopes-error-actions__secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.loopes-error-actions__secondary:hover {
    color: #374151;
    background: #F9FAFB;
    border-color: #9CA3AF;
}

/* 快捷链接 */
.loopes-error-links {
    text-align: center;
}

.loopes-error-links__title {
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px;
}

.loopes-error-links__grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.loopes-error-link-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.loopes-error-link-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.4;
}

.loopes-error-link-item:hover {
    color: #1A73E8;
    background: #F9FAFB;
    border-color: #1A73E8;
    transform: translateY(-2px);
}

.loopes-error-link-item:hover svg {
    opacity: 0.7;
    color: #1A73E8;
}

/* 搜索区域 */
.loopes-error-search {
    margin-top: 48px;
    text-align: center;
}

.loopes-error-search__title {
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px;
}

.loopes-error-search .loopes-toolbar-search {
    max-width: 420px;
    margin: 0 auto;
}

/* 响应式 */
@media (max-width: 768px) {
    .loopes-error-hero {
        padding: 90px 0 50px;
    }

    .loopes-error-hero__digit {
        font-size: 96px;
    }

    .loopes-error-hero__desc {
        font-size: 18px;
    }

    .loopes-error-body {
        padding: 0 0 80px;
    }

    .loopes-error-card {
        padding: 32px 24px;
    }

    .loopes-error-actions {
        flex-direction: column;
    }

    .loopes-error-actions__primary,
    .loopes-error-actions__secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .loopes-error-hero__digit {
        font-size: 72px;
    }

    .loopes-error-hero__title {
        gap: 6px;
    }
}
