/* static/css/main.css */

:root {
    --jidi-primary: #B247F9;
    --jidi-secondary: #3346FF;
    --jidi-accent: #7A7CFF;
    --jidi-bg-start: #161c33;
    --jidi-bg-mid: #1b2142;
    --jidi-bg-end: #182a4e;
    --jidi-surface: rgba(255, 255, 255, 0.05);
    --jidi-surface-strong: rgba(255, 255, 255, 0.08);
    --jidi-border: rgba(178, 71, 249, 0.22);
    --jidi-text-soft: #aeb7d6;
    --jidi-text-strong: #f5f7ff;
    --app-navbar-height: 76px;
    --jidi-shell-gradient: linear-gradient(160deg, var(--jidi-bg-start) 0%, var(--jidi-bg-mid) 58%, var(--jidi-bg-end) 100%);
    --jidi-accent-gradient: linear-gradient(135deg, #B247F9 0%, #3346FF 100%);
}

/* 布局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--jidi-shell-gradient);
}
.wrapper {
    display: flex;
    flex: 1;
    padding-top: var(--app-navbar-height);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at top right, rgba(178, 71, 249, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(51, 70, 255, 0.16), transparent 28%),
        var(--jidi-shell-gradient);
}
/* 左侧导航 */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, rgba(28, 33, 62, 0.94) 0%, rgba(28, 29, 66, 0.95) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0.8rem;
    height: calc(100vh - var(--app-navbar-height));
    position: sticky;
    top: var(--app-navbar-height);
    overflow-y: auto;
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.05), 20px 0 40px rgba(0,0,0,0.22);
    transition: all 0.3s ease;
}
/* 主内容区 */
.main-content {
    flex: 1;
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at top, rgba(178, 71, 249, 0.1), transparent 24%),
        radial-gradient(circle at bottom right, rgba(51, 70, 255, 0.1), transparent 26%),
        var(--jidi-shell-gradient);
    padding-top: calc(var(--app-navbar-height) + 1.25rem);
}

/* 移动端侧边栏切换按钮 */
#sidebarToggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1060;
    background: var(--jidi-accent-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    box-shadow: 0 10px 24px rgba(178, 71, 249, 0.3);
}

/* ==== 导航栏样式优化 ==== */

/* 分类标题 - 可点击的折叠标题 */
.sidebar .nav-category {
    font-weight: 600;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--jidi-text-strong);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .nav-category:hover {
    background: linear-gradient(135deg, rgba(178,71,249,0.22), rgba(51,70,255,0.18));
    border-color: rgba(178,71,249,0.35);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sidebar .nav-category .category-icon {
    font-size: 1rem;
    color: #c792ff;
    margin-right: 0.5rem;
}

.sidebar .nav-category .toggle-icon {
    font-size: 0.8rem;
    color: var(--jidi-text-soft);
    transition: transform 0.3s ease;
}

.sidebar .nav-category[aria-expanded="true"] {
    background: var(--jidi-accent-gradient);
    color: white;
    border-color: rgba(255,255,255,0.15);
}

.sidebar .nav-category[aria-expanded="true"] .category-icon,
.sidebar .nav-category[aria-expanded="true"] .toggle-icon {
    color: white;
}

.sidebar .nav-category[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* 子菜单样式 */
.sidebar .submenu {
    padding-left: 0.5rem;
    margin-bottom: 1rem;
    border-left: 2px solid rgba(255,255,255,0.08);
}

/* 功能链接 - 更简洁 */
.sidebar .nav-link {
    color: var(--jidi-text-soft);
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

/* 功能链接前的图标 */
.sidebar .nav-link .bi {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.2s ease;
    width: 20px;
    text-align: center;
}

/* 链接悬停效果 */
.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    border-color: rgba(178,71,249,0.28);
    padding-left: 2rem;
}

.sidebar .nav-link:hover .bi {
    opacity: 1;
    color: #d3a1ff;
}

/* 激活状态 */
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(178,71,249,0.38);
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    padding-left: 2rem;
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--jidi-accent-gradient);
    border-radius: 0 3px 3px 0;
}

