/* ==========================================================================
   全局样式
   ========================================================================== */
:root {
    /* 主题色 */
    --primary: #4e54c8;
    --primary-light: #8f94fb;
    --primary-dark: #3a3f9d;
    --secondary: #f8f9fa;
    --text: #333333;
    --text-light: #6c757d;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-card: linear-gradient(to bottom, #ffffff, #f8f9fa);
    
    /* 间距和圆角 */
    --border-radius: 12px;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --section-spacing: 1rem;
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(78, 84, 200, 0.2);
    border-top-color: var(--primary);
    animation: spin 1s infinite linear;
    position: relative;
}

.loader::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-light);
    opacity: 0.6;
    animation: spin 1.5s infinite linear reverse;
}

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

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 84, 200, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(78, 84, 200, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 84, 200, 0);
        transform: scale(1);
    }
}

/* 应用脉冲效果的按钮 */
.btn-pulse {
    animation: pulse 2s infinite;
    position: relative;
    overflow: visible;
    transform-origin: center;
    z-index: 1;
}

/* 内容加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background-color: #f8f9fa;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 移除所有按钮的焦点轮廓 */
.btn:focus, 
.btn:active,
button:focus,
button:active {
    outline: none !important;
    box-shadow: none !important;
}

/* 移除所有表单控件的焦点效果 */
input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
   导航栏样式
   ========================================================================== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    max-width: 1200px;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
    cursor: default;
    user-select: none;
}

.navbar-brand i {
    font-size: 1.2em;
    vertical-align: middle;
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: rgba(78, 84, 200, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 4px 10px rgba(78, 84, 200, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 84, 200, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border: 1px solid var(--primary);
    background-color: transparent;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ==========================================================================
   首页主区域
   ========================================================================== */
.hero-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* 感谢用户弹幕区域 */
.thanks-container {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: 400px;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(78, 84, 200, 0.1);
}

.thanks-header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thanks-danmaku {
    position: relative;
    height: 100%;
    padding-top: 4rem;
    overflow: hidden;
    width: 100%;
}

/* 弹幕轨道系统 */
.danmaku-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    pointer-events: none;
    width: 100%;
}

/* 创建8个固定轨道，增加间距 */
.danmaku-track:nth-child(1) { top: 43px; }
.danmaku-track:nth-child(2) { top: 89px; }
.danmaku-track:nth-child(3) { top: 135px; }
.danmaku-track:nth-child(4) { top: 181px; }
.danmaku-track:nth-child(5) { top: 227px; }
.danmaku-track:nth-child(6) { top: 273px; }
.danmaku-track:nth-child(7) { top: 319px; }

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 1rem;
    color: var(--text);
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation-name: danmaku-move;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    z-index: 1;
    right: 0;
    transform: translateX(100%);
}

.danmaku-item.vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 600;
}

.danmaku-item i {
    margin-right: 0.5rem;
}

@keyframes danmaku-move {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-400%);
    }
}

/* 动态背景 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--gradient-primary);
}

.hero-bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.hero-bg-circle:nth-child(2) {
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -200px;
}

/* 特性部分 */
.section {
    padding: var(--section-spacing) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* 特性卡片 */
.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(78, 84, 200, 0.2);
}

.feature-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 定价卡片 */
.pricing-section {
    background-color: var(--secondary);
}

.pricing-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    background: #fff;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--primary-light);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: var(--card-shadow);
}

