@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 400; src: url('fonts/NotoSans-Regular.ttf') format('truetype'); font-display: swap; }
        @font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 500; src: url('fonts/NotoSans-Medium.ttf') format('truetype'); font-display: swap; }
        @font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 700; src: url('fonts/NotoSans-Bold.ttf') format('truetype'); font-display: swap; }

        :root { --font-main: 'Noto Sans', sans-serif; --color-bg: #ffffff; --color-text: #000000; --color-primary: #2563eb; --color-primary-dark: #1e40af; --color-border: #e5e7eb; --color-subtle: #000000; --focus-ring: 3px solid #000000; --focus-offset: 2px; --container-width: 1200px; --radius-md: 8px; --color-error: #c00; --color-error-bg: #fff0f0; --color-success: #008000; --color-success-bg: #f0fff0; }
        *:focus-visible { outline: var(--focus-ring) !important; outline-offset: var(--focus-offset) !important; border-radius: 2px; }
        body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; }
        body { font-family: var(--font-main); background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
        .skip-link { position: absolute; top: -500px; left: 0; background: var(--color-primary); color: white; padding: 1rem; z-index: 999; }
        .skip-link:focus { top: 0; }
        .container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
        .site-header { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 1000; background-color: var(--color-bg); }
        .header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; flex-wrap: wrap; }
        .logo { font-weight: 700; font-size: 1.5rem; text-decoration: none; color: #272727ff; }
        .logo-highlight { color: var(--color-primary); }
        .main-nav ul { display: flex; gap: 1.5rem; list-style: none; }
        .main-nav a { text-decoration: none; color: var(--color-text); font-weight: 500; text-decoration: underline; font-size: 1.1rem; }
        .main-nav a:hover { text-decoration: none; }
        .mobile-nav-toggle { display: none; background: transparent; border: 0; padding: 0.5rem; cursor: pointer; }
        .mobile-nav-toggle-icon { display: block; width: 28px; height: 3px; background: var(--color-text); border-radius: 2px; position: relative; }
        .mobile-nav-toggle-icon::before, .mobile-nav-toggle-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background: var(--color-text); border-radius: 2px; transition: 0.3s; }
        .mobile-nav-toggle-icon::before { transform: translateY(-8px); }
        .mobile-nav-toggle-icon::after { transform: translateY(8px); }
        .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon { background: transparent; }
        .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon::before { transform: rotate(45deg); }
        .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon::after { transform: rotate(-45deg); }
        .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-weight: 500; border-radius: var(--radius-md); text-decoration: none; cursor: pointer; border: 2px solid transparent; min-height: 44px; box-sizing: border-box; }
        .btn-primary { background: var(--color-primary); color: white; }
        .btn-primary:hover { background: var(--color-primary-dark); }
        .main-layout { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; margin-top: 2.5rem; margin-bottom: 3rem; flex-grow: 1; }
        .search-form-container { margin: 1.5rem 0; }
        .search-form { display: flex; flex-direction: column; gap: 1rem; }
        .search-form input[type="search"] { width: 100%; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); min-height: 44px; box-sizing: border-box; }
        .search-form .btn { width: 100%; }
        .q-card, .post-detail-card, .answer-card { border: 1px solid var(--color-border); padding: 1.5rem; border-radius: var(--radius-md); position: relative; overflow: hidden; background: #fff; margin-bottom: 1.5rem; }
        .q-card p { font-size: 1.1rem;}
        .q-card h2 a { text-decoration: none; color: #000000; } 
        .q-card h2 a:hover { text-decoration: underline; }
        .q-meta { display: flex; gap: 1rem; color: var(--color-subtle); font-size: 0.9rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
        .theme-5 .sidebar { order: -1; } 
        .site-footer { background: #1a1a1a; color: white; padding: 2rem 0; font-size: 1rem; }
        .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
        .footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 0; }
        .footer-nav a { color: white; text-decoration: underline; }
        .footer-nav a:hover { text-decoration: none; }
        .footer-copy { margin: 0; text-align: right; }
        @media (min-width: 769px) { .main-nav { position: absolute; left: 50%; transform: translateX(-50%); } }
        @media (max-width: 768px) { .logo { font-weight: 700; font-size: 1.3rem; text-decoration: none; color: #272727ff; } .logo-highlight { color: var(--color-primary); } .site-header { padding: 0.5rem 0; } .container { padding: 0 1rem; } .header-inner { flex-direction: row; } .mobile-nav-toggle { display: block; } .main-nav, .header-actions { display: none; width: 100%; } .main-nav[data-visible="true"], .header-actions[data-visible="true"] { display: block; } .main-nav { order: 2; margin-top: 1.5rem; } .header-actions { order: 3; margin-top: 1.5rem; } .main-nav ul { flex-direction: column; gap: 1rem; text-align: center; } .header-actions .btn { width: 100%; } .main-layout { margin-top: 1.5rem; gap: 1.5rem; grid-template-columns: 1fr; } .theme-5 .sidebar { order: unset; } .footer-inner { flex-direction: column; } .footer-nav ul { justify-content: center; } .footer-copy { text-align: center; } }
        .post-detail-card { border: 1px solid var(--color-border); padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; background: #fff; }
        .post-detail-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; margin-top: 0; color: #000000; width: 100%; display: block; word-wrap: break-word; }
        .post-meta { color: #555; margin-bottom: 1.5rem; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
        .post-content { font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; white-space: pre-wrap; word-wrap: break-word; color: #000000; }
        .tags-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; border-top: 1px solid #f0f0f0; padding-top: 1rem; }
        .tag-badge { background: #f3f4f6; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.9rem; color: #4b5563; border: 1px solid #e5e7eb; text-decoration: none; font-weight: 500; transition: 0.2s; }
        .tag-badge:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); text-decoration: none; }
        .tag-badge.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
        .tag-badge.active:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
        .answer-card { background: #ffffff; border: 1px solid var(--color-border); padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; }
        .answer-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 0.9rem; color: #555; font-weight: 500; }
        .answer-content { font-size: 1.1rem; white-space: pre-wrap; word-wrap: break-word; margin-bottom: 1rem; color: #000000; }
        .actions-bar { display: flex; gap: 1.2rem; align-items: center; padding-top: 0.5rem; border-top: 1px solid #f0f0f0; margin-top: 1rem; }
        .action-btn { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; font-family: inherit; font-size: 0.9rem; color: #666; font-weight: 500; transition: color 0.2s; }
        .action-btn:hover { color: var(--color-primary); }
        .action-btn.liked { color: var(--color-primary); }
        .action-btn.liked svg { fill: var(--color-primary); stroke: var(--color-primary); }
        .post-detail-card .actions-bar .action-btn:not(.report-btn):not(.delete-btn) { color: #000000; }
        .post-detail-card .actions-bar .action-btn:not(.report-btn):not(.delete-btn):hover, .post-detail-card .actions-bar .action-btn:not(.report-btn):not(.delete-btn).liked { color: var(--color-primary); }
        .action-btn.delete-btn:hover { color: #c00; }
        .action-btn.report-btn:hover { color: #d97706; }
        .action-btn.reported { color: #c00 !important; }
        .action-btn.reported:hover { color: #c00; }
        .replies-container { margin-top: 1rem; padding-left: 1.5rem; border-left: 3px solid #e5e7eb; }
        .reply-item { padding: 0.8rem 0; border-bottom: 1px solid #eee; }
        .reply-item:last-child { border-bottom: none; }
        .reply-meta { font-size: 0.9rem; color: #555; font-weight: 500; margin-bottom: 0.2rem; display: flex; justify-content: space-between; }
        .reply-content { font-size: 1.1rem; color: #000000; line-height: 1.5; white-space: pre-wrap; }
        .form-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
        .form-group label { font-weight: 500; margin-bottom: 0.5rem; color: var(--color-text); font-size: 1.1rem; }
        .form-group textarea, .reply-textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); min-height: 44px; font-family: var(--font-main); font-size: 1.1rem; box-sizing: border-box; resize: vertical; }
        .form-group textarea { min-height: 150px; }
        .reply-form-wrapper { display: none; margin-top: 1rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; }
        .reply-form-wrapper.open { display: block; }
        .form-group-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
        .switch-label { font-weight: 500; font-size: 1.1rem; color: #000000; }
        .switch-label #username-display { font-weight: 700; color: var(--color-primary); transition: color 0.2s ease; }
        .switch-label #username-display.anonymous { color: #000000; font-weight: 700; } 
        .hide-text { color: #000000; font-weight: 400; font-size: 1.1rem; }
        input[role="switch"] { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 32px; border: 2px solid #64748b; border-radius: 16px; background-color: transparent; cursor: pointer; flex-shrink: 0; transition: background-color 0.2s ease, border-color 0.2s ease; }
        input[role="switch"]::before { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background-color: #64748b; transition: transform 0.2s ease, background-color 0.2s ease; }
        input[role="switch"]:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
        input[role="switch"]:checked::before { background-color: white; transform: translateX(20px); }
        input[role="switch"]:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
        .form-error-summary { background: var(--color-error-bg); border: 2px solid var(--color-error); color: var(--color-error); padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; }
        .sort-dropdown { font-family: inherit; font-size: 0.95rem; color: var(--color-text); padding: 5px 10px; border: 1px solid var(--color-border); border-radius: 4px; background-color: var(--color-bg); cursor: pointer; }
        @media (max-width: 768px) { .post-detail-title { font-size: 1.2rem; } }