/* 通用样式定义 */
:root {
    /* 主色调定义 */
    --primary-color: #1a1a1a;    /* 主色-深色系 */
    --secondary-color: #f4a460;  /* 强调色-暖色调 */
    --text-color: #333;          /* 文字主色 */
    --light-text: #fff;          /* 浅色文字 */
    --border-color: #e5e5e5;     /* 边框颜色 */
    
    /* 布局相关 */
    --max-width: 1200px;         /* 内容最大宽度 */
    --header-height: 100px;       /* 修改导航栏高度为100px */
}

/* 通用容器 */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;  /* 进一步减小默认内边距 */
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s;
    background-color: rgba(51, 51, 51, 0); /* 修改默认背景色为深色半透明 */
}

.header.scrolled {
    background-color: rgba(51, 51, 51, 0.7);
}

/* 主导航 */
.nav-main {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;  /* 与container保持一致 */
}

/* logo区域 */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 55px;
    margin-right: 10px;
}

/* 合并两个重复的 .nav-logo span 样式 */
.nav-logo span {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-right: 120px;
    transition: all 0.3s ease;
}

/* 导航列表 */
.nav-list {
    display: flex;
    gap: 70px;  /* 增加导航项之间的间距 */
    margin-left: auto;  /* 让导航列表靠右 */
    padding-left: 100px;  /* 与logo保持一定距离 */
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    line-height: var(--header-height);
    color: #fff; /* 确保主导航文字为白色 */
    font-size: 16px;
    font-weight: bold;
}

/* 子导航 */
.nav-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background-color: rgba(51, 51, 51, 0.9);
    padding: 15px 0;
    display: none;
}

.nav-sub li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);  /* 添加分隔线 */
}

.nav-sub li:last-child {
    border-bottom: none;  /* 最后一项不需要分隔线 */
}

.nav-sub li a {
    display: block;
    padding: 14px 25px;  /* 增加上下内边距 */
    color: #fff; /* 确保子菜单文字为白色 */
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
}

.nav-sub li a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* 鼠标悬停显示子导航 */
.nav-item:hover .nav-sub {
    display: block;
}

/* 品牌区域 */
.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-brand span {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

@media screen and (min-width: 1401px) and (max-width: 1700px) {

    .nav-logo span {
        font-size: 20px; /* 减小字体大小 */
        margin-right: 10px; /* 进一步减小右侧间距 */
    }

    .nav-list {
        gap: 30px; /* 进一步减小导航项间距 */
        padding-left: 50px;
    }
}

@media screen and (min-width: 1331px) and (max-width: 1400px) {

    .nav-logo span {
        font-size: 20px; /* 减小字体大小 */
        margin-right: 10px; /* 进一步减小右侧间距 */
    }

    .nav-list {
        gap: 20px; /* 进一步减小导航项间距 */
        padding-left: 20px;
    }
}

/* 小中屏幕 (1024px < width <= 1330px) */
@media screen and (min-width: 1056px) and (max-width: 1330px) {
    .nav-logo {
        gap: 0;
    }
    .nav-logo img {
        display: none;  /* 完全隐藏logo区域 */
    }
    .nav-logo span {
        font-size: 20px; /* 减小字体大小 */
        margin-right: 50px; /* 进一步减小右侧间距 */
    }
    
    .nav-list {
        gap: 10px; /* 进一步减小导航项间距 */
        padding-left: 50px;
    }
    
    .container {
        padding: 0 40px; /* 减小容器内边距 */
    }
    
    .nav-main {
        padding: 0 40px; /* 与container保持一致 */
    }
}

/* 移动端样式 */
@media screen and (max-width: 1055px) {
    .header {
        height: 60px;
    }

    /* 移动端导航主容器 */
    .nav-main {
        padding: 0 20px 0 10px;
        height: 60px;
        position: relative;  /* 添加相对定位 */
    }

    /* 移动端logo区域 */
    .nav-logo img {
        display: none;  /* 完全隐藏logo区域 */
    }
    .nav-logo span {
        font-size: 14px !important; /* 更小的字体 */
        margin-right: 30px; /* 更小的右侧间距 */
    }
    /* 移动端导航按钮 */
    .nav-toggle {
        position: absolute;
        right: 20px;
        top: 20px;
        width: 24px;
        height: 20px;
        cursor: pointer;
        z-index: 2001; /* 确保按钮始终在最上层 */
    }

    /* 汉堡按钮样式 */
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        position: absolute;
        left: 0;
        transition: all 0.3s;
    }

    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 9px; }
    .nav-toggle span:nth-child(3) { top: 18px; }

    /* 关闭按钮样式 */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    /* 移动端导航列表样式优化 */
    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000; /* 增加z-index值，确保它显示在banner-content上方 */
        padding-top: 60px;
        gap: 5px;  /* 增加导航项之间的间距 */
    }
    
    .nav-list.active {
        transform: translateX(0);
    }

    /* 移动端导航项 */
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        
    }

    .nav-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px 0 20px;  /* 减小上下内边距 */
        font-size: 16px;
    }

    /* 有子菜单的导航项箭头 */
    .nav-item.has-sub > a::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(255, 255, 255, 0.7);
        border-bottom: 2px solid rgba(255, 255, 255, 0.7);
        transform: rotate(-45deg); /* 初始朝右 */
        transition: transform 0.3s;
    }

    /* 激活状态箭头朝下 */
    .nav-item.has-sub.active > a::after {
        transform: rotate(45deg);
    }

    /* 移动端子导航 */
    .nav-sub {
        display: none;
        position: static;
        transform: none;
        background: none;
        padding: 0;
        min-width: auto;
        visibility: visible;
        opacity: 1;
    }

    .nav-item.active .nav-sub {
        display: block;
    }

    .nav-sub li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-sub li a {
        padding: 10px 20px 10px 40px;  /* 减小子菜单的上下内边距 */
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
    }

    /* 调整移动端容器宽度 */
    .container {
        padding: 0 15px;  /* 减小内边距，让内容更宽 */
    }

    .nav-logo span {
        font-size: 18px; /* 移动端字号更小 */
    }
}

