/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

a {
    color: #00d084;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #26a641;
    text-decoration: underline;
}

/* Page Layout */
.kb-page-layout {
    gap: 1rem;
    display: flex;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.kb-main-content {
    flex: 1;
}

.main-content {
    flex-grow: 1;
    padding-top: calc(var(--header-height) + 24px);

}

.kb-sidebar {
    width: 300px;
    flex-shrink: 0;
}


/* Search & Filter */
.search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-radius: 12px;
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #161b22, #1c2128);
    border: 1px solid #30363d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toolbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
    min-width: auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

.search-input {
    flex: 1;
    max-width: 400px;
    padding: 0.75rem 1rem;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #00d084;
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

/* 搜索按钮样式 */
.search-btn {
    background: linear-gradient(135deg, #00d084, #26a641);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 208, 132, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #26a641, #00d084);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

/* 搜索输入框包装器 */
.search-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
    max-width: 500px;
}

/* 筛选控制区域 */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 下拉菜单样式 */
.filter-select {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d084' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    min-width: 140px;
}

.filter-select:hover {
    border-color: #00d084;
    background-color: #161b22;
    box-shadow: 0 2px 8px rgba(0, 208, 132, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: #00d084;
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
    background-color: #161b22;
}

.filter-select option {
    background: #161b22;
    color: #c9d1d9;
    padding: 0.5rem;
}

/* 下拉菜单动画效果 */
.filter-select:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.05), rgba(38, 166, 65, 0.05));
    border-radius: 8px;
    pointer-events: none;
}

/* 搜索工具栏整体动画 */
.search-toolbar:hover {
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.1);
}

/* 案例分享页面专用样式 */
.featured-cases {
    margin-bottom: 4rem;
}

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

.featured-case {
    background: linear-gradient(135deg, #161b22, #1c2128);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.featured-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d084, #26a641);
    border-radius: 16px 16px 0 0;
}

.featured-case:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.15);
    border-color: #00d084;
}

.featured-case h3 {
    font-size: 1.4rem;
    color: #c9d1d9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.featured-case p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.case-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-badge.critical {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.case-badge.high {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.case-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.case-meta span {
    font-size: 0.9rem;
    color: #8b949e;
}

.case-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* 案例列表样式 */
.cases-section {
    margin-top: 4rem;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.case-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.1);
    border-color: #00d084;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.case-info {
    flex: 1;
}

.case-title {
    font-size: 1.5rem;
    color: #c9d1d9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.case-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.case-type, .case-severity, .case-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-type.vulnerability {
    background: rgba(147, 51, 234, 0.2);
    color: #9333ea;
}

