:root {
  --ios-bg: #F2F2F7;
  --ios-card: #FFFFFF;
  --ios-hairline: rgba(60,60,67,0.12);
  --ios-label: #1C1C1E;
  --ios-label2: #8E8E93;
  --ios-label3: #C7C7CC;
  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-orange: #FF9500;
  --ios-red: #FF3B30;
  --ios-teal: #5AC8FA;
  --ios-indigo: #5856D6;
  --ios-blue-tint: rgba(0,122,255,0.12);
  --ios-green-tint: rgba(52,199,89,0.14);
  --ios-orange-tint: rgba(255,149,0,0.14);
  --ios-red-tint: rgba(255,59,48,0.12);
  --ios-indigo-tint: rgba(88,86,214,0.12);
  --ios-fill: rgba(120,120,128,0.12);
  --ios-shadow: 0 0 0 0.5px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.05);
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

.wnav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--ios-hairline);
  position: sticky; top: 0; z-index: 100;
}
.wnav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 0 22px; height: 54px;
}
.wnav-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex: none;
}
.wnav-logo-ico {
  width: 27px; height: 27px; border-radius: 8px;
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-indigo));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.wnav-logo-text { font-size: 15px; font-weight: 700; color: var(--ios-label); letter-spacing: -0.2px; }
.wnav-links {
  display: flex; gap: 4px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.wnav-links::-webkit-scrollbar { display: none; }
.wnav-item {
  font-size: 13px; font-weight: 500; color: #4a4d55;
  padding: 6px 13px; border-radius: 9px;
  text-decoration: none; white-space: nowrap; flex: none;
  transition: background 0.15s;
}
.wnav-item:hover { background: var(--ios-fill); color: var(--ios-label); }
.wnav-item.on { color: var(--ios-blue); background: var(--ios-blue-tint); font-weight: 600; }
.wnav-me {
  display: flex; align-items: center; gap: 8px; flex: none;
  font-size: 12.5px; color: var(--ios-label2);
}
.wnav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ios-teal), var(--ios-blue));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.wnav-me-name { color: var(--ios-label); font-weight: 500; }
.wnav-ro-badge {
  font-size: 10.5px; font-weight: 600; color: var(--ios-orange);
  background: var(--ios-orange-tint); border-radius: 20px; padding: 2px 8px;
}
.wnav-cp-link {
  font-size: 11.5px; font-weight: 500; color: var(--ios-blue);
  border: 1px solid rgba(0,122,255,0.25); border-radius: 20px;
  padding: 2px 9px; text-decoration: none;
}
.wnav-cp-link:hover { background: rgba(0,122,255,0.08); }

.wpage-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  max-width: 1400px; margin: 0 auto; padding: 22px 24px 0;
}
.wpage-title { font-size: 22px; font-weight: 700; color: var(--ios-label); letter-spacing: -0.4px; }
.wpage-sub { color: var(--ios-label2); font-size: 12.5px; margin-top: 3px; }
.wpage-actions { display: flex; gap: 10px; align-items: center; }

.w-toolbar {
  background: #fff;
  border-bottom: 0.5px solid var(--ios-hairline);
  padding: 10px 22px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  position: sticky; top: 54px; z-index: 90;
}
.w-toolbar .date-group {
  display: flex; align-items: center; gap: 6px;
  background: var(--ios-fill); border-radius: 9px; padding: 5px 11px;
}
.w-toolbar .date-group label { color: var(--ios-label2); font-size: 12px; white-space: nowrap; }
.w-toolbar .date-group input[type="date"],
.w-toolbar .date-group input[type="month"] {
  background: transparent; border: none; color: var(--ios-label);
  font-size: 13px; cursor: pointer; outline: none; font-family: var(--ios-font);
}
.w-toolbar .date-group input[type="date"]::-webkit-calendar-picker-indicator,
.w-toolbar .date-group input[type="month"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; filter: none; }
.w-toolbar select {
  background: var(--ios-fill); color: var(--ios-label);
  border: none; border-radius: 9px; padding: 6px 10px;
  font-size: 13px; font-family: var(--ios-font); cursor: pointer; outline: none;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238E8E93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 26px;
}
.w-toolbar .quick-dates { display: flex; gap: 6px; }
.w-toolbar .quick-date-btn {
  background: var(--ios-fill); border: none; color: #4a4d55;
  padding: 6px 12px; border-radius: 18px; cursor: pointer; font-size: 12px;
  font-family: var(--ios-font); transition: all 0.15s;
}
.w-toolbar .quick-date-btn:hover { color: var(--ios-label); }
.w-toolbar .quick-date-btn.active { background: var(--ios-blue-tint); color: var(--ios-blue); font-weight: 600; }

