:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

/* 导航栏 */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页横幅 */
.hero {
    margin-top: 40px;
    background: var(--gradient-primary);
    color: white;
    padding: 40px 0 10px 0 ;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    font-size: 8rem;
    opacity: 0.8;
}

.hero-icon-group {
    position: relative;
    display: inline-block;
}

.hero-accent {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.6em;
    opacity: 0.8;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 搜索区域 */
.search-section {
    padding: 40px 0;
    background: var(--bg-secondary);
}

.search-container {
    margin: 0 auto;
    text-align: center;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#searchInput {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    border-color: var(--primary-color);
}

.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 文章区域 */
.articles-section {
    padding: 10px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.article-header {
    margin-top: 70px; /* 为固定导航栏留出空间 */
    padding: 30px 0 30px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.article-meta {
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 0 auto;
}

.article-meta span:last-child {
    font-weight: 600;
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content {
    padding: 25px;
}

/* 文章描述/简介样式 - 合并重复定义 */
.article-summary {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-category {
    padding: 3px 6px;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    /* letter-spacing: 0.5px; */
}

/* 'AI技术': 'AI',
            'Azure云': 'Azure',
            '综合开发': 'Development',
            '工具': 'Tools',
            '开发工具': 'Tools',
            '云计算': 'Cloud Computing',
            '人工智能': 'AI',
            '服务器端技术': 'Backend',
            '数据库': 'Database',
            '前端技术': 'Frontend',
            'Web开发': 'Web',
            '系统管理': 'System',
            '网络技术': 'Network',
            '移动开发': 'Mobile',
            '软件': 'Software',
            '编程语言': 'Programming',
            '框架技术': 'Framework' */
.article-category-AI {
    background-color: #8b5cf6;
}

.article-category-Azure {
    background-color: #1e40af;
}
.article-category-Development {
    background-color: #d97706;
}
.article-category-Tools {
    background-color: #047857;
}
.article-category-Cloud {
    background-color: #0369a1;
}
.article-category-Backend {
    background-color: #4338ca;
}
.article-category-Database {
    background-color: #dc2626;
}
.article-category-Frontend {
    background-color: #e11d48;
}
.article-category-Web {
    background-color: #c026d3;
}
.article-category-System {
    background-color: #ca8a04;
}
.article-category-Network {
    background-color: #0891b2;
}
.article-category-Mobile {
    background-color: #ec4899;
}
.article-category-Software {
    background-color: #7c3aed;
}
.article-category-Programming {
    background-color: #dc2626;
}
.article-category-Framework {
    background-color: #65a30d;
}


.article-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* 文章标题样式 */
.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover,
.article-card:hover .article-title a {
    color: var(--primary-color);
}

/* 文章描述样式 */
.article-summary {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章标签样式 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

/* 工具区域 */
.tools-section {
    padding: 20px 0;
    background: var(--bg-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.tool-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.tool-content {
    flex: 1;
}

.tool-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.tool-card:hover h3 {
    color: var(--primary-color);
}

.tool-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 无结果显示 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}
/* 页脚 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* 优化社交链接样式 */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.social-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}

.wechat-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
}

.wechat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wechat-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.wechat-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.wechat-qr {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.wechat-qr:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 文章详情页 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 文章正文标题样式 */
.article-container h1,
.article-container h2,
.article-container h3,
.article-container h4,
.article-container h5,
.article-container h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-container h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.article-container h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.3rem;
}

.article-container h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-left: 1rem;
}

.article-container h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 4px;
    height: 1.2rem;
    background: var(--primary-color);
    border-radius: 2px;
}

.article-container h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
}

/* 文章正文段落样式 */
.article-container p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    text-align: justify;
    word-break: break-word;
}


/* 列表样式 */
.article-container ol,
.article-container ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-container li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.article-container ul li::marker {
    color: var(--primary-color);
}

.article-container ol li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

/* 嵌套列表样式 */
.article-container li > ul,
.article-container li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 链接样式 */
.article-container a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding: 1px 2px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.article-container a:hover {
    border-bottom-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* 代码样式 */
.article-container code {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.article-container pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.article-container pre code {
    background: none;
    padding: 0;
    border: none;
    font-size: 0.85rem;
}

/* 引用样式 */
.article-container blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* 图片样式 */
.article-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 表格样式 */
.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.article-container th,
.article-container td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-container th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.article-container tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

/* 分隔线样式 */
.article-container hr {
    margin: 2rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* 文章详情页结束 */

/* 分页样式 */
.pagination-section {
    padding: 40px 0;
    background: var(--bg-secondary);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

a.icp_beian {
    color: #94a3b8;
	background-repeat: no-repeat;
	background-position: left center;
    padding-left: 3ex;
	margin-left: 1ex;
	margin-top: 1ex;
	margin-bottom: 1ex;
	display: inline-block;
	height: 5ex;
	line-height: 5ex;
	background-image: url(icp_beian.png);
}
a.gongan_beian {
    color: #94a3b8;
	background-repeat: no-repeat;
	background-position: left center;
    padding-left: 3ex;
	margin-left: 1ex;
	margin-top: 1ex;
	margin-bottom: 1ex;
	display: inline-block;
	height: 5ex;
	line-height: 5ex;
	background-image: url(gongan_beian.png);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 15px 0;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .search-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .social-platforms {
        justify-content: center;
    }

    .social-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .wechat-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .wechat-qr {
        width: 60px;
        height: 60px;
    }

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

    .article-header {
        padding: 40px 0 30px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-header .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-container {
        padding: 30px 15px;
    }

    .article-container h1 {
        font-size: 1.8rem;
    }

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

    .article-container h3 {
        font-size: 1.3rem;
    }

    .article-container ol,
    .article-container ul {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-section {
        padding: 30px 0;
    }

    .articles-section,
    .tools-section {
        padding: 40px 0;
    }

    .article-card,
    .tool-card {
        margin: 0 10px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .tool-icon {
        font-size: 2rem;
        width: auto;
    }

    .tool-content h3 {
        font-size: 1rem;
    }

    .tool-content p {
        font-size: 0.85rem;
    }

    .social-platforms {
        align-items: center;
    }

    .social-link {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }

    .article-card {
        padding: 20px;
    }

    .article-title {
        font-size: 1.1rem;
    }

    /* 文章描述/简介样式 - 响应式 */

    .article-summary {
        font-size: 0.9rem;
    }

    .lang-switch {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-container {
        padding: 20px 10px;
    }

    .article-container h1 {
        font-size: 1.5rem;
    }

    .article-container h2 {
        font-size: 1.3rem;
    }

    .article-container h3 {
        font-size: 1.1rem;
    }

    .article-container ol,
    .article-container ul {
        padding-left: 1rem;
    }

    .article-container blockquote {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
