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

body {
    font-family: 'Noto Sans KR', 'Noto Sans', -apple-system, sans-serif;
    background-color: #ffffff;
    color: #222;
    line-height: 1.5;
}

/* 언어 선택 바 */
.language-bar {
    background-color: #fff5d9;
    border-bottom: 1px solid #e0d5b8;
    padding: 14px 0;
}

.language-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.language-label {
    background-color: #c4d9ed;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.language-link {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.language-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-link.active {
    color: #1a5490;
    font-weight: 600;
}

/* 헤더 */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ci {
    font-size: 22px;
    font-weight: 700;
    color: #1a5490;
}

/* 메인 컨텐츠 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #222;
}

/* 도서 그리드 */
.books-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.book-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
}

/* 도서 표지 박스 - 모든 책이 동일한 크기 */
.book-cover-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
}

/* 표지 이미지 - 박스 안에서 비율 유지 */
.book-cover-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 도서 제목 박스 */
.book-title-box {
    border: 1px solid #6b9ed1;
    border-radius: 4px;
    padding: 12px 14px;
    text-align: center;
    color: #1a5490;
    font-size: 14px;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 반응형 */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .language-bar-inner {
        gap: 12px;
    }

    .page-title {
        font-size: 22px;
    }
}
