:root {
    --primary-gradient: linear-gradient(135deg, #ff8a00 0%, #ffb347 100%);
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-bg: #f8fafc;
    --accent-color: #ff8a00;
    --layout-max: 1000px;
    --layout-mobile-gutter: 1rem;
}

html {
    scrollbar-gutter: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 1040px) {
    .container {
        max-width: none;
        padding: 0 var(--layout-mobile-gutter);
    }
}

/* Header & Nav */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 4rem;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
}

.nav-links a:hover {
    color: var(--text-color);
}

@media (max-width: 760px) {
    html {
        scrollbar-gutter: auto;
    }

    .nav {
        height: auto;
        min-height: 4rem;
        flex-wrap: wrap;
        gap: 0.45rem 0;
        padding: 0.6rem 1rem;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-links {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

}

.hero-section,
.contact-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-section {
    padding: 0;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(255, 138, 0, 0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowShift 8s ease-in-out infinite alternate;
}

@keyframes glowShift {
    0% {
        opacity: .5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 5rem 0 4rem;
}

@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3.5rem 1.5rem 3rem;
        gap: 2.5rem;
    }
}

/* --- Left column --- */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 860px) {
    .hero-left {
        align-items: center;
    }
}

.hero-profile {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 1.6rem;
}

.hero-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--primary-gradient);
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: .5;
    }
}

.hero-avatar {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(255, 138, 0, 0.18);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 138, 0, 0.08);
    border: 1px solid rgba(255, 138, 0, 0.18);
    color: #d97706;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-heading {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #1e293b;
    margin-bottom: 1rem;
    word-break: keep-all;
}

.hero-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-platform {
    display: inline-block;
    margin-left: 0.2rem;
    font-size: 0.45em;
    font-weight: 400;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
    word-break: keep-all;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .hero-cta {
        justify-content: center;
    }
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}

.cta-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 20px -4px rgba(255, 138, 0, 0.4);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(255, 138, 0, 0.5);
}

.cta-primary svg {
    transition: transform .2s;
}

.cta-primary:hover svg {
    transform: translateX(3px);
}

.cta-secondary {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cta-secondary:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* --- Right column: app showcase --- */
.hero-right {
    display: flex;
    justify-content: center;
}

.hero-showcase {
    position: relative;
    width: 100%;
    max-width: 520px;
    /* 하단 겹친 이미지 공간 확보 */
    padding-bottom: 100px;
}

.showcase-frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.showcase-frame-gif {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    max-width: 55%;
    z-index: 4;
    border-radius: 14px;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.25);
    border: 3px solid #fff;
    transition: transform 0.3s ease;
}

.showcase-frame-gif:hover {
    transform: translateY(-4px) scale(1.02);
}

.showcase-icon {
    position: absolute;
    top: -24px;
    left: -16px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 5;
    background: #fff;
    padding: 6px;
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.showcase-screenshot {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* 원본 캡처 이미지 가장자리 검은 라인 숨김용 미세 크롭 */
.showcase-frame:not(.showcase-frame-gif) .showcase-screenshot {
    transform: scale(1.012);
    transform-origin: center;
}

@media (max-width: 860px) {
    .hero-showcase {
        max-width: 400px;
        padding-bottom: 80px;
    }

    .showcase-icon {
        width: 48px;
        height: 48px;
        top: -16px;
        left: -8px;
    }

    .showcase-frame-gif {
        width: 55%;
        right: 0;
    }
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 3.5rem 2.5rem 4rem;
    background: #f8fafc;
    border-top: 1px solid var(--glass-border);
    overflow: visible;
}

.contact-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

@media (max-width: 600px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 138, 0, 0.3);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-icon {
    background: rgba(255, 138, 0, 0.1);
    color: #e67600;
}

.github-icon {
    background: #f1f5f9;
    color: #334155;
}

.youtube-icon {
    background: #fee2e2;
    color: #dc2626;
}

.blog-icon {
    background: #ffedd5;
    color: #ea580c;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* ===== General Buttons (used elsewhere) ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(255, 138, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(255, 138, 0, 0.3);
}

.btn-pink {
    background: linear-gradient(135deg, #ff7b7b 0%, #ff9e9e 100%);
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(255, 123, 123, 0.35);
}

.btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(255, 123, 123, 0.35);
}

/* Projects Section */
.projects {
    padding: 4rem 0;
}

.projects h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 138, 0, 0.2);
}