/* 页脚样式 */
.footer {
    background-color: #2a2a2a;  /* 背景色调亮一些 */
    color: var(--light-text);
    padding: 60px 0 30px;  /* 增加内边距 */
}

.footer-top {
    display: grid;
    grid-template-columns: 3fr 1fr;  /* 调整左右比例 */
    gap: 50px;  /* 增加间距 */
    margin-bottom: 40px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* 固定5列，对应5个主导航 */
    gap: 30px;
}

.footer-col {
    min-width: 160px;  /* 设置最小宽度 */
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 12px;  /* 增加列表项间距 */
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-qrcode {
    text-align: center;
}

.footer-qrcode img {
    width: 120px;
    margin-bottom: 10px;
}

.footer-qrcode p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 通用标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #e5955c;
}

.banner-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

@media screen and (min-width: 1301px) and (max-width: 1999px) {
	.banner-content h1 {
		font-size: 38px;
		margin-bottom: 1rem;
	}

	.banner-content p {
		font-size: 20px;
	}
}

@media screen and (min-width: 1056px) and (max-width: 1300px) {
	.banner-content h1 {
		font-size: 25px;
		margin-bottom: 1rem;
	}

	.banner-content p {
		font-size: 18px;
	}
}

/* 移动端适配 */
@media screen and (max-width: 1055px) {
    .footer {
        padding: 30px 0 20px;  /* 减小内边距 */
    }

    .footer-nav {
        display: none;  /* 移动端隐藏导航部分 */
    }

    .footer-top {
        grid-template-columns: 1fr;  /* 单列布局 */
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-qrcode {
        text-align: center;
    }

    .footer-qrcode img {
        width: 140px;  /* 稍微放大二维码 */
        margin-bottom: 10px;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 0;  /* 移除顶部外边距 */
    }
	
    .banner-content h1 {
        font-size: 20px !important;
    }
    
    .banner-content p {
        font-size: 16px !important;
    }
}

@media screen and (min-width: 601px) and (max-width: 1055px) {
    .banner {
        width:100%
    }
}
@media screen and (max-width: 600px) {
    .banner {
        height: 219px; /* 移动端固定高度 */
    }
    .sub-banner {
        height: 203px !important;
    }
	
    .banner-content {
        display: none;
		left: 5% !important;
    }
	
    .banner-content h1 {
        font-size: 16px !important;
    }
    
    .banner-content p {
        font-size: 12px !important;
    }
}

/* 2K屏幕适配 */
@media screen and (min-width: 2000px) {
    .container,
    .nav-main {
        max-width: 2400px;
        padding: 0 50px;  /* 减小2K屏幕下的内边距 */
    }
    
    /* 调整字体大小 */
    body {
        font-size: 16px;
    }
    
    .nav-item > a {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 38px;
    }
	
    .banner-content h1 {
        font-size: 64px;
    }
    
    .banner-content p {
        font-size: 32px;
    }
}

/* 4K屏幕适配 */
@media screen and (min-width: 3000px) {
    .container,
    .nav-main {
        max-width: 3400px;
        padding: 0 60px;  /* 减小4K屏幕下的内边距 */
    }
    
    /* 调整字体大小 */
    body {
        font-size: 18px;
    }
    
    .nav-item > a {
        font-size: 20px;
    }
    
    .section-title h2 {
        font-size: 44px;
    }
	
    .banner-content h1 {
        font-size: 72px;
    }
    
    .banner-content p {
        font-size: 36px;
    }
}
