:root {
  color-scheme: light;
  font-family: "Noto Sans SC", "Segoe UI", Tahoma, sans-serif;
  background: #f4f7fb;
  color: #0f172a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.page-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 28px 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  margin-bottom: 26px;
}

.brand-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  min-width: 72px;
  min-height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  color: white;
  font-size: 1.45rem;
  font-weight: 800;
}

.brand-text h1 {
  margin: 0 0 8px;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
}

.brand-text p {
  margin: 0;
  max-width: 720px;
  color: #475569;
  line-height: 1.8;
}

.platform-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-tab {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: white;
  border-radius: 999px;
  padding: 12px 20px;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.98rem;
  transition: all 0.18s ease;
}

.platform-tab.active,
.platform-tab:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.overview-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  background: white;
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
}

.platform-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.platform-header h2 {
  margin: 0;
  font-size: 1.85rem;
}

.platform-header p {
  margin: 10px 0 0;
  color: #475569;
  max-width: 760px;
  line-height: 1.8;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ede9fe;
  color: #4338ca;
  font-weight: 700;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-bar input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  padding: 0 18px;
  font-size: 1rem;
  color: #0f172a;
}

.sort-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 140px));
  gap: 10px;
}

.sort-controls select {
  min-height: 52px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  padding: 0 14px;
  background: white;
  color: #0f172a;
  font-size: 0.95rem;
}

.search-bar button {
  border: none;
  border-radius: 18px;
  padding: 0 26px;
  min-height: 52px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.search-bar button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.deals-list {
  display: grid;
  gap: 20px;
}

.deal-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 32px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.deal-media {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
}

.deal-image {
  width: 120px;
  min-height: 120px;
  border-radius: 26px;
  background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.95rem;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}

.deal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.deal-info {
  display: grid;
  gap: 12px;
}

.deal-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.deal-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deal-label {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.label-hot {
  background: #fde68a;
  color: #92400e;
}

.label-discount {
  background: #d1fae5;
  color: #0f766e;
}

.deal-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.4;
}

.deal-meta {
  display: grid;
  gap: 10px;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.7;
}

.deal-meta strong {
  color: #0f172a;
}

.deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.action-button,
.copy-button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.action-button {
  background: #2563eb;
  color: white;
}

.copy-button {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.copy-button:hover,
.action-button:hover {
  opacity: 0.95;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 28px;
}

.feature-card {
  padding: 24px;
  background: white;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-section {
  margin-top: 24px;
  padding: 28px;
  background: white;
  border-radius: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 14px;
}

.blog-card h3 {
  margin-top: 0;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.blog-card p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.blog-card .blog-cta {
  margin-top: 10px;
  align-self: start;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.blog-card .blog-cta:hover {
  opacity: 0.95;
}

.blog-card .blog-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 0.95rem;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.14rem;
}

.feature-card p {
  margin: 14px 0 0;
  color: #475569;
  line-height: 1.8;
}

.notes-panel {
  margin-top: 28px;
  padding: 24px;
  background: rgba(59, 130, 246, 0.04);
  border-radius: 28px;
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.notes-panel h3 {
  margin-top: 0;
}

.notes-panel ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #475569;
}

.notes-panel li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 820px) {
  .deal-card {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }

  .deal-meta {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}