.pricing-card.popular .pricing-badge {
    position: absolute;
    top: 0.5rem;
    right: -1.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 500;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pricing-period {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* 注意事项卡片 */
.notice-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.notice-card h3 {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.notice-card h3 i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

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

.notice-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.notice-list li:last-child {
    margin-bottom: 0;
}

.notice-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ==========================================================================
   页脚样式
   ========================================================================== */
.footer {
    background: #fff;
    padding: 3rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    margin-top: 2rem;
}

.footer-section h5 {
    font-weight: 600;
    color: var(--primary);
}

.footer-section h5 i {
    margin-right: 0.75rem;
    width: 1.5rem;
    text-align: center;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ==========================================================================
   登录弹窗样式
   ========================================================================== */
.auth-modal-dialog {
    max-width: 900px;
}

.auth-modal-dialog .modal-content {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
}

/* 关闭按钮 */
.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background: var(--gradient-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(78, 84, 200, 0.3);
}

.auth-close-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: rotate(90deg);
}

.auth-sidebar {
    width: 40%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-sidebar-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.auth-logo {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.auth-welcome {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.auth-desc {
    font-size: 1rem;
    opacity: 0.8;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

.auth-main {
    width: 60%;
    padding: 3rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.auth-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-tab:hover {
    color: var(--primary);
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.auth-form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.auth-input-wrap:focus-within {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(78, 84, 200, 0.1);
}

.auth-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 1rem;
}

.auth-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 14px 14px 48px;
    font-size: 1rem;
    outline: none;
    border-radius: 8px;
}

.auth-toggle-password {
    position: absolute;
    right: 16px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-toggle-password:hover {
    color: var(--primary);
}

.auth-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-submit span {
    margin-right: 0.5rem;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(78, 84, 200, 0.3);
}

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

.auth-submit:hover::before {
    left: 100%;
}

/* 滑动验证码 */
.slider-captcha-container {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    height: 2.75rem;
    display: block;
    background-color: var(--secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.slider-captcha {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--secondary), #ffffff);
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
    z-index: 1;
    user-select: none;
    transition: color 0.3s ease;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 0.125rem;
    width: 2.5rem;
    height: 2.5rem;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(78, 84, 200, 0.3);
    user-select: none;
    transition: box-shadow 0.3s ease, transform 0.1s ease;
}

.slider-button:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(78, 84, 200, 0.6);
}

.slider-button:active {
    transform: translateY(-50%) scale(0.98);
}

/* 验证成功状态 */
.slider-captcha.success {
    background: linear-gradient(145deg, #e8f5e9, #f1f8e9);
}

.slider-captcha.success .slider-track {
    color: var(--success);
    font-weight: 500;
}

.slider-captcha.success .slider-button {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    box-shadow: 0 0.125rem 0.5rem rgba(76, 175, 80, 0.4);
}

.slider-captcha.success .slider-button i {
    transform: rotate(360deg);
}

/* 验证失败状态 */
.slider-captcha.fail {
    background: linear-gradient(145deg, #ffebee, #ffcdd2);
}

.slider-captcha.fail .slider-button {
    background: linear-gradient(135deg, #e53935, #ef5350);
    box-shadow: 0 0.125rem 0.5rem rgba(244, 67, 54, 0.4);
}

.slider-captcha.fail .slider-track {
    color: #e53935;
}

/* ==========================================================================
   API文档页面样式
   ========================================================================== */
.doc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0rem 0rem;
}

/* 隐藏浏览器右侧滚动条 */
body.doc-page {
    overflow: hidden;
    height: 100vh;
}

.doc-container .row {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
}

/* 列布局 */
.doc-container .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 0;
    position: relative;
}

.doc-container .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding-left: 15px;
    padding-right: 0;
    position: relative;
}

/* 侧边栏 */
.doc-sidebar {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    scrollbar-gutter: stable;
    height: auto;
}

/* 内容区域 */
.doc-content {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    scrollbar-gutter: stable;
    height: auto;
}

/* 滚动条样式 */
.doc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.doc-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.doc-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.doc-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 导航链接 */
.doc-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.doc-sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.doc-sidebar .nav-link:hover,
.doc-sidebar .nav-link.active {
    background-color: rgba(78, 84, 200, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

/* 子菜单项 */
.submenu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.submenu-item i {
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.submenu-item:hover {
    background-color: rgba(78, 84, 200, 0.05);
    color: var(--primary);
    transform: translateX(5px);
}

.doc-sidebar .nav.flex-column {
    margin-bottom: 0;
}

/* 文档内容排版 */
.doc-content h1, 
.doc-content h2, 
.doc-content h3 {
    color: var(--primary);
    font-weight: 600;
}

.doc-content h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.doc-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.doc-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.doc-content p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.doc-content ul, 
.doc-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* 内联代码 */
.doc-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background-color: #f5f7fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

/* 代码块 */
.code-container {
    position: relative;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.code-block {
    background-color: #282c34;
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    color: #abb2bf;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    background: transparent;
    color: inherit;
    padding: 0;
    display: block;
    white-space: pre;
    text-shadow: none !important;
}

/* 清除代码块内多余样式 */
.code-block p, 
.code-block br {
    display: none;
}

/* JSON语法高亮 */
.language-json .hljs-attr,
.language-json .hljs-string,
.language-json .hljs-number,
.language-json .hljs-literal,
.language-json .hljs-punctuation {
    text-shadow: none !important;
}

.language-json .hljs-attr {
    color: #e06c75;
}

.language-json .hljs-string {
    color: #98c379;
}

.language-json .hljs-number {
    color: #d19a66;
}

.language-json .hljs-literal {
    color: #56b6c2;
}

.language-json .hljs-punctuation {
    color: #abb2bf;
}

/* 高亮动画 */
@keyframes highlight-fade {
    0% { background-color: rgba(78, 84, 200, 0.2); }
    100% { background-color: transparent; }
}

h3.highlight {
    animation: highlight-fade 2s ease;
}

/* 特殊格式 */
.method-title {
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(78, 84, 200, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 2rem 0 1rem;
}

.note-text {
    background-color: #fff8e1;
    border-left: 4px solid #ffca28;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: #856404;
}

/* 表格样式 */
.table-responsive {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: #fff;
}

.doc-content table th,
.doc-content table td {
    padding: 0.85rem 1.2rem;
    border: none;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    line-height: 1.5;
}

.doc-content table th {
    background: linear-gradient(to right, rgba(78, 84, 200, 0.05), rgba(143, 148, 251, 0.05));
    color: var(--primary);
    font-weight: 600;
    text-align: left;
    font-size: 0.95rem;
    white-space: nowrap;
}

.doc-content table tr:last-child td {
    border-bottom: none;
}

.doc-content table tr:nth-child(even) td {
    background-color: #f9fafc;
}

.doc-content table tr:hover td {
    background-color: rgba(78, 84, 200, 0.03);
}

/* 表格内代码样式 */
.doc-content table code {
    background-color: rgba(78, 84, 200, 0.08);
    color: var(--primary);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* 链接样式 */
.doc-link {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background-color: #f5f7fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary);
    word-break: break-all;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 其他移动设备样式保持不变 */
    .doc-container .row {
        flex-direction: column;
        min-height: auto;
    }
    
    .doc-container .col-md-3,
    .doc-container .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .doc-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 1.5rem;
        overflow-y: visible;
        height: auto;
    }
    
    .doc-content {
        max-height: none;
        height: auto;
    }
    
    /* 移动设备表格样式 */
    .table-responsive {
        margin: 1.5rem 0;
        border-radius: var(--border-radius);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .doc-content table {
        min-width: 650px;
    }
    
    .doc-content table th,
    .doc-content table td {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .doc-content {
        padding: 1.5rem;
    }
} 

/* 复制链接按钮样式 */
#copyInviteLink {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0 1rem;
    min-width: 120px;
    text-align: center;
    transition: background 0.3s ease;
}

/* 邀请链接输入框样式 */
#inviteLink {
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
}

/* 移除输入框聚焦时的边框效果 */
#inviteLink:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgba(0,0,0,0.1) !important;
} 