/* Reset and base styles */
:root {
    --primary-color: #4c7d99;
    /* Deep blue */
    --primary-light: #3b82f6;
    --accent-color: #d97706;
    /* Amber gold */
    --accent-light: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-sans: 'Chiron GoRound TC', sans-serif;
    --font-heading: 'Chiron GoRound TC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.logo a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item.active a {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Banner Section */
.banner {
    background: linear-gradient(135deg, rgba(247, 215, 183, 1) 0%, rgba(254, 144, 144, 1) 33%, rgba(254, 144, 144, 1) 33%, rgba(252, 161, 161, 1) 68%, rgba(150, 234, 213, 1) 96%);
    color: var(--text-light);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner h2 {
    font-size: 2.2rem;
    color: rgba(243, 244, 246, 0.85);
    font-weight: 300;
}

/* Home Banner Custom Styles */
.home-banner .banner-content {
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    text-align: left;
}

.home-banner .banner-logo-container {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 0%;
    border: 0px dashed rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.home-banner .banner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-banner .banner-logo-container.empty::after {
    content: '圖片空間';
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .home-banner .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .home-banner .banner-logo-container {
        width: 160px;
        height: 160px;
    }
}

/* Main Content Area */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: var(--radius-sm);
}

/* Cards & Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);

    object-fit: cover;
}

.about-text {
    line-height: 1.8;
    text-align: justify;
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

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

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

/* =======================================
   Research Topics Horizontal Circle Nav
   ======================================= */
.topic-nav-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 252, 0.85));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    margin: 2.5rem 0 4rem;
    box-shadow: var(--shadow-md);
    position: relative;
    backdrop-filter: blur(10px);
}

.topic-nav-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.topic-nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 125, 153, 0.12);
    color: var(--primary-color);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.topic-nav-hint {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.topic-circle-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    padding: 0.5rem 0;
}

/* Connecting decorative track behind circles */
.topic-circle-nav::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg,
            rgba(76, 125, 153, 0.25) 0%,
            rgba(217, 119, 6, 0.4) 50%,
            rgba(76, 125, 153, 0.25) 100%);
    z-index: 1;
}

.topic-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    flex: 1;
    max-width: 190px;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.topic-circle-item:hover {
    transform: translateY(-5px);
}

.topic-circle-icon-wrapper {
    position: relative;
    margin-bottom: 0.9rem;
}

.topic-circle-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: var(--primary-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topic-circle-item:hover .topic-circle-icon {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f7fa, #ffffff);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(76, 125, 153, 0.2);
    transform: scale(1.06);
}

.topic-index-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
}

.topic-circle-item:hover .topic-index-badge {
    background: var(--primary-color);
    transform: scale(1.1);
}

.topic-circle-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-dark);
    transition: var(--transition);
}

.topic-circle-item:hover .topic-circle-title {
    color: var(--primary-color);
}

.topic-circle-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 500;
    line-height: 1.3;
}

/* =======================================
   Detailed Research Topic Article Sections
   ======================================= */
.research-topic-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 2rem;
}

.research-topic-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.research-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.research-topic-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(76, 125, 153, 0.3);
}

.topic-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.topic-card-title-group {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.topic-card-icon-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(76, 125, 153, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.topic-card-heading h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.topic-card-heading .topic-en-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.back-to-nav-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.back-to-nav-btn:hover {
    color: var(--primary-color);
    background: #eaf1f6;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.topic-tag {
    font-size: 0.82rem;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-color);
    font-weight: 600;
}

.topic-tag.tag-primary {
    background: rgba(76, 125, 153, 0.1);
    color: var(--primary-color);
}

.topic-content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.25rem;
    align-items: start;
}

/* =======================================
   Publication Link Card Styling
   ======================================= */
.publication-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.publication-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    background-color: #fafcfe;
}

.publication-card .pub-text {
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
    color: var(--text-dark);
    flex: 1;
}

.publication-card .pub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: #e8f4f8;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(76, 125, 153, 0.25);
    transition: var(--transition);
}

.publication-card:hover .pub-badge {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.topic-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.topic-text p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

/* =======================================
   Research Topic Image Container & Placeholder
   ======================================= */
.topic-image-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    justify-content: flex-start;
}

.topic-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    transition: var(--transition);
}

.topic-image:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.topic-image-placeholder {
    width: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    text-align: center;
    transition: all 0.3s ease;
}

.topic-image-placeholder:hover {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, #f0f7fa 0%, #e2e8f0 100%);
}

