:root {
    --primary-color: #0078d4;
    --secondary-color: #106ebe;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --section-bg: white;
    --table-header-bg: #f8f9fa;
    --hover-bg: #e9ecef;
}

[data-theme="dark"] {
    --primary-color: #0091ff;
    --secondary-color: #47a7f5;
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #404040;
    --section-bg: #2d2d2d;
    --table-header-bg: #333333;
    --hover-bg: #404040;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    padding: 2rem 0;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    background-color: var(--section-bg);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

#mainNav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#mainNav a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

section {
    background-color: var(--section-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.version-tags, .sub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.5rem 1rem;
    background-color: var(--hover-bg);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag.primary {
    color: var(--primary-color);
}

.tag.active {
    background-color: var(--primary-color);
    color: white;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #888;
    font-size: 0.9rem;
}

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

footer a:hover {
    text-decoration: underline;
}

/* 暗色主题图标样式 */
.icon {
    font-style: normal;
    margin-right: 0.25rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    #mainNav {
        flex-direction: column;
        align-items: center;
    }
    
    .version-tags, .sub-tags {
        justify-content: center;
    }

    h2 {
        font-size: 1.25rem;
    }

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

/* Theme Switch */
.theme-switch-wrapper {
    position: relative;
    width: 60px;
    height: 34px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
} 
