:root{
    --bg: #0b0d0f;
    --text: #1f2328;
    --muted: #6c757d;
    --card: #ffffff;
    --primary: #0d6efd;
    --success: #10b981;
    --danger: #ef4444;
    --success-bg: #d1e7dd;
    --info-bg: #cff4fc;
    --danger-bg: #f8d7da;
    --border: #e5e7eb;
}
@media (prefers-color-scheme: dark){
    :root{
        --bg: #0b0d0f;
        --text: #e5e7eb;
        --muted: #9aa4af;
        --card: #14171a;
        --primary: #3b82f6;
        --success: #10b981;
        --danger: #ef4444;
        --success-bg: rgba(16,185,129,.15);
        --info-bg: rgba(59,130,246,.12);
        --danger-bg: rgba(239,68,68,.14);
        --border: #26323a;
    }
}
html, body { height: 100%; }
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 56px;
    background: linear-gradient(180deg, rgba(2,6,23,.04), rgba(2,6,23,0)) , #f8fafc;
    color: var(--text);
}
@media (prefers-color-scheme: dark){
    body{ background: linear-gradient(180deg, rgba(2,6,23,.6), rgba(2,6,23,.3)) , var(--bg); }
}
.content {
    flex: 1;
}
.footer {
    background-color: rgba(248,249,250,.8);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}
@media (prefers-color-scheme: dark){ .footer{ background-color: rgba(20,23,26,.6); } }

/* Navbar glass effect */
.navbar{ backdrop-filter: saturate(180%) blur(8px); -webkit-backdrop-filter: saturate(180%) blur(8px); }
.navbar.bg-dark{ background-color: rgba(17,24,39,.88) !important; border-bottom: 1px solid rgba(255,255,255,.06); }

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.list-group-item a {
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.list-group-item.success {
    background-color: var(--success-bg);
}
.list-group-item.info {
    background-color: var(--info-bg);
}
.list-group-item.danger {
    background-color: var(--danger-bg);
}
.list-group-item:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
a {
    text-decoration: none; /* 取消下划线 */
}

/* List group link hover and arrow */
.list-group-item a:hover{
    background-color: rgba(2,6,23,.03);
}
.list-group-item .arrow{
    font-weight: 700;
    opacity: .56;
    transition: transform .15s ease, opacity .15s ease;
}
.list-group-item a:hover .arrow{
    transform: translateX(2px);
    opacity: 1;
}
a {
    text-decoration: none; /* 取消下划线 */
}

/* Cards */
.card{ border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.card-header{ background: rgba(2,6,23,.03); font-weight: 600; }
@media (prefers-color-scheme: dark){ .card-header{ background: rgba(255,255,255,.03); }}

/* Feature cards on index */
.feature-card{
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex; /* 自适应高度布局 */
}
.feature-card:hover{ box-shadow: 0 10px 24px rgba(0,0,0,.12); cursor: pointer; }
.feature-card::before{
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--primary);
    opacity: .9;
}
.card-accent-success{ /* 纯色卡片背景，颜色条区分类型 */ }
.card-accent-info{ /* 纯色卡片背景，颜色条区分类型 */ }
.card-accent-danger{ /* 纯色卡片背景，颜色条区分类型 */ }
.card-accent-success::before{ background: var(--success); }
.card-accent-info::before{ background: var(--primary); }
.card-accent-danger::before{ background: var(--danger); }
.feature-card .card-body{ display: flex; align-items: center; width: 100%; height: auto; }
.feature-card .card-body a{ color: inherit; text-decoration: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; width: 100%; gap: 12px; }
.feature-card .badge{ flex: 0 0 auto; }
.feature-card .label{ flex: 1 1 auto; white-space: normal; overflow: visible; display: block; }
.feature-card .arrow{ flex: 0 0 auto; }
.feature-card .card-body a:hover{ background-color: rgba(2,6,23,.03); }
.feature-card .card-body a:focus-visible{ outline: 2px solid var(--primary); outline-offset: 2px; }
.feature-card .arrow{ font-weight: 700; opacity: .56; transition: transform .15s ease, opacity .15s ease; }
.feature-card .card-body a:hover .arrow{ transform: translateX(2px); opacity: 1; }

/* Feature tiles (image top, text below) */
.tile-link{ text-decoration: none; }
.feature-tile{ border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; background: var(--card); }
.feature-tile:hover{ box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.tile-illustration{ height: 120px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.tile-success .tile-illustration{ background: var(--success-bg); }
.tile-info .tile-illustration{ background: var(--info-bg); }
.tile-danger .tile-illustration{ background: var(--danger-bg); }
.tile-body{ padding: 14px 16px; text-align: center; }
.tile-code{ display: block; margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/*for 404*/
.error-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.error-card {
    border: none; /* Remove the border from the card */
}
.card-title, .card-text {
    white-space: nowrap;
}

/*for image*/
.bs-dropzone {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow .2s ease, transform .2s ease;
}
.bs-dropzone:hover {
    background-color: rgba(2,6,23,.03);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
.progress {
    margin-top: 20px;
}
.bs-docs-section {
    margin-top: 80px;
}

/*for services*/

.service-card {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 80px;
}

.service-card h5 {
    margin-top: 20px; /* 你可以根据需要调整这个值 */
}

/* Hero section */
.hero{
    background: radial-gradient(1000px 600px at 10% 0%, rgba(14,165,233,.12), transparent),
                radial-gradient(1100px 700px at 90% -10%, rgba(99,102,241,.12), transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 48px);
    box-shadow: 0 20px 60px rgba(0,0,0,.06);
}
.hero h1{ font-weight: 800; letter-spacing: .2px; }
.hero p{ color: var(--muted); font-size: clamp(14px, 2vw, 16px); }

/* Responsive tweaks */
@media (max-width: 576px){
    .badge{ display: none; }
}

/* Back to top */
.back-to-top{
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1030;
    background: var(--primary);
    color: #fff;
    border: none;
    outline: none;
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.back-to-top:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0,0,0,.22);
}