/* =========================
   support 知识库文章页通用样式
   用于 support 目录下各子目录的文章页面
   统一紫色主题 #667eea / #764ba2
   ========================= */

/* 文章 Hero 区域 */
.article-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.article-hero .article-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-card .article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 面包屑 */
.breadcrumb {
    padding: 20px 0;
    background: #f8f9fa;
    color: #666;
    font-size: 0.95rem;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
}

/* 文章内容区 */
.article-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #444;
    margin: 30px 0 15px;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 2;
    color: #555;
    margin-bottom: 20px;
}

.article-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 2;
    color: #555;
    margin-bottom: 10px;
}

/* 高亮框（与 highlight-card 统一使用 highlight-box） */
.highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.highlight-box.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

/* 文章导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 60px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
}

.article-nav-item {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.article-nav-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* 术语定义（concept 短术语页） */
.term-def {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
}

.term-def strong {
    color: #667eea;
    font-size: 1.1rem;
}

/* 相关术语链接 */
.related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.related-terms a {
    background: #f8f9fa;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.related-terms a:hover {
    background: #667eea;
    color: white;
}

/* 返回链接 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    margin-top: 30px;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* 术语词典 hover（concept/index.html） */
#term-glossary a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border-color: #c5d0fa;
}

/* 知识库首页 Hero（support/index.html, concept/index.html 等） */
.page-hero,
.knowledge-hero,
.develop-hero,
.videos-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: white;
}

.page-hero h1,
.knowledge-hero h1,
.develop-hero h1,
.videos-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-hero p,
.knowledge-hero p,
.develop-hero p,
.videos-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.articles-section,
.knowledge-section {
    padding: 80px 0;
}

/* support/index 搜索框 */
.search-box {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
}

.search-box button:hover {
    opacity: 0.95;
}

/* support/index 区块标题 */
.section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.knowledge-section:nth-child(even) {
    background: #f8f9fa;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-intro h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.section-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.articles-list {
    max-width: 100%;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 5px solid #667eea;
}

.article-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.article-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-number {
    width: 40px;
    height: 40px;
    background: #f0f4ff;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.article-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.9rem;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.article-card .article-meta i {
    color: #667eea;
    margin-right: 5px;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
}

.key-point i {
    color: #4caf50;
    font-size: 1rem;
}

.knowledge-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
}

.knowledge-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.knowledge-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.knowledge-card .article-count {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-list {
    max-width: 100%;
    margin: 50px auto 0;
}

.article-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-item:hover {
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.article-item .article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.article-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.article-item .article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.9rem;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.article-item .article-meta i {
    color: #667eea;
    margin-right: 5px;
}

/* develop / videos 索引页 */
.develop-grid,
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.develop-card,
.video-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border-left: 5px solid #667eea;
}

.develop-card:hover,
.video-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.develop-card-thumb,
.video-card-thumb {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.develop-card-body h3,
.video-card-body h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.develop-card-body p,
.video-card-body p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

.knowledge-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.knowledge-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
    cursor: pointer;
}

.knowledge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-hero,
    .page-hero,
    .knowledge-hero,
    .develop-hero,
    .videos-hero {
        padding: 60px 0 50px;
    }

    .article-hero h1,
    .page-hero h1,
    .knowledge-hero h1,
    .develop-hero h1,
    .videos-hero h1 {
        font-size: 2rem;
    }

    .article-content {
        margin: 40px auto;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-card .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
