* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui;
}

body {
  background-color: #DCEC41;
  background-image: url(./src/top_bg@2x.webp);
  background-size: 402px;
  background-position: top center;
  background-repeat: no-repeat;
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.card {
  background: #fff5;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bind_card, .score_card {
  background: #fff0;
  box-shadow: none;
}

.opts_card {
  margin-top: 120px;
}

.wh_chart_card {
  margin-top: 120px;
}

.title {
  font-size: 22px;
  font-weight: bold;
  color: #d81b60;
  margin-bottom: 15px;
  text-align: center;
}

/* 基于iPhone16Pro屏幕402×874设计 */
.bind_title {
  margin-top: 165px;
}

.score {
  font-size: 62px;
  font-weight: bold;
  text-align: center;
  margin: 100px 0 5px 0;
}


/* 基于Xiaomi15屏幕400×890设计 */
.wh_score {
  margin: 100px 0 5px 0;
}

.tip {
  text-align: center;
  color: #666;
  margin-bottom: 10px;
}

.btn {
  padding: 14px;
  border: none;
  border-radius: 12px;
  margin: 4px 0;
  font-size: 15px;
  width: 100%;
  cursor: pointer;
}

.btn-pink {
  background: #d81b60;
  color: white;
}

.btn-blue {
  background: #1976d2;
  color: white;
}

.btn-red {
  background: #d32f2f;
  color: white;
}

.input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin: 8px 0;
  font-size: 15px;
}

.bind_input {
  margin-top: 220px;
}

.chart {
  height: 260px;
}

/* 紧凑型表格（奇偶行分色、无边线） */
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #333;
}
.log-table tr {
  height: 32px;
}
.log-table tr:nth-child(odd) {
  background: #eee5;
}
.log-table tr:nth-child(even) {
  background: #fff5;
}
.log-table td {
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.log-table td:first-child {
  color: #666;
  width: 140px;
}
.log-table td:nth-child(2) {
  width: 60px;
  text-align: center;
  font-weight: 500;
}
.log-table td:nth-child(3) {
  color: #555;
}

/* 设备卡片样式 */
.device-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  font-size: 13px;
  line-height: 1.5;
}
.device-card .label {
  color: #888;
  display: inline-block;
  width: 60px;
}
.device-card .val {
  color: #333;
}
.device-card .ua {
  color: #666;
  word-break: break-all;
  margin-top: 4px;
}
.device-card .btn {
  margin-top: 10px;
  padding: 10px;
  font-size: 14px;
}