.topic-image-placeholder i {
    font-size: 2.8rem;
    color: var(--primary-light);
    opacity: 0.65;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.topic-image-placeholder:hover i {
    transform: translateY(-4px) scale(1.08);
    opacity: 0.95;
    color: var(--primary-color);
}

.topic-image-placeholder span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.topic-image-placeholder small {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Blog styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.blog-post-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-post-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-post-image-container {
    width: 100%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 1.5rem 1rem;
}

.blog-post-image {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: block;
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.blog-post-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-post-excerpt {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    white-space: pre-wrap;
}

.blog-post-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    opacity: 0;
    margin-bottom: 0;
}

.blog-post-full.expanded {
    max-height: 10000px;
    opacity: 1;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.blog-post-full-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
    padding-top: 0;
    border-top: none;
    white-space: pre-wrap;
}

.blog-post-full-content strong,
.blog-post-excerpt strong {
    color: var(--primary-color);
    font-weight: 700;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.read-more-btn .btn-icon {
    font-size: 0.8rem;
    transition: transform var(--transition);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar-widget {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-post-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    background-color: rgba(0, 102, 204, 0.08);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.blog-post-category-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.45rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
}

.category-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(3px);
}

.category-item.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-color: var(--primary-color);
}

.category-item.active .category-icon {
    color: #fff;
}

.category-item.active .category-count {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.category-count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background-color: var(--bg-light);
    color: var(--text-muted);
    transition: var(--transition);
}

.category-icon {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    width: 1.1rem;
    text-align: center;
}

/* PI Page Styles */
.pi-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
}

.pi-photo-container {
    text-align: center;
}

.pi-photo {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.pi-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.pi-info li strong {
    color: var(--primary-color);
}

/* Members Grid */
.member-card {
    text-align: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-light);
    background-color: var(--bg-light);
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.member-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-form {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Admin Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: rgba(254, 144, 144, 1);
    color: #ffffff;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-start;
}

.footer-brand>* {
    margin: 0;
    line-height: 1.4;
}

.footer-nycu-logo {
    height: 28px;
    width: auto;
    max-width: 100%;
    display: block;
    transition: opacity var(--transition);
}

.footer-nycu-logo:hover {
    opacity: 0.85;
}

.footer-institute-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    transition: opacity var(--transition);
    display: inline-block;
}

.footer-institute-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.footer-lab-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.footer-description {
    color: rgba(255, 255, 255, 0.95);
    max-width: 480px;
    line-height: 1.7;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .blog-layout,
    .pi-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pi-photo {
        max-width: 200px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .banner h1 {
        font-size: 2rem;
    }

    /* Research Topic Navigation Responsive */
    .topic-circle-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem 1rem;
    }

    .topic-circle-nav::before {
        display: none;
    }

    .topic-circle-item {
        flex: 0 1 calc(33.333% - 1rem);
        min-width: 140px;
    }

    .topic-content-grid {
        grid-template-columns: 1fr;
    }

    .topic-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .back-to-nav-btn {
        align-self: flex-start;
    }

    .research-topic-card {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 520px) {
    .topic-nav-container {
        padding: 1.5rem 1rem;
    }

    .topic-circle-item {
        flex: 0 1 calc(50% - 0.75rem);
        min-width: 130px;
    }

    .topic-circle-icon {
        width: 66px;
        height: 66px;
        font-size: 1.6rem;
    }

    .topic-circle-title {
        font-size: 0.88rem;
    }
}

/* =======================================
   圖片點擊放大燈箱 (Image Lightbox Modal)
   ======================================= */
/* 讓文章配圖滑鼠懸停時顯示放大鏡圖標，提示可點擊 */
.topic-image {
    cursor: zoom-in;
}

/* 黑色半透明背景遮罩 */
.image-modal {
    display: none;
    /* 平時隱藏 */
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(15, 23, 42, 0.88);
    /* 深色遮罩 */
    backdrop-filter: blur(6px);
    /* 磨砂玻璃效果 */
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* 啟用顯示狀態 */
.image-modal.active {
    display: flex;
    opacity: 1;
}

/* 燈箱內部內容容器 */
.image-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 放大顯示的圖片 */
#modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: #ffffff;
}

/* 圖片下方的說明文字 (取自 img 的 alt) */
.image-modal-caption {
    margin-top: 1rem;
    color: #f1f5f9;
    font-size: 0.95rem;
    text-align: center;
    max-width: 700px;
    line-height: 1.5;
}

/* 右上角關閉按鈕 (X) */
.image-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 彈出時的放大微動畫 */
@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}