/* 利侨成本数据库 Vue3 页面样式 */
/* 基于独立版 index_standalone.html 提取 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f7fa;
}

/* Vue应用容器 */
.lqdb-vue-container {
    display: flex;
    height: 100%;
}
.lqdb-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
}
.lqdb-sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lqdb-sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #4fc3f7;
}
.lqdb-sidebar-header p {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
.lqdb-sidebar-menu {
    flex: 1;
    padding: 10px 0;
}
.lqdb-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.lqdb-menu-item:hover {
    background: rgba(255,255,255,0.05);
}
.lqdb-menu-item.active {
    background: rgba(79, 195, 247, 0.15);
    border-left-color: #4fc3f7;
    color: #4fc3f7;
}
.lqdb-menu-item i {
    margin-right: 10px;
    font-size: 18px;
}
.lqdb-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 工具栏 */
.lqdb-toolbar {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    flex-wrap: wrap;
}
.lqdb-content-area {
    flex: 1;
    padding: 20px;
    overflow: auto;
}

/* 表格样式 */
.lqdb-product-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.price-cell {
    transition: background 0.2s;
    font-weight: 500;
    cursor: pointer;
}
.price-cell:hover {
    background: #ecf5ff;
    color: #409eff;
}
.price-cell.estimate {
    color: #409eff;
}
.price-cell.manual {
    color: #67c23a;
    text-decoration: underline dotted;
}

/* 展开详情 */
.expand-detail {
    padding: 10px 20px;
    background: #fafafa;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
.detail-item {
    display: flex;
    flex-direction: column;
}
.detail-label {
    font-size: 12px;
    color: #909399;
    margin-bottom: 5px;
}
.detail-value {
    font-size: 14px;
    color: #303133;
    font-weight: 500;
}

/* 参数配置样式 */
.params-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}
.param-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.param-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #409eff;
    color: #303133;
}
.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.param-row:hover {
    background: #f5f7fa;
}

/* 导入导出样式 */
.import-export-container {
    max-width: 800px;
    margin: 0 auto;
}
.import-export-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.stat-card.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.stat-card.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.stat-card.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.stat-value {
    font-size: 32px;
    font-weight: bold;
}
.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 价格编辑对话框 */
.price-editor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* 紧凑表格样式 */
.product-table .el-table__body td, .product-table .el-table__body th {
    line-height: 1.3;
}
.product-table .price-cell {
    display: inline-block;
    min-width: 50px;
    text-align: right;
}
.el-table--small .el-table__cell {
    padding: 2px 4px;
}
/* 统计卡片紧凑 */
.stat-card {
    padding: 8px 14px !important;
}
.stat-card .stat-num {
    font-size: 20px !important;
}

/* 价格列自动均分 + 数字换行 */
.product-table .el-table__body td .cell,
.product-table .el-table__header th .cell {
    white-space: normal !important;
    line-height: 1.3;
    word-break: break-all;
}
.product-table .price-cell {
    display: inline-block;
    text-align: center;
    white-space: normal;
    word-break: break-all;
    line-height: 1.2;
}
