    .editor-section,
    .input-area-wrap {
        width: 100%;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 기본 PC 레이아웃 (최대 1400px) */
    .main-content {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    #text-input {
        width: 100%;
        max-width: 900px;
        min-height: 220px;
        font-size: 1.1rem;
        padding: 16px;
        border: 1px solid #dbe6ec;
        border-radius: 8px;
        margin-bottom: 24px;
        resize: vertical;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* 태블릿 (최대 1024px) */
    @media (max-width: 1024px) {
        .layout {
            flex-direction: column;
        }
        .sidebar {
            width: 100%;
            flex-direction: row;
            padding: 12px 0;
            justify-content: center;
            align-items: center;
        }
        .main-content {
            max-width: 98vw;
            padding: 24px 8px;
        }
        #text-input {
            max-width: 98vw;
            font-size: 1rem;
            min-height: 160px;
        }
        .analysis-flex {
            flex-direction: column;
            gap: 18px;
            max-width: 98vw;
        }
        .analysis-basic, .analysis-detail {
            width: 100%;
            max-width: 98vw;
        }
        .stat-card, .detail-card {
            min-width: 120px;
            max-width: 100%;
            font-size: 1rem;
        }
    }

    /* 모바일 (최대 600px) */
    @media (max-width: 600px) {
        .layout {
            flex-direction: column;
        }
        .sidebar {
            width: 100%;
            flex-direction: column;
            padding: 8px 0;
            font-size: 0.95rem;
        }
        .main-content {
            max-width: 100vw;
            padding: 12px 2px;
        }
        #text-input {
            max-width: 98vw;
            font-size: 0.95rem;
            min-height: 100px;
            padding: 10px;
        }
        .analysis-flex {
            flex-direction: column;
            gap: 12px;
            max-width: 100vw;
        }
        .analysis-basic, .analysis-detail {
            width: 100%;
            max-width: 100vw;
        }
        .stat-card, .detail-card {
            min-width: 90px;
            max-width: 100%;
            font-size: 0.95rem;
            padding: 8px 0 6px 0;
        }
        .keyword-bar-item .bar-wrap {
            min-width: 80px;
        }
    }
    .analysis-basic {
        background: #eaf3ff;
        border: 2.5px solid #447EF2;
        border-radius: 24px;
        padding: 32px 24px;
        box-shadow: 0 4px 16px rgba(68,126,242,0.10);
    }
    .analysis-detail {
        background: #f7f7fa;
        border: 2.5px solid #bbbfd6;
        border-radius: 24px;
        padding: 32px 24px;
        box-shadow: 0 4px 16px rgba(68,126,242,0.08);
    }
    .card-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 18px;
        width: 100%;
    }
    .stat-card .emoji, .detail-card .emoji {
        font-size: 2.2em;
        margin-bottom: 0;
        margin-right: 0;
        display: block;
    }
    .analysis-flex {
        display: flex;
        gap: 32px;
        width: 100%;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        margin-bottom: 24px;
    }
    .analysis-basic {
        flex: 7;
        max-width: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .analysis-detail {
        flex: 3;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .analysis-row {
        display: flex;
        gap: 16px;
        justify-content: center;
    }
    .keyword-list-bar {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 480px;
        margin-left: 0;
    }
    .keyword-bar-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
        background: #f1f6fa;
        border-radius: 8px;
        padding: 8px 14px;
        font-size: 1.08rem;
        color: #217dbb;
        box-shadow: 0 2px 8px rgba(52,152,219,0.07);
        font-weight: 500;
    }
    .keyword-bar-item .kw {
        min-width: 70px;
        font-weight: 600;
        color: #447EF2;
        margin-right: 8px;
    }
    .keyword-bar-item .bar-wrap {
        flex: 1;
        height: 18px;
        background: #eaf0fa;
        border-radius: 8px;
        margin: 0 8px;
        position: relative;
        overflow: hidden;
        border: 1px solid #bcd6f6;
        min-width: 280px;
    }
    .keyword-bar-item .bar {
        height: 100%;
        background: linear-gradient(90deg, #447EF2 60%, #7fb3ff 100%);
        border-radius: 8px;
        transition: width 0.3s;
        min-width: 2px;
    }
    .keyword-bar-item .count {
        min-width: 40px;
        text-align: right;
        font-size: 1.08em;
        color: #447EF2;
        font-weight: 700;
        margin-right: 8px;
    }
    .keyword-list-bar .empty {
        background: none;
        color: #aaa;
        font-size: 1em;
        box-shadow: none;
        min-width: 0;
        padding: 0;
}
.keyword-section .section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #217dbb;
    margin-bottom: 10px;
    margin-left: 8px;
}
.keyword-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}
.keyword-list li {
    background: #f1f6fa;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1.08rem;
    color: #217dbb;
    box-shadow: 0 2px 8px rgba(52,152,219,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    font-weight: 500;
}
.keyword-list .kw {
    font-size: 1.08em;
    font-weight: 600;
    margin-bottom: 4px;
    color: #447EF2;
}
.keyword-list .count {
    font-size: 1.2em;
    margin-bottom: 6px;
    margin-right: 0;
    display: block;
}
.keyword-list .empty {
    background: none;
    color: #aaa;
    font-size: 1em;
    box-shadow: none;
    min-width: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #f7f9fa;
}
.layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 220px;
    background: #3498db;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}
.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}
.brand-logo {
    color: #fff;
    text-decoration: none;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-item {
    margin-bottom: 16px;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 24px;
    display: block;
    border-radius: 6px;
    transition: background 0.2s;
}
.nav-item.active .nav-link,
.nav-link:hover {
    background: #217dbb;
}

/* 드롭다운 메뉴 스타일 */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    cursor: pointer;
    font-weight: 600;
}
.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.nav-dropdown.open .nav-submenu {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}
.nav-subitem {
    margin: 0;
}
.nav-sublink {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 24px 8px 40px;
    display: block;
    border-radius: 6px;
    transition: background 0.2s;
    opacity: 0.9;
}
.nav-subitem.active .nav-sublink,
.nav-sublink:hover {
    background: #217dbb;
    opacity: 1;
}
.main-content {
    flex: 1;
    padding: 40px 32px;
    background: #fff;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}
.header {
    margin-bottom: 32px;
}
.logo {
    font-size: 2rem;
    margin-bottom: 8px;
}
.subtitle {
    color: #666;
    font-size: 1.1rem;
}
.editor-section {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#text-input {
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    font-size: 1.1rem;
    padding: 16px;
    border: 1px solid #dbe6ec;
    border-radius: 8px;
    margin-bottom: 24px;
    resize: vertical;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.basic-analysis {
    margin-bottom: 24px;
}
.analysis-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #217dbb;
    margin-bottom: 8px;
    text-align: left;
    margin-left: 8px;
}

.basic-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}
.basic-row.one-line {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}

