/* 投标工具助手独立样式文件 */

/* ===== 全局重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #eef2f6;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== 模拟桌面客户端窗口容器 ===== */
.app-window {
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

/* ===== 窗口顶部标题栏 ===== */
.window-titlebar {
    height: 32px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid #e1e6eb;
    user-select: none;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #333;
}

.window-logo-icon {
    width: 16px;
    height: 16px;
    background: #0055d7;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.window-controls {
    display: flex;
    align-items: center;
    height: 100%;
}

.win-btn {
    width: 46px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.win-btn:hover {
    background-color: #e5e5e5;
}

.win-btn.close:hover {
    background-color: #e81123;
    color: #fff;
}

/* ===== 模拟菜单栏 ===== */
.window-menubar {
    height: 30px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    border-bottom: 1px solid #e1e6eb;
    font-size: 12px;
    color: #333;
    user-select: none;
}

.menu-item {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f0f0f0;
}

/* ===== 项目信息条 ===== */
.project-info-bar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e1e6eb;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-switch-icon {
    width: 38px;
    height: 38px;
    background: #f0f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.project-switch-icon:hover {
    background-color: #e1ecff;
}

.project-switch-icon svg {
    width: 20px;
    height: 20px;
    stroke: #0055d7;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-name {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
}

.project-tag {
    font-size: 12px;
    color: #0055d7;
    border: 1px solid #a3c4f7;
    background: #edf3fc;
    padding: 1px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.project-code {
    font-size: 13px;
    color: #6b7280;
}

.project-right {
    display: flex;
    align-items: center;
}

.btn-reopen {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0055d7;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0, 85, 215, 0.2);
}

.btn-reopen:hover {
    background-color: #0044b3;
}

.btn-reopen:active {
    transform: scale(0.98);
}

.btn-reopen svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===== 核心布局区域 ===== */
.app-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #f5f7fa;
}

/* ===== 左侧导航栏 ===== */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e1e6eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    user-select: none;
}

/* 滚动条美化 */
.sidebar::-webkit-scrollbar,
.content-viewport::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sidebar::-webkit-scrollbar-thumb,
.content-viewport::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-track,
.content-viewport::-webkit-scrollbar-track {
    background: transparent;
}

/* 导航组 */
.nav-group {
    display: flex;
    flex-direction: column;
}

/* 组标题 */
.nav-group-header {
    height: 48px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    color: #4b5563;
    font-size: 14px;
    font-weight: bold;
    cursor: default;
    transition: background-color 0.2s;
}

.nav-group-header svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    transition: transform 0.2s;
}



/* 组内容列表 */
.nav-group-items {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 树形连线支撑结构 */
.nav-group-items::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 20px;
    width: 1px;
    border-left: 1px dashed #cbd5e1;
    z-index: 1;
}

/* 子菜单项 */
.nav-item {
    height: 38px;
    padding: 0 20px 0 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4b5563;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s, color 0.2s;
    z-index: 2;
}

/* 树状横连线 */
.nav-item::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 19px;
    width: 12px;
    height: 1px;
    border-bottom: 1px dashed #cbd5e1;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* 激活状态子项样式 */
.nav-item.active {
    background-color: #e6f0ff;
    color: #0055d7;
    font-weight: 500;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #0055d7;
}

/* 绿色指示圆点 */
.nav-item-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}



/* ===== 右侧视口区域 ===== */
.content-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
}

/* 当前位置路径指示 */
.path-bar {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 动态面板容器 */
.view-panel {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e6eb;
    display: flex;
    flex-direction: column;
    padding: 40px;
    align-items: center;
    position: relative;
}

/* 隐藏面板样式 */
.view-panel.hidden {
    display: none !important;
}

/* ===== 核心子页面: 招标附件 ===== */
.panel-attachment {
    justify-content: center;
}

.panel-title {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: center;
}

.panel-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 40px;
    text-align: center;
}

/* Word文档下载卡片 */
.doc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 200px;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.doc-card:hover {
    transform: translateY(-2px);
}

/* Word 文件图标 */
.doc-icon-container {
    width: 80px;
    height: 90px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 15px;
    overflow: hidden;
}

/* 折角效果 */
.doc-icon-container::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent transparent #e5e7eb transparent;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.08);
}

.doc-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #f3f4f6;
    border-left: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    border-bottom-left-radius: 4px;
    z-index: 2;
}