.sidebar .nav-category.active-category {
    background: var(--jidi-accent-gradient) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.16) !important;
    box-shadow: 0 12px 24px rgba(178, 71, 249, 0.22);
}

.sidebar .nav-category.active-category .category-icon,
.sidebar .nav-category.active-category .toggle-icon {
    color: #ffffff !important;
}

.sidebar .nav-link.active .bi {
    opacity: 1;
    color: #d3a1ff;
}

/* 侧边栏标题 */
.sidebar-heading {
    font-weight: 700;
    color: var(--jidi-text-strong);
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #B247F9, #3346FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.sidebar-heading .bi {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: #c792ff;
}

/* 平台介绍样式 */
#platform-intro {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式适配 */
@media (max-width: 991.98px) {
    .wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: fixed;
        top: var(--app-navbar-height);
        left: -100%;
        z-index: 1040;
        padding: 1rem;
        box-shadow: 2px 0 18px rgba(0,0,0,0.35);
        transition: left 0.3s ease;
    }
    .sidebar.show {
        left: 0;
    }
    .sidebar-heading {
        margin-bottom: 1rem;
    }
    #sidebarToggle {
        display: block;
    }
    .main-content {
        padding-top: calc(var(--app-navbar-height) + 1rem);
    }
}

/* 移动端遮罩层 */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 6, 18, 0.68);
    z-index: 1039;
}

@media (max-width: 991.98px) {
    .sidebar-backdrop.show {
        display: block;
    }
}

/* 选项卡样式优化 */
.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1.5rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-tabs .nav-link {
    border-radius: 0.375rem 0.375rem 0 0;
    font-weight: 500;
}
.nav-tabs .nav-link.active {
    border-color: #dee2e6 #dee2e6 white;
    background-color: white;
    font-weight: 600;
}

/* 顶部导航栏微调 */
.navbar {
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.38rem;
}

.app-navbar {
    background: linear-gradient(90deg, rgba(10, 10, 20, 0.95) 0%, rgba(22, 10, 44, 0.96) 48%, rgba(9, 26, 55, 0.96) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.app-navbar-shell {
    min-height: 76px;
    padding: 0.65rem 1rem;
    transition: min-height 0.3s ease, padding 0.3s ease;
}

.app-navbar .navbar-brand,
.app-navbar .nav-link,
.app-footer p {
    color: var(--jidi-text-strong) !important;
}

.app-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.4rem 0.25rem 0;
    transition: transform 0.3s ease;
}

.app-navbar .brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(178, 71, 249, 0.22), rgba(51, 70, 255, 0.22));
    border: 1px solid rgba(178, 71, 249, 0.24);
    box-shadow: 0 12px 24px rgba(178, 71, 249, 0.16);
    transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
}

.app-navbar .brand-mark .bi {
    font-size: 1.2rem;
    color: #f5eaff;
    transition: font-size 0.3s ease;
}

.app-navbar .brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.app-navbar .brand-text {
    font-size: 1.42rem;
    font-weight: 800;
    background: var(--jidi-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: font-size 0.3s ease;
}

.app-navbar .brand-subtitle {
    margin-top: 0.16rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
}

.app-nav-links {
    gap: 0.35rem;
}

.app-navbar .nav-link {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    position: relative;
    transition: color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
    opacity: 0.86;
}

.app-navbar .nav-link:hover {
    opacity: 1;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.app-navbar .nav-link.is-active {
    opacity: 1;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(178, 71, 249, 0.28), rgba(51, 70, 255, 0.22));
    border: 1px solid rgba(178, 71, 249, 0.36);
    box-shadow: 0 10px 20px rgba(178, 71, 249, 0.15);
}

.app-navbar .nav-link.is-active::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e7d2ff;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(178, 71, 249, 0.9);
}

