/* ===== Unit Converter · "Gongju" Theme Port ===== */

:root {
    /* New Theme Variables */
    --uc-primary: #3b82f6;
    --uc-primary-hover: #2563eb;
    --uc-bg: #f9fafb;
    --uc-bg-alt: #f3f4f6;
    
    /* Legacy Variables mapped to new theme to prevent HTML breakage */
    --uc-teal: #3b82f6;
    --uc-teal-d: #2563eb;
    --uc-teal-l: #eff6ff;
    --uc-amber: #3b82f6;
    --uc-amber-l: #eff6ff;
    --uc-dark: #1f2937;
    --uc-dark2: #374151;
    --uc-text: #1f2937;
    --uc-muted: #6b7280;
    --uc-border: #d1d5db;
    --uc-border-l: #e5e7eb;
    --uc-card: #ffffff;
}

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

body {
    background-color: var(--uc-bg);
    color: var(--uc-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--uc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.uc-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .uc-wrap { max-width: 640px; } }
@media (min-width: 768px) { .uc-wrap { max-width: 768px; } }
@media (min-width: 1024px) { .uc-wrap { max-width: 1024px; } }
@media (min-width: 1280px) { .uc-wrap { max-width: 1280px; } }
@media (min-width: 1536px) { .uc-wrap { max-width: 1536px; } }

/* ===== Header ===== */
.uc-topbar {
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.uc-bar {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uc-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uc-logo-img { height: 2rem; }

.uc-logo-txt {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--uc-primary);
    letter-spacing: normal;
}

.uc-lang select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--uc-border-l);
    border-radius: 0.5rem;
    background-color: #fff;
    color: var(--uc-text);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    background-image: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s;
    outline: none;
}
.uc-lang select:hover { border-color: var(--uc-primary); }
.uc-lang select:focus {
    border-color: var(--uc-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* ===== Main ===== */
.uc-main { flex-grow: 1; padding-top: 2rem; padding-bottom: 2rem; }

/* ===== Footer ===== */
.uc-foot {
    background-color: #fff;
    border-top: 1px solid var(--uc-border-l);
    margin-top: auto;
    padding: 2rem 0;
}

.uc-foot-info {
    text-align: center;
    color: var(--uc-muted);
    font-size: 0.875rem;
}
.uc-foot-info p { margin-bottom: 0.5rem; }
.uc-foot-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.uc-foot-info a:hover { color: var(--uc-primary); }

/* ===== Homepage Tool Grid ===== */
.uc-tools-area { padding: 3rem 0; }

.uc-cat { margin-bottom: 3rem; }

.uc-cat-h {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding-left: 0;
    border-left: none;
}
.uc-cat-h::before {
    content: '';
    width: 0.375rem;
    height: 1.5rem;
    background-color: var(--uc-dark);
    border-radius: 9999px;
    margin-right: 0.75rem;
}

.uc-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 768px) { .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px)  { .uc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .uc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.uc-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--uc-border-l);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s;
    height: 100%;
}
.uc-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: none;
    text-decoration: none;
}

.uc-card-ico {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}
.uc-card-ico svg { width: 24px; height: 24px; }