.stat-card {
    background: #f1f6fa;
    border-radius: 8px;
    padding: 14px 0 10px 0;
    text-align: center;
    font-size: 1.08rem;
    color: #3498db;
    box-shadow: 0 2px 8px rgba(52,152,219,0.07);
    min-width: 200px;
    width: 200px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stat-card .emoji {
    font-size: 1.7em;
    display: block;
    margin-bottom: 6px;
}
.stat-card span {
    display: block;
}
.count-value {
    margin-top: 6px;
    font-size: 1.35em;
    font-weight: 700;
    color: #447EF2;
    letter-spacing: 0.5px;
    text-align: center;
}
.detail-analysis {
    margin-bottom: 24px;
}
.detail-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.detail-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 0 8px 0;
    text-align: center;
    font-size: 1rem;
    color: #217dbb;
    min-width: 200px;
    width: 200px;
    max-width: 200px;
    box-shadow: 0 1px 4px rgba(52,152,219,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.detail-card .emoji {
    font-size: 1.7em;
    display: block;
    margin-bottom: 6px;
}
.detail-card span {
    display: block;
}
.detail-card .count-value {
    margin-top: 6px;
    font-size: 1.35em;
    font-weight: 700;
    color: #447EF2;
    letter-spacing: 0.5px;
}
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 12px 0;
    }
    .nav-list {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    .main-content {
        padding: 24px 8px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================== 푸터 스타일 ================== */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 30px 0;
    margin-top: 40px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #217dbb;
}
.footer-copyright {
    color: #888;
    font-size: 0.9em;
}
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}
