/* ========================================
   LoliMeow 原始样式 - 完全照搬 + 防冲突覆盖
   ======================================== */

:root {
    --bs-primary: #8b3dff;
    --bs-primary-rgb: 139, 61, 255;
    --bs-white: #fff;
    --bs-gray-800: #1e293b;
}

/* ================ H2标题 ================ */
.section-title {
    position: relative;
    margin: 1em 0;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: none;
    display: flex;
}

.section-title:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 80%;
    border-bottom: 2px solid var(--bs-gray-800);
}

.section-title span {
    position: relative;
    display: inline-block;
    padding-right: 1.4em;
    background: var(--bs-white);
    color: var(--bs-gray-800);
    font-size: 14px;
    font-weight: 600;
}

.section-title span i {
    margin-right: 8px;
}

/* ================ 下载按钮 ================ */
.download_btn,
.links_btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 8px 16px;
    margin: 10px 5px;
    font-weight: 500;
    color: var(--bs-white);
    border-radius: 50px;
    border: none;
    transition: all 0.3s cubic-bezier(.5, 2.5, .7, .7);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.download_btn {
    background: linear-gradient(135deg, #51ec8b, #20abef);
}

.links_btn {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.download_btn:before,
.links_btn:before {
    font-family: 'FontAwesome';
    margin-right: 8px;
    font-size: 14px;
}

.download_btn:before {
    content: "\f0ed";
}

.links_btn:before {
    content: "\f0c1";
}

.download_btn:hover,
.links_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--bs-white);
}