.project-icon {
    font-size: 2.5rem;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

/* Recent Posts */
.recent-posts {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.recent-posts h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card h3 a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: block;
}

.post-card time {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Single Post */
.single-layout,
.single-post,
.single-layout.has-sidebar,
.single-layout.has-sidebar .single-post {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.single-layout {
    margin: 0 auto;
}

.single-post {
    padding: 4rem 0;
    margin: 0;
}

.single-layout .section-nav,
.single-layout .post-content,
.single-layout .post-content .update-list,
.single-layout .post-content .update-card {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.section-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-bottom: 5rem;
    position: sticky;
    top: 4rem;
    z-index: 80;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0;
    border-radius: 0;
    padding: 0;
}

.section-nav a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    border: 0;
    border-bottom: 3px solid #cbd5e1;
    background: #ffffff;
    padding: 0.75rem 0.5rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.section-nav a.is-active {
    color: var(--text-color);
    background: #ffffff;
    border-bottom-color: var(--accent-color);
}

@media (max-width: 760px) {
    .section-nav {
        position: static;
        top: auto;
    }
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.post-header.with-title-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-title-icon-wrap {
    margin-bottom: 1.25rem;
}

.header-title-icon-image {
    width: 256px;
    height: 256px;
    object-fit: contain;
    display: block;
}

.header-title-icon-text {
    font-size: 3rem;
    line-height: 1;
}

@media (max-width: 760px) {
    .header-title-icon-image {
        width: 180px;
        height: 180px;
    }
}

.post-content {
    width: 100%;
    margin-left: 0;
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content strong {
    color: #1e293b;
    font-weight: 700;
}

/* --- Headings --- */
.post-content h2 {
    position: relative;
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid transparent;
    border-image: var(--primary-gradient) 1;
}

.post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
}

/* --- Divider --- */
.post-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* --- Images --- */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.post-content img:hover {
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.12);
}

/* --- Lists --- */
.post-content ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.post-content ol li {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 0.7rem;
}

.post-content ol li::before {
    content: counter(list-item);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.post-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.post-content ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.6em;
    width: 7px;
    height: 7px;
    background: var(--primary-gradient);
    border-radius: 50%;
}

/* --- Links --- */
.post-content a,
.post-content a:visited {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 138, 0, 0.25);
    transition: border-color 0.2s ease;
}

.post-content a:hover,
.post-content a:focus {
    color: #e67600;
    border-bottom-color: #e67600;
    text-decoration: none;
}

/* --- Image Caption --- */
.post-content .img-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.update-list {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
}

.post-content>.update-list {
    width: 100%;
    max-width: none;
    margin: 0;
}

.update-card {
    width: 100%;
    max-width: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
}

.update-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e5e7eb;
}

.update-head h3 {
    font-size: 1.05rem;
    margin: 0;
}

.update-head time {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.update-card ul {
    margin: 0;
    padding-left: 1rem;
}

.update-card li+li {
    margin-top: 0.35rem;
}

.help-doc-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.help-doc-grid li {
    margin: 0;
}

.help-doc-grid a {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    padding: 0.7rem 0.8rem;
    text-align: center;
    background: #f8fafc;
    font-weight: 600;
}

.help-doc-grid a:hover {
    background: #fff7ed;
    border-color: #fdba74;
}

.dither-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.2rem;
}

.dither-compare figure {
    margin: 0;
}

.dither-compare img {
    width: 100%;
    height: auto;
    display: block;
}

.dither-compare figcaption {
    margin-top: 0.45rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .dither-compare {
        grid-template-columns: 1fr;
    }
}

.apps-page {
    padding: 3rem 0 4rem;
}

.apps-page-detail {
    padding: 0;
}

.qna-page {
    padding: 3rem 0 4rem;
}

.qna-page h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.qna-page .post-content {
    width: 100%;
    margin-left: 0;
}

body.is-qna .main {
    width: 100%;
    max-width: var(--layout-max);
    padding: 0;
    margin: 0 auto;
}

.apps-header h1 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.apps-header p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.program-grid.is-single {
    grid-template-columns: 1fr;
}

.program-card {
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.program-card-link {
    display: block;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.program-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.program-card-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex: 0 0 auto;
}

.program-card-icon-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.program-card-text {
    min-width: 0;
}

.program-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.program-card-title {
    display: block;
    font-weight: 700;
}

.program-card-platform {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

.program-card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.program-docs h2 {
    margin-bottom: 1rem;
}

.program-doc-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.program-doc-list a {
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    background: var(--card-bg);
    padding: 0.7rem 0.9rem;
    display: block;
}

/* Download Bottom Bar */
.download-bar-wrapper {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(var(--layout-max), calc(100vw - 2rem));
    box-sizing: border-box;
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    z-index: 95;
    animation: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.program-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.program-icon-box {
    font-size: 3.2rem;
    background: transparent;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
}

.program-icon-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.program-icon-box img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: contain;
}

.program-meta {
    display: flex;
    flex-direction: column;
}

.program-title-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.program-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.program-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.program-version {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.program-platform {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0;
}

.download-btn {
    width: auto;
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    padding: 0.72rem 1.2rem;
    font-size: 0.95rem;
}

.download-actions {
    width: auto;
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Keep content clear of the fixed bottom bar on post pages */
body.has-download-sidebar .main.container {
    padding-bottom: 8.5rem;
}


body.has-download-sidebar .footer {
    padding-bottom: 8.5rem;
}

@media (max-width: 900px) {
    .download-bar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .program-info {
        flex: 1 1 100%;
    }

    .download-actions {
        width: 100%;
        justify-content: space-between;
    }

    .download-btn {
        flex: 1 1 0;
        min-width: 0;
    }

    body.has-download-sidebar .main.container {
        padding-bottom: 12rem;
    }

    body.has-download-sidebar .footer {
        padding-bottom: 12rem;
    }
}

@media (max-width: 600px) {
    .download-bar {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .program-meta {
        display: flex;
        min-width: 0;
    }

    .download-actions {
        width: 100%;
        flex-wrap: wrap;
        flex-shrink: 1;
        gap: 0.3rem;
    }

    .download-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        text-align: center;
        white-space: normal;
        padding: 0.48rem 0.62rem;
        font-size: 0.82rem;
        line-height: 1.1;
    }

    .download-actions .download-btn:nth-child(3):last-child {
        flex-basis: 100%;
    }

    .download-bar-wrapper {
        bottom: 0.5rem;
        width: calc(100% - 1rem);
        padding: 0.7rem 0.75rem;
    }

    body.has-download-sidebar .main.container {
        padding-bottom: 13rem;
    }

    body.has-download-sidebar .footer {
        padding-bottom: 13rem;
    }
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-link svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.7rem;
    }
}

/* ===== Notice Page ===== */
.notice-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 0 4rem;
}

.notice-page-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.notice-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 138, 0, 0.08);
    color: var(--accent-color);
    margin-bottom: 0;
}

.notice-page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.notice-page-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Notice List --- */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.notice-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.notice-item:hover {
    background: transparent;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
}

.notice-item:hover .notice-item-title {
    color: var(--accent-color);
}

.notice-item-body {
    min-width: 0;
    flex: 1;
}

.notice-item-title {
    font-size: 1rem;
    font-weight: 650;
    color: #1e293b;
    margin: 0 0 0.25rem;
    transition: color 0.15s ease;
    line-height: 1.45;
}

.notice-item-summary {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-item-date {
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 0.15rem;
    font-variant-numeric: tabular-nums;
}

/* --- Notice Detail --- */
.notice-detail {
    width: 100%;
}

.notice-detail-head {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.notice-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color 0.15s ease;
}

.notice-back:hover {
    color: var(--accent-color);
}

.notice-back svg {
    transition: transform 0.15s ease;
}

.notice-back:hover svg {
    transform: translateX(-2px);
}

.notice-detail-head time {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.notice-detail-head h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.notice-detail-body {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.85;
}

@media (max-width: 600px) {
    .notice-page {
        padding: 2rem 0 3rem;
    }

    .notice-page-header h1 {
        font-size: 1.5rem;
    }

    .notice-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .notice-detail-head h1 {
        font-size: 1.35rem;
    }
}
