/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0E2A3A;
  color: #E8F0F2;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 480px; margin: 0 auto; padding: 0 16px 32px; }

/* === Header === */
.header {
  text-align: center;
  padding: 24px 0 16px;
}
.header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
}
.header-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #8EACBD;
}
.header-meta .divider { margin: 0 8px; color: #2C4E5E; }
.header-meta strong { color: #4FC3F7; }

/* === Card === */
.card {
  background: linear-gradient(135deg, #163545 0%, #1A3D50 100%);
  border: 1px solid #1F4F63;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.card-highlight {
  background: linear-gradient(135deg, #1A3D50 0%, #1A6B8A 100%);
  border-color: #2A7A9A;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title small {
  font-size: 11px;
  font-weight: 400;
  color: #8EACBD;
}

/* === Progress === */
.progress-wrap { margin-bottom: 12px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #B0C9D6;
  margin-bottom: 6px;
}
.progress-label strong {
  color: #4FC3F7;
  font-size: 18px;
}
.progress-bar {
  height: 10px;
  background: #0E2A3A;
  border-radius: 5px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4FC3F7, #00E676);
  border-radius: 5px;
  transition: width 1s ease;
}

/* === Stat Row === */
.stat-row {
  display: flex;
  gap: 12px;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
}
.stat-label {
  font-size: 12px;
  color: #8EACBD;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #4FC3F7;
}

/* === Detail Grid === */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0,0,0,0.12);
  border-radius: 6px;
  font-size: 13px;
}
.detail-label { color: #8EACBD; }
.detail-value { color: #E8F0F2; font-weight: 600; }
.detail-value.green { color: #00E676; }
.detail-value.red { color: #FF5252; }

/* === Total Row === */
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1F4F63;
  font-size: 14px;
}
.total-row strong {
  color: #4FC3F7;
  font-size: 18px;
}

/* === Shareholder === */
.shareholder-item {
  margin-bottom: 10px;
}
.sh-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}
.sh-name { color: #E8F0F2; font-weight: 500; }
.sh-pct { color: #4FC3F7; font-weight: 600; }
.sh-bar {
  height: 6px;
  background: #0E2A3A;
  border-radius: 3px;
  overflow: hidden;
}
.sh-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* === Transaction Table === */
.tx-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
.tx-table th {
  text-align: left;
  padding: 6px 4px;
  color: #8EACBD;
  font-weight: 500;
  border-bottom: 1px solid #1F4F63;
}
.tx-table td {
  padding: 7px 4px;
  border-bottom: 1px solid rgba(31,79,99,0.4);
  color: #C8DDE8;
}
.tx-table .amt-plus { color: #00E676; }
.tx-table .amt-minus { color: #FF5252; }

/* === Link === */
.link-more {
  font-size: 12px;
  color: #4FC3F7;
  text-decoration: none;
  font-weight: 400;
}

/* === Footer === */
.footer {
  text-align: center;
  font-size: 12px;
  color: #5A7A8A;
  padding: 20px 0 16px;
  line-height: 1.8;
}
.footer a {
  color: #4FC3F7;
  text-decoration: none;
}

/* === Loading === */
.loading {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid #2A7A9A;
  border-top-color: #4FC3F7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === WeChat Safe === */
body { -webkit-overflow-scrolling: touch; }
