/* CDNJS 镜像服务 - 主样式文件 */
:root {
    --primary: #ffacc7;
    /* 更柔和的粉色主色调 */
    --primary-dark: #ff8aac;
    --primary-light: #fff5f8;
    --secondary: #fffafb;
    /* 更淡的粉色背景 */
    --accent: #ffc2d6;
    /* 柔和的粉色强调色 */
    --success: #b8e6b8;
    /* 柔和的淡绿色 */
    --info: #c5e8f7;
    /* 柔和的淡蓝色 */
    --warning: #ffe0b8;
    /* 柔和的淡橙色 */
    --danger: #ffb8c2;
    /* 柔和的淡红色 */
    --light: #ffffff;
    /* 纯白背景 */
    --bg-gray: #fffafb;
    /* 淡粉色灰色背景 */
    --surface: #ffffff;
    /* 表面颜色 */
    --border-light: #ffeef2;
    /* 边框颜色 */
    --text-primary: #6a4b5a;
    /* 主要文字 - 更柔和的深粉色 */
    --text-secondary: #b298a3;
    /* 次要文字 - 更柔和的浅粉色 */
    --dark: #6a4b5a;
    /* 深色 - 更柔和的深粉色 */
    --text-disabled: #e0d1d8;
    /* 禁用文字 */
    --border: #ffdde6;
    /* 边框色 */
    --border-light: #fff2f5;
    /* 浅边框 */
    --shadow: 0 4px 12px rgba(255, 172, 199, 0.18);
    /* 粉色轻微阴影 */
    --shadow-hover: 0 8px 24px rgba(255, 172, 199, 0.25);
    /* 粉色悬停阴影 */
    --shadow-card: 0 4px 12px rgba(255, 172, 199, 0.15), 0 2px 6px rgba(255, 172, 199, 0.1);
    /* 粉色卡片阴影 */
    --transition: all 0.3s cubic-bezier(0.34, 0.69, 0.1, 1);
    /* 卡通风格过渡 */
}

/* 夜间模式配色 */
[data-theme="dark"] {
    --primary: #ffacc7;
    /* 粉色主色调 */
    --primary-dark: #ff8aac;
    --primary-light: #2a1f25;
    --secondary: #1a1416;
    /* 夜间深色背景 */
    --accent: #ffc2d6;
    /* 粉色强调色 */
    --success: #88d4b5;
    --info: #95d8f7;
    --warning: #ffd8a8;
    --danger: #ffb8c2;
    --light: #1a1416;
    /* 夜间深色背景 */
    --bg-gray: #1a1416;
    /* 夜间灰色背景 */
    --surface: #2a1f25;
    /* 夜间表面颜色 */
    --border-light: #3a2d35;
    /* 夜间边框颜色 */
    --text-primary: #ffffff;
    /* 夜间主要文字 */
    --text-secondary: #d9c2c9;
    /* 夜间次要文字 */
    --dark: #ffffff;
    /* 夜间深色文字 */
    --text-disabled: #8a7a82;
    /* 夜间禁用文字 */
    --border: #4a3d45;
    /* 夜间边框色 */
    --border-light: #3a2d35;
    /* 夜间浅边框 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* 夜间轻微阴影 */
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    /* 夜间悬停阴影 */
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3);
    /* 夜间卡片阴影 */
}

/* 夜间模式下的卡通装饰 */
[data-theme="dark"] .cartoon-cloud,
[data-theme="dark"] .cartoon-star,
[data-theme="dark"] .cartoon-heart {
    opacity: 0.15;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

[data-theme="dark"] .cartoon-cloud {
    color: #6a4b5a;
}

[data-theme="dark"] .cartoon-star {
    color: #8a7a82;
}

[data-theme="dark"] .cartoon-heart {
    color: #ff8aac;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1416 0%, #2a1f25 50%, #1a1416 100%);
}

[data-theme="dark"] body::before {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 172, 199, 0.08) 0px, transparent 80px),
        radial-gradient(circle at 80% 30%, rgba(255, 138, 172, 0.06) 0px, transparent 60px),
        radial-gradient(circle at 40% 70%, rgba(255, 194, 214, 0.1) 0px, transparent 100px);
}

