@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

* {
    margin: 0;
    padding: 0;
    /* 加上，彻底消除浏览器默认间距 */
    box-sizing: border-box;
}

.box {
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 50px;
    margin-right: 60px;
}

.logo img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: block;
}

.logo_name {
    font-family: "ZCOOL KuaiLe", "楷体", "KaiTi", "STKaiti", serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1;
}

/* 名字后半"点解"用主色强调，微倾斜破板正 */
.logo_name em {
    font-style: normal;
    color: #ff7f50;
    font-size: 25px;
    display: inline-block;
    transform: rotate(-4deg);
}

/* 尾部问号点缀："点解"=为什么，俏皮点题 */
.logo_name::after {
    content: "?";
    color: #ff7f50;
    font-size: 15px;
    font-weight: 700;
    margin-left: 2px;
}

.menu_chunk {
    height: 70px;
    justify-content: center;
    align-items: center;
    display: flex;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 999;
    border-bottom: 1px solid #eef0f3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin: 0;
    padding: 0;
}

.menu_bar {
    width: 1200px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu_bar ul{
    list-style: none;
    display: flex;
    color: #333;
    gap: 8px;
}

.menu_bar li {
    font-size: 15px;
    color: #333;
}

.menu_bar ul li a {
    position: relative;
    display: block;
    text-decoration: none;
    color: #2c3e50;
    line-height: 70px;
    padding: 0 18px;
    transition: color 0.25s ease;
}

/* 底部下划线（默认隐藏） */
.menu_bar ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.menu_bar ul li a:hover {
    color: #3498db;
}

.menu_bar ul li a:hover::after {
    width: 60%;
}

/* 当前页高亮 */
.menu_bar ul li a.active {
    color: #3498db;
    font-weight: 600;
}

.menu_bar ul li a.active::after {
    width: 60%;
}

/* 搜索按钮美化 */
.search {
    display: flex;
    align-items: center;
}
.search button{
    height: 30px;
    padding: 0 16px;
    border-radius: 12px;
    outline: none;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    margin-left: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
}

.search button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.search button:active {
    transform: translateY(0);
}

.search input {
  width: 100%;
  max-width: 220px;
  height: 30px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #e0e4e8;
  outline: none;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0px 0px 20px -18px;
}

.search input:hover {
  border-color: #c8d0d8;
}

.search input:active {
  transform: scale(0.95);
}

.search input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}