* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
}

/* 导航栏容器 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
/* Logo */
.nav-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo svg {
    width: 32px;
    height: 32px;
}
/* 桌面端菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}
.nav-item {
    position: relative;
}
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
}
.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}
.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-link {
    color: #333;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
    transition: all 0.2s ease;
    font-size: 14px;
}
.dropdown-link:hover {
    background: #f0f0f0;
    color: #667eea;
}
.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}
.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}
/* 汉堡菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}
.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) {
    margin-bottom: 6px;
}
.nav-toggle span:nth-child(2) {
    margin-bottom: 6px;
}
/* 汉堡菜单激活状态 */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
/* 遮罩层 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 998;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}
/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .nav-link {
        padding: 10px 14px;
        font-size: 14px;
    }
}
/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .nav-container {
        height: 60px;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 60px);
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .nav-link {
        color: #333;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 16px;
    }
    .nav-link:hover,
    .nav-link.active {
        background: #f0f0f0;
        color: #667eea;
    }
    .nav-link svg {
        color: #667eea;
    }
    /* 移动端下拉菜单 */
    .dropdown {
        position: static;
        background: #f8f8f8;
        box-shadow: none;
        border-radius: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 8px;
        margin-top: 5px;
    }
    .dropdown.active {
        max-height: 500px;
        padding: 8px;
    }
    .dropdown-link {
        padding: 12px 14px;
    }
    .dropdown-arrow {
        transform: rotate(0);
    }
    .dropdown-arrow.active {
        transform: rotate(180deg);
    }
    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Footer 样式 */
.footer { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    padding: 30px 20px; 
    text-align: center; 
    margin-top: 60px;
}
.footer p { 
    color: #fff; 
    text-decoration: none; 
}
.footer a { 
    color: #fff; 
    text-decoration: none; 
}

/* 内容区域 */
.content {
    display: none;
    max-width: 1200px;
    min-height: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.content.active {
    display: block;
}
.hero {
    text-align: center;
    padding: 60px 20px;
}
.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    color: #333;
    margin-bottom: 20px;
}
.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 10px;
}
.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 390px;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.feature-header {
    display: flex;
    align-items: center;
    gap: 16px; /* 图标和文字之间距离 */
    margin-bottom: 20px;
}
.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
}
.feature-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}
.feature-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 0px;
}
.feature-card p {
    color: #666;
    line-height: 1.6;
}
/* 内联文章列表样式 */
.inline-article {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 6px;
    margin-bottom: 8px;
}
.inline-article a {
    text-decoration: none;
    color: inherit;
}
.inline-article:hover {
    background: #f0f0f0;
}
.inline-article:last-child {
    border-bottom: none;
}
.inline-article-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.inline-article-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
}
.inline-article-excerpt {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 更多按钮 */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px auto 0;
    padding: 8px 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.load-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.load-more-btn:hover svg {
    transform: translateY(2px);
}
.load-more-btn.hidden {
    display: none;
}
/* 文章详情页（全幅面） */
.article-detail-page {
    display: none;
    /* position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1050;
    overflow-y: auto; */
}
.article-detail-page.active {
    display: block;
}
.article-detail-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.article-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}
.article-detail-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.article-detail-body {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}
.article-detail-body p {
    margin-bottom: 16px;
}
.article-detail-body strong {
    color: #333;
}

/* 文章详情页返回按钮 */
.article-detail-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px auto 0;
    padding: 8px 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 120px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.article-detail-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.article-detail-back-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.article-detail-back-btn:hover svg {
    transform: translateY(2px);
}
.article-detail-back-btn.hidden {
    display: none;
}
@media (max-width: 768px) {
    .article-detail-content {
        padding: 24px 16px 40px;
    }
    .article-detail-title {
        font-size: 24px;
    }
    /* 移动端返回按钮 */
    .mobile-back-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        position: fixed;
        top: 70px;
        left: 16px;
        z-index: 1060;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        color: #667eea;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
        text-decoration: none;
    }
    .mobile-back-btn:hover {
        background: #667eea;
        color: #fff;
    }
    .mobile-back-btn svg {
        width: 18px;
        height: 18px;
    }
}
.mobile-back-btn {
    display: none;
}