* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #e3f2fd; color: #24292f; font-size: 14px; line-height: 1.6; }
p, span, div, li, td, th, label { color: #24292f; }
header { background: #fff; border-bottom: 1px solid #d0d7de; padding: 16px 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); width: 100%; }
.header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: 0 auto; padding: 0 32px; }
.header-link { text-decoration: none !important; color: inherit !important; }
h1 { font-size: 24px; font-weight: 600; margin: 0; color: #0969da; }
.site-title { font-size: 24px; font-weight: 600; margin: 0; color: #24292f; }
.subtitle { color: #57606a; font-size: 14px; margin-top: 4px; }
.user-nav { display: flex; gap: 12px; align-items: center; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 3px; background: #24292f; transition: all 0.3s; }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; pointer-events: none; }
.mobile-menu.active { pointer-events: auto; }
.mobile-menu-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0); transition: background 0.3s; }
.mobile-menu.active .mobile-menu-overlay { background: rgba(0, 0, 0, 0.5); }
.mobile-menu-content { position: absolute; top: 0; right: -300px; bottom: 0; width: 300px; max-width: 80vw; background: #fff; box-shadow: -2px 0 8px rgba(0,0,0,0.1); transition: right 0.3s; padding: 60px 24px 24px 24px; }
.mobile-menu.active .mobile-menu-content { right: 0; }
.mobile-menu-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 32px; cursor: pointer; color: #24292f; padding: 8px; line-height: 1; }
.mobile-nav { display: flex; flex-direction: column; gap: 16px; }
.btn-primary, .btn-secondary, .btn-logout { padding: 8px 16px; border: 1px solid #d0d7de; background: #fff; color: #24292f; text-decoration: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.btn-primary { background: #218838; border-color: #218838; color: #fff; }
.btn-primary:hover { background: #1e7e34; }
.btn-secondary { background: #fff; color: #24292f; border-color: #d0d7de; }
.btn-secondary:hover { background: #f6f8fa; border-color: #0969da; }
.btn-logout { background: transparent; border-color: #d1242f; color: #d1242f; }
.btn-logout:hover { background: #d1242f; color: #fff; }
.user-info { color: #24292f; font-size: 14px; font-weight: 500; }
#app { background: #e3f2fd; padding: 24px 32px; min-height: 70vh; width: 70%; margin: 0 auto; }
.breadcrumb { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #d0d7de; color: #57606a; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: #0969da; text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: #d0d7de; }
.question-list { display: flex; flex-direction: column; gap: 0; }
.question-card { background: #fff; border: 1px solid #d0d7de; padding: 20px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s; display: flex; gap: 16px; }
.question-card:hover { border-color: #0969da; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.question-title { font-size: 18px; font-weight: 600; color: #0969da; margin-bottom: 8px; }
.question-title:hover { color: #0550ae; }
.question-content { color: #24292f; font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
.question-meta { color: #57606a; font-size: 12px; display: flex; gap: 12px; align-items: center; }
.question-meta a { color: #24292f; text-decoration: none; font-weight: 500; }
.question-meta a:hover { color: #0969da; }
.question-detail { background: #fffef0; border: 1px solid #d0d7de; padding: 32px; margin-bottom: 16px; display: flex; gap: 16px; }
.question-detail h2 { font-size: 28px; font-weight: 600; color: #24292f; margin-bottom: 16px; }
.question-detail p { color: #24292f; line-height: 1.6; font-size: 16px; }
.content-body { flex: 1; }
.answers-section { background: #e3f2fd; padding: 24px 0; }
.answers-header { margin-bottom: 24px; }
.answers-header h2 { font-size: 20px; font-weight: 600; color: #24292f; margin: 0; }
.answer-meta-inline { color: #57606a; font-size: 12px; display: none; }
.answer-meta-inline a { color: #24292f; text-decoration: none; font-weight: 500; }
.answer-meta-inline a:hover { text-decoration: underline; }
.answers-title { font-size: 20px; font-weight: 600; color: #24292f; margin-bottom: 24px; }
.answers-list { display: flex; flex-direction: column; gap: 16px; }
.answer-detail { background: #f0fff4 !important; border: 1px solid #d0d7de !important; padding: 24px !important; padding-left: 34px !important; display: flex !important; gap: 16px !important; margin-bottom: 16px !important; }
.answer-content { color: #24292f !important; line-height: 1.6; margin-bottom: 12px; font-size: 15px; }
.answer-meta { color: #57606a !important; font-size: 12px; display: flex; gap: 12px; align-items: center; }
.answer-meta span { color: #57606a !important; }
.answer-meta a { color: #24292f !important; }
.answer-meta a { color: #24292f; text-decoration: none; font-weight: 500; }
.answer-meta a:hover { color: #0969da; }
.no-answers, .no-questions { text-align: center; padding: 60px 20px; color: #57606a; background: #fff; border: 1px dashed #d0d7de; }
.auth-form { max-width: 800px; margin: 40px auto; background: #fff; border: 1px solid #d0d7de; padding: 32px; }
.auth-form h2 { font-size: 24px; font-weight: 600; margin-bottom: 24px; color: #24292f; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #24292f; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #d0d7de; background: #fff; color: #24292f; font-size: 14px; font-family: inherit; transition: border 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #0969da; }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { padding: 10px 20px; background: #218838; color: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.submit-btn:hover { background: #1e7e34; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.error-message { background: #d1242f; color: #fff; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #a50e0e; }
.success-message { background: #218838; color: #fff; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #1e7e34; }
.auth-link { margin-top: 20px; font-size: 14px; color: #57606a; }
.auth-link a { color: #0969da; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }
.admin-panel { background: #fff; border: 1px solid #d0d7de; padding: 32px; }
.admin-panel h2 { font-size: 24px; font-weight: 600; margin-bottom: 24px; color: #24292f; }
.admin-panel h3 { font-size: 18px; font-weight: 600; margin: 32px 0 16px 0; padding-top: 24px; border-top: 1px solid #d0d7de; color: #24292f; }
.admin-panel table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; }
.admin-panel th { background: #f6f8fa; padding: 12px; text-align: left; border: 1px solid #d0d7de; font-weight: 600; font-size: 13px; color: #24292f; }
.admin-panel td { padding: 12px; border: 1px solid #d0d7de; font-size: 14px; color: #24292f; }
.admin-panel tr:hover { background: #f6f8fa; }
.admin-panel input[type="text"], .admin-panel input[type="email"], .admin-panel select { padding: 8px 12px; border: 1px solid #d0d7de; font-size: 14px; width: 100%; max-width: 300px; }
.admin-panel input[type="text"]:focus, .admin-panel input[type="email"]:focus, .admin-panel select:focus { outline: none; border-color: #0969da; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(1, 4, 9, 0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal { background: #fff; border: 1px solid #d0d7de; padding: 32px; min-width: 560px; max-width: 640px; max-height: 90vh; overflow-y: auto; box-shadow: 0 16px 64px rgba(31, 35, 40, 0.3); }
.modal h3 { font-size: 20px; font-weight: 600; margin-bottom: 24px; color: #24292f; }
.modal .form-group { margin-bottom: 16px; }
.modal .form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #24292f; }
.modal .form-group input, .modal .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #d0d7de; background: #fff; color: #24292f; font-size: 14px; font-family: inherit; transition: border 0.2s; }
.modal .form-group input:focus, .modal .form-group textarea:focus { outline: none; border-color: #0969da; }
.modal .form-group textarea { resize: vertical; min-height: 120px; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }
.admin-btn { padding: 10px 20px; background: #218838; color: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.admin-btn:hover { background: #1e7e34; }
.admin-btn.secondary { background: #f6f8fa; border: 1px solid #d0d7de; color: #24292f; }
.admin-btn.secondary:hover { background: #eaeef2; }
.vote-buttons { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 48px; }
.vote-section { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 8px !important; min-width: 48px !important; }
.vote-btn { background: #f6f8fa !important; border: 1px solid #d0d7de !important; width: 40px !important; height: 40px !important; cursor: pointer !important; font-size: 18px !important; color: #57606a !important; transition: all 0.2s !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.vote-btn:hover { background: #eaeef2 !important; }
.vote-btn.upvote { color: #218838 !important; border-color: #218838 !important; background: #fff !important; }
.vote-btn.upvote:hover { color: #1e7e34 !important; border-color: #1e7e34 !important; background: #dafbe1 !important; }
.vote-btn.downvote { color: #d1242f !important; border-color: #d1242f !important; background: #fff !important; }
.vote-btn.downvote:hover { color: #a50e0e !important; border-color: #a50e0e !important; background: #ffebe9 !important; }
.vote-count { font-weight: 700 !important; font-size: 16px !important; color: #24292f !important; }
.question-card-inner { display: flex !important; gap: 16px !important; }
.question-card-content { flex: 1 !important; }
.question-card-title { margin: 0 0 8px 0 !important; color: #0969da !important; font-size: 18px !important; font-weight: 600 !important; }
.question-card-excerpt { color: #24292f !important; margin: 0 0 12px 0 !important; line-height: 1.5 !important; font-size: 14px !important; }
.question-card-meta { display: flex !important; align-items: center !important; gap: 12px !important; font-size: 12px !important; color: #57606a !important; }
.question-card-meta strong { color: #0969da !important; }
.question-card-meta a { color: #0969da !important; text-decoration: none !important; font-weight: 500 !important; }
.question-card-meta a:hover { text-decoration: underline !important; }
.questions-header { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 24px !important; }
.pagination { display: flex !important; justify-content: center !important; align-items: center !important; gap: 8px !important; margin-top: 32px !important; }
.pagination-btn { padding: 8px 16px !important; background: #fff !important; border: 1px solid #d0d7de !important; color: #24292f !important; text-decoration: none !important; font-size: 14px !important; font-weight: 500 !important; transition: all 0.2s !important; }
.pagination-btn:hover { background: #f6f8fa !important; border-color: #0969da !important; }
.pagination-btn.active { background: #218838 !important; border-color: #218838 !important; color: #fff !important; }
.vote-buttons span { font-weight: 700; font-size: 16px; color: #24292f; }
.loading { text-align: center; padding: 60px; color: #57606a; font-size: 16px; }
@media (max-width: 1280px) { #app { width: 90%; } .header-content { padding: 0 24px; } }
@media (max-width: 768px) { header { padding: 12px 16px; } #app { width: 95%; padding: 16px; } .header-content { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 16px; } .user-nav { display: none !important; } .mobile-menu-btn { display: flex !important; } .modal { min-width: unset; width: 90%; padding: 24px; } .question-card { flex-direction: column; } .vote-btn { width: 28px !important; height: 28px !important; font-size: 13px !important; } .vote-count { font-size: 13px !important; } h1 { font-size: 17px !important; } h2 { font-size: 15px !important; } .site-title { font-size: 17px !important; } .answers-header { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important; flex-wrap: nowrap !important; margin-bottom: 16px !important; } .answers-header h2 { font-size: 15px !important; margin: 0 !important; white-space: nowrap; } .answer-meta-inline { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; font-size: 11px !important; white-space: nowrap; } .answer-detail:first-child .answer-meta { display: none !important; } .answer-meta { flex-wrap: nowrap !important; white-space: nowrap; gap: 6px !important; font-size: 11px !important; } .answer-meta span { display: inline !important; } .question-content { font-size: 13px !important; } .answer-content { font-size: 13px !important; } .answer-detail { padding-left: 5px !important; } .question-detail { padding-left: 5px !important; } }
@media (min-width: 1920px) { #app { width: 60%; max-width: 1400px; } }