/* 공통 변수 관리 */
:root {
    --primary-color: #2b6cb0;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-sub: #718096;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 40px 20px;
    line-height: 1.6;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

header p {
    color: var(--text-sub);
    font-size: 16px;
}

.category-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-color);
}

.category-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f7ff;
    transform: translateY(-2px);
}

.btn-highlight {
    grid-column: 1 / -1;
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-highlight:hover {
    background: #1e4e8c;
    color: #fff;
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 13px;
    color: var(--text-sub);
}

/******* 서브용 ********/
.viewer-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: rgba(255, 255, 255, 0.95);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            z-index: 1000;
        }

        .viewer-header h2 {
            font-size: 16px;
            margin: 0;
            color: var(--text-main);
        }

        .back-link {
            text-decoration: none;
            color: var(--primary-color);
            font-size: 14px;
            font-weight: 700;
        }

        .image-container {
            margin-top: 60px; /* 헤더 높이만큼 띄움 */
            display: flex;
            justify-content: center;
            width: 100%;
        }

        .design-full-img {
            width: 100%; /* 가로 꽉 채우기 */
            max-width: none;
            height: auto;
            display: block;
        }