/*
 Theme Name:   Astra Child
 Theme URI:    https://we2usat.com/
 Description:  基于 Astra 主题的子主题，包含自定义搜索和数据管理功能（不影响Astra核心）
 Author:       we2usat
 Author URI:   https://we2usat.com/
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* 自定义搜索表单样式 */
.astra-child-custom-search {
    width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}

.search-results{
    margin-top: 20px;
}

#custom-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 10px 13px 10px 20px;
    box-shadow: 0 0 0 1px rgba(210, 221, 241, .35),
                0 1px 6px 0 #e7ecf6;   
    border: 2px solid #d2ddf1; 
    border-radius: 10px;
    background: #ffffff;
}

#custom-search-form input[type="text"]{
  flex: 1 1 auto;                  /* 覆盖主题原来的 flex:1 1 600px */
  min-width: 0;
  height: 60px;
  padding: 0 8px 0 20px;
  border: 0;                       /* 覆盖主题的 1px solid #ddd */
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 24px;
  line-height: 1.4;
  color: #1f1f1f;
  text-transform: none;            /* Astra 全局 lowercase，不覆盖会显示成小写 */
}

#custom-search-form input[type="text"]::placeholder,
.z-verify-box input[type="text"]::placeholder {
  color: #878787;
  font-size: 24px;
  opacity: 1;                      /* Firefox 默认把 placeholder 调淡 */
}

#custom-search-form button {
  flex: 0 0 auto;
  width: 176px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #0578ED 0%, #013EBA 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.red{
    color: red;
}

.green{
    color: green;
}

@media screen and (max-width: 767px) {
  #custom-search-form,
  .z-verify-box {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px;
    border-radius: 9px;
  }
  #custom-search-form input[type="text"],
  .z-verify-box input[type="text"] {
    height: 44px;
    padding: 0 4px 0 10px;
    font-size: 15px;
  }
  #custom-search-form button,
  .z-verify-box button {
    width: 104px;
    height: 44px;
    font-size: 15px;
    border-radius: 7px;
  }
}