[data-theme="dark"] .navbar {
    background: rgba(42, 31, 37, 0.95);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .search-input {
    background: rgba(42, 31, 37, 0.9);
    border: 3px solid var(--border);
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .result-card {
    background: rgba(42, 31, 37, 0.9);
    border: 2px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
                0 4px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .file-info {
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background-color: transform;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
    background-color: transform !important;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 0 transform !important;
}

body {
    background-color: var(--bg-gray);
    /*font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
    font-family: 'Comic Sans MS', 'Bubblegum Sans', cursive, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 14px;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* 添加主页背景渐变 */
    background: linear-gradient(135deg, #fff5f7 0%, #ffe6ea 50%, #fff0f3 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 182, 193, 0.1) 0px, transparent 80px),
        radial-gradient(circle at 90% 30%, rgba(255, 158, 177, 0.08) 0px, transparent 60px),
        radial-gradient(circle at 30% 70%, rgba(255, 182, 193, 0.12) 0px, transparent 100px),
        radial-gradient(circle at 70% 80%, rgba(255, 158, 177, 0.15) 0px, transparent 70px);
    pointer-events: none;
    z-index: -2;
}

a {
    text-decoration: none;
}

/* 夜间模式切换按钮 */
.theme-toggle {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
    margin-left: 8px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.theme-toggle:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

.theme-toggle i {
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

/* 导航栏布局优化 */
.navbar-collapse {
    flex-grow: 1;
}

.navbar-nav.ms-auto {
    margin-left: auto !important;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 夜间模式按钮在导航栏中的样式 */
.navbar-nav .nav-item:last-child {
    display: flex;
    align-items: center;
    margin-left: 8px;
}



/* 确保移动端导航栏正确显示 */
@media (max-width: 991.98px) {
    .navbar-nav {
        justify-content: flex-end;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin-bottom: 4px;
    }

    .navbar-nav .nav-item:last-child {
        margin-top: 8px;
        margin-left: 0;
    }

    .theme-toggle {
        margin-left: 0;
    }
}

/* 导航栏样式 - 卡通风格 */
.navbar {
    /* background: rgba(255, 255, 255, 0.95); */
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 158, 177, 0.2);
    border-radius: 0 0 20px 20px;
    margin: 0 10px;
    width: calc(100% - 20px);
    -webkit-backdrop-filter: saturate(5) blur(20px);
    backdrop-filter: saturate(5) blur(20px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-shadow: 2px 2px 0px rgba(255, 182, 193, 0.3);
}

.navbar-brand:hover {
    color: var(--primary-dark);
    transform: scale(1.05) rotate(-2deg);
}

.navbar-brand i {
    font-size: 24px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 182, 193, 0.5);
    animation: bounce 2s ease-in-out infinite;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    margin: 0 4px;
    border-radius: 20px;
    padding: 8px 16px !important;
    font-size: 14px;
    height: 40px;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 158, 177, 0.1), rgba(255, 182, 193, 0.05));
    box-shadow: 0 2px 8px rgba(255, 158, 177, 0.1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), rgba(255, 182, 193, 0.2));
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 158, 177, 0.2);
}

.nav-link i {
    margin-right: 6px;
    font-size: 16px;
    transition: var(--transition);
}

.nav-link:hover i {
    transform: rotate(15deg) scale(1.2);
}

/* 首页区域 */
.hero-section {
    /*background: var(--light);*/
    color: var(--dark);
    padding: 48px 0 64px;
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* 搜索框样式 - 卡通风格 */
.search-container {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    z-index: 10;
}

.search-input {
    border-radius: 25px;
    padding: 16px 20px;
    border: 3px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--dark);
    box-shadow: 0 8px 25px rgba(255, 158, 177, 0.2),
                inset 0 2px 5px rgba(255, 182, 193, 0.1);
    font-family: 'Comic Sans MS', 'Marker Felt', sans-serif;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(255, 158, 177, 0.3),
                inset 0 3px 8px rgba(255, 182, 193, 0.15);
    outline: none;
    transform: scale(1.02);
}

.search-input::placeholder {
    color: var(--text-disabled);
    font-style: italic;
}

/* 搜索建议 */
.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--light);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    text-align: left;
    color: var(--dark);
    animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-gray);
}

