/* ==========================================================================
   千谋 CLM 静态演示站 · 客户门户（前台）+ 登录页
   配色来源：views/frontend/index.vue + styles/frontend-theme.css
   ========================================================================== */

body.fullscreen-body .fullscreen-page {
  background: #f8fafc;
  /* 门户页面（首页 / 新的申请 / 我的申请 …）内容较长，需要自身可滚动。
     data-screen 拥有独立的高度规则，不受此处影响。 */
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ============================ 门户外壳 ============================ */
.pf {
  /* 用 vh 而非 100%：body 已不再锁定一屏高度（否则会破坏落地页的 sticky 导航），
     若用 100% 在短页面上页脚会浮到视口中间 */
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.pf-header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  min-height: 90px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.pf-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.16) 0, transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.12) 0, transparent 40%);
  pointer-events: none;
}

.pf-header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.pf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}
.pf-brand:hover { color: #fff; }

.pf-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pf-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pf-nav-item {
  position: relative;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  white-space: nowrap;
  transition: all var(--tr-fast);
}
.pf-nav-item:hover {
  color: #fde047;
  background: rgba(255, 255, 255, 0.1);
}
.pf-nav-item.is-active {
  color: #fff;
}
.pf-nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fde047, #fde047, transparent);
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.6);
}

.pf-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.pf-user:hover { background: rgba(255, 255, 255, 0.26); }

/* 波浪装饰 */
.pf-hero {
  position: relative;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  overflow: hidden;
}
.pf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 24px 84px;
  color: #fff;
}
.pf-hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 13px;
  margin-bottom: 18px;
}
.pf-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
}
.pf-hero p {
  margin-top: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.pf-hero-arrow {
  position: absolute;
  right: 24px;
  bottom: 92px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}
.pf-hero-arrow:hover { color: #fde047; }

.pf-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 70px;
  background:
    radial-gradient(ellipse 60% 100% at 20% 100%, rgba(147, 197, 253, 0.3) 0, transparent 70%),
    radial-gradient(ellipse 50% 100% at 70% 100%, rgba(191, 219, 254, 0.2) 0, transparent 70%),
    radial-gradient(ellipse 40% 100% at 95% 100%, rgba(219, 234, 254, 0.1) 0, transparent 70%);
  z-index: 1;
}

/* 主体 */
.pf-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.pf-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: -48px;
  position: relative;
  z-index: 3;
  margin-bottom: 24px;
}

.pf-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(43, 86, 158, 0.12);
  border: 1px solid #e9eefb;
}
.pf-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
}
.pf-stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.pf-section-title {
  font-size: 19px;
  font-weight: 700;
  color: #1f2937;
  margin: 26px 0 14px;
  padding-left: 12px;
  border-left: 4px solid #4361ee;
}

.pf-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pf-entry {
  display: block;
  padding: 22px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  color: inherit;
  transition: all var(--tr-base);
  box-shadow: 0 2px 10px rgba(43, 86, 158, 0.05);
}
.pf-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(43, 86, 158, 0.14);
  border-color: #c7d8fb;
  color: inherit;
}
.pf-entry-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 14px;
}
.pf-entry-desc {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.7;
  min-height: 44px;
}
.pf-entry-action {
  font-size: 13px;
  font-weight: 600;
  color: #4361ee;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 页头 */
.pf-page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e9eefb;
  margin-top: 22px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pf-page-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}
.pf-page-head p {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}
.pf-page-badge {
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4361ee, #4cc9f0);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pf-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* 申请卡片 */
.pf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.pf-app-card {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(43, 86, 158, 0.05);
  transition: all var(--tr-base);
}
.pf-app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(43, 86, 158, 0.12);
}
.pf-app-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.5;
}
.pf-app-rows {
  font-size: 13px;
  color: #475569;
  line-height: 2;
}
.pf-app-rows span { color: #94a3b8; }
.pf-app-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #eef2f7;
}

/* 页脚 */
.pf-footer {
  background: linear-gradient(135deg, #2c3e50, #1a2a3a);
  color: #adb5bd;
  margin-top: 40px;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, #4361ee, #3f37c9, #4cc9f0) 1;
}
.pf-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 24px 22px;
}
.pf-footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .pf-footer-cols { grid-template-columns: 1fr 1fr; }
}
.pf-footer-cols h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}
.pf-footer-cols a {
  display: block;
  color: #adb5bd;
  font-size: 13px;
  line-height: 2.1;
}
.pf-footer-cols a:hover { color: #4cc9f0; }
.pf-footer-cols p {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 8px;
}
.pf-footer-logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #4361ee, #4cc9f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pf-copyright {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: #7d8b96;
}

/* ============================ 入驻申请表单 ============================ */
.pf-apply-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e9eefb;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}
.pf-apply-head .ttl {
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
}
.pf-apply-head .sub {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 4px;
}
.pf-apply-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4361ee;
  white-space: nowrap;
}

.pf-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(120deg, #eef3ff, #f3f7ff);
  border: 1px solid #dbe6fb;
  font-size: 13px;
  color: #334155;
  margin-bottom: 16px;
}
.pf-channel .lb {
  color: #6b7280;
}
.pf-channel .vl {
  font-weight: 700;
  color: #1e40af;
}