.case-type.incident {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.case-type.pentest {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.case-severity.critical {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.case-severity.high {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.case-severity.medium {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.case-status.resolved {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.case-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: rgba(0, 208, 132, 0.1);
    border-color: #00d084;
    color: #00d084;
}

.case-content {
    margin-bottom: 2rem;
}

.case-description {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.case-timeline {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: #00d084;
    font-weight: 500;
}

.timeline-event {
    font-size: 0.9rem;
    color: #c9d1d9;
}

.case-impact {
    margin-top: 1.5rem;
}

.case-impact h4 {
    color: #c9d1d9;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.impact-item {
    background: #0d1117;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #30363d;
    text-align: center;
}

.impact-label {
    display: block;
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.5rem;
}

.impact-value {
    display: block;
    font-size: 1.2rem;
    color: #00d084;
    font-weight: 600;
}

.case-findings h4 {
    color: #c9d1d9;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.findings-list {
    list-style: none;
    padding: 0;
}

.findings-list li {
    color: #8b949e;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.findings-list li::before {
    content: '•';
    color: #00d084;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #30363d;
    flex-wrap: wrap;
    gap: 1rem;
}

.case-stats {
    /* display: flex; */
    gap: 1.5rem;
}

.case-stats .stat {
    font-size: 0.9rem;
    color: #8b949e;
}

/* 侧边栏优化 */
.kb-sidebar {
    width: 320px;
    padding-left: 1rem;
}

.widget {

    background: linear-gradient(135deg, #161b22, #1c2128);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.1);
    border-color: rgba(0, 208, 132, 0.3);
}

.widget-title {
    font-size: 1.2rem;
    color: #c9d1d9;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #00d084;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #26a641;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    background: #161b22;
    border-color: #00d084;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.2);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00d084;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #8b949e;
    font-weight: 500;
    white-space: nowrap;
}

/* 威胁趋势样式 */
.trend-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trend-item {
    padding: 1rem;
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.trend-item:hover {
    background: #161b22;
    border-color: #00d084;
}

.trend-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.trend-name {
    font-size: 0.95rem;
    color: #c9d1d9;
    font-weight: 500;
}

.trend-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.trend-change.up {
    color: #f85149;
}

.trend-change.down {
    color: #22c55e;
}

.trend-bar {
    width: 100%;
    height: 6px;
    background: #21262d;
    border-radius: 3px;
    overflow: hidden;
}

.trend-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d084, #26a641);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* CVE列表样式 */
.cve-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cve-item {
    padding: 1.25rem;
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    position: relative;
}

.cve-item:hover {
    background: #161b22;
    border-color: #00d084;
    transform: translateX(4px);
}

.cve-id {
    font-size: 0.85rem;
    color: #00d084;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cve-title {
    font-size: 0.9rem;
    color: #c9d1d9;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.cve-score {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cve-score.critical {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.cve-score.high {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.cve-score.medium {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00d084, #26a641);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Article List */
.article-list {
    display: grid;
    gap: 1.5rem;
}

.article-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: #00d084;
}

.article-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.article-title a {
    color: #c9d1d9;
}

.article-meta {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-excerpt {
    color: #8b949e;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #21262d;
    color: #8b949e;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Sidebar Widgets */
.widget {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    color: #00d084;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
}

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

.widget-list li a {
    display: block;
    padding: 0.5rem 0;
    color: #c9d1d9;
}

.tag-cloud .tag {
    display: inline-block;
    margin: 0.25rem;
}

/*文章详情*/
.article-content {
    background: #161b22;
    /* border: 1px solid #30363d; */
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #30363d;
}

.article-full-title {
    font-size: 2rem;
    color: #c9d1d9;
    margin: 0 0 1rem 0;
}

.article-full-meta {
    color: #8b949e;
    font-size: 1rem;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h2 {
    color: #00d084;
    margin-top: 2rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body code {
    background: #0d1117;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.article-body pre {
    background: #0d1117;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #30363d;
}

.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #30363d;
}

.action-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.comments-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 2rem;
}

.comment-form textarea {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.75rem;
    color: #c9d1d9;
}

.author-widget {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.author-name {
    font-size: 1.2rem;
    color: #c9d1d9;
}

.author-bio {
    font-size: 0.9rem;
    color: #8b949e;
}

/*发布文章*/
.editor-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #c9d1d9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.75rem;
    color: #c9d1d9;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 400px;
    font-family: monospace;
}

.editor-toolbar {
    background: #21262d;
    padding: 0.5rem;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #30363d;
}

.toolbar-btn {
    background: none;
    border: none;
    color: #c9d1d9;
    padding: 0.5rem;
    cursor: pointer;

}
.form-actions{
    display: flex;
    justify-content: center;
    gap:20px;
}

/* 首页增强样式 */
.category-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #161b22;
    border-radius: 8px;
    border: 1px solid #30363d;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.category-btn:hover {
    border-color: #00d084;
    color: #00d084;
}

.category-btn.active {
    background: #00d084;
    border-color: #00d084;
    color: white;
    font-weight: 500;
}

.article-card {
    display: flex;
    gap: 1rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: #00d084;
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.1);
}

.article-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #8b949e;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.tag-primary {
    background-color: #00d084;
    color: white
}

.tag-secondary {
    background-color: #21262d;
    color: #8b949e;
    border-color: #30363d;
}

.tag-info {
    background-color: #1f6feb;
    color: white;
}

.tag-warning {
    background-color: #d29922;
    color: #0d1117;
}

.tag-danger {
    background-color: #f85149;
    color: white;
}

.tag-success {
    background-color: #238636;
    color: white;
}

.tag-large {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.tag-medium {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
}

.tag-small {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
}

.tag-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 208, 132, 0.2);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #30363d;
    border-color: #00d084;
}

.page-btn.active {
    background: #00d084;
    border-color: #00d084;
    color: #0d1117;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 侧边栏增强样式 */
.case-stats {
    position: relative;
    overflow: hidden;
}



.case-stats .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.case-stats .stat-item {
    background: linear-gradient(135deg, #0d1117, #161b22);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d084, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-stats .stat-item:hover::before {
    opacity: 1;
}

.case-stats .stat-item:hover {
    background: linear-gradient(135deg, #161b22, #1c2128);
    border-color: #00d084;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.25);
}

.case-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00d084;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 208, 132, 0.3);
}

.case-stats .stat-label {
    font-size: 0.9rem;
    color: #8b949e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item {
    width:100px;
    height:100px;
    text-align: center;
    padding: 1rem;
    margin:10px;
    background: #0d1117;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d084;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #8b949e;
}

.hot-list .hot-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #30363d;
}

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

.rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    background: #21262d;
    color: #8b949e;
}

.rank-1 {
    background: #d29922;
    color: #0d1117;
}

.rank-2 {
    background: #8b949e;
    color: #0d1117;
}

.rank-3 {
    background: #cd7f32;
    color: #0d1117;
}

.hot-content {
    flex: 1;
    min-width: 0;
}

.hot-content a {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: #c9d1d9;
}

.hot-meta {
    font-size: 0.75rem;
    color: #8b949e;
}

.activity-list .activity-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #30363d;
}

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

.activity-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.9rem;
    color: #c9d1d9;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #8b949e;
}

.expert-list .expert-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #30363d;
}

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

.expert-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.expert-info {
    flex: 1;
    min-width: 0;
}

.expert-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #c9d1d9;
    margin-bottom: 0.25rem;
}

.expert-title {
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.expert-stats {
    font-size: 0.75rem;
    color: #8b949e;
}

/* 文章详情页增强样式 */
.article-category {
    margin-bottom: 1rem;
}

.category-badge {
    background: #00d084;
    color: #0d1117;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-full-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-name {
    font-weight: 500;
    color: #c9d1d9;
}

.publish-date {
    color: #8b949e;
    font-size: 0.9rem;
}

.meta-right {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #8b949e;
}

.article-tags {
    margin-bottom: 1.5rem;
}

.article-toc {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 2rem;
    float: right;
    width: 250px;
    margin-left: 1rem;
}

.article-toc h4 {
    margin: 0 0 0.75rem 0;
    color: #00d084;
    font-size: 0.9rem;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc li {
    margin-bottom: 0.5rem;
}

.article-toc a {
    color: #8b949e;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-toc a:hover {
    color: #00d084;
}

.code-block {
    margin: 1.5rem 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #30363d;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #21262d;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #30363d;
}

.code-title {
    font-size: 0.85rem;
    color: #c9d1d9;
    font-weight: 500;
}

.copy-btn {
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: #00d084;
    color: #00d084;
}

.warning-box, .info-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid;
}

.warning-box {
    background: rgba(248, 81, 73, 0.1);
    border-left-color: #f85149;
}

.warning-box h4 {
    color: #f85149;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.info-box {
    background: rgba(0, 208, 132, 0.1);
    border-left-color: #00d084;
}

.info-box h4 {
    color: #00d084;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    border-color: #00d084;
    background: rgba(0, 208, 132, 0.1);
}

.action-btn.active {
    background: #00d084;
    border-color: #00d084;
    color: #0d1117;
}

.reading-progress {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #30363d;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #21262d;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #00d084;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #8b949e;
}

/* 评论系统样式 */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.comment-sort .sort-select {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 0.5rem;
    border-radius: 4px;
}

.comment-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-username {
    font-weight: 500;
    color: #c9d1d9;
}

.comment-input-area textarea {
    width: 100%;
    min-height: 100px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.75rem;
    color: #c9d1d9;
    resize: vertical;
    font-family: inherit;
}

.comment-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    gap: 0.5rem;
}

.toolbar-right {
    display: flex;
    gap: 0.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #30363d;
}

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

.comment-avatar-wrapper {
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 500;
    color: #c9d1d9;
}

.comment-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.expert-badge {
    background: #00d084;
    color: #0d1117;
}

.author-badge {
    background: #1f6feb;
    color: white;
}

.comment-time {
    color: #8b949e;
    font-size: 0.85rem;
}

.comment-body {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.comment-code {
    background: #0d1117;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    border: 1px solid #30363d;
}

.comment-code code {
    font-family: monospace;
    font-size: 0.85rem;
    color: #c9d1d9;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.comment-action-btn:hover {
    color: #00d084;
}

.comment-replies {
    margin-top: 1rem;
    margin-left: 2rem;
    border-left: 2px solid #30363d;
    padding-left: 1rem;
}

.reply-item {
    padding: 1rem 0;
    border-bottom: 1px solid #21262d;
}

.load-more-comments {
    text-align: center;
    margin-top: 1.5rem;
}

/* 编辑器增强样式 */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #30363d;
}

.editor-actions {
    display: flex;
    gap: 0.75rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.section-title {
    color: white;
    margin: 1.5rem 0;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
text-align: left;
    border-bottom: 1px solid #30363d;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group.half-width {
    flex: 0 0 calc(50% - 0.5rem);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #c9d1d9;
}

.form-group select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 1rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2300d084' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select:hover {
    border-color: #00d084;
    background-color: #161b22;
}

.form-group select:focus {
    outline: none;
    border-color: #00d084;
    box-shadow: 0 0 0 2px rgba(0, 208, 132, 0.2);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="datetime-local"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="datetime-local"]:hover,
.form-group textarea:hover {
    border-color: #00d084;
    background-color: #161b22;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="datetime-local"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d084;
    box-shadow: 0 0 0 2px rgba(0, 208, 132, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #8b949e;
    margin-top: 0.25rem;
}

.editor-wrapper {
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
}

.editor-tabs {
    display: flex;
    background: #21262d;
    border-bottom: 1px solid #30363d;
}

.tab-btn {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #c9d1d9;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #00d084;
    border-bottom-color: #00d084;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.toolbar-group {
    display: flex;
    gap: 0.25rem;
    padding-right: 0.75rem;
    border-right: 1px solid #30363d;
}

.toolbar-group:last-child {
    border-right: none;
}

.toolbar-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    border-color: #00d084;
    color: #00d084;
    background: rgba(0, 208, 132, 0.1);
}

.editor-content {
    position: relative;
    min-height: 400px;
}

.editor-panel {
    position: relative;
    height: 100%;
}

.editor-panel textarea {
    width: 100%;
    min-height: 400px;
    background: #0d1117;
    border: none;
    padding: 1rem;
    color: #c9d1d9;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

.editor-status {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #21262d;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #8b949e;
    border-top: 1px solid #30363d;
    border-left: 1px solid #30363d;
    display: flex;
    gap: 1rem;
}

.preview-panel {
    padding: 1rem;
    background: #0d1117;
    min-height: 400px;
    overflow-y: auto;
}

.preview-placeholder {
    color: #8b949e;
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
}

.tags-input-wrapper {
    position: relative;
}

.tags-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-suggestion {
    padding: 0.25rem 0.5rem;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-suggestion:hover {
    border-color: #00d084;
    background: rgba(0, 208, 132, 0.1);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.file-upload-area {
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #0d1117;
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 208, 132, 0.1), transparent);
    transition: left 0.5s ease;
}

.file-upload-area:hover {
    border-color: #00d084;
    background: rgba(0, 208, 132, 0.05);
    transform: translateY(-2px);
}

.file-upload-area:hover::before {
    left: 100%;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #00d084;
    transition: transform 0.3s ease;
}

.file-upload-area:hover .upload-icon {
    transform: scale(1.1);
}

.upload-text {
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: #8b949e;
    line-height: 1.4;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #c9d1d9;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-label:hover {
    background: rgba(0, 208, 132, 0.05);
}

.checkbox-label input[type="checkbox"] {
    /* display: none; */
        width:20px;height:20px;
}




.checkbox-label input[type="checkbox"]:checked ~ span {

    color: #00d084;
    font-weight: 500;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* 编辑器页面按钮样式统一 */
.editor-actions .btn,
.form-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00d084 0%, #26a641 100%);
    color: #ffffff;
    border-color: #00d084;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #26a641 0%, #00d084 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

.btn-secondary {
    background: #21262d;
    color: #c9d1d9;
    border-color: #30363d;
}

.btn-secondary:hover {
    background: #30363d;
    border-color: #00d084;
    color: #00d084;
}

.btn-warning {
    background: #d29922;
    color: #0d1117;
    border-color: #d29922;
}

.btn-warning:hover {
    background: #f2cc60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 153, 34, 0.3);
}

.btn-info {
    background: #1f6feb;
    color: #ffffff;
    border-color: #1f6feb;
}

.btn-info:hover {
    background: #388bfd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.3);
}

/* 新页面样式 */
.page-header {
    margin-bottom: 1rem;
    text-align: left;
    padding: 0;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.page-description {
    font-size: 1.2rem;
    color: #8b949e;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.header-actions {
    margin-top: 2rem;
}

/* 教程页面专用样式 */
.tutorials-section {
    margin-top: 4rem;
}

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

.tutorial-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.15);
    border-color: #00d084;
}

.tutorial-thumbnail {
    position: relative;
    width: 100%;
    /* height: 220px; */
    overflow: hidden;
}

.tutorial-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tutorial-card:hover .tutorial-thumbnail img {
    transform: scale(1.05);
}

.tutorial-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 208, 132, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tutorial-duration, .tutorial-read-time {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tutorial-content {
    padding: 2rem;
}

.tutorial-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.tutorial-description {
    color: #8b949e;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.tutorial-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tutorial-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tutorial-level.beginner {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.tutorial-level.intermediate {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.tutorial-level.advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.tutorial-level.expert {
    background: rgba(147, 51, 234, 0.2);
    color: #9333ea;
}

.tutorial-author, .tutorial-date {
    font-size: 0.85rem;
    color: #8b949e;
}

.tutorial-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tutorial-stats .stat {
    font-size: 0.85rem;
    color: #8b949e;
}

.tutorial-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 学习路径样式 */
.learning-paths {
    margin-bottom: 4rem;
}

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

.path-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.path-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.1);
    border-color: #00d084;
}

.path-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.path-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 208, 132, 0.1);
    border-radius: 12px;
}

