/* 通用样式 */
body {
    font-size: 14.68px;
    line-height: 22.88px;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    transition: all 0.3s ease;
    overflow-x: hidden;
    min-height: 80vh;  /* 确保 body 至少占满整个视口的高度 */
     margin-top: 0;
}


/* Wrapper Styles */
.wrapper {
     display: flex;
    flex-direction: column;  /* 修改：确保 flex 子元素垂直排列 */
    align-items: center;  /* 修改：水平居中子元素 */
     transition: all 0.5s ease;
     width: 100%; /* 修改: 占据整个body宽度 */
     max-width: 1100px; /* 添加：限制最大宽度 */
     padding: 20px; /*添加内边距*/
}



.wrapper.results-visible {
     justify-content: flex-start; /* 修改：当显示结果时，内容在顶部对齐 */
     align-items: center; /* 修改： 当显示结果时，水平居中内容 */
    padding-top: 18.8px;
}


/* Logo container styles */
.logo-container {
    display: flex;
    justify-content: center;
    width: 100%; /* 占据父元素的全部宽度 */
    margin-bottom: 32px;
}

.logo {
   max-width: 120px;
   height: auto;
  
}



/* Search container styles */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    transition: width 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
    width: 68px;
    height: 68px;
    border-radius: 50px;
    background: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
     margin-bottom: 10px;
}
.search-container.moved-up {
  transform: translateY(-150px);
}

.results {
    margin-top: 0px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

table {
    width: 90%;
    max-width: 1060px;
    border-collapse: collapse;
    margin-top: 0px;
    opacity: 0;
    transition: all 0.5s ease;
}

table.visible {
  opacity: 1;
}






/* Search container styles */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    transition: width 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
    width: 68px;
    height: 68px;
    border-radius: 50px;
    background: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
     margin-bottom: 10px;
}
.search-container.moved-up {
  transform: translateY(-150px);
}

.search-button {
    width: 68px;
    height: 68px;
    background-color: #FE0059;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
    position: relative;
    z-index: 1;
}

.search-button i {
    font-size: 2rem;
}

/* 水波涟漪效果 */
.search-button::before,
.search-button::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
     width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid #FE0059;
    opacity: 0;
    animation: none;
      z-index: -1;
}

.search-button:not(:hover)::before,
.search-button:not(:hover)::after {
    animation: ripple 1.56s linear infinite;
    opacity: 0;
}
.search-container.filled .search-button::before,
.search-container.filled .search-button::after {
    animation: none; /* 输入内容后移除动画 */
}

.search-button::after {
    animation-delay: 0.5s;
}

@keyframes ripple {
     0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
     }
      50% {
        opacity: 1;
    }
    100% {
         transform: translate(-50%, -50%) scale(1.88);
        opacity: 0;
      }
}

.search-container:hover .search-button::before,
.search-container:hover .search-button::after {
    animation: none;
}

.search-container input[type="text"] {
    padding: 10px;
    border: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: absolute;
    left: 10px;
    opacity: 0;
    box-sizing: border-box;
    width: 0;
    outline: none;
    background: transparent;
}

.search-container:hover,
.search-container.filled {
    width: 700px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.search-container:hover .search-button,
.search-container.filled .search-button {
    background-color: transparent;
    width: 0;
    border-radius: 0;
}

.search-container:hover input[type="text"],
.search-container.filled input[type="text"] {
    width: calc(100% - 170px);
    opacity: 1;
}

.search-underline {
    height: 3px;
    background: linear-gradient(to right, #FE0019, #FE0099);
    position: absolute;
    bottom: 3.88px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.search-container:hover .search-underline,
.search-container.filled .search-underline {
     transform: translateX(-50%) scaleX(1);
      width: calc(98% - 10px);
}

.search-container button {
    position: absolute;
    right: 10px;
    padding: 0;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.search-container:hover button,
.search-container.filled button {
    opacity: 1;
}

.search-image-button {
    width: 46px;
    height: auto;
    display: block;
}

.results {
    margin-top: 10px; /* 修改：减小 margin-top */
    text-align: center; /* 确保内部文本居中 */
    width: 100%; /* 让 results 占据 wrapper 的全部宽度 */
    display: flex;
    justify-content: center; /* 水平居中表格 */
    align-items: center; 
    flex-direction: column; /* 内部元素垂直排列 */
}

table {
    width: 90%;
    max-width: 1060px;
    border-collapse: collapse;
    margin-top: 20px;
    /* margin-left: auto;   可以保留，增强兼容性 */
    /* margin-right: auto;  可以保留，增强兼容性 */
    opacity: 0;
    transition: all 0.5s ease;
}

table.visible {
  opacity: 1;
}

th, td {
    border: 1px solid #fe000055;
    padding-top: 10px;
    padding-right: 16px;
    padding-bottom: 10px;
    padding-left: 16px;
    text-align: left;
}

th {
    background-color: #FE0059;
    color: white;
    text-align: center; /* 添加:th居中*/
}

/* 修改： 让第一列的 th 居中*/
th:first-child,
td:first-child {
   text-align: center; /* 第一列居中对齐*/
    white-space: nowrap;
}


.ypp-status {
    color: #FE0059;
    font-weight: bold;
}

@media (max-width: 600px) {
    .search-container{
        width: 68px;
        height: 68px;
    }
    .search-container:hover{
        width: 400px;
    }
}