/* 基础样式 */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f5f5; color: #333; }
a { color: #1677ff; text-decoration: none; }
p { margin: 0 0 12px; }

/* 布局 */
.site-header { height: 64px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.site-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; }
.site-content { max-width: 1200px; margin: 0 auto; padding: 24px; min-height: calc(100vh - 64px - 72px); }
.footer { height: 72px; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,0.06); }

/* 面包屑 */
.breadcrumb { color: #666; font-size: 14px; }
.breadcrumb a { color: #1677ff; }

/* 标题 */
.title-3 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.title-4 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.title-5 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

/* 卡片 */
.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); overflow: hidden; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 5px; }
.card-body { padding: 20px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-actions { padding: 0 20px 20px; display: flex; gap: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { background: #f0f5ff; color: #1677ff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; width: 100%;padding: 4px 16px; border-radius: 6px; border: 1px solid #d9d9d9; background: #fff; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.btn:hover { opacity: 0.8; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #1677ff; border-color: #1677ff; color: #fff; }
.btn-download { background: #f0f5ff; border-color: #d9e6ff; color: #1677ff; }
.btn-video { background: #f0fffb; border-color: #d9ffef; color: #00b578; }
.btn-block { width: 100%; }

/* 底部按钮 */
.bottom-actions { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 12px 24px; box-shadow: 0 -2px 8px rgba(0,0,0,0.06); display: flex; gap: 12px; }
.bottom-btn { flex: 1; height: 40px; border-radius: 6px; border: none; background: #f5f5f5; cursor: pointer; font-size: 16px; font-weight: 500; }
.bottom-btn-primary { background: #1677ff; color: #fff; }
.bottom-btn-secondary { background: #f0f5ff; color: #1677ff; }
.bottom-btn-purple { background: #722ed1; color: #fff; }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 14px; font-weight: 500; }
.input, .textarea { padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; }
.input:focus, .textarea:focus { outline: none; border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,0.2); }
.textarea { min-height: 80px; resize: vertical; }

/* 弹层 */
.modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal { background: #fff; border-radius: 8px; width: 90%;  display: flex; flex-direction: column; }
.modal-header { padding: 16px 24px; border-bottom: 1px solid #f0f0f0; font-size: 16px; font-weight: 600; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f0f0f0; display: flex; gap: 12px; justify-content: flex-end; }

/* 复选框行 */
.checkbox-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.checkbox-row:last-child { border-bottom: none; }

/* 徽章 */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-success { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.badge-warning { background: #fffbe6; color: #d48806; border: 1px solid #ffe58f; }
.badge-error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.badge-processing { background: #e6f4ff; color: #0958d9; border: 1px solid #91caff; }

/* 文字颜色 */
.text-secondary { color: #666; }
.muted { color: #999; font-size: 14px; }

/* 软件卡片图片 */
.soft-card-img { width: 100%; height: 180px; object-fit: cover; }

/* 计划价格 */
.plan-price { font-size: 20px; font-weight: 600; color: #1677ff; }

/* 结果页 */
.result { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; text-align: center; }
.result-title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.result-sub { color: #666; margin-bottom: 24px; }

/* 加载动画 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* 响应式 */
@media (max-width: 768px) {
  .site-header-inner { padding: 0 16px; }
  .site-content { padding: 16px; min-height: calc(100vh - 64px - 60px); }
  .card-grid { grid-template-columns: 1fr; }
  body.page-profile .card-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-actions { padding: 12px 16px; }
  .footer { height: 60px; }
}

/* 采购合同流程弹窗专用样式 */
.contract-flow-modal .modal-body {
    padding: 20px 16px;
    background: #f8fbff;
}
.contract-flow-modal .card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(22,119,255,0.06);
    margin-bottom: 8px;
}
.contract-flow-modal .title-4 {
    font-size: 18px;
    font-weight: 600;
    color: #1677ff;
    border-bottom: 2px solid #e6f4ff;
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.contract-flow-modal ol {
    padding-left: 20px;
    margin-top: 0;
}
.contract-flow-modal li {
    margin-bottom: 8px;
    line-height: 1.7;
}
