* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f4f6fb;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    color: #1e293b;
}
.app-container { max-width: 1200px; width: 100%; }
.card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 2rem;
    box-shadow: 0 20px 40px -12px rgba(0,20,50,0.15);
    padding: 2rem;
    position: relative;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo h1 {
    font-weight: 600;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.btn {
    background: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.15s;
    border: 1px solid rgba(0,0,0,0.04);
    color: #1e293b;
}
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    box-shadow: 0 8px 16px -6px #2563eb70;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { border: 1px solid #cbd5e1; background: transparent; }
.btn-outline:hover { background: #f8fafc; }
.btn-danger { color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-ghost { border: none; background: transparent; box-shadow: none; }
.tabs {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tab {
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    cursor: pointer;
    transition: 0.1s;
    color: #475569;
}
.tab.active {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}
.auth-form {
    max-width: 400px;
    margin: 2rem auto;
}
.auth-form h2 { margin-bottom: 1.5rem; font-weight: 600; }
.input-group {
    margin-bottom: 1.2rem;
}
.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #334155;
}
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 1rem;
    background: white;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #2563eb30;
}
.markdown-editor-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: white;
    margin: 1rem 0;
}
.EasyMDEContainer .CodeMirror { min-height: 200px; border-radius: 12px; }
.team-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}
.ticket-item {
    background: white;
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.ticket-item:hover { border-color: #cbd5e1; }
.ticket-title { font-weight: 600; }
.ticket-meta { display: flex; gap: 1rem; align-items: center; color: #64748b; font-size: 0.9rem; }
.empty-state { text-align: center; color: #94a3b8; padding: 3rem; }
.team-list { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0; }
.team-chip {
    background: #f1f5f9;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.divider { height: 1px; background: #e2e8f0; margin: 2rem 0; }
.flex { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.message {
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    background: #dbeafe;
    color: #1e3a8a;
    margin-bottom: 1rem;
}
.error-message { background: #fee2e2; color: #991b1b; }

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 2rem;
}
.modal-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.modal-card h3 { margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; }
/* Markdown 内容样式 */
.markdown-body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.markdown-body p {
    margin-bottom: 1rem;
}
.markdown-body code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-family: monospace;
}
.markdown-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
}
.markdown-body blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
    color: #475569;
}
.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}