/* AI工程争议评审系统 - 设计系统 */
:root {
    --bg-base: #f7f8fa;
    --bg-white: #ffffff;
    --bg-surface: #f0f2f5;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --brand: #6366f1;
    --brand-light: #818cf8;
    --brand-bg: rgba(99,102,241,0.06);
    --brand-border: rgba(99,102,241,0.15);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 12px;
}
* { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; box-sizing: border-box; }
body { margin: 0; background: var(--bg-base); color: var(--text-secondary); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* 导航 */
.nav { background: var(--bg-white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); background: rgba(255,255,255,0.92); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: var(--text-primary); letter-spacing: -0.3px; }
.nav-logo-icon { width: 34px; height: 34px; background: var(--gradient); border-radius: 9px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(99,102,241,0.2); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--text-secondary); transition: color 0.2s; font-weight: 450; }
.nav-links a:hover { color: var(--brand); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 9px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; letter-spacing: -0.1px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.2), inset 0 1px 0 rgba(255,255,255,0.15); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.3), inset 0 1px 0 rgba(255,255,255,0.15); }
.btn-secondary { background: var(--bg-white); color: var(--text-primary); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 2px 8px rgba(99,102,241,0.08); }
.btn-sm { padding: 8px 18px; font-size: 13px; font-weight: 600; }
.btn-lg { padding: 14px 30px; font-size: 15px; font-weight: 600; }

/* 卡片 */
.card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); position: relative; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(99,102,241,0.15); }
.card::after { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; background: var(--gradient); border-radius: 1px; opacity: 0; transition: opacity 0.25s; }
.card:hover::after { opacity: 1; }

/* 标签 */
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.tag-purple { background: var(--brand-bg); color: var(--brand); border: 1px solid var(--brand-border); }
.tag-green { background: rgba(16,185,129,0.08); color: #059669; }
.tag-yellow { background: rgba(245,158,11,0.08); color: #d97706; }
.tag-red { background: rgba(239,68,68,0.08); color: #dc2626; }

/* 对话 */
.chat-area { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 75%; padding: 14px 18px; border-radius: 14px; font-size: 14px; line-height: 1.7; animation: fadeIn 0.3s; }
.msg-ai { background: var(--bg-white); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-ai-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--brand); font-weight: 600; }
.msg-ai-icon { width: 22px; height: 22px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* 选项按钮 */
.opt-btn { display: block; width: 100%; text-align: left; padding: 14px 16px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; font-size: 14px; }
.opt-btn:hover { border-color: var(--brand); background: var(--brand-bg); transform: translateY(-1px); }
.opt-btn-title { font-weight: 600; color: var(--text-primary); }
.opt-btn-desc { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

/* 进度条 */
.progress { height: 3px; background: var(--border-light); }
.progress-fill { height: 100%; background: var(--gradient); transition: width 0.5s ease; border-radius: 2px; }

/* 证据卡片 */
.ev-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: all 0.2s; }
.ev-card.done { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.03); }
.ev-card.missing { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.03); }
.ev-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ev-icon-done { background: rgba(16,185,129,0.1); color: var(--success); }
.ev-icon-pending { background: var(--bg-surface); color: var(--text-tertiary); }
.ev-icon-missing { background: rgba(239,68,68,0.1); color: var(--error); }

/* 评审意见 */
.opinion-block { border-left: 3px solid var(--brand); padding-left: 20px; margin-bottom: 24px; }
.opinion-block h4 { color: var(--text-primary); font-size: 15px; font-weight: 700; margin: 0 0 8px 0; }
.law-ref { background: #fffbeb; border: 1px solid #fde68a; border-left: 3px solid var(--warning); border-radius: 8px; padding: 12px 16px; margin: 8px 0; font-size: 13px; }
.conclusion-box { background: var(--brand-bg); border: 1px solid var(--brand-border); border-radius: 10px; padding: 16px 20px; }

/* 侧边栏 */
.sidebar { width: 300px; border-left: 1px solid var(--border); background: var(--bg-white); padding: 20px; overflow-y: auto; }
.sidebar-title { font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }

/* 时间线 */
.tl-item { position: relative; padding-left: 24px; padding-bottom: 16px; border-left: 2px solid var(--border); font-size: 13px; }
.tl-item:last-child { border-left-color: transparent; }
.tl-item::before { content: ''; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.tl-item.done::before { background: var(--success); }
.tl-item.active::before { background: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

/* 争议项卡片 */
.dispute-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.dispute-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dispute-amount { font-size: 13px; color: var(--error); font-weight: 600; }

/* 动画 */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.typing span { display: inline-block; width: 6px; height: 6px; background: var(--text-tertiary); border-radius: 50%; animation: bounce 1.4s infinite; margin: 0 2px; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

/* 布局 */
.page-header { padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--bg-white); }
.page-content { max-width: 1200px; margin: 0 auto; padding: 24px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
