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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #f0f2f5;
  color: #1f2937;
  padding-bottom: 88px;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.06);
  position: relative;
}

.hero {
  background:
    linear-gradient(rgba(8, 28, 62, 0.74), rgba(30, 41, 59, 0.62)),
    url("../image/mf101.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 34px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  
  position: absolute;
  right: -18px;
  bottom: -40px;
  font-size: 168px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(3px);
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.95;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.34);
  padding: 8px 16px;
  border-radius: 60px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.section {
  padding: 28px 20px;
  border-bottom: 1px solid #edf2f7;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f2f63;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-list {
  background: #f8fbff;
  border-radius: 22px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.check-item:last-child { margin-bottom: 0; }

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  flex-shrink: 0;
  margin-top: 1px;
}

.img-box {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin: 16px 0 8px;
  background: #eef2f6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.img-box img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

.btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  background: #06c755;
  color: #ffffff;
  padding: 16px;
  border-radius: 60px;
  font-weight: 800;
  font-size: 18px;
  margin-top: 20px;
  box-shadow: 0 8px 16px rgba(6, 199, 85, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(6, 199, 85, 0.3);
}

.btn-outline {
  background: transparent;
  color: #0f2f63;
  border: 1.5px solid #0f2f63;
  box-shadow: none;
}

.small-text {
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.trust-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.trust-item {
  flex: 1;
  background: #f9f9ff;
  border-radius: 20px;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.quote {
  background: #fff4f4;
  color: #9f1239;
  padding: 14px;
  border-radius: 20px;
  font-style: italic;
  line-height: 1.7;
}

.author-card { background: linear-gradient(180deg, #f8fbff 0%, #f9fafb 100%); }

.author-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.author-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #dbeafe url("../ren.jpg") center/cover no-repeat;
  border: 2px solid #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.14);
  flex-shrink: 0;
}

.author-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.5;
}

.author-meta {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.live-counter-inline {
  display: inline-block;
  margin-top: 14px;
  background: #e8f1ff;
  color: #1346a0;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.comment-section {
  background: #fefefe;
  padding: 20px;
  border-top: 8px solid #f1f5f9;
}

.comment {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
}

.comment-body {
  background: #f1f5f9;
  padding: 12px 14px;
  border-radius: 20px;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.comment-name {
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 6px;
}

.comment-like {
  font-size: 11px;
  color: #5b6e8c;
  margin-top: 5px;
}

.comment-input-box {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  background: #ffffff;
  padding: 6px 6px 6px 16px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
}

.comment-input-box input {
  flex: 1;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  outline: none;
  background: transparent;
  min-width: 0;
}

.comment-input-box button {
  background: #0f2f63;
  border: none;
  color: #ffffff;
  padding: 0 20px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.fixed-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #06c755;
  color: #ffffff;
  text-align: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font-weight: 800;
  font-size: 18px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  border: none;
}

.popup-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1001;
  pointer-events: none;
}

.popup-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 28px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
  font-size: 13px;
  gap: 10px;
  border-left: 4px solid #0f2f63;
  pointer-events: auto;
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.floating-counter {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.counter-card {
  background: linear-gradient(145deg, #102a56, #09172f);
  border-radius: 28px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3), 0 0 0 2px rgba(251, 191, 36, 0.28);
  min-width: 112px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  pointer-events: auto;
  animation: counterGlow 0.8s ease-in-out infinite alternate;
}

@keyframes counterGlow {
  0% {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25), 0 0 0 2px rgba(251, 191, 36, 0.26);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.4), 0 0 0 3px rgba(248, 113, 113, 0.48);
    transform: scale(1.02);
  }
}

.counter-number {
  font-size: 28px;
  font-weight: 800;
  color: #fde68a;
  line-height: 1.2;
  letter-spacing: 1px;
}

.counter-label {
  font-size: 11px;
  color: #e5e7eb;
  font-weight: 500;
  margin-top: 4px;
}

.countdown-box {
  background: rgba(9, 17, 34, 0.92);
  border-radius: 28px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
  border-left: 3px solid #fb7185;
  border-right: 3px solid #fb7185;
  pointer-events: auto;
}

.countdown-title {
  font-size: 10px;
  font-weight: 600;
  color: #fecdd3;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.countdown-timer {
  font-size: 20px;
  font-weight: 800;
  font-family: monospace;
  color: #ffffff;
  background: #1f2937;
  padding: 4px 8px;
  border-radius: 40px;
  display: inline-block;
  letter-spacing: 2px;
}

.flash { animation: pulseRed 0.6s ease-out; }

@keyframes pulseRed {
  0% { text-shadow: 0 0 0 #fb7185; transform: scale(1); }
  50% { text-shadow: 0 0 12px #fb7185; transform: scale(1.08); color: #fef08a; }
  100% { text-shadow: 0 0 0 #fb7185; transform: scale(1); }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(3px);
}

.modal-box {
  width: 85%;
  max-width: 320px;
  background: #ffffff;
  padding: 28px 20px 32px;
  border-radius: 32px;
  text-align: center;
  animation: scaleIn 0.2s ease;
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-box:focus-visible { outline: none; }

#statusMessage {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 4000;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: 16px;
  background: #0f172a;
  color: white;
  box-shadow: 0 8px 30px #0003;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.badge-leader {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  background: #eef2ff;
  color: #3730a3;
  padding: 8px 12px;
  border-radius: 40px;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.comment-input-box input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .floating-counter {
    right: 8px;
    top: auto;
    bottom: 102px;
    transform: none;
    flex-direction: row;
    gap: 8px;
  }
  .counter-card { min-width: 96px; padding: 8px; }
  .counter-number { font-size: 22px; }
  .countdown-box { padding: 6px 10px; }
  .countdown-timer { font-size: 16px; }
  .trust-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
