:root {
  --red: #ff0000;
  --black: #111;
  --white: #fff;
  --green: #28a745;
}

body {
  margin: 0 auto;
  max-width: 900px;
  background: #e0e0e0;
  color: var(--black);
  font-family: 'Open Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.main-section {
  background: var(--white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 900px;
  padding: 0 15px;
}

.site-header .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 16px;
  background: var(--red);
  color: var(--white);
}

.site-header .logo a {
  font-weight: 700;
  background: var(--white);
  padding: 8px 18px;
  border-radius: 30px;
  color: var(--black);
  font-size: 20px;
}

.site-header .top-actions a {
  margin-left: 10px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 20px;
  color: var(--black);
  font-weight: bold;
  font-size: 20px;
}

.sub-menu {
  position: relative;
  width: 100%;
  background: var(--white);
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 1100;
  gap: 20px;
}

.sub-menu a {
  border-radius: 8px;
  text-align: center;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
  font-size: 20px;
}

.menu-mask {
  position: fixed;
  top: 900px;
  left: 0;
  width: 100%;
  height: calc(100vh - 900px);
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1050;
  backdrop-filter: blur(2px);
}

.sub-menu.active {
  display: flex;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px 20px;
  background: #fff;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.category-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-left img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #eee;
}

.category-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.category-info p {
  margin: 5px 0 0;
  font-size: 15px;
  color: #555;
}

.main-nav {
  display: flex;
  gap: 100px;
  padding: 15px 16px;
  border-bottom: 3px solid var(--black);
  font-weight: 700;
  justify-content: center;
  font-size: 20px;
  background-color: var(--white);
}

.container {
  padding-bottom: 10px;
  padding-top: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.featured {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feature-card {
  position: relative;
  width: 30%;
  text-align: center;
  background: var(--white);
  border-radius: 18px;
  transition: all 0.3s ease;
  padding-bottom: 15px;
  padding-top: 15px;
}

.feature-card:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.feature-card img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--white);
  display: block;
  margin: 35px auto 0 auto;
  border: 1.5px solid #eee;
}

.feature-card h2 {
  margin: 8px 0 4px;
  font-size: 20px;
  color: #333;
}

.feature-card .rating {
  color: #ff9800;
  font-size: 16px;
  font-weight: bold;
}

.feature-card .verified {
  color: #009688;
  font-size: 16px;
  font-weight: bold;
}

.rank-circle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--white);
  z-index: 10;
}

.btn-download-top {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #28a745;
  color: var(--white);
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
  font-size: 20px;
  box-shadow: 0px 5px 0px 0px #950000;
  border: none;
  cursor: pointer
}

.btn-download-top:hover {
  background: var(--red);
  transform: scale(1.05);
}

.btn-download {
  display: inline-block;
  padding: 10px 18px;
  background: #28a745;
  color: var(--white);
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
  font-size: 20px;
  box-shadow: 0px 5px 0px 0px #950000;
  border: none;
  cursor: pointer
}

.btn-download:hover {
  background: var(--red);
  transform: scale(1.05);
}

.banner {
  margin: 12px 0;
  padding: 8px 0;
  background: var(--red);
  text-align: center;
  color: var(--white);
  border-radius: 5px;
}

.section-title {
  text-align: center;
  background: var(--red);
  color: var(--white);
  padding: 12px;
  border-radius: 10px;
  margin: 20px 0 12px;
  font-size: 26px;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.app-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.app-card:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1.5px solid #eee;
  border-radius: 8px;
}

.app-body {
  flex: 1;
}

.app-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.app-info p {
  margin: 5px 0 0;
  font-size: 15px;
  color: #555;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
}

.app-table th,
.app-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.app-table th {
  background: var(--red);
  color: var(--white);
  font-weight: bold;
}

.app-table tr:hover {
  background: #f9f9f9;
}

