:root {
    --brand: #0091DB;
    --brand-dark: #0077b3;
    --text: #222;
    --text-sub: #767676;
    --border: #eee;
    --bg: #f5f6f7;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    background: var(--bg);
    color: var(--text);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
a { text-decoration: none; color: inherit; }

/* header */
.neo-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.neo-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.5px;
}
.neo-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 20px;
    padding: 4px 6px 4px 14px;
}
.neo-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 120px;
}
.neo-search button {
    border: none;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
}

/* category tabs */
.neo-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background: #fff;
    border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}
.neo-tabs::-webkit-scrollbar { display: none; }
.neo-tab {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
}
.neo-tab.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* main list */
.neo-main { padding: 0 0 24px; }

.neo-headline {
    display: block;
    position: relative;
}
.neo-headline img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.neo-headline .neo-headline-text {
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.neo-headline .neo-headline-text h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}
.neo-headline .neo-meta { font-size: 12px; color: var(--text-sub); }

.neo-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.neo-card-text { flex: 1; min-width: 0; }
.neo-card-text .neo-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 4px;
}
.neo-card-text h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.neo-card-text p {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.neo-meta { font-size: 12px; color: #aaa; }
.neo-meta .dot { margin: 0 4px; }

.neo-card-thumb {
    width: 96px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}
.neo-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.neo-section-title {
    padding: 16px 16px 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    background: var(--bg);
}

.neo-empty {
    padding: 60px 16px;
    text-align: center;
    color: var(--text-sub);
}

.neo-breadcrumb {
    padding: 12px 16px 0;
    font-size: 13px;
    color: var(--text-sub);
    background: #fff;
}
.neo-breadcrumb b { color: var(--brand); }

/* pagination */
.neo-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
}
.neo-pagination a, .neo-pagination span {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-sub);
}
.neo-pagination a.active, .neo-pagination span.active {
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

/* article detail */
.neo-article { background: #fff; padding: 20px 16px; }
.neo-article .neo-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    background: #e6f4fc;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.neo-article h1 {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 10px;
}
.neo-article .neo-sub {
    font-size: 14px;
    color: var(--text-sub);
    margin: 0 0 12px;
}
.neo-article .neo-byline {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.neo-article .neo-feature-image {
    width: calc(100% + 32px);
    margin: 0 -16px 18px;
    display: block;
}
.neo-article .neo-feature-image img { width: 100%; display: block; }
.neo-article .neo-content {
    font-size: 16.5px;
    line-height: 1.8;
    word-break: break-word;
}
.neo-article .neo-content img { max-width: 100%; height: auto; }
.neo-article .neo-content p { margin: 0 0 1.2em; }

.neo-comments {
    background: #fff;
    margin-top: 10px;
    padding: 16px;
}
.neo-comments h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 14px;
}
.neo-comment {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.neo-comment .neo-comment-head {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}
.neo-comment .neo-comment-head .neo-comment-time {
    font-weight: 400;
    color: #aaa;
    margin-left: 6px;
}
.neo-comment .neo-comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.neo-footer {
    text-align: center;
    padding: 24px 16px 40px;
    color: var(--text-sub);
    font-size: 12px;
}
.neo-footer-small { color: #bbb; margin-top: 4px; }
