/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding: 1rem;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* 行布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row-column-reverse {
    flex-direction: column-reverse;
}

@media (min-width: 768px) {
    .row-column-reverse {
        flex-direction: row;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* 间距样式 */
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }
.mlr-1 { margin: 0 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }

/* 圆角和阴影 */
.rounded-3 { border-radius: 0.75rem !important; }
.overflow-hidden { overflow: hidden !important; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important; }

/* 背景和颜色 */
.bg-white { background-color: #fff !important; }
.bg-danger { background-color: #e53e3e !important; }
.bg-success { background-color: #38a169 !important; }
.bg-primary { background-color: #3182ce !important; }
.bg-gray-100 { background-color: #f7fafc !important; }

/* 文本样式 */
.text-center { text-align: center !important; }
.text-lg-start { text-align: left !important; }
.text-danger { color: #e53e3e !important; }
.text-success { color: #38a169 !important; }
.text-primary { color: #3182ce !important; }
.text-gray-700 { color: #4a5568 !important; }

/* 字体大小 */
.fs-6 { font-size: 1rem !important; }
.fs-7 { font-size: 0.875rem !important; }
.fw-medium { font-weight: 500 !important; }
.fw-bold { font-weight: 600 !important; }

/* 弹性布局 */
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }

/* 警告框样式 - 优化版 */
.alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

.alert-danger {
    color: #742a2a;
    background-color: #fed7d7;
    border-color: #feb2b2;
}

.alert-success {
    color: #22543d;
    background-color: #c6f6d5;
    border-color: #9ae6b4;
}

.alert-gray {
    color: #2d3748;
    background-color: #f7fafc;
    border-color: #e2e8f0;
}

/* 按钮样式 - 优化版 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all .2s ease;
}

.btn-primary {
    color: #fff;
    background-color: #3182ce;
    border-color: #3182ce;
}

.btn-primary:hover {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
}

.btn-success {
    color: #fff;
    background-color: #38a169;
    border-color: #38a169;
}

.btn-success:hover {
    background-color: #2f855a;
    border-color: #2f855a;
}

.btn-outline-success {
    color: #38a169;
    border-color: #38a169;
    background-color: transparent;
}

.btn-outline-success:hover {
    color: #fff;
    background-color: #38a169;
    border-color: #38a169;
}

.btn-outline-danger {
    color: #e53e3e;
    border-color: #e53e3e;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #e53e3e;
    border-color: #e53e3e;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.4rem;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.4em 0.7em;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 9999px;
}

.rounded-pill {
    border-radius: 9999px !important;
}

/* 表单样式 - 优化版 */
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #2d3748;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #90cdf4;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 开关样式 - 优化版 */
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 0;
    margin-bottom: 0.125rem;
}

.form-switch {
    padding-left: 0;
}

.form-check-input {
    width: 48px;
    height: 24px;
    margin-top: 0;
    vertical-align: middle;
    background-color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 2px center;
    background-size: 20px;
    border: none;
    border-radius: 9999px;
    transition: all .2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #3182ce;
    background-position: right 2px center;
}

/* 标签页样式 - 重点优化部分 */
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    /* 新增：标签栏背景 */
    background-color: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
}

.nav-tabs {
    border-bottom: none; /* 移除原底部边框 */
    margin-bottom: 1.5rem;
}

.nav-item {
    margin-bottom: 0; /* 重置底部边距 */
    margin-right: 4px;
}

/* 核心优化：标签按钮样式 */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px; /* 图标和文字间距 */
    padding: 10px 20px; /* 增大内边距，按钮更饱满 */
    color: #64748b; /* 未选中文字颜色 */
    text-decoration: none;
    transition: all .3s ease;
    border: none; /* 移除原边框 */
    border-radius: 8px; /* 圆角更圆润 */
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* 未选中状态hover效果 */
.nav-link:hover {
    color: #3182ce;
    background-color: #eff6ff; /* 浅蓝背景 */
    border-color: transparent;
    transform: translateY(-1px); /* 轻微上浮 */
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.1);
}

/* 选中状态样式 */
.nav-link.active {
    color: #fff; /* 白色文字 */
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%); /* 渐变背景 */
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

/* 选中状态hover增强 */
.nav-link.active:hover {
    background: linear-gradient(135deg, #2b6cb0 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

/* 为标签添加图标（可选，增强视觉） */
.nav-link::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* 全局配置标签图标 */
.nav-link[href="#allSet"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

/* 网易音乐标签图标 */
.nav-link[href="#wy"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'%3E%3C/path%3E%3Ccircle cx='6' cy='18' r='3'%3E%3C/circle%3E%3Ccircle cx='18' cy='16' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

/* 选中状态下的图标颜色（白色） */
.nav-link.active::before {
    filter: brightness(0) invert(1);
}

.tab-content {
    margin-top: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active.show {
    display: block;
}

/* 定位相关 */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }

/* 自定义样式 */
.copy-box {
    position: relative;
}

.copy-code {
    right: 10px;
    top: 10px;
    z-index: 10;
    height: 36px;
    width: 60px;
    padding: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: #2d3748;
    text-align: center;
    white-space: nowrap;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem 0 0 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.form-group {
    flex: 1;
}

/* 页脚样式 */
footer {
    margin-top: 3rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.875rem;
}

footer a {
    color: #3182ce;
    text-decoration: none;
    transition: color .2s ease;
}

footer a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* 卡片容器优化 */
.card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* 响应式优化 */
@media (max-width: 767px) {
    .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .input-group-text {
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
        min-width: auto;
    }
    
    .mlr-1 {
        margin: 0.5rem 0 !important;
    }
    
    .nav-link {
        padding: 8px 16px; /* 移动端减小内边距 */
        font-size: 13px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* 移动端标签栏自适应 */
    .nav {
        width: 100%;
        justify-content: center;
    }
}