.suggestion-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* 结果卡片 - 卡通风格 */
.result-card {
    border: 2px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 158, 177, 0.15),
                0 4px 10px rgba(255, 182, 193, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    animation: cardAppear 0.5s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-card:hover {
    box-shadow: 0 12px 35px rgba(255, 158, 177, 0.25),
                0 6px 15px rgba(255, 182, 193, 0.15);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    opacity: 0.8;
}

.result-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-light);
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.result-badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background-color: var(--bg-gray);
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.result-badge.bg-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.result-badge.bg-success {
    background-color: #e8f5e8;
    color: var(--success);
    border-color: var(--success);
}

/* 版本徽章特殊样式 */
.version-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 4px rgba(22, 100, 255, 0.2);
}

/* 许可证徽章特殊样式 */
.license-badge {
    background-color: var(--accent);
    color: white;
    font-weight: 500;
    border: none;
}

.result-description {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

.result-body {
    padding: 16px 20px 20px;
}

.version-selector {
    margin-bottom: 1.5rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-gray);
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    animation: fadeIn 0.3s ease-out;
}

.file-item:hover {
    transform: translateX(5px);
    background-color: var(--primary-light);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    font-size: 1.25rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

/* 加载动画 */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
    border-color: var(--primary) var(--secondary) var(--accent) var(--info);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 全局加载遮罩 */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

[data-theme="dark"] .global-loading {
    background-color: rgba(0, 0, 0, 0.8);
}

.global-loading.visible {
    opacity: 1;
    visibility: visible;
}

.global-loading-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

.result-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.result-item__tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    background-color: var(--bg-gray);
    color: var(--text-secondary);
    font-weight: 400;
    transition: var(--transition);
    cursor: pointer;
}

.result-item__tag:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .search-container {
        padding: 0 1rem;
    }

    .result-meta {
        gap: 0.5rem;
    }

    .file-actions {
        flex-wrap: wrap;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        margin-left: 0;
    }

    .theme-toggle i {
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(255, 158, 177, 0.3);
    transform: translateY(20px);
}

.back-to-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: 1;
}

.back-to-top-icon {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L4 10h3v8h10v-8h3L12 2zm0 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.back-to-top-icon::before {
    content: "";
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 158, 177, 0.4);
}

.back-to-top:hover .back-to-top-icon {
    transform: translateY(-5px);
}

.back-to-top:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px rgba(255, 158, 177, 0.3);
}

.back-to-top .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.8s linear;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 75px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .back-to-top-icon {
        font-size: 1.3rem;
    }
}

.backToTop-scroll-progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    z-index: 0;
}

.backToTop-scroll-progress-indicator::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.backToTop-scroll-progress-indicator::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    border: 2px solid white;
    clip-path: var(--scroll-progress, polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%));
    transition: clip-path 0.3s ease;
}

.back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* 按钮样式 - 卡通风格 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(255, 158, 177, 0.4),
                0 2px 5px rgba(255, 182, 193, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 158, 177, 0.6),
                0 4px 10px rgba(255, 182, 193, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 158, 177, 0.3);
}

.btn-outline-secondary {
    border-radius: 6px;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-secondary);
    border-color: var(--border);
    background-color: var(--light);
}

.btn-outline-secondary:hover {
    background-color: var(--bg-gray);
    border-color: var(--border);
    color: var(--dark);
}

.btn-sm {
    border-radius: 4px;
    transition: var(--transition);
    font-size: 12px;
    padding: 6px 12px;
}

.btn-outline-success:hover {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-outline-info:hover {
    background-color: var(--info);
    border-color: var(--info);
    color: white;
}

/* 科技风格装饰 */
.tech-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    color: rgba(255, 255, 255, 0.5);
}

