/* ===== 基础样式 ===== */
body {
    margin: 0;
    height: 100%;
}

.content {
    height: 100%;
    min-height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== 头部样式 ===== */
.head {
    width: 100%;
}

.headbackground {
    width: 100%;
    height: 155px;
    background-color: #0250d4;
    background-image: url("../image/headimg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.logo {
    position: absolute;
    left: 110px;
    top: 35px;
    z-index: 1;
}

.logo img {
    width: 70%;
    height: auto;
}

.name {
    width: fit-content;
    position: relative;
    left: 400px;
    top: 48px;
    display: flex;
}

.name1 {
    width: 200px;
    font-size: 40px;
    font-family: "AlimamaShuHeiTi";
    font-weight: bold;
    line-height: 1.2;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(70, 108, 151, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.name2 {
    width: 270px;
    min-width: 220px;
    font-size: 30px;
    font-family: "Microsoft YaHei";
    font-weight: bold;
    line-height: 1.2;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(70, 108, 151, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== 导航栏样式 ===== */
.nav {
    background-color: #1a73e8;
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.wp_nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover > a {
    background-color: #8ab4f8;
}

.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #2196F3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 1001;
    border-radius: 0 0 4px 4px;
}

.nav-item:hover > .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-nav .nav-item > a {
    padding: 8px 15px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sub-nav .nav-item:last-child > a {
    border-bottom: none;
}

.sub-nav .nav-item > a:hover {
    background-color: #1976D2;
}

/* ===== 汉堡菜单 ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 15px;
    top: 120px;
    z-index: 2;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}


/* ===== 页脚样式 ===== */
.foot {
    width: 100%;
    height: 200px;
    background-image: url("../image/foot.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 14px;
    font-weight: 200;
    color: white;
    text-align: center;
    margin-top: 50px;
    position: relative;
}

.foot-font {
    position: relative;
    top: 50px;
}

/* ===== 搜索框样式 ===== */
.search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 15px;
    flex-direction: row-reverse;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s;
    width: 180px;
}

.search-input:focus {
    border-color: #1e88e5;
    width: 220px;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

/* ===== 动画 ===== */
@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .nav-item > a {
        padding: 10px 10px;
        font-size: 13px;
    }
    
    .wp_nav {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .wp_nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        right: 0;
        height: 100vh;
        width: 250px;
        background: #1976D2;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }
    
    .nav.active {
        display: flex;
        z-index: 999;
    }
    
    .wp_nav {
        flex-direction: column;
    }
    
    .sub-nav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 15px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
    
    .search-container {
        order: -1;
        width: 80%;
        padding: 0;
        background: #f5f5f5;
        position: absolute;
        top: 118px;
        margin-left: 25px;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        width: 100% !important;
        padding: 10px 15px;
    }
    
    .name {
        flex-direction: column;
    }
    
    .name2 {
        font-size: 23px;
    }
}

@media (max-width: 768px) {
    .headbackground {
        background-image: none;
    }
    
    .name {
        display: none;
    }
}

/* ===== 通用样式 ===== */