.app-navbar .nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(178, 71, 249, 0), rgba(178, 71, 249, 0.95), rgba(51, 70, 255, 0.95), rgba(51, 70, 255, 0));
    box-shadow: 0 0 16px rgba(125, 84, 255, 0.7);
}

.app-navbar .nav-link-home {
    background: linear-gradient(135deg, rgba(178, 71, 249, 0.22), rgba(51, 70, 255, 0.2));
    border: 1px solid rgba(178, 71, 249, 0.32);
    box-shadow: 0 10px 22px rgba(178, 71, 249, 0.12);
}

.app-navbar .nav-link-home:hover {
    background: linear-gradient(135deg, rgba(178, 71, 249, 0.34), rgba(51, 70, 255, 0.28));
}

.app-navbar .nav-link-platform {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-navbar .nav-link-blog {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-navbar .nav-link-platform:hover,
.app-navbar .nav-link-platform.is-active,
.app-navbar .nav-link-blog:hover,
.app-navbar .nav-link-blog.is-active {
    background: linear-gradient(135deg, rgba(178, 71, 249, 0.26), rgba(51, 70, 255, 0.2));
    border-color: rgba(178, 71, 249, 0.3);
}

.app-navbar .nav-link-order {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    opacity: 0.9;
}

.app-navbar .nav-link-order:hover,
.app-navbar .nav-link-order.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(178, 71, 249, 0.26), rgba(51, 70, 255, 0.2));
    border-color: rgba(178, 71, 249, 0.3);
    box-shadow: 0 10px 20px rgba(178, 71, 249, 0.15);
}

.app-navbar .nav-user-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88) !important;
    cursor: default;
}

.app-navbar .navbar-brand.is-active .brand-mark {
    background: linear-gradient(135deg, rgba(178, 71, 249, 0.3), rgba(51, 70, 255, 0.28));
}

.app-navbar.scrolled {
    background: linear-gradient(90deg, rgba(10, 10, 20, 0.92) 0%, rgba(18, 8, 38, 0.94) 48%, rgba(9, 24, 49, 0.94) 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
}

.app-navbar.scrolled .app-navbar-shell {
    min-height: 64px;
    padding: 0.35rem 1rem;
}

.app-navbar.scrolled .navbar-brand {
    transform: scale(0.97);
}

.app-navbar.scrolled .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(178, 71, 249, 0.14);
}

.app-navbar.scrolled .brand-mark .bi {
    font-size: 1.05rem;
}

.app-navbar.scrolled .brand-text {
    font-size: 1.28rem;
}

.app-navbar.scrolled .brand-subtitle {
    font-size: 0.66rem;
    opacity: 0.72;
    transform: translateY(-1px);
}

.app-navbar.scrolled .nav-link {
    padding: 0.58rem 0.9rem;
}

.app-navbar.scrolled .nav-link.is-active::before {
    bottom: 5px;
}

.app-navbar.scrolled .nav-link.is-active::after {
    bottom: -5px;
}

.app-navbar .navbar-toggler {
    padding: 0.55rem 0.8rem;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.app-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(178, 71, 249, 0.28);
}

.app-navbar .navbar-collapse {
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .app-navbar .navbar-collapse {
        margin-top: 0;
    }

    /* 顶部三项导航统一宽度节奏 */
    .app-nav-links .nav-link-home,
    .app-nav-links .nav-link-platform,
    .app-nav-links .nav-link-blog,
    .app-nav-links .nav-link-order {
        min-width: 132px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    .app-navbar-shell {
        min-height: 72px;
    }

    .app-navbar .brand-text {
        font-size: 1.15rem;
    }

    .app-navbar .brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }

    .app-nav-links {
        gap: 0.15rem;
        padding-top: 0.75rem;
    }

    .app-navbar .nav-link {
        border-radius: 14px;
    }

    .app-navbar.scrolled .app-navbar-shell {
        min-height: 68px;
        padding: 0.4rem 1rem;
    }
}