/* 表单元素样式 */
.form-select {
    border-radius: 8px;
    border-color: var(--border);
    transition: var(--transition);
    font-size: 0.875rem;
    background-color: var(--light);
    color: var(--dark);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
    outline: none;
}

/* 模态框样式 */
#infoModal .modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

#infoModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
    background-color: var(--light);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#infoModal .modal-footer {
    background-color: var(--bg-gray);
    border-top: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
}

#infoModal .modal-body {
    background-color: var(--light);
    color: var(--dark);
}

/* 帮助和关于页面样式 */
.help-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.help-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.help-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

.help-content {
    flex: 1;
}

.help-examples {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.help-steps {
    padding-left: 0;
    counter-reset: step-counter;
}

.help-steps li {
    margin-bottom: 12px;
    position: relative;
    list-style: none;
    padding-left: 24px;
    counter-increment: step-counter;
}

.help-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* 关于页面样式 */
.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.about-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.about-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-section {
    margin-bottom: 2rem;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.arch-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-gray);
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.arch-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.arch-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 1.75rem;
    margin-top: 0.25rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: rotate(15deg) scale(1.2);
}

.feature-content h5 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--dark);
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 动画类 */
.card-animation {
    animation: cardAppear 0.5s ease-out;
}

.loading-animation {
    animation: fadeIn 0.5s ease-out;
}

.page-transition {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 主内容区显示/隐藏控制 */
#main-content {
    transition: all 0.3s ease-out;
}

/* 卡通风格背景装饰 */
.cartoon-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.cartoon-cloud,
.cartoon-star,
.cartoon-heart,
.cartoon-sparkle {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.4;
    animation: floatAnimation 8s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(255, 172, 199, 0.4));
    z-index: 1;
}

.cartoon-cloud {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(255, 194, 214, 0.6);
    font-size: 3rem;
}

.cartoon-star {
    color: #fffacd;
    animation-delay: 1s;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.cartoon-heart {
    color: #ffacc7;
    animation-delay: 2s;
    text-shadow: 0 0 12px rgba(255, 172, 199, 0.6);
}

.cartoon-sparkle {
    color: #b8e6ff;
    animation-delay: 3s;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(184, 230, 255, 0.6);
}

/* 装饰元素位置和动画 */
.cloud-1 {
    top: 15%;
    left: 5%;
    animation-duration: 12s;
}

.cloud-2 {
    top: 55%;
    right: 8%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.cloud-3 {
    top: 25%;
    right: 20%;
    animation-duration: 18s;
    animation-delay: 6s;
}

.star-1 {
    top: 10%;
    right: 12%;
    animation-duration: 8s;
}

.star-2 {
    top: 65%;
    left: 12%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.star-3 {
    top: 35%;
    left: 25%;
    animation-duration: 14s;
    animation-delay: 4s;
}

.heart-1 {
    top: 20%;
    left: 35%;
    animation-duration: 9s;
}

.heart-2 {
    top: 60%;
    right: 30%;
    animation-duration: 11s;
    animation-delay: 5s;
}

.sparkle-1 {
    top: 45%;
    left: 15%;
    animation-duration: 7s;
}

.sparkle-2 {
    top: 30%;
    right: 40%;
    animation-duration: 9s;
    animation-delay: 2s;
}

.sparkle-3 {
    top: 70%;
    right: 15%;
    animation-duration: 11s;
    animation-delay: 4s;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-25px) translateX(15px) scale(1.15) rotate(8deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-12px) translateX(-8px) scale(1.08) rotate(-5deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(15px) translateX(8px) scale(0.92) rotate(4deg);
        opacity: 0.35;
    }
}

/* 添加脉动动画效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.cartoon-heart {
    animation: floatAnimation 9s ease-in-out infinite, pulse 3s ease-in-out infinite;
}

.cartoon-star {
    animation: floatAnimation 10s ease-in-out infinite, pulse 4s ease-in-out infinite 1s;
}
