/* ==========================================================================
   Yiklam Studio — research.css
   Research Archive page (research.html) specific styles.

   Navigation, footer, buttons and language toggle are supplied by
   global.css (.site-nav / .site-footer / .lang-toggle).
   This file only styles the two-pane archive layout and paper cards,
   using the canonical brand variables (sage / terracotta).
   ========================================================================== */

/* 主布局：在 .main-container 内部 */
.archive-wrapper {
    display: flex;
    gap: 1rem;
    margin: 40px auto 0 auto;
}

/* 左侧侧边栏 */
.sidebar-nav {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    background: transparent;
    padding: 1.2rem 0.5rem 1rem 0;
    border-right: 1px solid rgba(62, 107, 92, 0.2);
    overflow-y: auto;
}
.sidebar-nav::-webkit-scrollbar {
    width: 2px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}
.research-interests-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 1rem 0 1rem 0;
}
.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.category-list a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 450;
    color: var(--muted2);
    transition: 0.2s;
    display: inline-block;
}
.category-list a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

/* 右侧主内容 */
.main-content {
    flex: 1;
    padding: 0.5rem 1.5rem 3rem 1.5rem;
    max-width: calc(100% - 250px);
}

/* Hero 区域 */
.hero {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(62, 107, 92, 0.2);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 0.8rem;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0.8rem 0 1rem;
}
.hero-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(62, 107, 92, 0.08);
    border: 0.5px solid rgba(62, 107, 92, 0.3);
    padding: 0.2rem 1rem;
    border-radius: 30px;
    color: var(--accent);
}
.hero-description {
    font-size: 0.92rem;
    color: var(--muted2);
    max-width: 90%;
    line-height: 1.5;
}

/* Research Journey */
.journey-section {
    margin: 2rem 0 2.5rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1rem 1.6rem;
    border: 1px solid var(--border);
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    border-left: 3px solid var(--accent);
    padding-left: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}
.timeline-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.timeline-item {
    flex: 1;
    min-width: 160px;
    background: var(--bg);
    border-radius: 20px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
}
.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}
.timeline-desc h4 {
    font-size: 0.9rem;
    margin: 0.2rem 0 0.2rem;
    color: var(--text);
}
.timeline-desc p {
    font-size: 0.72rem;
    color: var(--muted2);
}

/* 分类 & 论文卡片 */
.category-block {
    margin-top: 2.5rem;
    scroll-margin-top: 100px;
}
.category-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.2rem;
    color: var(--text);
}
.paper-grid {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.paper-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.2rem 1.6rem;
    transition: 0.2s;
    border: 1px solid var(--border);
}
.paper-card:hover {
    border-color: var(--accent);
    background: var(--surface-warm);
}
.paper-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}
.paper-title-zh {
    font-size: 0.8rem;
    color: var(--muted2);
    margin-bottom: 0.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 0.6rem;
}
.keyword-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.6rem 0;
}
.keyword {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: var(--tag-bg);
    padding: 0.2rem 0.7rem;
    border-radius: 14px;
    color: var(--accent);
    border: 0.5px solid var(--border-strong);
}
.abstract-preview {
    font-size: 0.83rem;
    color: var(--muted2);
    margin-bottom: 0.6rem;
}
.full-abstract {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
    display: none;
    font-size: 0.8rem;
    color: var(--muted2);
    line-height: 1.45;
}
.full-abstract.show {
    display: block;
}
.card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.academic-link {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    cursor: pointer;
    transition: 0.2s;
}
.academic-link:hover {
    color: var(--accent2);
}
.request-btn {
    background: transparent;
    border: 1px solid var(--accent);
    padding: 0.25rem 1rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent);
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.request-btn:hover {
    background: var(--accent);
    color: #ffffff;
}

/* 联系区域 */
.contact-special {
    margin: 3rem 0 2rem;
    background: transparent;
    border-radius: 28px;
    padding: 1.5rem 1.8rem;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid rgba(62, 107, 92, 0.2);
}
.contact-special h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.contact-special p {
    color: var(--muted2);
}
.contact-email-block {
    font-family: var(--font-mono);
    background: var(--bg);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 32px;
    margin: 0.6rem 0;
    font-size: 0.85rem;
    border: 1px solid rgba(62, 107, 92, 0.3);
}
.contact-email-block a {
    color: var(--accent);
    text-decoration: none;
}
hr {
    border-color: var(--border);
    margin: 0.6rem 0;
}

@media (max-width: 850px) {
    .archive-wrapper {
        flex-direction: column;
        margin-top: 24px;
    }
    .sidebar-nav {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        padding: 0.5rem 0;
    }
    .main-content {
        max-width: 100%;
        padding: 1rem 0;
    }
    .hero-description {
        max-width: 100%;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}
