/*
Theme Name: AI社会学
Theme URI: https://aishx.cn
Author: AI社会学研究团队
Author URI: https://aishx.cn
Description: 专为AI社会学网站设计的WordPress主题，现代简洁的学术研究风格
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aishx
*/

:root {
    --primary: #0f172a;
    --secondary: #64748b;
    --accent: #3b82f6;
    --bg: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--primary);
    line-height: 1.7;
    background: var(--bg);
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary) !important;
    letter-spacing: -0.02em;
}

.nav-link {
    color: var(--secondary) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero区域 */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.hero-values {
    display: inline-flex;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--secondary);
}

.hero-values span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-values span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* 内容区 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

/* 文章卡片 */
.article {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary);
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: var(--accent);
}

.article-excerpt {
    font-size: 1rem;
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.35rem 0.75rem;
    background: var(--surface);
    color: var(--secondary);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
}

.tag:hover {
    background: var(--accent);
    color: white;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.sidebar-text {
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.6;
}

.topic-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.topic-link:last-child {
    border-bottom: none;
}

.topic-link:hover {
    color: var(--accent);
}

.topic-count {
    font-size: 0.8rem;
    color: var(--secondary);
    opacity: 0.6;
}

/* 文章详情页样式 */
.article-header {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.article-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--secondary);
    font-style: italic;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* 数据可视化 */
.data-visualization {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* 方法论说明 */
.methodology {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.methodology-title {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.methodology-content {
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.6;
}

/* 关键发现 */
.key-findings {
    background: #f0f9ff;
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.key-findings h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* 数据开放 */
.open-data {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.open-data h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.open-data-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.data-link {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.3);
}

.data-link:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* 作者信息 */
.author-info {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.author-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 分类页 */
.category-header {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    text-align: center;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.category-desc {
    font-size: 1.15rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.filter-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.2rem;
    background: var(--surface);
    color: var(--secondary);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* 分页 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-numbers {
    padding: 0.75rem 1.2rem;
    background: var(--surface);
    color: var(--secondary);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.page-numbers:hover, .page-numbers.current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* 底部 */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary);
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-values {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article {
        padding: 1.5rem;
    }

    .sidebar {
        position: static;
        margin-top: 2rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .filter-bar {
        position: static;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article {
    animation: fadeIn 0.6s ease-out;
}