body {
    font-family: Arial, sans-serif;
    background-color: #e7e7e7;
    margin: 0;
    padding-top: 53px;
    transition: background-color 0.3s, color 0.3s;
}

.zi-menu {
display: none;
    position: absolute;
    list-style-type: none;
    padding: 15px 25px;
    line-height: 40px;
    margin-top: -5px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
  .zi-menu.show {
    display: block;
  }
  
.zi-menu li {
  transition: transform 0.3s ease; 
}

.zi-menu li:hover {color: #007bff; transform: translateX(5px); }

.zi-menu li:not(:hover) {transform: translateX(0);}
    
#menu-item:hover .zi-menu {display: block;}

#menu-item > a {
    line-height: 48px;
}

.region-bold {
  color: #f48400;  
}

.count-bold {
  font-weight: 600;
}

.ribbon-box {
  position: relative; /* 关键 */
}

.ribbon-two {
  position: absolute;
  left: -5px;
  top: -5px;
  z-index: 1;
  overflow: hidden;
  width: 66px;
  height: 66px;
  text-align: right;
}

/* 文字本身 */
.ribbon-two span {
  font-size: 12px;
  color: #fff;
  text-align: center;
  line-height: 20px;
  transform: rotate(-45deg);
  width: 87px;
  display: block;
  box-shadow: 0 0 8px 0 rgba(71, 77, 86, .08), 0 1px 0 0 rgba(71, 77, 86, .03);
  position: absolute;
  top: 14px;
  left: -20px;
  font-weight: 600;
}
/* 红色半透明风格，可做 danger / hot / price 等 */
.ribbon-two-danger span {
  background: rgb(255 0 0 / 60%);
  backdrop-filter: blur(5px);
}

.ribbon-box .ribbon-two-info span {
  background: rgb(3 209 166 / 70%); /* 半透明蓝色 */
  backdrop-filter: blur(5px);
}
.ribbon-box .ribbon-two-arcade span {
  background: rgb(255 118 0 / 70%);/* 半透明橙色 */
  backdrop-filter: blur(5px);
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; /* 背景色铺满整个页面 */
    background-color: #fff; 
    box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.navbar-flex {
    max-width: 1290px; /* 让内容变窄 */
    margin: 0 auto; /* 居中 */
    height: 60px;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.navbar-menu {
    display: flex; 
    justify-content: flex-start; 
    margin: 0;
    padding: 0;
    list-style: none; 
}

.navbar-menu li a {
    text-decoration: none;
    color: #666;
    font-size: 16px;

}

.navbar-icons {
    display: flex;
    gap: 15px; 
    height: 36px;
}

.navbar-icon {
    background-color: transparent;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar-icon:hover {background-color: #e0e0e0;}


/* 内容区域的样式 */
.content {
    padding-top: 60px; 
    padding: 20px;
}

.content h1 {
    font-size: 24px;
    margin-bottom: 20px;
}
.select-title {
    text-align: center;
    margin: 30px 10px;
    color: #666;
    font-size: 22px;
    line-height: 1;
}
/* 暗黑模式样式 */


body.dark {background-color: #1b1c1c;color: #ced2d9;}
body.dark .navbar-icon {color: white;}
body.dark .content {background-color: #444;color: white;}
body.dark .store-card{background-color: #313134;}
body.dark .store-card-info {color: #ced2d9;}
body.dark .navbar {box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.65);background-color: #313134;}
body.dark .navbar-icon:hover {background-color: #000000;}
body.dark #menu-item > a{color: #fff;}
body.dark .zi-caidan a{color: #ced2d9;}
body.dark .zi-menu li a:hover {color: #007bff;}
body.dark .navbar-menu li a { color: #666; }
body.dark .store-card-img {border: 1px solid #313134;}
body.dark .select-title {color: #ced2d9;}
body.dark .store-card-btn {background: #1b1c1c;color: #ced2d9;}
body.dark #tools-query-total-count{ color: #ced2d9; }
body.dark #search-term::placeholder { color: #79818b; }
body.dark #search-term,
body.dark #region-selector {
    border: 1px solid #5b5c5f;
    color: #ced2d9;
    background-color: #313134;}

/* 错误信息样式 */
.error-message {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
  margin-top: 15px;
  text-align: center;
}

.select-title::before {
  content: "";
  display: inline-block;
  background-image: url('/appstore.png'); /* 替换成你的图标路径 */
  background-size: contain;
  background-repeat: no-repeat;
  width: 35px; /* 图标宽度 */
  height: 35px; /* 图标高度 */
  margin-right: 10px; /* 图标与文字之间的间距 */
  vertical-align: middle; /* 确保图标与文字垂直居中 */
}

/* 表单容器样式 */
.form-container {
  display: flex;
  flex-direction: column; /* 垂直排列 */
  align-items: center; /* 水平居中对齐 */
  gap: 15px; /* 每个元素之间的间距 */
  max-width: 400px; /* 限制最大宽度 */
  margin: 0 auto 20px auto; /* 垂直居中并设置底部间距 */
}

#search-term, #region-selector {
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    height: 43px;
    appearance: none;
    box-sizing: border-box;  /* 确保内边距不会影响高度 */
}
/* 输入框样式 */
#search-term {
  padding: 12px;
  width: 100%;
}

/* 区域选择框样式 */
#region-selector {
    padding: 0 30px 0 10px;
    text-align-last: center;
}

.article {
    padding: 30px;
    overflow: visible;
}
/* 国家/地区选择器 */
.store-region-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

/* 单个地区选项 */
.region-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* 隐藏的单选框 */
.region-item input[type="radio"] {
    display: none;
}

/* 地区名称的样式 */
.region-text {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f8f9fa;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

/* 单选框选中后的效果 */
.region-item input[type="radio"]:checked + .region-text {
    background: #007bff;
    color: #fff;
}

/* 搜索结果容器 */
.store-result {
    margin-top: 20px;
    padding: 20px;
}

/* 搜索统计信息 */
.store-summary {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    text-align: center;
    font-size: 15px;
    color: #666;
    margin: 20px auto;
    gap: 10px; /* 在文字和线条之间添加间距 */
}

.store-summary-text {
    /* 保持文字部分居中，如果需要的话 */
    white-space: nowrap; /* 防止文字换行 */
}

.divider {
    flex-grow: 1; /* 让线条自动填充剩余空间 */
    height: 1px;
    background: #999;
}

/* 在暗黑模式下，调整线条颜色以保持可见性 */
.dark .divider {
    background: #777; 
}

.container {
    max-width: 1290px;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

/* 应用卡片内容 */
.store-card-content {
    gap: 13px;
    display: flex;
    position: relative;
    border-radius: 5px;

}

/* 应用图标样式 */
.store-card-img {
    width: 70px;
    height: 70px;
    border-radius: 21%;
    border: 1px solid #dddddd;
    object-fit: cover;
}

/* 应用卡片信息 */
.store-card-info {
    flex: 1;
    min-width: 0;
    color: #666;
    display: flex;
    flex-direction: column;
}
/* Bundle ID 样式 */
.store-meta-bundle {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 应用详情样式 */
.store-meta-details {
    display: flex;
    font-size: 12px;
    margin-top: 8px;
    gap: 10px;
}

/* 单个元数据项样式 */
.store-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 应用卡片操作按钮 */
.store-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

/* 操作按钮的样式 */
.store-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: #e4ecf3;
    border-radius: 5px;
    color: #333;
    line-height: 1;
    height: 18px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

/* 鼠标悬停时按钮的效果 */
.store-card-btn:hover {
    background: #007bff;
    color: #fff;
}

/* 错误信息样式 */
.store-error {
    text-align: center;
    color: #dc3545;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-top: 20px;
}

/* 设置外部容器，便于放置箭头图标 */
.select-container {
  position: relative; /* 使内部的元素可以绝对定位 */
    /* 设置下拉框宽度 */
}

/* Font Awesome 箭头图标 */
#icon {
    position: absolute;
    top: 24%;
    right: 10px;
    transition: transform 0.4s ease;
    transform-origin: center;
    width: 10px;
    height: 22px;
}

   
#store-term {
  appearance: none;
    padding-right: 30px;
    background-color: transparent;
    padding: 0 30px 0 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    width: 100%;
    height: 40px;
  
}

.store-cards {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.search-card {
overflow: hidden;
transition: transform 0.3s ease;
  padding: 20px 16px;
  border-radius: 8px;
  background-color: #fff;
}
.search-card {
overflow: hidden;
transition: transform 0.3s ease;
  padding: 20px 16px;
  border-radius: 8px;
  text-align: center;
  background-color: #fff;
}
body.dark .search-card{background-color: #2a2a2d;}
.store-card {
overflow: hidden;
transition: transform 0.3s ease;
  padding: 20px 16px;
  border-radius: 8px;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  opacity: 0; /* 初始透明度为 0 */
  animation: fadeIn 0.5s forwards; /* 使用 fadeIn 动画 */
}
/* 鼠标悬停时的卡片效果 */
.store-card:hover {
    transform: scale(1.01);
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
}
/* 动画定义 */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.store-card-info {
  flex: 1;
}

a#languageToggle {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none; 
}

#search-term::placeholder {
  color: #ccc; /* 浅灰色 */
}
/* 搜索按钮样式 */
#search-btn {
  padding: 10px;
  width: 150px;
  background-color: #007bff;
  color: white;
  border: none;
  height: 46px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-card-title a {
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #62a0e3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-card-title {
  text-align: center;     /* 使父容器也居中 */
}

.store-card-btn:hover {
      background-color: #007bff;
     color: white;
    }
.navbar-menu i {
  margin-right: 6px;
}

.zi-caidan a{color: #666;}

#search-btn:hover {
  background-color: #6a45ff;
}
#search-btn i.fa-spinner {
  margin-right: 5px;
}

#tools-query-total-count {
  font-size: 16px;
  color: #555;
  text-align: center;
  margin: 20px;
  line-height: 1;
  font-size: 14px;
}

button#languageToggle {
    font-size: 15px;
    font-weight: 600;
}

#tools-query-total-count i {
  margin-right: 8px;
}