/*
Theme Name: SmartSensor Lab
Theme URI: https://smartsensor-lab.com
Author: SmartSensor Team
Author URI: https://smartsensor-lab.com
Description: 智能传感课题组专用 WordPress 主题 - 浅色科技现代风格
Version: 3.3.0
License: GPL v2 or later
Text Domain: smartsensor
*/

/* ========================================
   CSS Variables / Design Tokens - Light Theme
   ======================================== */
:root {
    /* Primary palette - 科技蓝 */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --secondary-color: #0891b2;
    --secondary-glow: rgba(8, 145, 178, 0.15);
    --accent-color: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.2);

    /* Text colors */
    --text-color: #334155;
    --text-heading: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    /* Background colors */
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-section-alt: #f1f5f9;
    --bg-dark: #f8fafc;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-glow: rgba(37, 99, 235, 0.25);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Section title styles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title-left {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}
.section-title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 3rem;
    margin-top: -0.3rem;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(37, 99, 235, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; font-weight: 700;
}
.site-title { font-size: 1.25rem; font-weight: 700; color: var(--text-heading); }

.main-navigation ul { display: flex; list-style: none; gap: 2rem; }
.main-navigation a {
    color: var(--text-light); font-size: 0.9rem; font-weight: 500;
    padding: 0.5rem 0; position: relative; transition: var(--transition);
}
.main-navigation a::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}
.main-navigation a:hover::after, .main-navigation a.active::after { width: 100%; }
.main-navigation a:hover, .main-navigation a.active { color: var(--primary-color); }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-heading); margin: 5px 0; transition: var(--transition); }

/* ========================================
   Hero Section - Light Tech Style
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 25%, #f8fafc 50%, #ecfeff 75%, #f0f4ff 100%);
    overflow: hidden;
    padding-top: 70px;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(8, 145, 178, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid rgba(37, 99, 235, 0.2);
}
.btn-outline:hover {
    background: rgba(37, 99, 235, 0.04);
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}
.hero-scroll svg { width: 24px; height: 24px; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    padding: 80px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}
.stat-item:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
    background: var(--bg-white);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 100px 0;
    background: var(--bg-body);
    position: relative;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(37, 99, 235, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(8, 145, 178, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
}

.about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-icon-box {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon-ring {
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.15);
    animation: ringPulse 3s ease-in-out infinite;
}
.about-icon-ring::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(8, 145, 178, 0.12);
    animation: ringPulse 3s ease-in-out infinite 0.5s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 1; }
}

.about-icon-core {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(8, 145, 178, 0.06));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.15);
    z-index: 1;
}

.about-tech-lines {
    display: flex;
    gap: 1.5rem;
}
.tech-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    animation: lineFade 2s ease-in-out infinite;
}
.tech-line:nth-child(2) { animation-delay: 0.4s; }
.tech-line:nth-child(3) { animation-delay: 0.8s; }

@keyframes lineFade {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.4; }
}

.about-content {
    position: relative;
}

.about-tagline {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.about-text {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    line-height: 2;
    color: var(--text-color);
    font-size: 0.95rem;
    box-shadow: var(--shadow-card);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.highlight-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.highlight-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(8, 145, 178, 0.08));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.highlight-text {
    display: flex;
    flex-direction: column;
}
.highlight-text strong {
    color: var(--text-heading);
    font-size: 0.85rem;
    font-weight: 600;
}
.highlight-text span {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ========================================
   Research Areas
   ======================================== */
.research-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
    position: relative;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.research-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.research-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
    transform: translateY(-5px);
}
.research-card:hover .research-glow {
    opacity: 1;
}

.research-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.research-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.research-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.8rem;
}
.research-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========================================
   Team Section
   ======================================== */
.team-section {
    padding: 100px 0;
    background: var(--bg-body);
}

.team-group { margin-bottom: 3.5rem; }
.team-group:last-child { margin-bottom: 0; }

.team-group-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: inline-block;
}
.team-group-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.team-grid { display: grid; gap: 2rem; }
.team-grid.advisors { grid-template-columns: repeat(3, 1fr); }
.team-grid.students { grid-template-columns: repeat(4, 1fr); }

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-card);
}
.team-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
    transform: translateY(-4px);
}

