    .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: 100% !important;
            width: 100% !important;
        }
        .analysis-basic, .analysis-detail {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }
        .stat-card, .detail-card {
            min-width: 0 !important;
            max-width: 100%;
            font-size: 1rem;
        }
        .analysis-row {
            gap: 12px;
        }
    }

    /* 모바일 (최대 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: 100% !important;
            width: 100% !important;
        }
        .analysis-basic, .analysis-detail {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }
        .analysis-row {
            flex-wrap: wrap !important;
            gap: 8px !important;
            justify-content: flex-start !important;
        }
        .stat-card, .detail-card {
            min-width: 0 !important;
            flex: 0 0 calc(50% - 4px) !important;
            max-width: calc(50% - 4px) !important;
            width: calc(50% - 4px) !important;
            font-size: 0.9rem;
            padding: 8px 4px 6px 4px;
        }
        .keyword-bar-item .bar-wrap {
            min-width: 80px;
        }
    }
    
    /* PC 화면 (601px 이상) */
    @media (min-width: 601px) {
        .stat-card {
            flex: 1 1 calc(33.33% - 12px) !important;
            max-width: calc(33.33% - 12px) !important;
            width: auto !important;
            min-width: 0 !important;
        }
        .detail-card {
            flex: 1 1 calc(50% - 12px) !important;
            max-width: calc(50% - 12px) !important;
            width: auto !important;
            min-width: 0 !important;
        }
        .analysis-basic .analysis-row {
            justify-content: space-between;
        }
        .analysis-detail .analysis-row {
            justify-content: center;
            gap: 20px;
        }
    }
    
    .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: 8px;
        width: 100%;
        flex-wrap: wrap;
    }
    .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: 1100px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        margin-bottom: 24px;
    }
    .analysis-basic {
        flex: 1;
        max-width: 650px;
        min-width: 600px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .analysis-detail {
        flex: 1;
        max-width: 450px;
        min-width: 420px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .analysis-row {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .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;
}
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7f9fa;
    overflow-y: scroll;
}
.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
.sidebar {
    width: 100%;
    max-width: 100vw;
    background: #3498db;
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}
.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 16px 24px;
    white-space: nowrap;
}
.brand-logo {
    color: #fff;
    text-decoration: none;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0 100px 0 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    justify-content: center;
    overflow: visible;
}
.nav-item {
    margin: 0;
    position: relative;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 20px 20px;
    display: block;
    transition: background 0.2s;
}
.nav-item.active .nav-link,
.nav-link:hover {
    background: #217dbb;
}

/* 드롭다운 메뉴 스타일 */
.nav-dropdown {
    position: relative;
    overflow: visible;
}
.nav-dropdown-toggle {
    cursor: pointer;
    font-weight: 600;
}
.nav-dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 4px;
}
.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2980b9;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 1001;
}
.nav-dropdown:hover .nav-submenu {
    display: block;
}
.nav-subitem {
    margin: 0;
}
.nav-sublink {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 20px;
    display: block;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav-subitem.active .nav-sublink,
.nav-sublink:hover {
    background: #4fc3f7;
}
.main-content {
    flex: 1;
    padding: 40px 32px;
    background: #f7f9fa;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}
.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 8px 10px 8px;
    text-align: center;
    font-size: 1.08rem;
    color: #3498db;
    box-shadow: 0 2px 8px rgba(52,152,219,0.07);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stat-card .emoji {
    font-size: 1.2em;
    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.2em;
    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;
}
/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 16px 24px;
    cursor: pointer;
    margin-left: auto;
}

/* 태블릿 및 모바일 반응형 */
@media (max-width: 900px) {
    .nav-brand {
        font-size: 1.1rem;
        padding: 16px 20px;
    }
    .nav-list {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #3498db;
        display: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    .nav-list.active {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        padding: 16px 24px;
        width: 100%;
    }
    .nav-dropdown .nav-submenu {
        position: static;
        box-shadow: none;
        background: #2980b9;
        width: 100%;
    }
    .nav-dropdown.open .nav-submenu {
        display: block;
    }
    .main-content {
        padding: 24px 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nav-brand {
        font-size: 1rem;
        padding: 14px 16px;
        max-width: calc(100vw - 80px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-menu-toggle {
        padding: 14px 16px;
        font-size: 1.3rem;
    }
    .nav-link {
        font-size: 0.95rem;
        padding: 14px 20px;
    }
    .nav-sublink {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    .main-content {
        padding: 20px 12px;
        max-width: 100vw;
    }
    
    img, video, iframe, .ad-top-banner, .ad-banner {
        max-width: 100%;
        height: auto;
    }
}

/* ================== 광고 배너 스타일 ================== */
.ad-banner {
    text-align: center;
    margin: 30px auto;
    padding: 20px 0;
    max-width: 100%;
    overflow: hidden;
}

.ad-banner-mobile {
    display: none;
}

.ad-banner-pc {
    display: block;
}

/* 쿠팡 상단 광고 배너 스타일 */
.ad-top-banner {
    width: 100%;
    max-width: 100vw;
    background: #f7f9fa;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: hidden;
}

.ad-top-banner .ad-banner {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.ad-top-banner ins {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .ad-top-banner {
        padding: 12px 8px;
    }
    
    .ad-top-banner ins {
        max-width: calc(100vw - 16px);
    }
}

@media (max-width: 768px) {
    .ad-banner-mobile {
        display: block;
    }
    .ad-banner-pc {
        display: none;
    }
}

/* ================== 푸터 스타일 ================== */
.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;
    }
}
