/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 195, 31, 0.3) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(143, 195, 31, 0.3);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(143, 195, 31, 0.5);
}

/* 顶部导航栏 */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(143, 195, 31, 0.08);
    z-index: 1000;
    padding: 1.2rem 0;
    box-shadow: 0 2px 20px rgba(143, 195, 31, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    font-size: 2rem;
    color: #8FC31F;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: #8FC31F;
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: normal;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8FC31F;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8FC31F, #6B9A1A);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(143, 195, 31, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(143, 195, 31, 0.4);
}

/* 主要内容区域 */
.main-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* 侧边栏导航 */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid rgba(143, 195, 31, 0.1);
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(143, 195, 31, 0.05);
}

.sidebar-nav {
    padding: 0 1.5rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-toggle {
    font-size: 1.1rem;
    color: #8FC31F;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(143, 195, 31, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-toggle:hover {
    background: rgba(143, 195, 31, 0.1);
    transform: translateX(5px);
}

.nav-toggle::before {
    content: '▶';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-section.expanded .nav-toggle::before {
    transform: rotate(90deg);
}

.nav-items {
    list-style: none;
    margin-left: 1rem;
}

.nav-items li {
    margin-bottom: 0.5rem;
}

.nav-items a {
    display: block;
    padding: 0.8rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-items a:hover,
.nav-items a.active {
    background: rgba(143, 195, 31, 0.1);
    color: #8FC31F;
    transform: translateX(5px);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    background: white;
    margin: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(143, 195, 31, 0.08);
}

.content-section {
    max-width: 100%;
    margin-bottom: 4rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* 章节间距和滚动定位优化 */
.content-section {
    scroll-margin-top: 100px;
}

.content-section + .content-section {
    padding-top: 1rem;
}

.content-section .section-header:first-child {
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(143, 195, 31, 0.05), rgba(107, 154, 26, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(143, 195, 31, 0.1);
}

.section-header h2 {
    font-size: 2.5rem;
    color: #8FC31F;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header i {
    margin-right: 1rem;
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: normal;
}

.concept-item {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(143, 195, 31, 0.1);
    box-shadow: 0 5px 20px rgba(143, 195, 31, 0.05);
    transition: all 0.3s ease;
}

.concept-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(143, 195, 31, 0.1);
    border-color: rgba(143, 195, 31, 0.2);
}

.concept-item h3 {
    color: #8FC31F;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.concept-item h3 i {
    font-size: 1.3rem;
}

.concept-item h4 {
    color: #6B9A1A;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.concept-item p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.feature-list,
.solution-list,
.roadmap-list,
.summary-list {
    list-style: none;
    margin: 1rem 0;
}

.feature-list li,
.solution-list li,
.roadmap-list li,
.summary-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(143, 195, 31, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-list li:last-child,
.solution-list li:last-child,
.roadmap-list li:last-child,
.summary-list li:last-child {
    border-bottom: none;
}

.feature-list li i,
.solution-list li i,
.roadmap-list li i,
.summary-list li i {
    color: #8FC31F;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.solution-list li,
.summary-list li {
    counter-increment: item;
}

.solution-list li::before,
.summary-list li::before {
    content: counter(item);
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.solution-list,
.summary-list {
    counter-reset: item;
}

/* 管理接口相关样式 */
.admin-link {
    color: #8FC31F;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.admin-link:hover {
    color: #6B9A1A;
    border-bottom-color: #6B9A1A;
    transform: translateY(-1px);
}

.admin-note {
    background: linear-gradient(135deg, rgba(143, 195, 31, 0.05), rgba(107, 154, 26, 0.05));
    border: 1px solid rgba(143, 195, 31, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.admin-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    border-radius: 2px;
}

.admin-note p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.admin-note i {
    color: #8FC31F;
    margin-top: 0.2rem;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(143, 195, 31, 0.1);
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.feature-table th {
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.feature-table th i {
    margin-right: 0.5rem;
}

.feature-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(143, 195, 31, 0.1);
    vertical-align: top;
}

.feature-table tr:last-child td {
    border-bottom: none;
}

.feature-table tr:hover {
    background: rgba(143, 195, 31, 0.02);
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, rgba(143, 195, 31, 0.05), rgba(107, 154, 26, 0.05));
    border: 1px solid rgba(143, 195, 31, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    color: #8FC31F;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* 代码示例 */
.code-example {
    background: #1a202c;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid rgba(143, 195, 31, 0.2);
}

.code-example pre {
    margin: 0;
    color: #f7fafc;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-example code {
    color: #81e6d9;
    font-weight: 500;
}

.code-note {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    font-style: italic;
    line-height: 1.5;
}

/* 摘要框 */
.summary-box {
    background: linear-gradient(135deg, rgba(143, 195, 31, 0.08), rgba(107, 154, 26, 0.08));
    border: 2px solid rgba(143, 195, 31, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.summary-box h3 {
    color: #8FC31F;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* 部署方式模块样式 */
.decision-tree {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.decision-tree li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(143, 195, 31, 0.05), rgba(107, 154, 26, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(143, 195, 31, 0.1);
    position: relative;
}

.decision-tree li::before {
    content: counter(step-counter);
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.decision-tree li strong {
    color: #8FC31F;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.decision-tree ul {
    margin-top: 1rem;
    margin-left: 1rem;
}

.decision-tree ul li {
    counter-increment: none;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(143, 195, 31, 0.1);
}

.decision-tree ul li::before {
    display: none;
}

.migration-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(143, 195, 31, 0.1);
    box-shadow: 0 5px 20px rgba(143, 195, 31, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(143, 195, 31, 0.1);
}

.step h4 {
    color: #8FC31F;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step h4::before {
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.step:nth-child(1) h4::before {
    content: '1';
}

.step:nth-child(2) h4::before {
    content: '2';
}

.step:nth-child(3) h4::before {
    content: '3';
}

.step p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.recommendation-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(143, 195, 31, 0.1);
    box-shadow: 0 5px 20px rgba(143, 195, 31, 0.05);
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(143, 195, 31, 0.1);
}

.recommendation-item h4 {
    color: #8FC31F;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-item p {
    margin: 0.5rem 0;
    color: #555;
    line-height: 1.5;
}

.recommendation-item p strong {
    color: #8FC31F;
}

/* GraphiQL模块样式 */
.download-box {
    background: linear-gradient(135deg, rgba(143, 195, 31, 0.05), rgba(107, 154, 26, 0.05));
    border: 1px solid rgba(143, 195, 31, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.download-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.download-steps li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(143, 195, 31, 0.1);
    position: relative;
    padding-left: 3rem;
}

.download-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.operation-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.operation-steps li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(143, 195, 31, 0.1);
    box-shadow: 0 2px 10px rgba(143, 195, 31, 0.05);
    position: relative;
    padding-left: 4rem;
    transition: all 0.3s ease;
}

.operation-steps li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(143, 195, 31, 0.1);
}

.operation-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.operation-steps li strong {
    color: #8FC31F;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(143, 195, 31, 0.1);
    box-shadow: 0 3px 15px rgba(143, 195, 31, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(143, 195, 31, 0.1);
    border-color: rgba(143, 195, 31, 0.2);
}

.feature-item h4 {
    color: #8FC31F;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(143, 195, 31, 0.1);
    }
    
    .main-content {
        margin: 0;
        border-radius: 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .concept-item {
        padding: 1.5rem;
    }

    .migration-steps,
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .step,
    .recommendation-item {
        padding: 1.5rem;
    }
    
    .decision-tree li {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .decision-tree li::before {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        top: -8px;
        left: 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .download-steps li,
    .operation-steps li {
        padding: 1rem;
        padding-left: 2.5rem;
    }
    
    .download-steps li::before,
    .operation-steps li::before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .operation-steps li {
        padding-left: 3rem;
    }
    
    .operation-steps li::before {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .download-section {
        padding: 1.5rem;
    }
    
    .download-button {
        min-width: 180px;
        padding: 1.2rem 2rem;
    }
    
    .download-button i {
        font-size: 1.5rem;
    }
    
    .download-button span {
        font-size: 1.1rem;
    }
    
    .download-button small {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(143, 195, 31, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(143, 195, 31, 0.4);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* 响应式回到顶部按钮 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* GraphiQL模块样式 */
.download-section {
    background: linear-gradient(135deg, rgba(143, 195, 31, 0.05), rgba(107, 154, 26, 0.05));
    border: 2px solid rgba(143, 195, 31, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(143, 195, 31, 0.03) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.download-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.download-header h4 {
    color: #8FC31F;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.download-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.download-button-container {
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.download-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    text-decoration: none;
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(143, 195, 31, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 220px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.download-button:hover::before {
    left: 100%;
}

.download-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(143, 195, 31, 0.4);
    background: linear-gradient(135deg, #9FD32F, #7BAA2A);
}

.download-button:active {
    transform: translateY(-4px) scale(1.02);
    transition: all 0.1s ease;
}

.download-button i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.download-button:hover i {
    transform: scale(1.1) rotate(5deg);
}

.download-button span {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.download-button small {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.download-steps {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(143, 195, 31, 0.1);
}

.download-steps h5 {
    color: #8FC31F;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.download-steps li {
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.download-steps li:last-child {
    margin-bottom: 0;
}

.download-steps code {
    background: rgba(143, 195, 31, 0.1);
    color: #8FC31F;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* 下载提示消息样式 */
.download-message {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(143, 195, 31, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.download-message.show {
    opacity: 1;
    transform: translateX(0);
}

.download-message i {
    font-size: 1.2rem;
    color: #fff;
}

.download-message span {
    white-space: nowrap;
}

/* 下载错误消息样式 */
.download-message.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* 响应式下载提示 */
@media (max-width: 768px) {
    .download-message {
        top: 20px;
        right: 20px;
        left: 20px;
        transform: translateY(-100%);
    }
    
    .download-message.show {
        transform: translateY(0);
    }
}

/* RDF三元组相关样式 */
.concept-subsection {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(143, 195, 31, 0.1);
    box-shadow: 0 2px 10px rgba(143, 195, 31, 0.05);
}

.concept-subsection h4 {
    color: #8FC31F;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.concept-subsection h4::before {
    content: "▸";
    color: #8FC31F;
    font-weight: bold;
}

.concept-subsection ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.concept-subsection li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.concept-subsection li:last-child {
    margin-bottom: 0;
}

.concept-subsection strong {
    color: #6B9A1A;
    font-weight: 600;
}

.rules-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.rules-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(143, 195, 31, 0.1);
}

.rules-table thead {
    background: linear-gradient(135deg, #8FC31F, #6B9A1A);
    color: white;
}

.rules-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.rules-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(143, 195, 31, 0.1);
    vertical-align: top;
    line-height: 1.5;
}

.rules-table tbody tr:last-child td {
    border-bottom: none;
}

.rules-table tbody tr:hover {
    background: rgba(143, 195, 31, 0.05);
}

.rules-table code {
    background: rgba(143, 195, 31, 0.1);
    color: #8FC31F;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.important-note {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.important-note strong {
    color: #856404;
    font-weight: 600;
}

.important-note code {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .rules-table {
        margin: 1rem 0;
    }
    
    .rules-table table {
        font-size: 0.9rem;
    }
    
    .rules-table th,
    .rules-table td {
        padding: 0.8rem 0.6rem;
    }
    
    .concept-subsection {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .important-note {
        padding: 1rem;
        margin: 1rem 0;
    }
}