.team-avatar {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f0fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-avatar.small { height: 140px; }

.avatar-placeholder {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
}
.avatar-placeholder.small {
    width: 60px; height: 60px;
    font-size: 1.3rem;
}

.avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.team-card h4 {
    padding: 1.2rem 1.2rem 0.3rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
}
.team-card p {
    padding: 0 1.2rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}
.team-card .team-bio-short {
    padding: 0.2rem 1.2rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    min-height: 2.4em;
}
.team-card.small { padding: 0; }
.team-card.small h4 { font-size: 0.95rem; }
.team-card.small p { font-size: 0.8rem; }
.team-card.small .team-bio-short { padding: 0 1rem 1rem; font-size: 0.75rem; }

/* ========================================
   Publications & News
   ======================================== */
.publications-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.news-tab {
    padding: 10px 28px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.news-tab.active, .news-tab:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pub-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.pub-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
}

/* 重要成果高亮 */
.pub-highlight {
    border-left: 3px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(255, 255, 255, 1));
}
.pub-ribbon {
    position: absolute;
    top: 10px; right: -28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 32px;
    transform: rotate(45deg);
    letter-spacing: 1px;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.pub-year {
    flex-shrink: 0;
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}
.pub-year .year { font-size: 1.3rem; line-height: 1; }
.pub-year .label { font-size: 0.7rem; opacity: 0.8; margin-top: 2px; }

.pub-content { flex: 1; }
.pub-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-heading);
    line-height: 1.5;
}
.pub-authors { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.3rem; }
.pub-journal { font-size: 0.85rem; color: var(--primary-color); font-weight: 500; font-style: italic; }

.pub-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}
.pub-doi {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(8, 145, 178, 0.06);
    border: 1px solid rgba(8, 145, 178, 0.15);
    transition: var(--transition);
}
.pub-doi:hover {
    background: rgba(8, 145, 178, 0.12);
    color: #0e7490;
    border-color: rgba(8, 145, 178, 0.3);
}

.pub-actions { margin-top: 0.8rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.pub-download {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: var(--primary-color);
    color: #fff; border-radius: 6px;
    text-decoration: none; font-size: 0.85rem; font-weight: 500;
    transition: all 0.3s ease;
}
.pub-download:hover {
    background: var(--primary-dark);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pub-no-pdf {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    cursor: default;
}

/* News Cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.news-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #e8f0fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.news-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(8, 145, 178, 0.04));
}
.news-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

.news-thumbnail .news-date {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-body h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.8rem; color: var(--text-heading); line-height: 1.5; }
.news-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.news-link { color: var(--primary-color); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.news-link:hover { color: var(--primary-dark); gap: 8px; }

/* ========================================
   Progress / Timeline
   ======================================== */
.progress-section {
    padding: 100px 0;
    background: var(--bg-body);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-body);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.timeline-content:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.06);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.timeline-date {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.timeline-content p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

.timeline-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.timeline-status.completed { background: rgba(16, 185, 129, 0.1); color: #059669; }
.timeline-status.ongoing { background: rgba(37, 99, 235, 0.08); color: var(--primary-color); }
.timeline-status.planned { background: rgba(245, 158, 11, 0.1); color: #d97706; }

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.contact-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.06);
    transform: translateY(-3px);
}

.contact-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(8, 145, 178, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}
.contact-text h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-heading); margin-bottom: 0.3rem; }
.contact-text p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand h3 { color: white; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.2rem; }

.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}
.footer-social a:hover { background: var(--primary-color); color: white; border-color: transparent; }

.footer-links h4 { color: white; font-size: 1rem; font-weight: 600; margin-bottom: 1.2rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; transition: var(--transition); text-decoration: none; }
.footer-links a:hover { color: #60a5fa; padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35); }

/* ========================================
   Empty Messages
   ======================================== */
.empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    width: 100%;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-visual { flex-direction: row; justify-content: center; }
    .research-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid.advisors { grid-template-columns: repeat(2, 1fr); }
    .team-grid.students { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-highlights { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-description { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }
    .section-title-left { font-size: 1.5rem; }

    .main-navigation {
        display: none;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
    }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; gap: 0.8rem; }
    .mobile-menu-toggle { display: block; }

    .about-visual { flex-direction: column; }
    .about-highlights { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; }
    .team-grid.advisors, .team-grid.students { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; max-width: 400px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pub-item { flex-direction: column; }
    .pub-year { width: 100%; height: auto; flex-direction: row; gap: 1rem; padding: 0.8rem; border-radius: var(--radius-sm); }
}