.btn-edit {
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.btn-delete {
  color: red;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.faq-section {
  margin-top: 20px;
}

.faq-item {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 8px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 5px;
  font-size: 20px;
  transition: transform 0.3s;
}

.faq-question.active::after {
  content: '×';
  color: var(--red);
}

.faq-answer {
  display: none;
  background: #fff;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.faq-item input,
.faq-item textarea {
  width: 100%;
  margin-bottom: 8px;
}

.faq-item h3 {
  color: var(--primary-color, #007bff);
  font-size: 1.1rem;
}

.faq-item p {
  color: #000000;
  margin-top: 6px;
  line-height: 1.6;
  margin-left: 15px;
}

.star-rating {
  --star-size: 20px;
  --star-color: rgb(0, 0, 0);
  --star-full-color: #ffc107;
  --star-half-color: #ffa500;
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times;
  line-height: 1;
  position: relative;
}

.star-rating::before {
  content: "★★★★★";
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--star-full-color) var(--percent), var(--star-color) var(--percent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.star-rating.half::before {
  background: linear-gradient(90deg, var(--star-half-color) var(--percent), var(--star-color) var(--percent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notice-bar {
  background: #ff0000;
  color: #fff;
  font-weight: bold;
  padding: 8px 0;
  border-radius: 4px;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.notice-bar marquee {
  font-size: 16px;
  letter-spacing: 0.5px;
}

footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding-top: 10px;
  padding-bottom: 5px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  padding: 0 6px;
}

.footer-links {
  text-align: center;
}


.cards {
  display: flex;
  gap: 12px;
}

.card {
  border-radius: 8px;
  background: var(--white);
  max-width: 900px;
  margin: 20px auto;
  text-align: center
}

.form-card input,
.form-card textarea {
  display: block;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 5px;
  margin-top: 10px;
}

.success {
  color: green;
}

.error {
  color: red;
}

.load-more {
  text-align: center;
  margin: 20px 0;
}

.load-more button {
  background: var(--white);
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.load-more button:hover {
  background: var(--secondary);
}

.loader {
  text-align: center;
  color: var(--primary);
  font-weight: bold;
  margin: 10px 0;
  font-size: 20px;

  display: none;
}

.chevron-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.chevron {
  width: 24px;
  height: 12px;
  position: relative;
  opacity: 0.4;
  animation: moveChevron 1.6s infinite;
}

.chevron::before,
.chevron::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--red);
  top: 0;
}

.chevron::before {
  left: 0;
  transform: skewY(45deg);
}

.chevron::after {
  right: 0;
  transform: skewY(-45deg);
}

.chevron:nth-child(1) {
  animation-delay: 0s;
  opacity: 0.3;
}

.chevron:nth-child(2) {
  animation-delay: 0.25s;
  opacity: 0.6;
}

.chevron:nth-child(3) {
  animation-delay: 0.5s;
  opacity: 1;
}

@keyframes moveChevron {
  0% {
    transform: translateY(0);
    opacity: 0.2;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }

  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #d30000;
  margin-bottom: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.page-content p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.page-content ol {
  padding-left: 20px;
  list-style-type: decimal;
}

.page-content ul {
  padding-left: 20px;
  list-style-type: disc;
}

.page-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.page-content ol {
  counter-reset: item;
}

.page-content ol li {
  display: list-item;
}


@media (max-width: 767px) {
  .featured {
    flex-direction: row;
    gap: 8px;
  }

  .feature-card {
    width: 30%;
  }

  .main-nav {
    overflow-x: auto;
  }
  
  .main-section {
  padding: 0 8px;
}

  .site-header .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 16px;
    background: var(--red);
    color: var(--white);
  }

  .site-header .logo a {
    font-weight: 700;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--black);
    font-size: 12px;
  }

  .site-header .top-actions a {
    margin-left: 10px;
    background: var(--white);
    padding: 8px 12px;
    border-radius: 20px;
    color: var(--black);
    font-weight: bold;
    font-size: 12px;
  }

  .sub-menu {
    position: relative;
    width: 100%;
    background: var(--white);
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1100;
    gap: 5px;
  }

  .sub-menu a {
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    font-size: 12px;
    padding: 5px;
  }

  .menu-mask {
    position: fixed;
    top: 900px;
    left: 0;
    width: 100%;
    height: calc(100vh - 900px);
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1050;
    backdrop-filter: blur(2px);
  }

  .main-nav {
    display: flex;
    gap: 40px;
    padding: 15px 16px;
    border-bottom: 3px solid var(--black);
    font-weight: 700;
    justify-content: center;
    font-size: 12px;
    background-color: var(--white);
  }

  .notice-bar {
    background: #ff0000;
    color: #fff;
    font-weight: bold;
    padding: 5px 0;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .notice-bar marquee {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .rank-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .feature-card img {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--white);
    display: block;
    margin: 35px auto 0 auto;
    border: 1.5px solid #eee;
  }

  .feature-card h2 {
    margin: 8px 0 4px;
    font-size: 12px;
    color: #333;
  }

  .star-rating {
    --star-size: 12px;
    --star-color: rgb(0, 0, 0);
    --star-full-color: #ffc107;
    --star-half-color: #ffa500;
    display: inline-block;
    font-size: var(--star-size);
    font-family: Times;
    line-height: 1;
    position: relative;
  }

  .feature-card .verified {
    color: #009688;
    font-size: 12px;
    font-weight: bold;
  }

  .btn-download-top {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #28a745;
    color: var(--white);
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 12px;
    box-shadow: 0px 5px 0px 0px #950000;
    border: none;
    cursor: pointer
  }

  .section-title {
    text-align: center;
    background: var(--red);
    color: var(--white);
    padding: 12px;
    border-radius: 10px;
    margin: 20px 0 12px;
    font-size: 20px;
  }

  .thumb img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border: 1.5px solid #eee;
    border-radius: 8px;
  }

  .app-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
  }

  .app-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #555;
  }

  .btn-download {
    display: inline-block;
    padding: 10px 18px;
    background: #28a745;
    color: var(--white);
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 12px;
    box-shadow: 0px 5px 0px 0px #950000;
    border: none;
    cursor: pointer
  }

  .category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px 10px;
    background: #fff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
  }

  .category-left {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .category-left img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid #eee;
  }

  .category-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
  }

  .category-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #555;
  }

  .footer-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0 6px;
    line-height: 1.6;
    font-size: 13px;
  }

  .site-footer p {
    line-height: 1.6;
    font-size: 13px;
  }

}
