/* ========================
   通用组件样式
======================== */
/* 容 器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
    border: 1px solid #0052a3;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

/* 高亮文本 */
.highlight-text {
    color: #ff6b6b;
    font-weight: 600;
}
/* ========================
   表单元素
======================== */
input, textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #0066cc;
    outline: none;
}

/* ========================
   表格样式
======================== */
.table-basic {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table-basic th,
.table-basic td {
    padding: 12px;
    border: 1px solid #eee;
}

.table-basic tr:nth-child(even) {
    background: #f9f9f9;
}

/* ========================
   工具类
======================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================
   Flex 布局工具类
======================== */
/* 基础弹性容器 */
.flex {
    display: flex;
}

/* 水平排列 + 两端对齐 */
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 垂直居中 + 水平居中 */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 垂直居中 + 水平左对齐 */
.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 垂直居中 + 水平右对齐 */
.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ========================
   布局框架
======================== */
/* 页头 */
.header-main {
    background: #F4F9F8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /*position: fixed;*/
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-main .container{
    height: 162px;
}

.header-logo{
    flex: 0 0 248px;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-wrapper{
    flex: 1; 
    display: flex;
    justify-content: flex-end;
}
.header-nav{
    margin-right: 15px;
}
.nav-link{
    padding: 10px 21px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 300;
}

.nav-link:hover {
    background: #BF9742;
    color: #FFF;
    transition: background-color 0.5s ease, color 0.3s ease;
}

.nav-link.active {
    background: #BF9742;
    color: #FFF;
}

.search-btn{
    width: 41px;
    height: 41px;
    border-radius: 50%;
    background: #002A20;
    border: none;
    cursor: pointer;
    position: relative;
}

.search-form {
    position: relative;
}

.search-input {
    position: absolute;
    right: 50px;
    width: 0;
    height: 41px;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
}

/* 输入框展开状态 */
.search-form:hover .search-input,
.search-input:focus {
    width: 240px;
    padding: 0 20px;
    opacity: 1;
    right: 60px; /* 调整最终位置 */
}