.uc-card-t {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.uc-card-d {
    color: var(--uc-muted);
    font-size: 0.875rem;
    flex-grow: 1;
}

/* Card color variants */
.uc-c-teal .uc-card-ico { background-color: #eff6ff; color: var(--uc-primary); }
.uc-c-teal:hover { border-color: rgba(59, 130, 246, 0.5); }
.uc-c-teal:hover .uc-card-ico { background-color: var(--uc-primary); color: #fff; }
.uc-c-teal:hover .uc-card-t { color: var(--uc-primary); }

.uc-c-violet .uc-card-ico { background-color: #faf5ff; color: #a855f7; }
.uc-c-violet:hover { border-color: rgba(168, 85, 247, 0.5); }
.uc-c-violet:hover .uc-card-ico { background-color: #a855f7; color: #fff; }
.uc-c-violet:hover .uc-card-t { color: #a855f7; }

.uc-c-emerald .uc-card-ico { background-color: #f0fdf4; color: #22c55e; }
.uc-c-emerald:hover { border-color: rgba(34, 197, 94, 0.5); }
.uc-c-emerald:hover .uc-card-ico { background-color: #22c55e; color: #fff; }
.uc-c-emerald:hover .uc-card-t { color: #22c55e; }

.uc-c-amber .uc-card-ico { background-color: #fff7ed; color: #f97316; }
.uc-c-amber:hover { border-color: rgba(249, 115, 22, 0.5); }
.uc-c-amber:hover .uc-card-ico { background-color: #f97316; color: #fff; }
.uc-c-amber:hover .uc-card-t { color: #f97316; }

.uc-c-rose .uc-card-ico { background-color: #fff1f2; color: #f43f5e; }
.uc-c-rose:hover { border-color: rgba(244, 63, 94, 0.5); }
.uc-c-rose:hover .uc-card-ico { background-color: #f43f5e; color: #fff; }
.uc-c-rose:hover .uc-card-t { color: #f43f5e; }

.uc-c-yellow .uc-card-ico { background-color: #fefce8; color: #eab308; }
.uc-c-yellow:hover { border-color: rgba(234, 179, 8, 0.5); }
.uc-c-yellow:hover .uc-card-ico { background-color: #eab308; color: #fff; }
.uc-c-yellow:hover .uc-card-t { color: #eab308; }

/* ===== Tool Detail Page ===== */
.uc-box {
    max-width: 75rem;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    min-height: calc(100vh - 200px);
    background: transparent;
    border: none;
}
@media (max-width: 767px) { .uc-box { padding: 1rem; } }

.uc-box-head {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--uc-border-l);
}

.uc-box-t {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.75rem;
}

.uc-box-d {
    color: var(--uc-muted);
    font-size: 1rem;
}

/* Two-column layout */
.uc-cols2 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}
@media (min-width: 768px) {
    .uc-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Panels */
.uc-panel-in {
    background-color: var(--uc-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--uc-border-l);
}

.uc-panel-out {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--uc-border-l);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .uc-panel-in, .uc-panel-out { padding: 2rem; }
}

.uc-panel-h {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.uc-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: var(--uc-primary);
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.uc-dot-amber { background-color: #22c55e; }

/* Forms */
.uc-field { margin-bottom: 1.5rem; }

.uc-lbl {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.uc-ipt {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
    background-color: #fff;
    color: var(--uc-text);
}
.uc-ipt:focus {
    border-color: var(--uc-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Results */
.uc-res {
    background-color: var(--uc-bg);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--uc-border-l);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uc-res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--uc-border-l);
}
.uc-res-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.uc-res-name {
    font-size: 0.875rem;
    color: var(--uc-muted);
}

.uc-res-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--uc-dark);
    font-family: inherit;
}

/* ===== FAQ ===== */
.uc-divider {
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: none;
}

.uc-faq { padding: 3rem 0; }

.uc-faq-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.uc-faq-kicker {
    display: none; /* Removed based on gongju logic */
}

.uc-faq-h2 {
    display: none; /* Not strictly required if removed */
}

.uc-faq-list {
    list-style: none;
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
    counter-reset: none;
}

.uc-faq-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.75rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(219, 230, 244, 0.8);
    border-left: 1px solid rgba(219, 230, 244, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.uc-faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--uc-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0;
}
.uc-faq-item:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
}
.uc-faq-item:hover::before {
    opacity: 1;
}

.uc-faq-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.75rem;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
}
.uc-faq-item h3::before {
    content: 'Q.';
    position: static;
    background: transparent;
    color: var(--uc-primary);
    font-size: 1.25rem;
    margin-right: 0.5rem;
    font-weight: 900;
    width: auto;
    height: auto;
}

.uc-faq-item p {
    color: var(--uc-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 2rem;
}

/* ===== Info / Description Section ===== */
.uc-info {
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: none;
}

.uc-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.uc-info-title .uc-dot {
    width: 0.375rem;
    height: 1.5rem;
    background-color: var(--uc-primary);
    border-radius: 9999px;
    margin-right: 0.75rem;
}

.uc-info-box {
    background: transparent;
    padding: 0;
    border: none;
}

.uc-info-intro {
    color: var(--uc-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.uc-info-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (min-width: 768px) { .uc-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.uc-info-card {
    position: relative;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--uc-border-l);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-top: 1px solid var(--uc-border-l);
}
.uc-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--uc-primary), #60a5fa);
}
.uc-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: #93c5fd;
}

.uc-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 1rem;
}

.uc-info-card p {
    color: var(--uc-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.uc-info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.uc-info-card ul li {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
}

.uc-info-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #93c5fd;
}

.uc-info-card ul li strong {
    color: var(--uc-dark);
    font-weight: 600;
}

/* ===== Buttons ===== */
.uc-btn {
    display: inline-block;
    width: 100%;
    background-color: var(--uc-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.125rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}
.uc-btn:hover { background-color: var(--uc-primary-hover); text-decoration: none; }
.uc-btn-full { width: 100%; text-align: center; }

/* ===== Contact Page ===== */
.uc-contact {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    border: 1px solid var(--uc-border-l);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .uc-contact { padding: 1.5rem 1rem; } }

.uc-contact-head {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--uc-border-l);
}
.uc-contact-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.5rem;
}
.uc-contact-desc {
    color: var(--uc-muted);
    font-size: 0.875rem;
}

.uc-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 767px) { .uc-contact-grid { grid-template-columns: 1fr; } }

.uc-contact-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: var(--uc-bg);
    border: 1px solid var(--uc-border-l);
    text-align: center;
}

.uc-contact-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: var(--uc-primary);
    margin-bottom: 1rem;
}

.uc-contact-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.5rem;
}
.uc-contact-card p {
    color: var(--uc-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.uc-contact-link {
    display: inline-block;
    color: var(--uc-primary);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}
.uc-contact-link:hover { text-decoration: underline; }

.uc-contact-icp { font-size: 0.875rem; color: var(--uc-muted); }

.uc-contact-note {
    text-align: center;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    margin-bottom: 2rem;
}
.uc-contact-note p {
    color: #1e40af;
    font-size: 0.875rem;
    margin: 0;
}

.uc-contact-back {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--uc-border-l);
}

/* ===== Policy Page ===== */
.uc-policy {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    border: 1px solid var(--uc-border-l);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .uc-policy { padding: 1.5rem 1rem; } }

.uc-policy-head {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--uc-border-l);
}
.uc-policy-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.5rem;
}
.uc-policy-date {
    color: var(--uc-muted);
    font-size: 0.875rem;
}

.uc-policy-body {
    color: var(--uc-text);
    line-height: 1.7;
    font-size: 1rem;
}

.uc-policy-sec {
    margin-bottom: 1.75rem;
}
.uc-policy-sec:last-child { margin-bottom: 0; }

.uc-policy-sec h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--uc-primary);
}

.uc-policy-sec p {
    margin-bottom: 0.75rem;
}

.uc-policy-sec ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.uc-policy-sec li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.uc-policy-sec a {
    color: var(--uc-primary);
    text-decoration: none;
}
.uc-policy-sec a:hover { text-decoration: underline; }

.uc-policy-back {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--uc-border-l);
}

/* ===== News List Page ===== */
.uc-news-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) { .uc-news-wrap { flex-direction: row; } }

.uc-news-main { flex: 3; }
.uc-news-side { flex: 1; }

.uc-news-cat {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--uc-border-l);
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.uc-news-cat h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.75rem;
}
.uc-news-cat p {
    color: var(--uc-muted);
    font-size: 1rem;
    margin-top: 0;
}

.uc-news-list {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid var(--uc-border-l);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.uc-news-item {
    border-bottom: 1px solid var(--uc-border-l);
    transition: background 0.3s;
    padding: 0;
}
.uc-news-item:last-child { border-bottom: none; }
.uc-news-item:hover { background: var(--uc-bg); }

.uc-news-item a {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
}

.uc-news-thumb {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}
@media (max-width: 640px) { 
    .uc-news-item a { flex-direction: column; }
    .uc-news-thumb { width: 100%; height: auto; aspect-ratio: 16/9; display: block; }
}

.uc-news-body { flex: 1; min-width: 0; }

.uc-news-body h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.uc-news-item:hover .uc-news-body h2 { color: var(--uc-primary); }

.uc-news-body p {
    color: var(--uc-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uc-news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--uc-muted);
}

.uc-news-empty {
    padding: 3rem;
    text-align: center;
    color: var(--uc-muted);
}

.uc-news-pager {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* News sidebar */
.uc-side-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--uc-border-l);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.uc-side-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    display: flex;
    align-items: center;
}
.uc-side-title::before {
    content: '';
    width: 0.25rem;
    height: 1rem;
    background-color: var(--uc-primary);
    border-radius: 9999px;
    margin-right: 0.5rem;
}

.uc-side-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.uc-side-list a {
    color: var(--uc-muted);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}
.uc-side-list a:hover { color: var(--uc-primary); }

/* ===== News Detail Page ===== */
.uc-article {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--uc-border-l);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .uc-article { padding: 1.5rem 1rem; } }

.uc-article-head {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--uc-border-l);
    text-align: center;
}
.uc-article-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 0.5rem;
}

.uc-article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--uc-muted);
}
.uc-article-meta a {
    color: var(--uc-primary);
    text-decoration: none;
}
.uc-article-meta a:hover { text-decoration: underline; }

