/* 查数鸭 PC 前台样式 · 主色 #0B7F71（与小程序一致） */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #F5F7FA;
  color: #1A1D24;
  font-size: 15px;
  line-height: 1.6;
}

/* ==================== 顶栏 ==================== */

.topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E8ECF2;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0E9184, #0B7F71);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #0B7F71;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  color: #5A6376;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.nav-link:hover { background: #F0F2F5; color: #0B7F71; }

.top-user { margin-left: auto; }

/* ==================== 按钮 ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 0 22px;
  height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, #0E9184, #0B7F71);
  color: #fff;
}

.btn-primary:hover { opacity: 0.92; }

.btn-ghost {
  background: transparent;
  border: 1px solid #0B7F71;
  color: #0B7F71;
  font-weight: 500;
}

.btn-ghost:hover { background: #E6F4F2; }

.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 8px; }

.btn-block { width: 100%; }

/* ==================== 首屏 ==================== */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.hero-text { flex: 1.2; }

.hero-text h1 {
  font-size: 42px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.hero-sub {
  margin-top: 20px;
  color: #5A6376;
  font-size: 16px;
  line-height: 1.8;
}

.hero-points {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-point {
  background: #E6F4F2;
  color: #0B7F71;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* ==================== 登录卡片 ==================== */

.login-card {
  flex: 0 0 360px;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(11, 127, 113, 0.10);
}

.login-title { font-size: 20px; margin-bottom: 20px; }

.code-login { display: flex; flex-direction: column; align-items: center; }

.qrcode-wrap {
  width: 180px;
  height: 180px;
  border: 1px solid #E8ECF2;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qrcode-wrap img { width: 150px; height: 150px; display: block; }

.qrcode-tip { font-size: 12px; color: #8A94A6; margin-top: 4px; }

.code-steps {
  margin: 16px 0;
  width: 100%;
  font-size: 13px;
  color: #5A6376;
}

.code-step { display: flex; align-items: center; gap: 8px; padding: 4px 0; }

.code-step b {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #E6F4F2;
  color: #0B7F71;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.login-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.login-code-label { font-size: 13px; color: #8A94A6; }

.login-code {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #0B7F71;
  flex: 1;
  text-align: center;
  background: #E6F4F2;
  border-radius: 10px;
  padding: 10px 0;
}

.code-status {
  margin-top: 12px;
  font-size: 13px;
  color: #8A94A6;
  text-align: center;
}

.code-status.ok { color: #1A9E63; }

.code-status.err { color: #D9453D; }

.oauth-login { text-align: center; }

.oauth-hint { margin-top: 12px; font-size: 13px; color: #8A94A6; }

/* ==================== 用户中心 ==================== */

.user-panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
}

.user-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 16px rgba(11, 127, 113, 0.06);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0E9184, #0B7F71);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info { flex: 1; }

.user-name { font-size: 20px; font-weight: 700; }

.user-sub { font-size: 13px; color: #8A94A6; margin-top: 4px; }

.user-stats { display: flex; gap: 32px; }

.stat { text-align: center; }

.stat-value { font-size: 24px; font-weight: 700; color: #0B7F71; }

.stat-label { font-size: 12px; color: #8A94A6; margin-top: 2px; }

.user-section { margin-top: 32px; }

/* ==================== 报告列表 ==================== */

.public-panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.section-title { font-size: 22px; }

.section-sub { font-size: 13px; color: #8A94A6; margin-top: 4px; }

.report-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.report-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(11, 127, 113, 0.06);
}

.report-card:hover { box-shadow: 0 6px 24px rgba(11, 127, 113, 0.12); }

.report-brand { font-size: 17px; font-weight: 700; }

.report-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #8A94A6;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-badge {
  background: #E6F4F2;
  color: #0B7F71;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.report-summary {
  margin-top: 10px;
  font-size: 13px;
  color: #5A6376;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-tip {
  margin-top: 16px;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  color: #8A94A6;
  text-align: center;
  font-size: 14px;
}

/* ==================== 页脚 ==================== */

.foot {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 32px 24px;
  border-top: 1px solid #E8ECF2;
  color: #8A94A6;
  font-size: 13px;
  text-align: center;
  line-height: 1.8;
}

/* 窄屏 */
@media (max-width: 860px) {
  .hero { flex-direction: column; padding-top: 40px; }
  .login-card { flex: 1; width: 100%; }
  .nav-link { display: none; }
  .user-stats { gap: 16px; }
}