/* 页脚样式 */
footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}

.app-footer {
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.94) 0%, rgba(18, 9, 43, 0.98) 100%);
}

.app-footer .text-muted {
    color: var(--jidi-text-soft) !important;
}

/* 以下是从提供的style.css中添加的样式 */

/* 添加阴影和抬升效果 */
.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* 渐变背景动画 */
.gradient-hover {
    background: white;
    position: relative;
    z-index: 1;
}

.gradient-hover::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, #e1f5fe, #f3e5f5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.gradient-hover:hover::before {
    opacity: 1;
}

/* 装饰元素动画 */
.hover-dots {
    color: transparent;
    text-shadow: 0 0 8px #aaa;
    transition: all 0.3s;
}
.gradient-hover:hover .hover-dots {
    color: #0d6efd;
    text-shadow: none;
}

/* 统一表单控件样式 */
.form-control {
    height: 45px;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    transition: all 0.3s;
}

/* 标签样式 */
.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* 错误提示样式 */
.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* 表单组统一间距 */
.form-group {
    margin-bottom: 1.5rem;
}

/* 使所有输入框等宽 */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
}

/* 自定义颜色变量 */
:root {
    --primary: #5e72e4;
    --primary-soft: rgba(94, 114, 228, 0.1);
    --secondary: #f7fafc;
    --success: #48bb78;
    --success-soft: rgba(72, 187, 120, 0.1);
    --info: #4299e1;
    --warning: #ed8936;
    --danger: #f56565;
    --light: #ffffff;
    --dark: #2d3748;
    --gray: #718096;
    --gray-light: #e2e8f0;
}

/* 基础样式增强 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* 按钮样式增强 */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* 渐变标题背景通用样式 */
.title-gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    padding: 2rem;
}

.title-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
}

.title-gradient-bg h1,
.title-gradient-bg p {
    position: relative;
    z-index: 1;
}

/* 音频处理功能专用渐变色 */
.audio-gradient {
    --gradient-start: #0d6efd;
    --gradient-end: #0dcaf0;
}

/* 文字颜色辅助类 */
.text-white-80 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 为不同的功能类别准备的颜色方案（未来扩展用） */
.textgrid-gradient {
    --gradient-start: #20c997;
    --gradient-end: #198754;
}

.analysis-gradient {
    --gradient-start: #ffc107;
    --gradient-end: #fd7e14;
}

.visualization-gradient {
    --gradient-start: #6f42c1;
    --gradient-end: #d63384;
}

.tools-gradient {
    --gradient-start: #6c757d;
    --gradient-end: #495057;
}

.order-gradient {
    --gradient-start: #ff7a18;
    --gradient-end: #c43a00;
}

.order-textarea {
    height: auto;
    min-height: 120px;
}

.order-textarea-md {
    min-height: 150px;
}

.order-textarea-lg {
    min-height: 220px;
}

/* 颜色样式库 - 扩展更多配色 */
/* 绿色 */
.card-header-green { 
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); 
}
.bg-green\/10 { 
    background-color: rgba(76, 175, 80, 0.1); 
}
.text-green { 
    color: #388E3C; 
}

