/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* 去掉所有列表项的默认样式 */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul li, ol li {
    list-style-type: none;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: url('../img/banner.jpg') no-repeat top left;
    background-size: cover;
    color: white;
    padding: 10px 0;
    width:100%;
    height:600px;
    margin: 0;
    overflow: hidden;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    margin-left: 40px;
}
.logo h1{
    font-size: 40px;
    font-weight: bold;
}
.logo span {
    font-size: 25px;
    font-weight: bold;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.header-info {
    display: flex;
    align-items: center;
}

.phone {
    margin-right: 20px;
    font-size: 14px;
}

.login, .register {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.register {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 用户下拉菜单样式 */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    display: flex;
    align-items: center;
}

.dropdown-toggle img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f7fa;
    color: #0066cc;
}

.dropdown-menu a:first-child {
    border-radius: 4px 4px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 4px 4px;
}

.user-dropdown.open .dropdown-menu {
    display: block;
}

.login:hover, .register:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.nav {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav a:hover, .nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        height: 350px;
        padding: 10px 0;
        background-size: cover;
        background-position: top left;
    }
    
    .logo-link span {
        display: none;
    }
    
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .logo {
        flex-direction: row;
        gap: 3px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
        margin-right: 5px;
    }
    
    .logo h1 {
        font-size: 18px;
        white-space: nowrap;
    }
    
    .logo span {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .header-info {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    .phone {
        margin-right: auto;
    }
    
    .login, .register {
        margin-left: 10px;
        padding: 4px 12px;
        white-space: nowrap;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .header {
        height: 250px;
        background-size: cover;
        background-position: top left;
        background-color: #0066cc;
    }
    
    .logo {
        gap: 2px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
        margin-right: 3px;
    }
    
    .logo h1 {
        font-size: 16px;
        white-space: nowrap;
    }
    
    .logo span {
        font-size: 10px;
        font-weight: normal;
        white-space: nowrap;
    }
    
    .logo-link {
        flex-direction: row;
        gap: 2px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .logo-link span {
        display: none;
    }
    
    .header-info {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-end;
        width: 100%;
    }
    
    .phone {
        font-size: 12px;
        margin-right: auto;
    }
    
    .login, .register {
        font-size: 12px;
        margin-left: 5px;
        padding: 3px 6px;
    }
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    /* background: url('images/banner.jpg') no-repeat right center; */
    color: white;
    /* padding: 50px 0; */
    position: relative;
    overflow: hidden;
}

.banner-image {
    max-width: 1200px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}


.banner-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
}

.banner-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.quick-entry {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    min-width: 120px;
}

.entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.entry-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.entry-item .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.entry-item span:last-child {
    font-size: 12px;
    text-align: center;
}

/* 步骤流程 */
.steps {
    background-color: white;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.steps .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.step-link:hover {
    transform: translateY(-5px);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.step-number {
    background-color: #0066cc;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-title {
    font-size: 30px;
    margin-bottom: 10px;
    color: #333;
}

.step-icon {
    font-size: 24px;
    color: #0066cc;
}

.step-arrow {
    color: #0066cc;
    font-size: 20px;
    margin: 0 10px;
}

/* 通知公告 */
.notice {
    padding: 50px 0;
    background-color: #f5f7fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #0066cc;
}

.tab-nav {
    display: flex;
    list-style: none;
    margin-left: 30px;
}

.tab-nav li {
    margin-right: 20px;
    padding: 5px 0;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-nav li:hover, .tab-nav li.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.more {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.notice-content {
    display: flex;
    gap: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-items: flex-start; /* 子元素高度不强制一致，从顶部对齐 */
}

.notice-banner {
    flex: 1;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-radius: 10px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* 设置最小高度，确保与列表高度一致 */
}

.notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/notice-bg.png') no-repeat center center;
    background-size: contain;
    opacity: 0.2;
}

.notice-banner-item {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.notice-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.notice-banner-item h3 {
    font-size: 18px;
    line-height: 1.4;
}

.notice-list {
    flex: 2;
    list-style: none;
    overflow-y: auto; /* 内容过多时显示垂直滚动条 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.notice-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    white-space: nowrap; /* 防止标题换行 */
}

.notice-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.notice-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden; /* 隐藏溢出文本 */
    text-overflow: ellipsis; /* 溢出文本显示省略号 */
    display: block; /* 确保截断应用于整个链接 */
}

.notice-list a:hover {
    color: #0066cc;
}

/* 标签页内容 */
.tab-content {
    display: none;
    width: 100%;
    height: 100%;
}

.tab-content.active {
    display: flex;
    gap: 30px;
    align-items: stretch; /* 确保子元素高度一致 */
}

/* 帮助中心 */
.help-center {
    padding: 50px 0;
    background-color: white;
}

.help-center .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.help-center .section-header p {
    color: #666;
    margin-top: 10px;
}

.help-items {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.help-item {
    flex: 1;
    background-color: #f5f7fa;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.help-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #eef3f9;
}

.help-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0066cc;
}

.help-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.help-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid #0066cc;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.help-link:hover {
    background-color: #0066cc;
    color: white;
}

/* 通知弹框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f5f5f5;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #0066cc;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #eee;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.confirm-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.confirm-btn:hover {
    background-color: #004499;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 页脚 */
.footer2 {
    background-color: #333;
    color: white;
    font-size: 14px;
    padding: 20px 0;
}

.footer2-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer2-links {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.footer2-links li {
    color: white;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.footer2-links li a {
    color: white;
    text-decoration: none;
}


.footer2-info li {
    margin-bottom: 5px;
    opacity: 0.8;
}
.footer2-info li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 14px;
    transition: opacity 0.3s ease;
}
.footer2-info li a:hover {
    opacity: 1;
    text-decoration: underline;
}
.footer2-qr img {
    width: 100px;
    height: 100px;
    border: 2px solid white;
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
    
    .banner-right {
        position: static;
        transform: none;
        margin-top: 30px;
        display: flex;
        justify-content: center;
    }
    
    .banner-content {
        text-align: center;
        max-width: 100%;
    }
}

/* 专门处理768px到928px屏幕尺寸的样式 */
@media (min-width: 769px) and (max-width: 928px) {
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .logo img {
        width: 70px;
        height: 70px;
        margin-right: 8px;
    }
    
    .logo h1 {
        font-size: 28px;
        transition: font-size 0.3s ease;
    }
    
    .logo span {
        font-size: 18px;
        transition: font-size 0.3s ease;
    }
    
    .logo, .logo-link {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .header-info {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .phone {
        margin-right: 15px;
        font-size: 14px;
    }
    
    .login, .register {
        font-size: 14px;
        margin-left: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    /* 用户下拉菜单响应式样式 */
    .dropdown-menu {
        right: auto;
        left: 0;
        min-width: 100px;
    }
    
    .dropdown-toggle img {
        width: 28px;
        height: 28px;
    }
    
    .header {
        background: url('../img/banner.jpg') no-repeat top left;
        background-size: cover;
        height: 350px;
        padding: 0;
        margin: 0;
        display: block;
    }
    
    .footer2{
        padding-bottom: 70px;
    }


    .nav {
        flex-wrap: wrap;
    }
    
    .nav a {
        margin: 5px;
    }
    
    .steps .container {
        flex-wrap: wrap;
    }
    
    .step-item {
        margin: 10px;
    }
    
    .notice-content {
        flex-direction: column;
    }
    
    /* 手机端不显示左侧图片模块 */
    .notice-banner {
        display: none;
    }
    
    .tab-content.active {
        flex-direction: column;
        gap: 0;
    }
    
    .help-items {
        flex-wrap: wrap;
    }
    
    .help-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    /* 合并重复的768px媒体查询内容 */
    .header {
        height: 300px;
        padding: 5px 0;
    }
    
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .logo {
        flex-direction: row;
        gap: 3px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
        margin-right: 5px;
    }
    
    .logo h1 {
        font-size: 20px;
        white-space: nowrap;
    }
    
    .logo span {
        font-size: 14px;
        white-space: nowrap;
    }
    
    .logo-link {
        flex-direction: row;
        gap: 3px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .logo-link {
        flex-direction: row;
        gap: 3px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .header-info {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-end;
        align-items: center;
    }
    
    .phone {
        margin-right: auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tab-nav {
        margin-left: 0;
    }
    
    .help-item {
        flex: 0 0 100%;
    }
    
    .footer2-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    /* 步骤流程平板竖屏样式 - 确保5个步骤在一行内显示 */
    .steps .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 5px;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .step-link {
        flex: 1;
        min-width: auto;
        flex-shrink: 0;
        text-align: center;
    }
    
    .step-item {
        min-width: auto;
        margin: 5px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .step-title {
        font-size: 14px;
        margin-bottom: 4px;
        white-space: nowrap;
    }
    
    .step-icon {
        font-size: 16px;
    }
    
    .step-arrow {
        font-size: 14px;
        margin: 0 3px;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    /* 用户下拉菜单响应式样式 */
    .dropdown-menu {
        min-width: 90px;
    }
    
    .dropdown-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .dropdown-toggle img {
        width: 25px;
        height: 25px;
    }
    
    .header {
        height: 250px;
        background-size: cover;
    }
    
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-info {
        align-items: center;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo span {
        font-size: 14px;
    }
    
    .phone {
        font-size: 12px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .quick-entry {
        min-width: 100px;
    }
    
    .step-arrow {
        display: none;
    }
}

/* 针对小屏幕调整页脚margin-bottom */
@media screen and (max-width: 320px) {
    .footer2 {
        margin-bottom: 52px !important;
    }
}

/* 针对大屏幕调整页脚margin-bottom */
@media screen and (min-width: 414px) {
    .footer2 {
        margin-bottom: 60px !important;
    }
}