* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
.container { max-width: 960px; margin: 0 auto; padding: 20px; }
header { text-align: center; padding: 24px 0 16px; }
header h1 { font-size: 26px; color: #333; }
.subtitle { color: #888; font-size: 14px; margin-top: 4px; }
.top-nav { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid #e9ecef; padding-bottom: 0; }
.nav-link { padding: 8px 16px; text-decoration: none; color: #666; font-size: 14px; border-radius: 6px 6px 0 0; transition: all 0.2s; }
.nav-link:hover { color: #667eea; }
.nav-link.active { color: #667eea; border-bottom: 2px solid #667eea; font-weight: 600; }
.nav-user { float: right; line-height: 38px; margin-right: 12px; color: #666; font-size: 13px; }
.guide-banner { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border: 1px solid #c7d2fe; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.guide-banner-title { font-weight: 700; color: #4338ca; margin-bottom: 8px; }
.guide-banner-text { color: #444; font-size: 14px; }
.guide-banner-text ol { padding-left: 20px; margin: 8px 0; }
.account-bar { display: flex; align-items: center; gap: 10px; background: #fff; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.account-label { font-size: 14px; color: #555; font-weight: 600; }
.account-select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; flex: 1; max-width: 300px; }
.tabs { display: flex; gap: 0; margin-bottom: 16px; }
.tab { padding: 10px 20px; border: none; background: #fff; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; transition: all 0.2s; }
.tab.active { color: #667eea; border-bottom-color: #667eea; font-weight: 600; }
.tab:hover { color: #667eea; }
.mode-panel { display: none; }
.mode-panel.active { display: block; }
.input-area { background: #fff; padding: 16px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 16px; }
textarea { width: 100%; min-height: 120px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; }
textarea:focus { outline: none; border-color: #667eea; }
.controls { display: flex; justify-content: flex-end; margin-top: 10px; gap: 10px; align-items: center; }
.btn { padding: 8px 18px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.btn.primary { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.btn.primary:hover { opacity: 0.9; }
.btn.primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid #667eea; color: #667eea; }
.btn-outline:hover { background: #667eea; color: #fff; }
.btn-small { padding: 5px 12px; font-size: 13px; }
.progress-area { min-height: 40px; margin-bottom: 16px; }
.status-info { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 6px; }
.status-info.info { background: #e3f2fd; color: #0d47a1; }
.status-info.success { background: #e8f5e9; color: #1b5e20; }
.status-info.error { background: #ffebee; color: #b71c1c; }
.progress-log { background: #1e1e1e; color: #d4d4d4; padding: 12px; border-radius: 8px; max-height: 300px; overflow-y: auto; font-family: monospace; font-size: 12px; }
.log-line { padding: 2px 0; }
.log-success { color: #4ade80; }
.log-error { color: #f87171; }
.log-info { color: #93c5fd; }
.results-area { margin-bottom: 16px; }
.result-item { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.result-item .question { font-weight: 600; color: #333; margin-bottom: 6px; }
.result-item .share-link { font-size: 13px; color: #667eea; margin-bottom: 6px; }
.result-item .share-link a { color: #667eea; text-decoration: none; }
.result-item .citation-count { font-size: 13px; color: #888; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; color: #555; font-weight: 600; white-space: nowrap; }
td a { color: #667eea; text-decoration: none; word-break: break-all; }
.export-area { text-align: center; }
footer { text-align: center; padding: 20px 0; color: #999; font-size: 13px; }
.author-info { color: #aaa; margin-top: 4px; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #fff; border-radius: 12px; width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.modal-header h2 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; }
.account-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; color: #555; }
.account-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 8px; }
.account-item.active { border-color: #667eea; background: #f5f3ff; }
.account-item-label { font-weight: 600; font-size: 14px; }
.account-item-username { font-size: 12px; color: #888; margin-top: 2px; }
.account-item-badge { background: #667eea; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 8px; margin-left: 8px; }
.account-item-actions { display: flex; gap: 6px; }
.account-add-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.account-add-form h3 { font-size: 15px; margin-bottom: 10px; color: #333; }
.form-row { margin-bottom: 10px; }
.form-row input { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.form-hint { font-size: 12px; color: #888; margin: 8px 0; }
.form-msg { font-size: 13px; margin-left: 10px; }
.form-msg.success { color: #28a745; }
.form-msg.error { color: #dc3545; }
