/* 代理商门户公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    color: #303133;
}

/* 布局 */
.agent-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.agent-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.agent-header .logo {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
}

.agent-header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.agent-header .agent-name {
    color: rgba(255,255,255,0.9);
}

.agent-container {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 56px);
}

/* 侧边栏 */
.agent-sidebar {
    width: 200px;
    min-width: 200px;
    background: white;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    padding: 12px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    color: #595959;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.menu-item:hover {
    background: #f5f5f5;
    color: #667eea;
}

.menu-item.active {
    background: #f0eeff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 500;
}

.menu-item .menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.agent-main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f1f1f;
}

/* 统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #8c8c8c;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #262626;
}

.stat-card .stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-card.purple .stat-value { color: #667eea; }
.stat-card.green .stat-value  { color: #52c41a; }
.stat-card.orange .stat-value { color: #fa8c16; }
.stat-card.blue .stat-value   { color: #1890ff; }

/* 表格容器 */
.table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* 状态标记 */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-draft     { background: #fff7e6; color: #d46b08; }
.status-published { background: #f6ffed; color: #389e0d; }
.status-offline   { background: #fff1f0; color: #cf1322; }
.status-pending   { background: #fff7e6; color: #d46b08; }
.status-approved  { background: #f6ffed; color: #389e0d; }
.status-paid      { background: #e6fffb; color: #08979c; }
.status-rejected  { background: #fff1f0; color: #cf1322; }
.status-settled   { background: #f6ffed; color: #389e0d; }
.status-valid     { background: #f6ffed; color: #389e0d; }
.status-invalid   { background: #fff1f0; color: #cf1322; }

/* 封面图 */
.cover-img {
    width: 44px;
    height: 62px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
}

/* 分隔小标题 */
.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #434343;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 表单 card */
.form-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

/* 响应式内联信息 */
.info-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.info-row:last-child { border-bottom: none; }
.info-row .info-label { width: 120px; color: #8c8c8c; flex-shrink: 0; }
.info-row .info-value { color: #262626; }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bfbfbf;
    font-size: 14px;
}

.empty-state .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}
