/**
 * 响应式样式
 * @file responsive.css
 * @description 响应式设计样式定义
 */

/* 移动端样式 */
@media (max-width: 768px) {
  /* 布局调整 */
  .ant-layout-header {
    padding: 0 12px;
  }
  
  .ant-layout-sider {
    position: fixed !important;
    height: 100vh;
    z-index: 1000;
  }
  
  .ant-layout-content {
    margin-left: 0 !important;
  }
  
  /* 菜单调整 */
  .ant-menu {
    border-right: none;
  }
  
  .ant-menu-item,
  .ant-menu-submenu-title {
    padding: 0 16px !important;
  }
  
  /* 表格调整 */
  .ant-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ant-table {
    min-width: 600px;
  }
  
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    padding: 8px 4px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  /* 表单调整 */
  .ant-form-item {
    margin-bottom: 16px;
  }
  
  .ant-form-item-label {
    padding-bottom: 4px;
  }
  
  .ant-form-item-control {
    min-height: 32px;
  }
  
  /* 按钮调整 */
  .ant-btn {
    min-height: 40px;
    border-radius: 6px;
  }
  
  .ant-btn-sm {
    min-height: 32px;
  }
  
  .ant-btn-lg {
    min-height: 48px;
  }
  
  /* 输入框调整 */
  .ant-input,
  .ant-input-password,
  .ant-select-selector {
    min-height: 40px;
    border-radius: 6px;
  }
  
  /* 卡片调整 */
  .ant-card {
    margin-bottom: 12px;
    border-radius: 8px;
  }
  
  .ant-card-head {
    padding: 0 16px;
    min-height: 48px;
  }
  
  .ant-card-body {
    padding: 16px;
  }
  
  /* 模态框调整 */
  .ant-modal {
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    top: 0 !important;
  }
  
  .ant-modal-content {
    border-radius: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .ant-modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .ant-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }
  
  .ant-modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 16px;
  }
  
  /* 抽屉调整 */
  .ant-drawer-content {
    border-radius: 0;
  }
  
  .ant-drawer-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .ant-drawer-body {
    padding: 16px;
  }
  
  /* 分页调整 */
  .ant-pagination {
    text-align: center;
    margin-top: 16px;
  }
  
  .ant-pagination-item,
  .ant-pagination-prev,
  .ant-pagination-next {
    min-width: 32px;
    height: 32px;
    line-height: 30px;
  }
  
  /* 标签调整 */
  .ant-tag {
    margin: 2px;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
  }
  
  /* 步骤条调整 */
  .ant-steps {
    margin: 16px 0;
  }
  
  .ant-steps-item-title {
    font-size: 14px;
  }
  
  .ant-steps-item-description {
    font-size: 12px;
  }
  
  /* 时间轴调整 */
  .ant-timeline-item-content {
    font-size: 14px;
  }
  
  /* 描述列表调整 */
  .ant-descriptions-item-label {
    font-weight: 600;
    color: #262626;
  }
  
  .ant-descriptions-item-content {
    color: #595959;
  }
  
  /* 统计数值调整 */
  .ant-statistic-title {
    font-size: 14px;
    color: #8c8c8c;
  }
  
  .ant-statistic-content {
    font-size: 24px;
    color: #262626;
  }
  
  /* 进度条调整 */
  .ant-progress-text {
    font-size: 12px;
  }
  
  /* 工具提示调整 */
  .ant-tooltip-inner {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  /* 消息提示调整 */
  .ant-message {
    top: 8px;
  }
  
  .ant-message-notice-content {
    padding: 8px 12px;
    border-radius: 6px;
  }
  
  /* 通知调整 */
  .ant-notification {
    top: 8px;
    right: 8px;
  }
  
  .ant-notification-notice {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* 确认对话框调整 */
  .ant-modal-confirm {
    margin: 0 16px;
  }
  
  .ant-modal-confirm-body {
    padding: 16px 0;
  }
  
  .ant-modal-confirm-btns {
    padding: 8px 0 0 0;
  }
  
  /* 选择器调整 */
  .ant-select-dropdown {
    border-radius: 8px;
  }
  
  .ant-select-item {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  /* 日期选择器调整 */
  .ant-picker {
    width: 100%;
    min-height: 40px;
  }
  
  .ant-picker-dropdown {
    border-radius: 8px;
  }
  
  /* 上传组件调整 */
  .ant-upload {
    width: 100%;
  }
  
  .ant-upload-dragger {
    padding: 16px;
    border-radius: 8px;
  }
  
  /* 评分组件调整 */
  .ant-rate {
    font-size: 20px;
  }
  
  /* 开关组件调整 */
  .ant-switch {
    min-width: 44px;
    height: 22px;
  }
  
  /* 滑块组件调整 */
  .ant-slider {
    margin: 16px 0;
  }
  
  /* 穿梭框调整 */
  .ant-transfer {
    width: 100%;
  }
  
  .ant-transfer-list {
    width: calc(50% - 8px);
  }
  
  /* 树形控件调整 */
  .ant-tree {
    font-size: 14px;
  }
  
  .ant-tree-node-content-wrapper {
    padding: 4px 8px;
  }
  
  /* 锚点调整 */
  .ant-anchor {
    font-size: 14px;
  }
  
  .ant-anchor-link {
    padding: 4px 0;
  }
  
  /* 回到顶部调整 */
  .ant-back-top {
    right: 16px;
    bottom: 16px;
  }
  
  /* 加载中调整 */
  .ant-spin-container {
    min-height: 200px;
  }
  
  .ant-spin-text {
    font-size: 14px;
    color: #8c8c8c;
  }
}

/* 平板样式 */
@media (min-width: 769px) and (max-width: 1024px) {
  /* 布局调整 */
  .ant-layout-content {
    padding: 16px;
  }
  
  /* 表格调整 */
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  /* 卡片调整 */
  .ant-card-body {
    padding: 20px;
  }
  
  /* 模态框调整 */
  .ant-modal {
    margin: 0 16px;
  }
  
  .ant-modal-content {
    border-radius: 8px;
  }
  
  /* 表单调整 */
  .ant-form-item {
    margin-bottom: 20px;
  }
}

/* 大屏幕样式 */
@media (min-width: 1200px) {
  /* 容器最大宽度 */
  .page-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* 表格调整 */
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    padding: 16px 12px;
    font-size: 14px;
  }
  
  /* 卡片调整 */
  .ant-card-body {
    padding: 24px;
  }
  
  /* 模态框调整 */
  .ant-modal {
    margin: 0 auto;
  }
  
  /* 表单调整 */
  .ant-form-item {
    margin-bottom: 24px;
  }
}

/* 超宽屏幕样式 */
@media (min-width: 1600px) {
  /* 容器最大宽度 */
  .page-container {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  /* 表格调整 */
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    padding: 20px 16px;
    font-size: 14px;
  }
  
  /* 卡片调整 */
  .ant-card-body {
    padding: 32px;
  }
  
  /* 表单调整 */
  .ant-form-item {
    margin-bottom: 32px;
  }
}

/* 横屏模式调整 */
@media (orientation: landscape) and (max-height: 500px) {
  .ant-layout-header {
    height: 48px;
    line-height: 48px;
  }
  
  .ant-layout-sider {
    height: calc(100vh - 48px);
  }
  
  .ant-layout-content {
    min-height: calc(100vh - 48px);
  }
  
  .page-container {
    padding: 12px;
  }
  
  .page-header {
    padding: 8px 16px;
    margin-bottom: 8px;
  }
  
  .page-content {
    padding: 16px;
  }
}

/* 高分辨率屏幕调整 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    border-bottom: 0.5px solid #f0f0f0;
  }
  
  .ant-divider {
    border-top: 0.5px solid #f0f0f0;
  }
  
  .ant-card {
    border: 0.5px solid #f0f0f0;
  }
}

/* 打印样式 */
@media print {
  .ant-layout-header,
  .ant-layout-sider,
  .ant-layout-footer {
    display: none !important;
  }
  
  .ant-layout-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .page-container {
    padding: 0 !important;
    background: #fff !important;
  }
  
  .page-header,
  .page-content {
    box-shadow: none !important;
    border: 1px solid #d9d9d9 !important;
    page-break-inside: avoid;
  }
  
  .ant-table {
    border: 1px solid #d9d9d9 !important;
  }
  
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    border: 1px solid #d9d9d9 !important;
    padding: 8px !important;
  }
  
  .ant-btn {
    display: none !important;
  }
  
  .no-print {
    display: none !important;
  }
}