/* Account模块通用样式 - 账户中心相关模板 */

/* 抽屉打开时，降低顶部和底部的z-index，确保抽屉覆盖它们 */
body.drawer-open .top-header,
body.drawer-open .main-footer {
  z-index: 1 !important;
}

.account-page {
  background: #f5f7fa;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.account-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.account-bg-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1100px;
  background: url(../images/top_bg.png) no-repeat top center;
  background-size: 100% auto;
}

.account-bg-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1100px;
  background: url(../images/down_bg.png) no-repeat bottom center;
  background-size: 100% auto;
}

.account-container {
  position: relative;
  z-index: 1;
}

.member-account-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 12px !important;
  padding: 20px 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(10px);
}

.member-account-nav .member-account-user {
  background: linear-gradient(135deg, #b8e4fa 0%, #87ceeb 100%) !important;
  color: #1a5fb4 !important;
  border-radius: 8px;
  margin: 0 15px 20px !important;
  padding: 30px 20px !important;
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.member-account-nav .member-account-user img {
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.member-account-nav .member-account-user p {
  color: #2a7bc8 !important;
}

.member-account-nav .member-account-menu li a {
  padding: 12px 20px !important;
  margin: 0 10px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  color: #333 !important;
}

.member-account-nav .member-account-menu li a:hover {
  background: rgba(219, 241, 255, 0.8) !important;
  color: #1890ff !important;
}

.member-account-nav .member-account-menu li.active a {
  background: linear-gradient(135deg, #dbf1ff 0%, #b8e4fa 100%) !important;
  color: #1a5fb4 !important;
}

.member-account-content {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 12px !important;
  padding: 30px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(10px);
  margin-left: 24px !important;
}

.account-header {
  padding: 30px 0;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  margin-bottom: 30px;
}

.account-header h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
}

.account-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.account-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 50px;
}

.account-layout {
  display: flex;
  gap: 30px;
}

.account-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.account-content {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.account-section {
  margin-bottom: 30px;
}

.account-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.account-form-group {
  margin-bottom: 20px;
}

.account-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.account-form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.account-form-control:focus {
  outline: none;
  border-color: #667eea;
}

.account-btn {
  display: inline-block;
  padding: 10px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.account-btn:hover {
  opacity: 0.9;
}

.account-btn-secondary {
  background: #6c757d;
}

.account-btn-danger {
  background: #dc3545;
}

.account-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.account-info-item:last-child {
  border-bottom: none;
}

.account-info-label {
  color: #666;
  font-weight: 500;
}

.account-info-value {
  color: #333;
}

.account-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.account-badge-primary {
  background: #667eea;
  color: #fff;
}

.account-badge-success {
  background: #28a745;
  color: #fff;
}

.account-badge-warning {
  background: #ffc107;
  color: #333;
}

.account-badge-danger {
  background: #dc3545;
  color: #fff;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.account-table th,
.account-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.account-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.account-table tbody tr:hover {
  background: #f8f9fa;
}

.account-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.account-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.account-empty-text {
  font-size: 16px;
  margin: 0;
}

.account-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.account-loading::after {
  content: "加载中...";
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.account-breadcrumb {
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.account-breadcrumb a {
  color: #667eea;
  text-decoration: none;
}

.account-breadcrumb a:hover {
  text-decoration: underline;
}

.account-breadcrumb span {
  margin: 0 10px;
  color: #999;
}

.account-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.account-tab {
  padding: 12px 24px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
}

.account-tab:hover {
  color: #667eea;
}

.account-tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
  font-weight: 600;
}

.account-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.account-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.account-card-meta {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.account-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.account-stat-number {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}

.account-stat-label {
  font-size: 14px;
  opacity: 0.9;
}

.account-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.account-pagination button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.account-pagination button:hover:not(:disabled) {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

.account-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.account-pagination span {
  padding: 8px 16px;
  color: #666;
}

.account-modal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 4px 4px 0 0;
}

.account-modal .modal-title {
  color: #fff;
}

.account-modal .modal-header .close {
  color: #fff;
  opacity: 0.8;
}

.account-modal .modal-header .close:hover {
  opacity: 1;
}

.account-modal .modal-body {
  padding: 20px;
}

.account-modal .modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
}

/* 移动端适配 - 768px 及以下 */
@media (max-width: 768px) {
  .account-layout {
    flex-direction: column;
  }

  .account-sidebar {
    width: 100%;
  }

  .account-content {
    padding: 20px 15px;
  }

  .account-header {
    padding: 20px 15px;
  }

  .account-header h1 {
    font-size: 22px;
  }

  .account-section-title {
    font-size: 18px;
  }

  .table-scroll-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .account-table,
  .delegate-table,
  .jyzbjd-table {
    font-size: 12px !important;
    table-layout: auto !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .account-table th,
  .account-table td,
  .delegate-table th,
  .delegate-table td,
  .jyzbjd-table th,
  .jyzbjd-table td {
    padding: 8px 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .delegate-table th:nth-child(1),
  .delegate-table td:nth-child(1),
  .jyzbjd-table th:nth-child(1),
  .jyzbjd-table td:nth-child(1) {
    min-width: 130px !important;
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .delegate-table th:nth-child(2),
  .delegate-table td:nth-child(2),
  .jyzbjd-table th:nth-child(2),
  .jyzbjd-table td:nth-child(2) {
    min-width: 110px !important;
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .delegate-table th:nth-child(3),
  .delegate-table td:nth-child(3),
  .jyzbjd-table th:nth-child(3),
  .jyzbjd-table td:nth-child(3) {
    min-width: 130px !important;
    max-width: 150px !important;
    white-space: nowrap !important;
  }

  .delegate-table th:nth-child(4),
  .delegate-table td:nth-child(4),
  .jyzbjd-table th:nth-child(4),
  .jyzbjd-table td:nth-child(4) {
    min-width: 85px !important;
    max-width: 90px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .delegate-table th:nth-child(5),
  .delegate-table td:nth-child(5),
  .jyzbjd-table th:nth-child(5),
  .jyzbjd-table td:nth-child(5) {
    min-width: 100px !important;
    max-width: 120px !important;
    text-align: right !important;
    border: none !important;
    outline: none !important;
  }

  .delegate-table td:nth-child(5),
  .jyzbjd-table td:nth-child(5) {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    padding-right: 10px !important;
  }

  .delegate-table td:nth-child(5) > span,
  .jyzbjd-table td:nth-child(5) > span {
    display: none !important;
  }

  .delegate-table .btn-view,
  .delegate-table .btn-print,
  .delegate-table .btn-confirm-primary,
  .jyzbjd-table .btn-view,
  .jyzbjd-table .btn-print,
  .jyzbjd-table .btn-confirm-primary {
    width: 50px !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    border: none !important;
    outline: none !important;
  }

  .account-stat-grid {
    grid-template-columns: 1fr;
  }

  .account-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .account-tab {
    padding: 10px 16px;
    font-size: 14px;
  }

  .account-pagination {
    flex-wrap: wrap;
  }

  .account-pagination button,
  .account-pagination span {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 移动端窄边栏适配 - 767px 及以下 */
@media (max-width: 767px) {
  /* 只处理文字溢出和布局宽度问题，保持原始flex布局 */
  .desktop-sidebar .member-account-nav {
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
  }

  .desktop-sidebar .member-account-nav .member-account-user {
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
  }

  /* 桌面端窄边栏防止菜单项文字溢出 */
  .desktop-sidebar .member-account-nav .member-account-menu li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 防止容器溢出 */
  .member-account-wrap {
    min-width: 0;
  }

  .member-account-content {
    min-width: 0;
    overflow: hidden;
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .account-form-label {
    font-size: 13px;
  }

  .account-form-control {
    font-size: 13px;
    padding: 8px 12px;
  }

  .account-btn {
    width: 100%;
    padding: 12px;
  }

  .account-stat-number {
    font-size: 28px;
  }
}

/* ============================================
   满意度调查（MYDFK）相关样式
   ============================================ */

/* 模态框样式 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay[style*="flex"] {
  display: flex !important;
}

.mydfk-modal-content {
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  max-height: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mydfk-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, #216ccf 0%, #216ccfd6 100%);
  color: #fff;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}

.mydfk-modal-content .modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
}

.mydfk-modal-content .modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.mydfk-modal-content .modal-close:hover {
  opacity: 0.7;
}

.mydfk-modal-content .modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* 满意度调查容器 */
.mydfk-container {
  padding: 20px;
}

/* 满意度调查表格 */
.mydfk-table {
  width: 100%;
  border-collapse: collapse;
}

.mydfk-table th,
.mydfk-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
}

.mydfk-table th {
  background-color: #f5f7fa;
  font-weight: 600;
}

.mydfk-table tr:hover {
  background-color: #f9f9f9;
}

/* 状态徽章 */
.status-badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-processing {
  background-color: #cce5ff;
  color: #004085;
}

.status-completed {
  background-color: #d4edda;
  color: #155724;
}

.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
}

/* 按钮样式 */
.btn-view {
  padding: 5px 15px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-view:hover {
  background-color: #40a9ff;
}

.btn-print {
  padding: 5px 15px;
  background: linear-gradient(135deg, #fa8c16 0%, #d46b08 100%);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(250, 140, 22, 0.25);
  transition: all 0.2s ease;
}

.btn-print:hover {
  background: linear-gradient(135deg, #ffa940 0%, #fa8c16 100%);
  box-shadow: 0 3px 8px rgba(250, 140, 22, 0.35);
}

.btn-confirm-primary {
  padding: 5px 15px;
  background: linear-gradient(135deg, #13c2c2 0%, #08979c 100%);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(19, 194, 194, 0.25);
  transition: all 0.2s ease;
}

.btn-confirm-primary:hover {
  background: linear-gradient(135deg, #13d6d6 0%, #13c2c2 100%);
  box-shadow: 0 3px 8px rgba(19, 194, 194, 0.35);
}

.btn-confirm-primary:active {
  background: linear-gradient(135deg, #08979c 0%, #006d70 100%);
  box-shadow: 0 1px 4px rgba(19, 194, 194, 0.2);
}

.btn-add {
  padding: 8px 20px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-add:hover {
  background-color: #40a9ff;
}

/* 空状态 */
.empty-state {
  text-align: center !important;
  padding: 40px;
  color: #999;
}

/* 满意度调查表单样式 */
.mydfk-intro {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.mydfk-intro p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.mydfk-intro p:last-child {
  margin-bottom: 0;
}

.mydfk-sign {
  margin-top: 20px;
  text-align: right;
  font-weight: 600;
}

.mydfk-section {
  margin-bottom: 30px;
}

.mydfk-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #216ccf;
}

.mydfk-table-container {
  overflow-x: auto;
}

.mydfk-textarea-group {
  margin-bottom: 20px;
}

.mydfk-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.mydfk-textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s;
}

.mydfk-textarea:focus {
  outline: none;
  border-color: #216ccf;
}

.mydfk-form-group {
  margin-bottom: 20px;
}

.mydfk-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.mydfk-input:focus {
  outline: none;
  border-color: #216ccf;
}

.mydfk-input.is-error,
.mydfk-textarea.is-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.mydfk-table td.is-error {
  background-color: #fff5f5;
  border-color: #dc3545 !important;
}

.mydfk-table td.readonly-radio-empty {
  background-color: #f8f9fa;
}

.mydfk-table td.readonly-radio-checked {
  background-color: #e3f2fd;
  position: relative;
}

.readonly-radio {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #216ccf;
  position: relative;
}

.readonly-radio::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mydfk-input-readonly {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f8f9fa;
  color: #333;
  font-size: 14px;
}

.mydfk-textarea-readonly {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f8f9fa;
  color: #333;
  font-size: 14px;
  min-height: 80px;
  resize: none;
}

.mydfk-info {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
}

.mydfk-info .info-row {
  margin-bottom: 8px;
}

.mydfk-info .info-row:last-child {
  margin-bottom: 0;
}

.mydfk-info .info-label {
  font-weight: bold;
  color: #666;
}

.mydfk-info .info-value {
  color: #333;
}

.mydfk-detail {
  padding: 20px;
}

.mydfk-actions {
  text-align: center;
  margin-top: 30px;
}

.mydfk-submit-btn {
  padding: 12px 40px;
  background: linear-gradient(135deg, #216ccf 0%, #216ccfd6 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.mydfk-submit-btn:hover {
  opacity: 0.9;
}

.mydfk-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mydfk-error {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 4px;
}

.mydfk-error ul {
  margin: 0;
  padding-left: 20px;
}

.mydfk-error li {
  margin-bottom: 5px;
}

.mydfk-error li:last-child {
  margin-bottom: 0;
}

/* 满意度调查详情样式 */
.mydfk-detail {
  padding: 20px;
}

.mydfk-detail p {
  margin: 0 0 15px;
  line-height: 1.8;
}

.mydfk-detail p:last-child {
  margin-bottom: 0;
}

.mydfk-detail strong {
  color: #333;
}

.detail-divider {
  height: 1px;
  background: #eee;
  margin: 20px 0;
}

/* 移动端适配 - 满意度调查 */
@media (max-width: 768px) {
  .mydfk-container {
    padding: 15px;
  }

  .mydfk-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .mydfk-header h2 {
    font-size: 18px;
  }

  .btn-view {
    width: 100%;
    padding: 8px 15px;
  }

  .mydfk-table .empty-state {
    padding: 40px 20px;
    display: block !important;
    padding-left: 15px !important;
    text-align: center;
  }

  .mydfk-table .empty-state::before {
    display: none;
  }

  .mydfk-modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .mydfk-modal-content .modal-header {
    padding: 16px 20px;
    border-radius: 0;
  }

  .mydfk-modal-content .modal-header h3 {
    font-size: 18px;
  }

  .mydfk-modal-content .modal-body {
    padding: 20px 15px;
  }

  .mydfk-section-title {
    font-size: 16px;
  }

  .mydfk-intro {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .mydfk-modal-content .modal-close {
    font-size: 28px;
    width: 36px;
    height: 36px;
  }

  .mydfk-table td {
    padding-left: 40%;
  }

  .mydfk-table td::before {
    width: 35%;
  }
}

/* ============================================
   在线投稿（CONTRIBUTE）相关样式
   ============================================ */

/* 投稿容器 */
.contribute-container {
  padding: 24px;
}

/* 模块头部 */
.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8f4fd;
}

.module-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a5fb4;
}

/* 新增按钮 */
.btn-add {
  padding: 10px 24px;
  background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 投稿表格 */
.contribute-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contribute-table th,
.contribute-table td {
  border-bottom: 1px solid #f0f5ff;
  padding: 14px 16px;
  text-align: left;
}

.contribute-table th {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
  font-weight: 600;
  color: #1a5fb4;
  font-size: 14px;
}

.contribute-table tr:hover {
  background: #f8fcff;
}

.contribute-table tr:last-child td {
  border-bottom: none;
}

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background: #fff7e6;
  color: #fa8c16;
}

.status-processing {
  background: #e6f7ff;
  color: #1890ff;
}

.status-completed {
  background: #f6ffed;
  color: #52c41a;
}

.status-rejected {
  background: #fff2f0;
  color: #ff4d4f;
}

/* 查看按钮 */
.btn-view {
  padding: 6px 16px;
  background: #e6f7ff;
  color: #1890ff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view:hover {
  background: #bae7ff;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

/* 投稿模态框内容样式 */
.contribute-modal-content {
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  max-height: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contribute-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, #216ccf 0%, #216ccfd6 100%);
  color: #fff;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}

.contribute-modal-content .modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
}

.contribute-modal-content .modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.contribute-modal-content .modal-close:hover {
  opacity: 0.7;
}

.contribute-modal-content .modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* 表单介绍 */
.form-intro {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.form-intro .intro-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.form-intro p {
  margin: 0 0 10px;
  line-height: 1.8;
  font-size: 14px;
  color: #555;
}

.form-intro p:last-child {
  margin-bottom: 0;
}

/* 投稿表单 */
.contribute-form {
  background: #fff;
}

.form-row {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #1a5fb4;
  font-size: 16px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1e5f7;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fafcff;
}

.form-input:focus {
  outline: none;
  border-color: #40a9ff;
  box-shadow: 0 0 0 3px rgba(64, 169, 255, 0.1);
}

.form-input.is-error {
  border-color: #ff4d4f;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1e5f7;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fafcff;
}

.form-textarea:focus {
  outline: none;
  border-color: #40a9ff;
  box-shadow: 0 0 0 3px rgba(64, 169, 255, 0.1);
}

.form-textarea.is-error {
  border-color: #ff4d4f;
}

/* 文件上传 */
.file-upload {
  border: 2px dashed #b8e4fa;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fafcff;
}

.file-upload:hover {
  border-color: #40a9ff;
  background: #f0f7ff;
}

.file-upload-label {
  display: block;
  cursor: pointer;
}

.file-upload-text {
  color: #666;
  font-size: 14px;
}

/* 表单操作 */
.form-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e8f4fd;
}

.btn-submit {
  padding: 12px 40px;
  background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 取消按钮样式 */
.btn-cancel {
  padding: 12px 30px;
  background: #fff;
  color: #6c757d;
  border: 1px solid #d1e5f7;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 12px;
}

.btn-cancel:hover {
  background: #fafcff;
  border-color: #b8e4fa;
  color: #1a5fb4;
  box-shadow: 0 2px 8px rgba(64, 169, 255, 0.15);
}

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

/* 表单错误 */
.form-error {
  display: none;
  margin-top: 20px;
  padding: 15px 20px;
  background: #fff2f0;
  color: #ff4d4f;
  border-radius: 6px;
  border: 1px solid #ffccc7;
}

.form-error ul {
  margin: 0;
  padding-left: 20px;
}

.form-error li {
  margin-bottom: 5px;
}

.form-error li:last-child {
  margin-bottom: 0;
}

/* 投稿详情 */
.contribute-detail {
  padding: 24px;
  background: #fafcff;
  border-radius: 8px;
}

.contribute-detail h3 {
  font-size: 18px;
  margin: 0 0 24px;
  color: #1a5fb4;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8f4fd;
}

.contribute-detail h4 {
  font-size: 14px;
  margin: 20px 0 12px;
  color: #1a5fb4;
  font-weight: 500;
}

.contribute-detail p {
  margin: 0 0 12px;
  line-height: 1.8;
  font-size: 14px;
  color: #555;
  padding: 10px 16px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e8f4fd;
}

.contribute-detail p:last-child {
  margin-bottom: 0;
}

.contribute-detail strong {
  color: #1a5fb4;
  margin-right: 8px;
}

.detail-divider {
  height: 1px;
  background: #e8f4fd;
  margin: 20px 0;
}

/* 详情内容 */
.detail-content {
  padding: 24px;
}

.detail-content .detail-row {
  display: flex;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fafcff;
  border-radius: 6px;
}

.detail-content .detail-label {
  width: 120px;
  font-weight: 500;
  color: #1a5fb4;
  flex-shrink: 0;
}

.detail-content .detail-value {
  color: #555;
  word-break: break-all;
}

/* 在线投稿移动端适配 */
@media (max-width: 768px) {
  .contribute-container {
    padding: 15px;
  }

  .contribute-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .contribute-header h2 {
    font-size: 18px;
  }

  .btn-view {
    width: 100%;
    padding: 8px 15px;
  }

  .contribute-modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .contribute-modal-content .modal-header {
    padding: 16px 20px;
    border-radius: 0;
  }

  .contribute-modal-content .modal-header h3 {
    font-size: 18px;
  }

  .contribute-modal-content .modal-body {
    padding: 20px 15px;
  }

  .form-intro {
    padding: 15px;
  }

  .form-intro .intro-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contribute-modal-content .modal-close {
    font-size: 28px;
    width: 36px;
    height: 36px;
  }

  .contribute-table td {
    padding-left: 40%;
  }

  .contribute-table td::before {
    width: 35%;
  }
}

/* ============================================
   通用表格容器样式（适用于 sfjd、wtjd、jyzbjd 等）
   ============================================ */

/* 通用容器样式 */
.sfjd-container,
.wtjd-container,
.jyzbjd-container,
.delegate-detect-container {
  padding: 20px;
}

/* 统一模块头部样式 - 适用于所有模块 */
.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.module-header h2 {
  margin: 0;
  font-size: 20px;
}

/* 通用表格样式 */
.member-account-content .sfjd-table,
.member-account-content .wtjd-table,
.member-account-content .jyzbjd-table,
.member-account-content .delegate-detect-table,
.member-account-content .delegate-table,
.member-account-content .mydfk-table,
.member-account-content .contribute-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #e0e0e0 !important;
  background: #fff !important;
}

.member-account-content .sfjd-table th,
.member-account-content .sfjd-table td,
.member-account-content .wtjd-table th,
.member-account-content .wtjd-table td,
.member-account-content .jyzbjd-table th,
.member-account-content .jyzbjd-table td,
.member-account-content .delegate-detect-table th,
.member-account-content .delegate-detect-table td,
.member-account-content .delegate-table th,
.member-account-content .delegate-table td,
.member-account-content .mydfk-table th,
.member-account-content .mydfk-table td,
.member-account-content .contribute-table th,
.member-account-content .contribute-table td {
  border: 1px solid #e0e0e0 !important;
  padding: 12px 15px !important;
  text-align: left;
}

.member-account-content .sfjd-table th,
.member-account-content .wtjd-table th,
.member-account-content .jyzbjd-table th,
.member-account-content .delegate-detect-table th,
.member-account-content .delegate-table th,
.member-account-content .mydfk-table th,
.member-account-content .contribute-table th {
  background-color: #f5f7fa !important;
  font-weight: 600 !important;
}

.member-account-content .sfjd-table tr:hover,
.member-account-content .wtjd-table tr:hover,
.member-account-content .jyzbjd-table tr:hover,
.member-account-content .delegate-detect-table tr:hover,
.member-account-content .delegate-table tr:hover,
.member-account-content .mydfk-table tr:hover,
.member-account-content .contribute-table tr:hover {
  background-color: #f9f9f9 !important;
}

/* 只读文本样式 */
.readonly-value {
  color: #333;
  font-weight: 500;
  display: inline-block;
  min-height: 24px;
  padding: 4px 0;
}

/* 通用模态框内容样式 */
.sfjd-modal-content,
.wtjd-modal-content,
.jyzbjd-modal-content,
.delegate-modal-content {
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  max-height: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sfjd-modal-content .modal-header,
.wtjd-modal-content .modal-header,
.jyzbjd-modal-content .modal-header,
.delegate-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, #216ccf 0%, #216ccfd6 100%);
  color: #fff;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}

.sfjd-modal-content .modal-header h3,
.wtjd-modal-content .modal-header h3,
.jyzbjd-modal-content .modal-header h3,
.delegate-modal-content .modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
}

.sfjd-modal-content .modal-close,
.wtjd-modal-content .modal-close,
.jyzbjd-modal-content .modal-close,
.delegate-modal-content .modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.sfjd-modal-content .modal-close:hover,
.wtjd-modal-content .modal-close:hover,
.jyzbjd-modal-content .modal-close:hover,
.delegate-modal-content .modal-close:hover {
  opacity: 0.7;
}

.sfjd-modal-content .modal-body,
.wtjd-modal-content .modal-body,
.jyzbjd-modal-content .modal-body,
.delegate-modal-content .modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* 通用移动端适配 */
@media (max-width: 768px) {
  .sfjd-container,
  .wtjd-container,
  .jyzbjd-container,
  .delegate-detect-container {
    padding: 15px;
  }

  .module-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .module-header h2 {
    font-size: 18px;
  }

  .member-account-content .form-radio-group,
  .member-account-content .form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
  }

  .member-account-content .form-radio-label,
  .member-account-content .form-checkbox-label {
    font-size: 13px;
  }

  .sfjd-modal-content,
  .wtjd-modal-content,
  .jyzbjd-modal-content,
  .delegate-modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .sfjd-modal-content .modal-header,
  .wtjd-modal-content .modal-header,
  .jyzbjd-modal-content .modal-header,
  .delegate-modal-content .modal-header {
    padding: 16px 20px;
    border-radius: 0;
  }

  .sfjd-modal-content .modal-header h3,
  .wtjd-modal-content .modal-header h3,
  .jyzbjd-modal-content .modal-header h3,
  .delegate-modal-content .modal-header h3 {
    font-size: 18px;
  }

  .sfjd-modal-content .modal-body,
  .wtjd-modal-content .modal-body,
  .jyzbjd-modal-content .modal-body,
  .delegate-modal-content .modal-body {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .sfjd-modal-content .modal-close,
  .wtjd-modal-content .modal-close,
  .jyzbjd-modal-content .modal-close,
  .delegate-modal-content .modal-close {
    font-size: 28px;
    width: 36px;
    height: 36px;
  }

  .sfjd-table td,
  .wtjd-table td,
  .jyzbjd-table td,
  .delegate-detect-table td {
    padding-left: 40%;
  }

  .sfjd-table td::before,
  .wtjd-table td::before,
  .jyzbjd-table td::before,
  .delegate-detect-table td::before {
    width: 35%;
  }
}

/* ============================================
   移动端抽屉样式
   ============================================ */

/* 抽屉按钮 - 仅在移动端显示，位于左侧垂直正中 */
.drawer-toggle-btn {
  display: none;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 28px;
  height: 80px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.drawer-toggle-btn:hover,
.drawer-toggle-btn:active {
  background: #fff;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
  width: 40px;
}

.drawer-toggle-btn::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 3px solid #1a5fb4;
  border-top: 3px solid #1a5fb4;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.drawer-toggle-btn:hover::after {
  transform: rotate(45deg) translateX(2px);
}

/* 抽屉遮罩层 */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999998 !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.drawer-overlay.is-visible {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

/* 抽屉侧边栏 */
.drawer-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: -85% !important;
  width: 85% !important;
  max-width: 320px !important;
  height: 100% !important;
  background: #fff !important;
  z-index: 9999999 !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transition: left 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.drawer-sidebar.is-open {
  left: 0 !important;
}

/* 侧边栏 Logo 区域 */
.drawer-logo-section {
  padding: 20px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-logo-section .logo {
  flex-shrink: 0;
}

.drawer-logo-section .logo img {
  height: 50px;
  width: 90%;
  border-radius: 6px;
}

.drawer-logo-section .site-name {
  flex: 1;
  min-width: 0;
}

.drawer-logo-section .site-name h1 {
  font-size: 15px;
  color: #fff;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-logo-section .site-name h2 {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: normal;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 抽屉关闭按钮 */
.drawer-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.drawer-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.drawer-close-btn::before,
.drawer-close-btn::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: #666;
  border-radius: 1px;
}

.drawer-close-btn::before {
  transform: rotate(45deg);
}

.drawer-close-btn::after {
  transform: rotate(-45deg);
}

.drawer-close-btn:hover::before,
.drawer-close-btn:hover::after {
  background: #333;
}

/* 抽屉内导航样式 */
.drawer-nav {
  padding: 20px 0 !important;
}

.drawer-nav .member-account-user {
  margin: 0 15px 15px !important;
  padding: 25px !important;
}

.drawer-nav .member-account-menu li a {
  padding: 14px 20px !important;
  margin: 0 10px !important;
  font-size: 15px;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: flex !important;
  align-items: center;
}

.drawer-nav .member-account-menu li a i {
  flex-shrink: 0;
  margin-right: 12px;
}

/* 桌面端侧边栏 */
.desktop-sidebar {
  display: block;
}

/* ============================================
   表格横向滚动容器
   ============================================ */

.table-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0 -15px;
  padding: 0 15px;
}

.table-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ============================================
   移动端响应式调整
   ============================================ */

@media (max-width: 767px) {
  /* 移动端显示抽屉按钮 */
  .drawer-toggle-btn {
    display: flex;
  }

  /* 移动端隐藏桌面端侧边栏 */
  .desktop-sidebar {
    display: none;
  }

  /* 移动端内容区域占满宽度 */
  .member-account-content {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 20px 15px !important;
  }

  .member-account-wrap {
    display: block !important;
  }

  /* 表格容器适配 */
  .table-scroll-wrapper {
    margin: 0 -15px;
    padding: 0 15px;
  }

  /* 表格最小宽度 */
  .member-account-content .form-table,
  .member-account-content .delegate-table,
  .member-account-content .contribute-table,
  .member-account-content .mydfk-table,
  .member-account-content table {
    min-width: 600px;
    width: 100%;
  }
}

@media (min-width: 768px) {
  /* 桌面端隐藏抽屉相关元素 */
  .drawer-toggle-btn,
  .drawer-overlay,
  .drawer-sidebar {
    display: none !important;
  }

  /* 桌面端显示侧边栏 */
  .desktop-sidebar {
    display: block;
  }
}

/* ============================================
   证书查询页面样式
   ============================================ */

/* 查询区域容器 */
.cert-query-box {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 查询标题 */
.cert-query-title {
  font-size: 22px;
  font-weight: 600;
  color: #0c4cb1;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e8eef3;
  display: flex;
  align-items: center;
}

.cert-query-title .title-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.cert-query-title .title-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cert-query-title .title-text {
  display: inline-block;
}

/* 搜索表单列表 */
.cert-search-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.cert-search-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.cert-search-list li .required-mark {
  color: #e74c3c;
  font-weight: bold;
  margin-right: 2px;
}

/* 下拉选择框 */
.cert-select {
  padding: 10px 15px;
  border: 1px solid #d9dde2;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  min-width: 150px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cert-select:focus {
  outline: none;
  border-color: #0c4cb1;
}

/* 输入框 */
.cert-input {
  padding: 10px 15px;
  border: 1px solid #d9dde2;
  border-radius: 4px;
  font-size: 14px;
  width: 250px;
  transition: border-color 0.2s;
}

.cert-input:focus {
  outline: none;
  border-color: #0c4cb1;
}

/* 查询按钮容器 */
.cert-query-btn-wrap {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f2f5;
}

/* 查询按钮 */
.btn-cert-search {
  padding: 12px 40px;
  background: linear-gradient(135deg, #0c4cb1 0%, #1a73e8 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(12, 76, 177, 0.25);
}

.btn-cert-search:hover {
  background: linear-gradient(135deg, #0a3d8f 0%, #1557b0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 76, 177, 0.35);
}

.btn-cert-search:active {
  transform: translateY(0);
}

/* 搜索说明信息 */
.cert-search-info {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px 20px;
  margin-top: 20px;
}

.cert-search-info p {
  margin: 8px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.cert-search-info .info-num {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: #0c4cb1;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  margin-right: 6px;
}

.cert-search-info .red {
  color: #e74c3c;
  font-weight: 500;
}

/* ============================================
   加载状态样式
   ============================================ */
.cert-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8eef3;
  border-top-color: #0c4cb1;
  border-radius: 50%;
  animation: cert-spin 0.8s linear infinite;
  margin-bottom: 15px;
}

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

.loading-text {
  color: #666;
  font-size: 14px;
}

/* ============================================
   查询结果展示样式
   ============================================ */
.cert-result-box {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 结果头部 */
.cert-result-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #0c4cb1;
}

.cert-result-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0c4cb1;
  margin: 0;
}

/* 证书卡片容器 */
.cert-card {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* 图片区域 */
.cert-image-section {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-main-image {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #e8eef3;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.cert-main-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.cert-image-placeholder {
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
}

/* 图片占位符 - 大图 */
.cert-image-placeholder-large {
  width: 100%;
  background: #f8f9fa;
  border: 2px dashed #e8eef3;
  border-radius: 8px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-image-placeholder-inner {
  text-align: center;
}

.cert-image-icon {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.cert-image-text {
  color: #999;
  font-size: 14px;
}

/* 信息区域 */
.cert-info-section {
  flex: 1;
  min-width: 300px;
}

/* 信息块 */
.cert-info-block {
  margin-bottom: 25px;
}

.cert-info-block:last-child {
  margin-bottom: 0;
}

/* 信息标题 */
.cert-info-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0c4cb1;
  display: inline-block;
}

/* 信息表格 */
.cert-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cert-info-table tbody {
  display: block;
}

.cert-info-table tr {
  display: table-row;
}

.cert-info-table th,
.cert-info-table td {
  padding: 12px 15px;
  border: 1px solid #e8eef3;
  text-align: left;
}

.cert-info-table th {
  background: #f8f9fa;
  color: #666;
  font-weight: 500;
  width: 120px;
  min-width: 120px;
}

.cert-info-table td {
  color: #333;
  background: #fff;
}

/* 备注信息 */
.cert-remark {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  border-left: 3px solid #0c4cb1;
}

/* 操作按钮区 */
.cert-result-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e8eef3;
}

.cert-action-btn {
  padding: 10px 30px;
  background: linear-gradient(135deg, #0c4cb1 0%, #1a73e8 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert-action-btn:hover {
  background: linear-gradient(135deg, #0a3d8f 0%, #1557b0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 76, 177, 0.25);
}

.cert-action-btn.secondary {
  background: #fff;
  color: #0c4cb1;
  border: 1px solid #0c4cb1;
}

.cert-action-btn.secondary:hover {
  background: #f0f5ff;
  box-shadow: 0 4px 12px rgba(12, 76, 177, 0.15);
}

/* ============================================
   空结果提示样式
   ============================================ */
.cert-empty-box {
  background: #fff;
  border-radius: 8px;
  padding: 60px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cert-empty-icon {
  margin-bottom: 20px;
}

.cert-empty-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.6;
}

.cert-empty-text {
  font-size: 18px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

.cert-empty-tip {
  font-size: 14px;
  color: #999;
}

/* ============================================
   证书查询 - 移动端适配
   ============================================ */

@media (max-width: 767px) {
  /* 查询区域容器 */
  .cert-query-box {
    padding: 20px 15px;
  }

  /* 查询标题 */
  .cert-query-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .cert-query-title .title-icon img {
    width: 24px;
    height: 24px;
  }

  /* 搜索表单列表 - 移动端布局 */
  .cert-search-list li {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .cert-search-list li > *:first-child {
    margin-bottom: 8px;
  }

  /* 下拉选择框 */
  .cert-select {
    width: 100%;
    min-width: auto;
    font-size: 15px;
    padding: 12px 15px;
  }

  /* 输入框 */
  .cert-input {
    width: 100%;
    font-size: 15px;
    padding: 12px 15px;
  }

  /* 查询按钮 */
  .btn-cert-search {
    width: 100%;
    padding: 14px 30px;
    font-size: 16px;
  }

  /* 搜索说明信息 */
  .cert-search-info {
    padding: 12px 15px;
  }

  .cert-search-info p {
    font-size: 12px;
  }

  /* 结果区域 */
  .cert-result-box {
    padding: 20px 15px;
  }

  .cert-result-header h3 {
    font-size: 18px;
  }

  /* 证书卡片 - 移动端改为垂直布局 */
  .cert-card {
    flex-direction: column;
    gap: 20px;
  }

  /* 图片区域 */
  .cert-image-section {
    flex: 1;
    width: 100%;
  }

  .cert-main-image img {
    max-height: 300px;
    object-fit: contain;
  }

  /* 信息区域 */
  .cert-info-section {
    min-width: auto;
    width: 100%;
  }

  /* 信息表格 - 移动端横向滚动 */
  .cert-info-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cert-info-table tbody {
    display: table;
    width: 100%;
    min-width: 400px;
  }

  .cert-info-table th,
  .cert-info-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .cert-info-table th {
    width: 100px;
    min-width: 100px;
  }

  /* 信息标题 */
  .cert-info-title {
    font-size: 15px;
  }

  /* 操作按钮区 */
  .cert-result-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }

  .cert-action-btn {
    width: 100%;
    padding: 12px 30px;
    font-size: 15px;
  }

  /* 空结果提示 */
  .cert-empty-box {
    padding: 50px 15px;
  }

  .cert-empty-icon img {
    width: 60px;
    height: 60px;
  }

  .cert-empty-text {
    font-size: 16px;
  }

  .cert-empty-tip {
    font-size: 13px;
  }

  /* 加载状态 */
  .cert-loading {
    padding: 50px 15px;
  }
}

/* ============================================
   样品表格 - 级联下拉框宽度修复
   ============================================ */
/* 检测项目列 */
.sample-table th:nth-child(4) {
  width: 35% !important;
  min-width: 360px !important;
}
/* 检测方法列 */
.sample-table th:nth-child(5) {
  width: 14% !important;
  min-width: 200px !important;
}
/* 强制级联下拉框在 flex 中缩小 */
.sample-table .cascading-type,
.sample-table .cascading-item {
  width: 1px !important;
  min-width: 0 !important;
}
.sample-table .cascading-type {
  flex: 0 1 80px !important;
}
.sample-table .cascading-item {
  flex: 1 1 0% !important;
}
/* 自定义级联下拉选项面板 */
.cs-custom-dropdown {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 240px;
  overflow-y: auto;
  z-index: 9999;
  padding: 4px 0;
}
.cs-custom-dropdown::-webkit-scrollbar {
  width: 6px;
}
.cs-custom-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.cs-custom-dropdown .cs-custom-item {
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  color: #333;
  transition: background 0.15s;
}
.cs-custom-dropdown .cs-custom-item:hover {
  background: #ebf5ff;
  color: #1a73e8;
}
.cs-custom-dropdown .cs-custom-item.cs-selected {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 500;
}
/* 移除标准选择器的 max-width 限制 */
.sample-table .detect-standard {
  max-width: none !important;
}
