/* ZOHO Desk 风格主题 */
:root {
    --zd-primary: #1F76DB;
    --zd-primary-hover: #1565C0;
    --zd-primary-light: #E3F2FD;
    --zd-success: #4CAF50;
    --zd-warning: #FF9800;
    --zd-danger: #F44336;
    --zd-text-primary: #333333;
    --zd-text-secondary: #666666;
    --zd-text-muted: #999999;
    --zd-bg-white: #FFFFFF;
    --zd-bg-light: #F5F7FA;
    --zd-bg-hover: #F0F4F8;
    --zd-border: #E0E0E0;
    --zd-border-light: #EEEEEE;
    --zd-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --zd-radius: 4px;
    --zd-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--zd-font);
    font-size: 13px;
    line-height: 1.5;
    color: var(--zd-text-primary);
    background: var(--zd-bg-white);
    -webkit-font-smoothing: antialiased;
}

/* 滚动条（适配 iframe） */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #AAA;
}

/* 应用容器 */
#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部栏 */
.app-header {
    padding: 10px 14px;
    background: var(--zd-bg-white);
    border-bottom: 1px solid var(--zd-border-light);
    display: flex;
    align-items: center;
}

.header-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--zd-text-primary);
}

.app-header .title {
    font-size: 15px;
    font-weight: 500;
    color: var(--zd-text-primary);
}

.app-header .subtitle {
    font-size: 12px;
    color: var(--zd-text-muted);
    margin-top: 2px;
}

/* 内容区域 */
.app-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.app-content > #ai-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-content .message-list {
    flex: 1;
}

/* 链接 */
a {
    color: var(--zd-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 分割线 */
.divider {
    border: none;
    border-top: 1px solid var(--zd-border-light);
    margin: 12px 0;
}

/* 文字辅助 */
.text-muted { color: var(--zd-text-muted); }
.text-secondary { color: var(--zd-text-secondary); }
.text-primary { color: var(--zd-primary); }
.text-success { color: var(--zd-success); }
.text-danger { color: var(--zd-danger); }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }

/* 间距 */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.p-16 { padding: 16px; }
