
body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: #f7f9fa;
  margin: 0;
  padding: 0;
}
#app {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 32px 24px 24px 24px;
}
h2, h3 {
  color: #2d8cf0;
  margin-top: 0;
}
input, select, button {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 18px;
  box-sizing: border-box;
}
input[type="file"] {
  border: none;
}
button {
  background: #2d8cf0;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-right: 8px;
  transition: background 0.2s;
  min-width: 90px;
  min-height: 44px;
  font-size: 18px;
  border-radius: 6px;
}
button:hover {
  background: #1a73e8;
}
#auth-message, #admin-upload-message {
  color: #e74c3c;
  margin: 8px 0 0 0;
}
#user-form-confirm {
  background: #f0f9eb;
  border: 1px solid #b7eb8f;
  color: #52c41a;
  padding: 10px;
  margin: 12px 0;
  border-radius: 4px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #fafbfc;
}
th, td {
  border: 1px solid #e8e8e8;
  padding: 8px 6px;
  text-align: center;
}
th {
  background: #f5f7fa;
  color: #333;
}
tr:nth-child(even) {
  background: #f7f9fa;
}
tr:hover {
  background: #e6f7ff;
}
/* 表格横向滚动容器 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
}

/* 弹窗美化与移动端适配 */
#flow-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
#flow-modal > div {
  background: #fff;
  padding: 24px 8px;
  max-width: 95vw;
  width: 95vw;
  max-height: 90vh;
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
#flow-modal table {
  min-width: 400px;
  font-size: 15px;
  table-layout: fixed;
  width: 100%;
}
#flow-modal th, #flow-modal td {
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 2px;
}
#close-flow-modal {
  width: 100%;
  font-size: 20px;
  padding: 14px 0;
  margin-top: 18px;
  border-radius: 6px;
}

/* 小屏进一步适配 */
@media (max-width: 600px) {
  #app {
    padding: 2vw 1vw;
    max-width: 100vw;
    border-radius: 0;
    box-shadow: none;
  }
  h2, h3 {
    font-size: 20px;
  }
  input, select, button {
    font-size: 16px;
    padding: 10px 8px;
  }
  table, th, td {
    font-size: 13px;
    padding: 6px 2px;
  }
  #flow-modal > div {
    padding: 8px 2px;
    max-width: 99vw;
    width: 99vw;
  }
  #flow-modal table {
    font-size: 13px;
    min-width: 320px;
  }
  #flow-modal th, #flow-modal td {
    max-width: 60px;
    padding: 4px 1px;
  }
  #close-flow-modal {
    font-size: 18px;
    padding: 12px 0;
  }
  #table-params {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px;
  }
  #table-params label, #table-params span {
    width: 100%;
    min-width: 0;
    font-size: 13px;
    margin-bottom: 2px;
  }
  #table-params input {
    width: 60px;
    font-size: 13px;
    padding: 4px 2px;
  }
}

/* 让表格在小屏下可横向滑动 */
@media (max-width: 800px) {
  .table-scroll {
    overflow-x: auto;
  }
  table {
    min-width: 600px;
  }
}

/* 小按钮样式 */
.mini-btn {
  font-size: 13px;
  padding: 2px 8px;
  min-width: 32px;
  min-height: 28px;
  margin: 0 2px;
  border-radius: 4px;
  background: #2d8cf0;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.mini-btn:hover {
  background: #1a73e8;
}

/* 表头固定 */
#data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f7fa;
}

#table-info {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin-bottom: 8px;
  background: #f5f7fa;
  border-radius: 6px;
  padding: 8px 4px;
  font-size: 15px;
  text-align: center;
  table-layout: fixed;
}
@media (max-width: 800px) {
  #table-info {
    font-size: 13px;
    padding: 6px 2px;
  }
}

/* 流量弹窗表格自适应内容宽度 */
#flow-modal table {
  min-width: unset;
  width: auto;
  table-layout: auto;
}
#flow-modal th, #flow-modal td {
  max-width: 120px;
  min-width: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 2px;
  font-size: 14px;
}
@media (max-width: 600px) {
  #flow-modal th, #flow-modal td {
    max-width: 80px;
    min-width: 32px;
    font-size: 12px;
    padding: 4px 1px;
  }
} 