/* 青色 */
.card-header-teal { 
    background: linear-gradient(135deg, #20B2AA 0%, #008080 100%); 
}
.bg-teal\/10 { 
    background-color: rgba(32, 178, 170, 0.1); 
}
.text-teal { 
    color: #008080; 
}

/* 橙色 */
.card-header-orange { 
    background: linear-gradient(135deg, #FF7B25 0%, #E55A00 100%); 
}
.bg-orange\/10 { 
    background-color: rgba(255, 123, 37, 0.1); 
}
.text-orange { 
    color: #E55A00; 
}

/* 靛蓝色 */
.card-header-indigo {
    background: linear-gradient(135deg, #5C6BC0 0%, #3F51B5 100%);
}
.bg-indigo\/10 {
    background-color: rgba(92, 107, 192, 0.1);
}
.text-indigo {
    color: #3F51B5;
}

/* 青色(cyan) */
.card-header-cyan {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}
.bg-cyan\/10 {
    background-color: rgba(0, 188, 212, 0.1);
}
.text-cyan {
    color: #0097A7;
}

/* 紫色(purple) */
.card-header-purple {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}
.bg-purple\/10 {
    background-color: rgba(156, 39, 176, 0.1);
}
.text-purple {
    color: #7B1FA2;
}

/* 红色 */
.card-header-red {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
}
.bg-red\/10 {
    background-color: rgba(244, 67, 54, 0.1);
}
.text-red {
    color: #D32F2F;
}

/* 蓝色 */
.card-header-blue {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}
.bg-blue\/10 {
    background-color: rgba(33, 150, 243, 0.1);
}
.text-blue {
    color: #1976D2;
}

/* 黄色 */
.card-header-yellow {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
}
.bg-yellow\/10 {
    background-color: rgba(255, 193, 7, 0.1);
}
.text-yellow {
    color: #FF8F00;
}

/* 间距优化 */
.mb-8 {
    margin-bottom: 4rem !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .title-gradient-bg {
        padding: 1.5rem;
    }
}

/* 教学专用渐变 */
.tutorial-gradient {
    --gradient-start: #6a11cb;
    --gradient-end: #2575fc;
}

/* 步骤条样式 */
.step-container {
    counter-reset: step-counter;
}

.step-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 代码演示区 */
.code-demo {
    background: #282c34;
    border-radius: 8px;
    overflow: hidden;
}

.demo-controls {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-output {
    min-height: 200px;
    padding: 1rem;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', monospace;
}

/* 波形显示 */
.waveform-container {
    background: #f8f9fa;
    border-radius: 5px;
    height: 120px;
    position: relative;
}

/* 对比图表 */
.comparison-chart {
    height: 200px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .code-demo {
        flex-direction: column;
    }
    
    .step-item {
        padding-left: 2.5rem;
    }
}

/* 确保侧边栏在桌面端正常显示 */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0) !important;
    }
}

/* 移动端侧边栏样式 */
.sidebar {
    transition: transform 0.3s ease;
}

.sidebar.show {
    transform: translateX(0);
}

/* 初始状态下移动端侧边栏隐藏 */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
}

/* 遮罩层 */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    display: none;
}

.sidebar-backdrop.show {
    display: block;
}

/* 分类标题样式 */
.nav-category {
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: #495057;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-category:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 子菜单样式 */
.submenu {
    padding-left: 1.5rem;
}

/* 活动链接样式 */
.nav-link.active {
    color: #0d6efd !important;
    font-weight: 500;
    background-color: rgba(13, 110, 253, 0.1);
}

/* 添加到现有 main.css 文件的末尾 */

/* 优雅的边框容器 - 更美观的设计 */
.elegant-container {
    max-width: 1600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    
    /* 优雅的渐变边框 */
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(13, 110, 253, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    
    /* 背景渐变 */
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 202, 240, 0.02) 0%, transparent 50%);
}

/* 容器顶部装饰线 */
.elegant-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(13, 110, 253, 0.3) 20%, 
        rgba(13, 110, 253, 0.6) 50%, 
        rgba(13, 110, 253, 0.3) 80%, 
        transparent 100%);
    border-radius: 0 0 3px 3px;
    z-index: 1;
}

/* 容器角部装饰 */
.elegant-container::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(13, 110, 253, 0.03) 0%, 
        rgba(13, 202, 240, 0.03) 100%);
    z-index: -1;
    pointer-events: none;
}

/* 页面标题区域 - 调整间距 */
.page-header {
    margin-bottom: 2rem;
}

/* 标题背景微调 */
.title-gradient-bg {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15) !important;
}

