:root {
    --github-bg: #0d1117;
    --github-header-bg: #161b22;
    --github-border: #30363d;
    --github-text: #c9d1d9;
    --github-text-secondary: #8b949e;
    --github-accent: #58a6ff;
    --github-accent-hover: #79c0ff;
    --github-success: #3fb950;
    --github-warning: #d29922;
    --github-danger: #f85149;
    --github-card-bg: #161b22;
    --github-input-bg: #0d1117;
    --github-shadow: 0 8px 24px rgba(1,4,9,0.8);
    --github-radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--github-bg);
    color: var(--github-text);
    min-height: 100vh;
    padding-top: 60px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--github-header-bg);
    border-bottom: 1px solid var(--github-border);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    color: var(--github-text);
}

.nav-logo i {
    color: var(--github-accent);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--github-text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--github-radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--github-accent);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    min-height: calc(100vh - 60px - 160px);
}

/* Github卡片样式 */
.github-card {
    background-color: var(--github-card-bg);
    border: 1px solid var(--github-border);
    border-radius: var(--github-radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.github-card-header {
    padding: 16px;
    background-color: var(--github-header-bg);
    border-bottom: 1px solid var(--github-border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.github-card-body {
    padding: 16px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--github-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--github-success);
    color: white;
    border-color: rgba(63, 185, 80, 0.4);
}

.btn-primary:hover {
    background-color: #2ea043;
}

.btn-secondary {
    background-color: var(--github-accent);
    color: white;
    border-color: rgba(88, 166, 255, 0.4);
}

.btn-secondary:hover {
    background-color: var(--github-accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--github-text);
    border-color: var(--github-border);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--github-text-secondary);
}

/* 布局样式 */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-16 {
    gap: 16px;
}

.gap-8 {
    gap: 8px;
}

.w-full {
    width: 100%;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

.text-center {
    text-align: center;
}

/* 隐藏和显示 */
.hidden {
    display: none;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: var(--github-radius);
    margin-bottom: 24px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-description {
    font-size: 1rem;
    margin-bottom: 24px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--github-accent);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
    }
    
    .nav-links {
        margin-top: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .carousel {
        height: 250px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
}

/* 页脚样式 */
.footer {
    background-color: var(--github-header-bg);
    border-top: 1px solid var(--github-border);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--github-text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--github-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--github-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--github-border);
    color: var(--github-text-secondary);
    font-size: 14px;
}