/* 分组卡片 */
.pf-group {
  background: #fff;
  border: 1px solid #e9eefb;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.pf-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: #f8faff;
  border-bottom: 1px solid #eef2fa;
}
.pf-group-head .bar {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: #4361ee;
}
.pf-group-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}
.pf-group-head .tip {
  margin-left: auto;
  font-size: 11.5px;
  color: #94a3b8;
}
.pf-group-body {
  padding: 18px 20px;
}

/* 表单栅格 */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}
.pf-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .pf-grid, .pf-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pf-grid, .pf-grid.cols-2, .pf-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
}
.pf-field { margin-bottom: 16px; }
.pf-field.is-span2 { grid-column: span 2; }
.pf-field.is-span3 { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .pf-field.is-span2, .pf-field.is-span3 { grid-column: 1 / -1; }
}
.pf-label {
  display: block;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}
.pf-label .req { color: #ef4444; margin-right: 3px; }
.pf-field .input,
.pf-field .select,
.pf-field .textarea { border-color: #dfe6f5; }
.pf-field .input:focus,
.pf-field .select:focus,
.pf-field .textarea:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.12);
}
.pf-hint {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 5px;
  line-height: 1.7;
}

/* 企业性质智能识别提示 */
.pf-smart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0f9eb;
  color: #529b2e;
  font-size: 11.5px;
}
.pf-smart a { color: #4361ee; }

/* 入驻类型选择 */
.pf-type-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.pf-type-row .radio { font-size: 14px; color: #334155; }
.pf-reuse {
  margin-left: 10px;
  font-size: 12.5px;
  color: #4361ee;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}
.pf-reuse svg.icon { width: 13px; height: 13px; }
.pf-type-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

/* 经营范围标签 */
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 10px 4px;
  border: 1px solid #dfe6f5;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  background: #fff;
  min-height: 46px;
}
.pf-tags:empty::before {
  content: '尚未添加经营范围';
  color: #c0c4cc;
  font-size: 12.5px;
  padding: 3px 0;
}
.pf-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #eef3ff;
  border: 1px solid #d3e0fb;
  color: #2d4b9a;
  font-size: 12.5px;
}
.pf-tag button {
  border: none;
  background: none;
  color: #7c93c9;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.pf-tag button:hover { color: #ef4444; }
.pf-tags + .input { border-radius: 0 0 8px 8px; }

/* 股东信息表 */
.pf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.pf-table th {
  padding: 9px 10px;
  background: #f8faff;
  color: #64748b;
  font-weight: 600;
  font-size: 12.5px;
  text-align: left;
  border-bottom: 1px solid #eef2fa;
  white-space: nowrap;
}
.pf-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f4fa;
  color: #334155;
}
.pf-table .input,
.pf-table .select { height: 30px; font-size: 13px; }

/* 附件清单 */
.pf-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.pf-upload {
  padding: 14px;
  border: 1px dashed #cdd9ee;
  border-radius: 10px;
  background: #fcfdff;
  text-align: center;
  transition: all var(--tr-fast);
}
.pf-upload:hover { border-color: #8fb0f5; background: #f7faff; }
.pf-upload.is-done { border-style: solid; border-color: #b3e19d; background: #f8fdf5; }
.pf-upload .u-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pf-upload .u-icon {
  font-size: 22px;
  color: #6d8fd8;
  display: block;
  margin-bottom: 6px;
}
.pf-upload.is-done .u-icon { color: #67c23a; }
.pf-upload .u-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}
.pf-upload .u-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 5px;
  line-height: 1.7;
}
.pf-upload .btn { margin-top: 9px; }

/* 底部操作条 */
.pf-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #e9eefb;
  border-radius: 12px;
  box-shadow: 0 -6px 22px rgba(43, 86, 158, 0.08);
  margin: 8px 0 30px;
  flex-wrap: wrap;
}
.pf-submit-bar .tip {
  font-size: 12px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pf-submit-bar .actions {
  margin-left: auto;
  margin-right: 168px; /* 避免与右下角「静态演示环境」浮标重叠 */
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 1280px) {
  .pf-submit-bar .actions { margin-right: 0; }
}

/* ============================ 登录页 ============================ */
.login-page {
  min-height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.2) 0, transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.14) 0, transparent 32%);
  pointer-events: none;
}

.login-body {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1000px) {
  .login-body { grid-template-columns: minmax(0, 1fr); }
  .login-left { display: none; }
}

.login-left {
  color: #fff;
}
.login-left .tabs {
  border-bottom: none;
  padding: 0;
  gap: 8px;
}
.login-left .tab {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.login-left .tab:hover { color: #fff; background: rgba(255, 255, 255, 0.22); }
.login-left .tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}
.login-left .tab.is-active::after { display: none; }
.login-left h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}
.login-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
}
.login-list li .icon {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 16px;
  color: #a7f3d0;
}
.login-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.login-feature {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1.5px solid #c7d2fe;
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: 0 24px 60px rgba(30, 27, 75, 0.3);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.login-title {
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
}
.login-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 6px 0 22px;
}
.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  flex-wrap: wrap;
}
.login-links a { color: #4f46e5; }
.login-links span { color: #c7d2fe; }
.login-copyright {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 14px;
}

.login-card .input {
  background: #fff;
  border-color: #dbe2fb;
}
.login-card .input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.14);
}
.login-card .btn-primary {
  background: linear-gradient(135deg, #4361ee, #3f37c9);
  border-color: transparent;
  height: 46px;
  font-size: 15px;
}