.uc-article-body {
    color: var(--uc-text);
    line-height: 1.7;
    font-size: 1rem;
}
.uc-article-body p { margin-bottom: 1.25rem; }
.uc-article-body img { max-width: 100%; height: auto; border-radius: 0.5rem; }

.uc-article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--uc-border-l);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--uc-muted);
}
.uc-article-nav a {
    color: var(--uc-primary);
    text-decoration: none;
}
.uc-article-nav a:hover { text-decoration: underline; }

.uc-article-rel { margin-top: 2rem; }

.uc-article-rel h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--uc-dark);
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    display: flex;
    align-items: center;
}
.uc-article-rel h3::before {
    content: '';
    width: 0.375rem;
    height: 1.25rem;
    background-color: var(--uc-primary);
    border-radius: 9999px;
    margin-right: 0.75rem;
}

.uc-rel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .uc-rel-grid { grid-template-columns: 1fr 1fr; }
}

.uc-rel-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--uc-border-l);
    text-decoration: none;
    transition: all 0.3s;
    background: #fff;
}
.uc-rel-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.uc-rel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--uc-primary);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.uc-rel-item span {
    color: var(--uc-text);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.uc-rel-item:hover span { color: var(--uc-text); }

/* ===== Utility Classes ===== */
.uc-hidden { display: none !important; }
.uc-text-center { text-align: center; }
.uc-text-right { text-align: right; }
.uc-flex { display: flex; }
.uc-flex-col { flex-direction: column; }
.uc-flex-wrap { flex-wrap: wrap; }
.uc-items-center { align-items: center; }
.uc-justify-center { justify-content: center; }
.uc-justify-between { justify-content: space-between; }
.uc-gap-4 { gap: 1rem; }
.uc-mt-4 { margin-top: 1rem; }
.uc-mt-6 { margin-top: 1.5rem; }
.uc-mt-8 { margin-top: 2rem; }
.uc-mb-2 { margin-bottom: 0.5rem; }
.uc-mb-4 { margin-bottom: 1rem; }
.uc-mb-6 { margin-bottom: 1.5rem; }
.uc-w-full { width: 100%; }
.uc-text-sm { font-size: 0.875rem; }
.uc-text-lg { font-size: 1.125rem; }
.uc-font-bold { font-weight: 700; }
.uc-text-teal { color: var(--uc-primary); }
.uc-text-muted { color: var(--uc-muted); }
.uc-text-dark { color: var(--uc-dark); }