body .refresh-btn,
body .wbtn {
  background: var(--ios-blue-tint); color: var(--ios-blue);
  border: none; padding: 7px 16px; border-radius: 20px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: var(--ios-font); text-decoration: none;
  display: inline-block; line-height: 1.4; transition: opacity 0.15s;
}
body .refresh-btn:hover, body .wbtn:hover { opacity: 0.82; }
body .refresh-btn:active, body .wbtn:active { opacity: 0.7; }
body .btn-export {
  background: var(--ios-green-tint); color: #1e8e3e;
  border: none; padding: 6px 16px; border-radius: 20px;
  cursor: pointer; font-size: 12.5px; font-weight: 600; font-family: var(--ios-font);
}

body .section {
  background: var(--ios-card); border-radius: 16px; padding: 22px 24px;
  margin-bottom: 22px; box-shadow: var(--ios-shadow);
}
body .section-title {
  border-left: none; padding-left: 0;
  font-size: 15px; font-weight: 700; color: var(--ios-label); letter-spacing: -0.2px;
}
body .metric-card {
  background: var(--ios-card); border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--ios-shadow); overflow: hidden; position: relative;
}
body .metric-card::before { display: none; }
body .metric-card .metric-value { font-variant-numeric: tabular-nums; letter-spacing: -0.4px; }

body .data-table { border-collapse: collapse; }
body .data-table th {
  background: #fff; color: var(--ios-label2); font-weight: 500; font-size: 11.5px;
  padding: 10px 14px 8px; border-bottom: 0.5px solid var(--ios-hairline);
  text-align: left; letter-spacing: 0.2px;
}
body .data-table td {
  padding: 9px 14px; border-bottom: 0.5px solid var(--ios-hairline);
  color: var(--ios-label); font-size: 13px;
}
body .data-table tr:hover td { background: rgba(120,120,128,0.05); }
body .data-table tr:last-child td { border-bottom: none; }

body .tag {
  border-radius: 20px; padding: 2.5px 9px; font-size: 11px; font-weight: 600; line-height: 1.5;
}
body .tag.green { background: var(--ios-green-tint); color: #1e8e3e; }
body .tag.orange { background: var(--ios-orange-tint); color: #b26500; }
body .tag.red { background: var(--ios-red-tint); color: #d70015; }
body .tag.blue { background: var(--ios-blue-tint); color: var(--ios-blue); }

.wbadge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2.5px 9px; border-radius: 20px; line-height: 1.5;
}
.wbadge.green { background: var(--ios-green-tint); color: #1e8e3e; }
.wbadge.orange { background: var(--ios-orange-tint); color: #b26500; }
.wbadge.red { background: var(--ios-red-tint); color: #d70015; }
.wbadge.blue { background: var(--ios-blue-tint); color: var(--ios-blue); }
.wbadge.indigo { background: var(--ios-indigo-tint); color: var(--ios-indigo); }
.wbadge.fill { background: var(--ios-fill); color: var(--ios-label2); }

@media (max-width: 900px) {
  .wnav-inner { padding: 0 14px; gap: 10px; height: 50px; }
  .wnav-logo-text { display: none; }
  .wpage-head { padding: 16px 14px 0; flex-direction: column; align-items: flex-start; gap: 8px; }
  .wpage-title { font-size: 19px; }
  .w-toolbar { padding: 9px 14px; top: 50px; }
}