* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --accent-color-bright: #7ee6b3;
    --text-secondary: rgba(0, 0, 0, 0.55);
}

.dark-theme {
    --accent-color-bright: #7ee6b3;
    --text-secondary: rgba(255, 255, 255, 0.55);
}

.light-theme {
    --accent-color-bright: #047857;
    --text-secondary: rgba(255, 255, 255, 0.55);
}

body:not(.dark-theme) {
    --accent-color-bright: #047857;
    --text-secondary: rgba(0, 0, 0, 0.55);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--accent-color-bright);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-color-bright);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-secondary);
}

.site-info-content {
    padding: 2rem;
}

/* 讓自傳段落與下方清單(li 文字)左緣對齊，但不使用 ul/li 結構 */
.site-info-content .info-bio p {
    margin-top: 0;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.dark-theme .site-info-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.site-info-image:hover .image-overlay {
    opacity: 0.2;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.site-info-image:hover .overlay-content {
    transform: translateY(0);
}

.overlay-icon {
    width: 4rem;
    height: 4rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: bounce 2s infinite;
}

.overlay-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 動畫定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.site-info-details {
    margin-top: 2.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    background: var(--secondary-color);
    color: aliceblue !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-badge:hover {
    transform: translateY(-2px);
}

.site-info-details p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.info-item p {
    font-size: 1rem;
    margin-top: 0.8rem;
    margin-bottom: 0;
    padding-left: 0.3rem;
}

.site-info-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.site-info-details ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.7;
    color: var(--text-color);
    transition: transform 0.2s ease, color 0.2s ease;
}
.site-info-details ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-info-details ul li a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .site-info-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-info-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .site-info-content {
        padding: 1.5rem;
    }
}