.doc-icon-pdf {
    width: 44px;
    height: 44px;
    background: #ff4d4f;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.3);
    margin-bottom: 6px;
}

.doc-name {
    font-size: 15px;
    font-weight: bold;
    color: #374151;
    text-align: center;
    margin-top: 10px;
}

/* 下载按钮 */
.btn-download {
    background: #ffffff;
    color: #0055d7;
    border: 1px solid #0055d7;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.btn-download:hover {
    background: #0055d7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 85, 215, 0.2);
}

/* ===== 核心子页面: 模拟 PDF 查看器 ===== */
.pdf-viewer-mock {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

.pdf-toolbar {
    height: 40px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 12px;
}

.pdf-toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-toolbar-btn {
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
}

.pdf-page-container {
    flex: 1;
    background: #cbd5e1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.pdf-page-sheet {
    width: 600px;
    min-height: 800px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-header-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #111;
}

.pdf-paragraph {
    line-height: 1.8;
    color: #333;
    text-align: justify;
    text-indent: 2em;
}

/* ===== 核心子页面: 模拟开标及清单表格 ===== */
.table-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-header-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bidding-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.bidding-table th {
    background: #f3f4f6;
    font-weight: bold;
    color: #374151;
    text-align: left;
    padding: 12px 10px;
    border: 1px solid #e5e7eb;
}

.bidding-table td {
    padding: 12px 10px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.bidding-table tr:hover {
    background-color: #f9fafb;
}

/* ===== 核心子页面: 完整性检测 ===== */
.check-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 20px;
}

.check-circle-animation {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid #e5e7eb;
    border-top-color: #10b981;
    animation: spin-anim 1.5s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-circle-done {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 4px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 44px;
    animation: scale-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spin-anim {
    to { transform: rotate(360deg); }
}

@keyframes scale-up {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== 核心子页面: 生成文件 ===== */
.generate-card {
    width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    background: #fff;
    margin-top: 20px;
}

.generate-steps {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    position: relative;
    margin-bottom: 10px;
}

.generate-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.step-num {
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6b7280;
}

.generate-step-item.active .step-num {
    background: #0055d7;
    color: #fff;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #0055d7;
    transition: width 0.3s;
}

.btn-generate {
    background: #0055d7;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.btn-generate:hover {
    background-color: #0044b3;
}

/* ===== Toast轻提示 ===== */
.toast-msg {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== 导航栏底部区域 ===== */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 状态说明卡片 */
.legend-card {
    border: 1px solid #dbeafe;
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.legend-title {
    font-size: 12px;
    font-weight: bold;
    color: #1e3a8a;
}

.legend-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
    column-gap: 10px;
    padding: 0 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-gray {
    background-color: #cbd5e1;
    box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.2);
}

.dot-blue {
    background-color: #0055d7;
    box-shadow: 0 0 0 2px rgba(0, 85, 215, 0.2);
}

.dot-red {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.dot-green {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* 标签文本颜色 */
.text-gray {
    color: #94a3b8;
}

.text-blue {
    color: #0055d7;
}

.text-red {
    color: #ef4444;
    font-weight: 500;
}

.text-green {
    color: #10b981;
}

/* 技术支持 */
.tech-support {
    font-size: 11px;
    color: #0055d7;
    background: #eff6ff;
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 开标一览表与报价明细表专属样式 ===== */
.summary-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
    border-left: 4px solid #0055d7;
    padding-left: 10px;
    margin: 20px 0 12px 0;
    width: 100%;
}

.table-cell-input {
    width: 100%;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.table-cell-input:focus {
    border-color: #0055d7;
    box-shadow: 0 0 0 2px rgba(0, 85, 215, 0.1);
}

.table-cell-input::placeholder {
    color: #9ca3af;
}

.bidding-tip-banner {
    width: 100%;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    padding: 12px 15px;
    color: #ff4d4f;
    font-size: 12px;
    line-height: 1.6;
    margin: 15px 0;
    text-align: left;
}

.summary-edit-table td {
    padding: 6px 8px;
    vertical-align: middle;
}

.summary-main-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

/* ===== 工程量清单上传模块专属样式 ===== */
.btn-boq-upload {
    background: #0055d7;
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 85, 215, 0.2);
    transition: background-color 0.2s, transform 0.1s;
    outline: none;
}

.btn-boq-upload:hover {
    background-color: #0044b3;
}

.btn-boq-upload:active {
    transform: scale(0.98);
}

.upload-boq-tip {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}



