/* 我的煤库页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: #1890FF;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #999;
    font-size: 14px;
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    min-height: 600px;
}

/* 煤库容器 */
.library-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* 页面头部 */
.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.library-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
}

.btn-add-coal {
    padding: 12px 28px;
    background: linear-gradient(135deg, #52C41A 0%, #389E0D 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.btn-add-coal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(82, 196, 26, 0.4);
}

/* Tab切换 */
.library-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #1890FF;
}

.tab-btn.active {
    color: #1890FF;
    border-bottom-color: #1890FF;
}

/* Tab内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 煤种网格布局 */
.coal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* 煤种卡片 */
.coal-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}

.coal-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #1890FF;
}

/* 用户自行报价标签 */
.user-price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.public-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #52C41A 0%, #389E0D 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 录入人标签 */
.shared-by-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 85, 104, 0.3);
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.card-title {
    flex: 1;
}

.coal-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    opacity: 0.95;
}

.coal-location {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.coal-price {
    text-align: right;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #FF4D4F;
    margin: 0;
}

.price-unit {
    font-size: 12px;
    color: #999;
    margin: 4px 0 0 0;
}

.price-note {
    font-size: 12px;
    color: #FF9800;
    margin: 4px 0 0 0;
}

/* 卡片内容 */
.card-body {
    margin-bottom: 15px;
}

.coal-indicators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.indicator-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.indicator-label {
    color: #666;
    font-size: 13px;
}

.indicator-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* 指标文本展示 */
.indicator-text {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 卡片底部操作 */
.card-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-action {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-use {
    background: linear-gradient(135deg, #1890FF 0%, #0066CC 100%);
    color: #ffffff;
}

.btn-use:hover {
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.4);
    transform: translateY(-1px);
}

.btn-edit {
    background: #ffffff;
    color: #1890FF;
    border: 1px solid #1890FF;
}

.btn-edit:hover {
    background: #e6f7ff;
}

.btn-delete {
    background: #ffffff;
    color: #FF4D4F;
    border: 1px solid #FF4D4F;
}

.btn-delete:hover {
    background: #fff1f0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.btn-add-first {
    padding: 12px 32px;
    background: linear-gradient(135deg, #1890FF 0%, #0066CC 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.4);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #FF4D4F;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* 表单样式 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label.required::after {
    content: ' *';
    color: #FF4D4F;
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1890FF;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-divider {
    font-size: 15px;
    font-weight: 600;
    color: #666;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-submit,
.btn-cancel {
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit {
    background: linear-gradient(135deg, #1890FF 0%, #0066CC 100%);
    color: #ffffff;
}

.btn-submit:hover {
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
    transform: translateY(-1px);
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e8e8e8;
}

/* 删除 @media (max-width: 768px) - 移动端样式在 mobile.css */
