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

h1, h2, h3 {
  margin-bottom: 0.75rem;
  color: black;
  font-weight: 600;
}

h1 {
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.1rem;
}

p, ul {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

a {
  color: #ff7f7f;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #d65a5a;
}

pre {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  overflow-x: auto;
  color: #2d2d2d;
  border: 1px solid #e0e0e0;
}

.text-muted {
  color: #6b7280;
}

.text-highlight {
  color: #ff7f7f;
}

.gray {
  color: #6b7280;
}

.section {
  margin-bottom: 1.5rem;
}

.warning {
  color: #ff7f7f;
  font-weight: 500;
}

.note {
  font-style: italic;
  color: #6b7280;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo a {
  background: transparent;
  padding: 0;
}

header .logo img {
  height: 45px;
  transition: transform 0.2s ease-in-out;
}

header .logo img:hover {
  transform: scale(1.08);
}

header .logo a span {
  background: #ff7f7f;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

header .nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

header .nav a {
  background: #f3f4f6;
  color: #2d2d2d;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

header .nav a:hover {
  background: #ff7f7f;
  color: #fff;
}

header .nav .search {
  margin-left: 0.75rem;
  display: flex;
  align-items: center;
}

header .nav .search input {
  width: 180px;
  padding: 0.4rem 0.8rem;
  background: #ffffff;
  color: #2d2d2d;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: border-color 0.2s ease-in-out;
}

header .nav .search input:focus {
  outline: none;
  border-color: #ff7f7f;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: #f3f4f6;
  color: #2d2d2d;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease-in-out;
}

.dropdown-toggle:hover {
  background: #ff7f7f;
  color: #fff;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);
}

.dropdown-content a {
  padding: 0.4rem 0.8rem;
  color: #2d2d2d;
  display: block;
  font-size: 0.85rem;
}

.dropdown-content a:hover {
  background: #ff7f7f;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

.form-container {
  max-width: 380px;
  margin: 1.5rem auto;
  padding: 1rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 0.6rem;
  margin: 0.4rem 0;
  background: #f9fafb;
  color: #2d2d2d;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.form-container button {
  background: #ff7f7f;
  color: #fff;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  transition: background 0.2s ease-in-out;
}

.form-container button:hover {
  background: #d65a5a;
}

.form-container button.register {
  background: #6b7280;
}

.form-container button.register:hover {
  background: #5b6370;
}

.form-container p {
  color: #ff7f7f;
  text-align: center;
  font-size: 0.85rem;
}

.form-container label {
  font-size: 0.85rem;
  display: block;
  margin: 0.4rem 0 0.2rem;
  color: #2d2d2d;
}

.detail-container {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 1rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.detail-container img {
  max-width: 100%;
  border-radius: 6px;
}

.detail-container .back-link {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.category-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.category-section h2 {
  font-size: 1.1rem;
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
  max-width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0.4rem 0;
}

.product-card p {
  font-size: 0.85rem;
  color: #6b7280;
}

.product-card .text-highlight {
  font-size: 0.85rem;
  color: #ff7f7f;
}

.no-products {
  font-style: italic;
  color: #6b7280;
  text-align: center;
  font-size: 0.85rem;
}

.title-section {
  text-align: center;
  padding: 1.5rem 1rem;
}

.title-section h1 {
  font-size: 1.8rem;
  color: #ff7f7f;
}

.title-section p {
  color: #6b7280;
  font-size: 0.85rem;
}

main {
  padding: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-grow: 1;
}

section.pgp-key {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

section.pgp-key h2 {
  font-size: 0.95rem;
  color: #ff7f7f;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

section.pgp-key h2::before {
  content: "🛡";
}

pre.pgp-block {
  background: #f9fafb;
  border-left: 3px solid #ff7f7f;
  padding: 0.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

p.update-date {
  font-size: 0.8rem;
  color: #ff7f7f;
  margin-top: 0.4rem;
}

.title {
  text-align: center;
  padding: 1.5rem 1rem 0.75rem;
}

.title h1 {
  font-size: 1.8rem;
  color: #ff7f7f;
}

.title p {
  color: #6b7280;
  font-size: 0.85rem;
}

.mirror-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem 1.5rem;
}

.mirror-item {
  background: #ffffff;
  border-radius: 6px;
  width: 100%;
  max-width: 760px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.mirror-link {
  color: #ff7f7f;
  word-break: break-all;
}

.open-link {
  background: #ff7f7f;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

.open-link:hover {
  background: #d65a5a;
}

.message {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.error {
  color: #ff7f7f;
}

.success {
  color: #10b981;
}

.btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  background: #ff7f7f;
  transition: background 0.2s ease-in-out;
}

.btn:hover {
  background: #d65a5a;
}

.btn-green {
  background: #10b981;
}

.btn-green:hover {
  background: #059669;
}

.btn-red {
  background: #ff7f7f;
}

.btn-red:hover {
  background: #d65a5a;
}

.btn-orange {
  background: #ff7f7f;
}

.btn-orange:hover {
  background: #d65a5a;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.bubble-container {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bubble-btn {
  width: 36px;
  height: 36px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  position: relative;
  transition: transform 0.2s ease-in-out;
}

.bubble-btn:hover {
  transform: scale(1.1);
}

.bubble-btn .tooltip-text {
  visibility: hidden;
  background: #ff7f7f;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.bubble-btn .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border-width: 4px;
  border-style: solid;
  border-color: #ff7f7f transparent transparent transparent;
}

.bubble-btn:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.outside-link {
  background: #10b981;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

.outside-link:hover {
  background: #059669;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  padding: 0 1rem;
}

.ads-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.dropdown-group {
  display: flex;
  gap: 0;
}

.dropdown {
  position: relative;
  background: #f3f4f6;
  border: 1px solid #e0e0e0;
  border-left: none;
}

.dropdown:first-child {
  border-left: 1px solid #e0e0e0;
}

label[for="blur-toggle"] {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #f3f4f6;
  color: #2d2d2d;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s ease-in-out;
}

label[for="blur-toggle"]:hover {
  background: #ff7f7f;
  color: #fff;
}

#blur-toggle {
  display: none;
}

#blur-toggle:checked ~ #page-content {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.btn-scroll-up {
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
}

.btn-scroll-up img {
  height: 28px;
  width: 28px;
  background: transparent;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
  }

  header .nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.4rem;
  }

  header .nav .search input {
    width: 100%;
  }

  .bubble-container {
    justify-content: center;
  }

  .topbar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ads-container {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 120px;
  }
}