.download_btn:hover {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

.links_btn:hover {
    background: linear-gradient(135deg, #fccb90, #d57eeb);
}

/* ================ 引用模块1 ================ */
.quote {
    display: block;
    margin: 1em;
    overflow: hidden;
}

.quote blockquote {
    background-color: var(--bs-white);
    border: solid 2px #757575;
    display: block;
    margin: 0;
    padding: 1em;
    position: relative;
}

.quote blockquote:before {
    background-color: var(--bs-white);
    bottom: -10%;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: -10%;
    transform: rotate(-15deg) skew(5deg);
}

/* 移除双引号 */
.quote blockquote::before,
.quote blockquote::after,
.animated-border-quote blockquote::before,
.animated-border-quote blockquote::after {
    content: none !important;
    display: none !important;
}

/* 强覆盖 - 移除所有可能的引号 */
.quote::before,
.quote::after,
.quote blockquote::before,
.quote blockquote::after,
.quote blockquote p::before,
.quote blockquote p::after,
.animated-border-quote::before,
.animated-border-quote::after,
.animated-border-quote blockquote::before,
.animated-border-quote blockquote::after,
.animated-border-quote blockquote p::before,
.animated-border-quote blockquote p::after {
    content: none !important;
    display: none !important;
}

.quote blockquote p {
    color: var(--bs-gray-800);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.quote blockquote cite {
    display: block;
    font-style: italic;
    text-align: right;
    color: var(--bs-gray-800);
    margin-top: 0.5em;
}

.quote blockquote cite:before {
    content: "- ";
}

.quote blockquote > * {
    position: relative;
    z-index: 1;
}

/* ================ 引用模块2 ================ */
.animated-border-quote {
    display: block;
    overflow: hidden;
    margin-bottom: 20px;
}

.animated-border-quote blockquote {
    background-color: var(--bs-white);
    border: solid 2px #757575;
    display: block;
    margin: 0;
    padding: 1em;
    position: relative;
}

@keyframes clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes counter {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.animated-border-quote blockquote:before {
    animation: clockwise 30s infinite linear;
    background-color: var(--bs-white);
    bottom: 10%;
    content: "";
    left: 0;
    opacity: 0.5;
    position: absolute;
    right: 0;
    top: 10%;
}

.animated-border-quote blockquote:after {
    animation: counter 30s infinite linear;
    background-color: var(--bs-white);
    bottom: 10%;
    content: "";
    left: 0;
    opacity: 0.5;
    position: absolute;
    right: 0;
    top: 10%;
}

.animated-border-quote blockquote p {
    color: var(--bs-gray-800);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.animated-border-quote blockquote cite {
    display: block;
    font-style: italic;
    text-align: right;
    color: var(--bs-gray-800);
    margin-top: 0.5em;
}

.animated-border-quote blockquote cite:before {
    content: "- ";
}

.animated-border-quote blockquote > * {
    position: relative;
    z-index: 1;
}

/* ================ OL列表 ================ */
ul.ol {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
}

ul.ol li {
    position: relative;
    padding: 0.5em 0 0.5em 2.5em;
    margin-bottom: 0.5em;
    color: var(--bs-gray-800);
    font-size: 16px;
}

ul.ol li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    font-weight: bold;
}

ul.ol li:after {
    content: "";
    position: absolute;
    left: 1em;
    bottom: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--bs-primary), transparent);
    opacity: 0.3;
}

/* ================ 药丸/徽章 ================ */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.875em;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    margin: 0.25rem;
    transition: all 0.3s cubic-bezier(.5, 2.5, .7, .7);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-primary { background-color: #8b3dff; color: #fff; }
.badge-secondary { background-color: #6c757d; color: #fff; }
.badge-info { background-color: #0dcaf0; color: #000; }
.badge-success { background-color: #008008; color: #fff; }
.badge-danger { background-color: #db1436; color: #fff; }
.badge-warning { background-color: #ffc107; color: #000; }
.badge-light { background-color: #f8f9fa; color: #000; }
.badge-dark { background-color: #212529; color: #fff; }

.bg-gradient-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.bg-gradient-secondary { background: linear-gradient(135deg, #8e9eab, #eef2f3); color: #212529; }
.bg-gradient-info { background: linear-gradient(135deg, #2193b0, #6dd5ed); color: #fff; }
.bg-gradient-success { background: linear-gradient(135deg, #11998e, #38ef7d); color: #fff; }
.bg-gradient-danger { background: linear-gradient(135deg, #eb3349, #f45c43); color: #fff; }
.bg-gradient-warning { background: linear-gradient(135deg, #fccb90, #d57eeb); color: #fff; }
.bg-gradient-light { background: linear-gradient(135deg, #e0e5ec, #a8c0ff); color: #212529; }
.bg-gradient-dark { background: linear-gradient(135deg, #2c3e50, #4ca1af); color: #fff; }

.mb-1 { margin-bottom: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }

/* ================ 警告框 ================ */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-primary {
    color: #412a70;
    background-color: #e8d8ff;
    border-color: #d1b1ff;
}

.alert-secondary {
    color: #41464b;
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-light {
    color: #636464;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

.alert-dark {
    color: #141619;
    background-color: #d3d3d4;
    border-color: #bcbebf;
}

/* ================ 代码高亮 - 完全重写，强覆盖 ================ */
pre.prettyprint {
    position: relative !important;
    background: linear-gradient(0deg, #d8d8d8, #ececec) !important;
    border-radius: 10px !important;
    margin-bottom: 1.6em !important;
    max-width: 100% !important;
    overflow: auto !important;
    text-shadow: none !important;
    color: #000 !important;
    padding-top: 40px !important;
    border: none !important;
}

pre.prettyprint:before {
    content: " " !important;
    position: absolute !important;
    border-radius: 50% !important;
    background: #fc625d !important;
    width: 12px !important;
    height: 12px !important;
    left: 12px !important;
    margin-top: -24px !important;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b !important;
    z-index: 10 !important;
    border: none !important;
}

pre.prettyprint ol.linenums {
    background: var(--bs-white) !important;
    border: 1px solid #ebebeb !important;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    box-shadow: inset 33px 0 0 var(--bs-white), inset 34px 0 0 #ebebeb !important;
    margin: 0 !important;
    list-style-type: decimal !important;
    list-style-position: outside !important;
}

pre.prettyprint ol.linenums li {
    padding-right: 16px !important;
    padding-left: 16px !important;
    color: #000 !important;
    list-style-type: decimal !important;
    list-style-position: outside !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* ================ 强覆盖 - 防止所有伪元素干扰 ================ */
pre.prettyprint *,
pre.prettyprint *::before,
pre.prettyprint *::after,
pre.prettyprint ol.linenums *,
pre.prettyprint ol.linenums *::before,
pre.prettyprint ol.linenums *::after {
    box-sizing: border-box !important;
}

pre.prettyprint li::before,
pre.prettyprint li::after,
pre.prettyprint ol::before,
pre.prettyprint ol::after,
pre.prettyprint ol.linenums::before,
pre.prettyprint ol.linenums::after,
pre.prettyprint ol.linenums li::before,
pre.prettyprint ol.linenums li::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
}

/* ================ 语法高亮颜色 ================ */
pre.prettyprint .com { color: #277840; }
pre.prettyprint .lit { color: #fb8d04; }
pre.prettyprint .pun,
pre.prettyprint .opn,
pre.prettyprint .clo { color: #b856d1; }
pre.prettyprint .fun { color: #dc322f; }
pre.prettyprint .str,
pre.prettyprint .atv { color: #7d8695; }
pre.prettyprint .kwd,
pre.prettyprint .tag { color: #0a12ff; }
pre.prettyprint .typ,
pre.prettyprint .atn,
pre.prettyprint .dec,
pre.prettyprint .var { color: teal; }
pre.prettyprint .pln { color: #ff006a; }

/* ================ 表单 ================ */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 50%;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mt20 {
    margin-top: 20px;
}

/* ================ Bootstrap 工具类 ================ */
.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}

.fade {
    transition: opacity .15s linear;
}

.fade:not(.show) {
    opacity: 0;
}

.show {
    opacity: 1;
}
