/* ===== Dark Tech Theme ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #06060f; color: #e0e0e0; min-height: 100vh; }

/* Background effects (shared with login/home) */
canvas#particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grid-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(67,97,238,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(67,97,238,.04) 1px, transparent 1px); background-size: 50px 50px; z-index: 0; pointer-events: none; }
.scan-line { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(67,97,238,.4), transparent); z-index: 2; animation: scanDown 6s linear infinite; pointer-events: none; }
@keyframes scanDown { 0% { top: -2px; } 100% { top: 100vh; } }
.glow-blob { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .12; pointer-events: none; z-index: 0; }
.glow-blob.b1 { width: 400px; height: 400px; background: #4361ee; top: -100px; left: -100px; animation: blobFloat 12s ease-in-out infinite; }
.glow-blob.b2 { width: 350px; height: 350px; background: #7c3aed; bottom: -80px; right: -80px; animation: blobFloat 15s ease-in-out infinite reverse; }
.glow-blob.b3 { width: 250px; height: 250px; background: #06b6d4; top: 50%; left: 60%; animation: blobFloat 10s ease-in-out infinite 3s; }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.1); } 66% { transform: translate(-20px,30px) scale(.9); } }

/* Navbar */
.navbar { background: rgba(10,10,26,.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(67,97,238,.15); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; box-shadow: 0 2px 20px rgba(0,0,0,.3); position: relative; z-index: 5; }
/* 导航栏品牌：logo 图标 + FuckRept 文字横向排列，不随语言切换变化 */
.nav-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.nav-logo { width: 24px; height: 24px; flex-shrink: 0; }
.nav-brand-text { background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; padding: 6px 14px; border-radius: 8px; transition: all .3s; font-weight: 500; }
.nav-links a:hover { color: #fff; background: rgba(67,97,238,.15); }
.nav-links a.active { color: #fff; background: linear-gradient(135deg, rgba(67,97,238,.3), rgba(124,58,237,.2)); box-shadow: 0 0 12px rgba(67,97,238,.2); }
#userInfo { color: rgba(255,255,255,.4); font-size: 13px; margin-left: 4px; }

/* Language selector */
.lang-switch { position: relative; margin-left: 8px; }
.lang-trigger { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all .3s; padding: 0; line-height: 1; }
.lang-trigger:hover { border-color: #4361ee; transform: scale(1.1); box-shadow: 0 0 12px rgba(67,97,238,.3); }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: rgba(15,15,30,.95); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.4); overflow: hidden; z-index: 100; min-width: 130px; }
.lang-dropdown.show { display: block; }
.lang-option { display: flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; font-size: 13px; color: rgba(255,255,255,.6); transition: all .2s; border: none; background: none; width: 100%; text-align: left; }
.lang-option:hover { background: rgba(67,97,238,.15); color: #fff; }
.lang-option.active { background: linear-gradient(135deg, rgba(67,97,238,.25), rgba(124,58,237,.15)); color: #a5b4fc; font-weight: 600; }
.lang-option .flag { font-size: 18px; line-height: 1; }
.login-card .lang-switch { margin-left: 0; }
.login-card .lang-dropdown { right: auto; left: 50%; transform: translateX(-50%); }

/* Container */
.container { max-width: 1100px; margin: 24px auto; padding: 0 20px; position: relative; z-index: 1; }

/* Card - glassmorphism */
.card { background: rgba(255,255,255,.03); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 28px; margin-bottom: 20px; box-shadow: 0 8px 32px rgba(0,0,0,.2); position: relative; overflow: hidden; transition: border-color .3s; }
.card:hover { border-color: rgba(67,97,238,.15); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(67,97,238,.3), transparent); }
.card h2 { font-size: 20px; margin-bottom: 20px; background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 12px; font-weight: 700; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; color: rgba(255,255,255,.45); letter-spacing: .5px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; font-size: 14px; color: #fff;
  transition: all .3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,.12), 0 0 20px rgba(67,97,238,.08); background: rgba(255,255,255,.06); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.2); }
.form-group select option { background: #1a1a2e; color: #fff; }

.form-control { padding: 12px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; font-size: 14px; color: #fff; outline: none; transition: all .3s; }
.form-control:focus { border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,.12); }
.form-control::placeholder { color: rgba(255,255,255,.2); }

/* 下拉框 select 深色样式（必须在 .form-control 之后才能覆盖）
   避免下拉选项白底白字看不见，与网站暗色科技风保持一致 */
select.form-control {
  background: #1a1a2e;
  color: #fff;
}
select.form-control:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67,97,238,.12);
}
/* 下拉选项 option 深色背景 + 白色文字 */
select option {
  background: #1a1a2e;
  color: #fff;
}
.hint { font-weight: 400; color: rgba(255,255,255,.3); font-size: 12px; text-transform: none; }
.radio-group { display: flex; gap: 24px; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 400; font-size: 15px; color: rgba(255,255,255,.6); }
.radio-label input { width: auto; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s; text-decoration: none; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, #4361ee, #7c3aed); color: #fff; box-shadow: 0 4px 15px rgba(67,97,238,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 25px rgba(67,97,238,.45); }
.btn-primary:disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.3); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.5); padding: 5px 12px; font-size: 12px; }
.btn-outline:hover { border-color: #4361ee; color: #fff; background: rgba(67,97,238,.1); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; display: block; }
.btn-danger { background: linear-gradient(135deg, #e53e3e, #c53030); color: #fff; box-shadow: 0 4px 12px rgba(229,62,62,.25); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(229,62,62,.4); }

/* Table */
.table-wrapper { overflow-x: auto; margin-top: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: rgba(67,97,238,.08); padding: 12px 14px; text-align: left; font-weight: 600; color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(67,97,238,.15); white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.04); color: rgba(255,255,255,.7); }
.table tr:hover { background: rgba(67,97,238,.05); }
.table code { background: rgba(67,97,238,.1); padding: 2px 8px; border-radius: 4px; font-size: 13px; color: #a5b4fc; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: rgba(255,255,255,.03); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.15); position: relative; overflow: hidden; transition: all .3s; }
.stat-card:hover { border-color: rgba(67,97,238,.2); transform: translateY(-2px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #4361ee, #7c3aed); }
.stat-num { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, #4361ee, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.35); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* Form row */
.form-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.form-row .form-control { flex: 1; min-width: 120px; }

/* Key list */
.key-list { background: rgba(67,97,238,.06); border: 1px solid rgba(67,97,238,.12); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.key-list h4 { margin-bottom: 8px; color: #a5b4fc; font-size: 14px; }
.key-item { font-family: 'Courier New', monospace; font-size: 14px; padding: 4px 0; color: rgba(255,255,255,.7); word-break: break-all; }

/* Messages */
.error-msg { color: #f87171; font-size: 13px; margin-bottom: 12px; min-height: 20px; }
.msg { font-size: 13px; margin-bottom: 12px; min-height: 20px; }
.msg.success { color: #34d399; }
.msg.error { color: #f87171; }
.text-success { color: #34d399 !important; }
.text-warning { color: #fbbf24 !important; }

/* History */
.history-item {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04); cursor: pointer; transition: all .3s; border-radius: 8px; margin: 0 -8px; padding-left: 16px; padding-right: 16px;
}
.history-item:hover { background: rgba(67,97,238,.08); }
.history-item:last-child { border-bottom: none; }
.history-info { flex: 1; }
.history-url { font-size: 14px; color: rgba(255,255,255,.7); word-break: break-all; }
.history-meta { font-size: 12px; color: rgba(255,255,255,.3); margin-top: 4px; }
.history-badge { background: linear-gradient(135deg, #4361ee, #7c3aed); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 12px; white-space: nowrap; font-weight: 600; box-shadow: 0 2px 8px rgba(67,97,238,.3); }
.empty-tip { text-align: center; color: rgba(255,255,255,.3); padding: 40px 0; font-size: 15px; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: rgba(15,15,30,.95); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; width: 90%; max-width: 700px; max-height: 80vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal-lg { max-width: 900px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
.modal-header h3 { font-size: 18px; background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }
.btn-close { background: none; border: none; font-size: 24px; cursor: pointer; color: rgba(255,255,255,.4); transition: color .2s; }
.btn-close:hover { color: #f87171; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.detail-info { margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,.5); }
.detail-info p { margin-bottom: 6px; }
.detail-info strong { color: rgba(255,255,255,.7); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pagination button { padding: 6px 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 8px; cursor: pointer; font-size: 13px; color: rgba(255,255,255,.5); transition: all .2s; }
.pagination button:hover { background: rgba(67,97,238,.15); color: #fff; border-color: rgba(67,97,238,.3); }
.pagination button.active { background: linear-gradient(135deg, #4361ee, #7c3aed); color: #fff; border-color: #4361ee; box-shadow: 0 2px 8px rgba(67,97,238,.3); }
.pagination button:disabled { opacity: .3; cursor: not-allowed; }

/* Progress bar */
.progress-bar-wrapper { margin-bottom: 16px; }
.progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: rgba(255,255,255,.4); }
.progress-bar { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #4361ee, #7c3aed, #06b6d4); border-radius: 3px; transition: width 0.3s; width: 0%; box-shadow: 0 0 8px rgba(67,97,238,.4); }

/* Result row animation */
.result-row-new { animation: fadeInRow 0.5s ease-in; }
@keyframes fadeInRow {
  from { opacity: 0; background: rgba(67,97,238,.1); }
  to { opacity: 1; background: transparent; }
}
.result-summary p { margin-bottom: 6px; font-size: 14px; color: rgba(255,255,255,.5); }
.result-summary strong { color: rgba(255,255,255,.8); }
.tip-text { font-size: 13px; color: #a5b4fc; background: rgba(67,97,238,.08); border: 1px solid rgba(67,97,238,.15); padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }

/* Key info */
.key-info { margin-top: 8px; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.key-info.success { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.2); color: #34d399; }
.key-info.error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.2); color: #f87171; }
.btn-verify { white-space: nowrap; border: 1px solid #4361ee !important; color: #4361ee !important; background: rgba(67,97,238,.1) !important; }
.btn-verify:hover { background: rgba(67,97,238,.2) !important; }

/* Parsing spinner */
.parsing-spinner {
  width: 48px; height: 48px; border: 4px solid rgba(255,255,255,.06); border-top-color: #4361ee;
  border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto;
  box-shadow: 0 0 20px rgba(67,97,238,.3);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade in animation for cards */
.container > .card { animation: cardFadeIn .6s ease both; }
.container > .card:nth-child(2) { animation-delay: .1s; }
.container > .card:nth-child(3) { animation-delay: .2s; }
.container > .card:nth-child(4) { animation-delay: .3s; }
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Notice card */
.notice-card { background: rgba(255,255,255,.06); backdrop-filter: blur(20px); border: 1px solid rgba(67,97,238,.2); border-radius: 16px; padding: 24px 28px; margin-bottom: 20px; position: relative; overflow: hidden; animation: cardFadeIn .6s ease both; }
.notice-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #4361ee, #7c3aed, #06b6d4); }
.notice-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 20% 50%, rgba(67,97,238,.06) 0%, transparent 60%); pointer-events: none; }
.notice-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.notice-icon { font-size: 22px; }
.notice-header h3 { font-size: 16px; font-weight: 700; background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0; }
.notice-body { display: flex; flex-direction: column; gap: 10px; }
.notice-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; }
.notice-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(67,97,238,.15); border: 1px solid rgba(67,97,238,.25); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #a5b4fc; margin-top: 1px; }
.notice-item.important { color: rgba(255,255,255,.85); background: rgba(67,97,238,.1); border-radius: 8px; padding: 8px 12px; margin: -4px -12px; }
.notice-item.important .notice-num { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; border: none; font-size: 12px; font-weight: 800; }
.notice-item.highlight { color: rgba(255,255,255,.7); }
.notice-item.highlight .notice-num { background: linear-gradient(135deg, #4361ee, #7c3aed); color: #fff; border: none; }

/* Platform selector */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 16px; }
.platform-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 10px 6px; border-radius: 12px; transition: all .3s; border: 1px solid transparent; }
.platform-item:hover { background: rgba(67,97,238,.08); transform: translateY(-3px); }
.platform-item.active { background: rgba(67,97,238,.12); border-color: rgba(67,97,238,.4); box-shadow: 0 0 16px rgba(67,97,238,.25); }
.platform-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #fff; border: 2px solid rgba(255,255,255,.12); transition: all .3s; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.platform-item:hover .platform-icon { transform: scale(1.08); box-shadow: 0 0 18px rgba(67,97,238,.35); }
.platform-item.active .platform-icon { border-color: #4361ee; box-shadow: 0 0 20px rgba(67,97,238,.5); }
.platform-name { font-size: 12px; color: rgba(255,255,255,.6); text-align: center; line-height: 1.3; word-break: keep-all; }
.platform-item.active .platform-name { color: #a5b4fc; font-weight: 600; }

/* 投诉分类树（两级目录） */
.category-tree { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.category-item { background: rgba(67,97,238,.05); border: 1px solid rgba(67,97,238,.15); border-radius: 12px; padding: 14px 16px; }
.category-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.category-name { font-size: 15px; font-weight: 700; color: #a5b4fc; }
.category-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subcategory-list { margin-top: 12px; padding-left: 16px; border-left: 2px solid rgba(67,97,238,.2); display: flex; flex-direction: column; gap: 8px; }
.subcategory-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,.03); border-radius: 8px; flex-wrap: wrap; }
.subcategory-name { font-size: 13px; color: rgba(255,255,255,.75); }
.subcategory-actions { display: flex; gap: 6px; }
.add-sub-row { display: flex; gap: 8px; margin-top: 10px; padding-left: 16px; }
.add-sub-row input { flex: 1; }

@media (max-width: 768px) {
  .navbar { padding: 0 12px; }
  .nav-links { gap: 6px; }
  .container { padding: 0 12px; }
  .card { padding: 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