.path-info h3 {
    font-size: 1.25rem;
    color: #c9d1d9;
    margin-bottom: 0.5rem;
}

.path-info p {
    color: #8b949e;
    font-size: 0.9rem;
}

.path-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #21262d;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d084, #26a641);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #8b949e;
}

.path-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.path-stats .stat {
    font-size: 0.85rem;
    color: #8b949e;
}

.path-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 500;
}

/* 加载更多按钮 */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.load-more-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 200px;
}

/* 视频上传样式 */
.video-upload-area {
    margin-bottom: 1rem;
}

.upload-zone {
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #0d1117;
}

.upload-zone:hover {
    border-color: #00d084;
    background: rgba(0, 208, 132, 0.05);
}

.upload-zone.small {
    padding: 1.5rem;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #161b22;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.video-icon {
    font-size: 2rem;
}

.video-details {
    flex: 1;
}

.video-name {
    font-weight: 500;
    color: #c9d1d9;
    margin-bottom: 0.25rem;
}

.video-size, .video-type {
    font-size: 0.85rem;
    color: #8b949e;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #f85149;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
}

.remove-btn:hover {
    background: rgba(248, 81, 73, 0.1);
    border-radius: 4px;
}

/* 权限选项样式 */
.permission-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #c9d1d9;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.radio-label:hover {
    background: rgba(0, 208, 132, 0.05);
}

.radio-label input[type="radio"] {
    width:20px;
    height:20px;
}





/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #30363d;
}

.modal-header h3 {
    margin: 0;
    color: #00d084;
}

.modal-close {
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #f85149;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #30363d;
}