/* 主内容网格布局 */
.main-content-grid {
    margin-top: 0;
}

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

/* 结果区域 */
.results-section {
    margin-top: 0;
}

/* 内部卡片样式 */
.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px !important;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: rgba(13, 110, 253, 0.2);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.08) !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 内部卡片圆角 */
.rounded-3 {
    border-radius: 12px !important;
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .elegant-container {
        max-width: 95%;
    }
}

@media (max-width: 1200px) {
    .elegant-container {
        max-width: 98%;
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .elegant-container {
        max-width: 100%;
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .elegant-container::before {
        left: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .elegant-container {
        padding: 1rem;
        border-radius: 10px;
        margin: 0 0.5rem;
    }
    
    .title-gradient-bg {
        padding: 1.25rem !important;
    }
    
    .title-gradient-bg h1 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-header {
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .elegant-container {
        padding: 0.75rem;
        margin: 0;
        border-radius: 8px;
    }
    
    .container-fluid.py-4 {
        padding: 1rem 0.5rem !important;
    }
}

/* 确保内容区域有足够的间距 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

/* 按钮样式微调 */
.btn-lg {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
}

/* 渐变边框悬停效果 */
.elegant-container:hover {
    border-color: rgba(13, 110, 253, 0.15);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(13, 110, 253, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

/* 当前功能导航深色高亮（覆盖前面浅色激活样式） */
.sidebar .nav-link.active {
    background: linear-gradient(135deg, #0b5ed7, #0d6efd) !important;
    color: #ffffff !important;
    border-color: #0a58ca !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25) !important;
}

.sidebar .nav-link.active .bi {
    color: #ffffff !important;
    opacity: 1 !important;
}

.sidebar .nav-link.active::before {
    background-color: #ffffff !important;
}

/* 自定义清空文件按钮样式 */
.clear-files-btn {
    height: 45px !important;
    padding: 0 12px !important;
    margin-left: 8px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dee2e6 !important;
}

.btn-primary:hover {
    background-color: #053387 !important;
    border-color: #ced4da !important;
}

/* 添加到 main.css 文件末尾 */

/* 音频切分专用渐变色 */
.split-gradient {
    --gradient-start: #198754;
    --gradient-end: #20c997;
}

/* 音频切分页面容器样式 */
.split-container {
    border: 1px solid rgba(25, 135, 84, 0.08);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(25, 135, 84, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(25, 135, 84, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(32, 201, 151, 0.02) 0%, transparent 50%);
}

.split-container::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(25, 135, 84, 0.3) 20%, 
        rgba(25, 135, 84, 0.6) 50%, 
        rgba(25, 135, 84, 0.3) 80%, 
        transparent 100%);
}

.split-container::after {
    background: linear-gradient(135deg, 
        rgba(25, 135, 84, 0.03) 0%, 
        rgba(32, 201, 151, 0.03) 100%);
}

/* 清空文件按钮样式调整 */
.clear-files-btn {
    height: 38px;
    padding: 0 12px;
    margin-left: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.clear-files-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* 表格样式优化 */
.table-hover tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.05);
}

/* 统计卡片样式 */
.card .alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    color: #198754;
}

/* 绿色按钮渐变 */
.btn-success {
    background: linear-gradient(135deg, #198754, #20c997);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #157347, #1ba87e);
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-outline-success {
    color: #198754;
    border-color: #198754;
}

.btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
}

/* 进度条颜色调整 */
.progress-bar {
    background: linear-gradient(90deg, #198754, #20c997);
}

/* 旋转器颜色调整 */
.spinner-border.text-success {
    color: #198754 !important;
}

/* 徽章颜色调整 */
.badge.bg-success {
    background: linear-gradient(135deg, #198754, #20c997) !important;
    border: none;
}

/* 渐变边框悬停效果 */
.split-container:hover {
    border-color: rgba(25, 135, 84, 0.15);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(25, 135, 84, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}