/* 全局样式与变量定义 */

:root {
    --primary-color: #32228b;
    /*主调色:用于标题按钮等*/
    --primary-dark: #120064;
    /*主调色深色版本：用于悬停状态或强调*/
    --secondary-color: #4a3abf;
    /*辅助色：用于次要按钮或装饰*/
    --light-color: #f8f9fa;
    /*浅色背景：用于页面背景或卡片*/
    --gray-color: #666;
    --dark-gray: #333;
    --success-color: #32228b;
    --success-light: rgba(34, 139, 34, 0.1);
    /*成功状态浅色：半透明绿色背景*/
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /*阴影效果：元素悬浮感*/
    --transition: all 0.3s ease;
    /*过渡动画：所有元素变化时的动画效果*/
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: underline;
    padding: 0;
    background-color: transparent;
    font-weight: normal;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.center-button {
    text-align: center;
    margin-top: 50px;
}


/* 导航栏样式 */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.logo img {
    height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin: 0 15px;
    position: relative;
}

.main-nav ul li a {
    color: var(--dark-gray);
    padding: 5px 0;
    font-size: 1.1rem;
    position: relative;
    display: block;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a.active {
    color: var(--primary-color);
    font-weight: 500;
}


/* 下拉菜单样式 */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 8px 0;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}


/* 移动端菜单 */

.navbar {
    display: none;
    /* 桌面端导航默认隐藏，移动端不显示 */
}


/* 顶部固定导航（移动端） */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    /* 确保在内容上方 */
}

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

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}


/* 菜单按钮样式 */

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    z-index: 1000;
}


/* 侧边栏导航 */

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    /* 默认隐藏在右侧 */
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1001;
    /* 高于遮罩层和导航栏 */
    padding-top: 70px;
    /* 预留顶部导航高度 */
}

.sidebar.active {
    right: 0;
    /* 显示侧边栏 */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.nav-list {
    padding: 0 20px;
}

.nav-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.nav-list a {
    color: #333;
    font-size: 1rem;
    display: block;
    padding: 5px 0;
}

.nav-list a.active {
    color: #32228b;
    font-weight: bold;
}


/* 移动端子菜单样式 */

.nav-list .dropdown-menu {
    margin-left: 20px;
    margin-top: 10px;
    position: static;
    box-shadow: none;
    min-width: auto;
    padding: 0;
}


/* 遮罩层 */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    /* 高于内容，低于侧边栏 */
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* 英雄区域 */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}


/* 核心优势 */

.core-advantages {
    padding: 100px 0;
    background-color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.advantage-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(34, 139, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #32228b;
    font-size: 2rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #32228b;
}

.advantage-card p {
    color: #666;
}


/* 产品中心区域 - 响应式适配修改 */

section.products {
    padding: 80px 20px;
    /* 增加左右内边距，避免内容贴边 */
    max-width: 1600px;
    /* 限制最大宽度，避免宽屏显示过宽 */
    margin: 0 auto;
    /* 居中显示 */
}


/* 产品网格基础样式 */

section.products .products-grid {
    display: grid;
    gap: 25px;
    /* 统一间距 */
    padding: 0 10px;
    /* 左右留余白 */
}


/* 产品卡片样式优化 */

section.products .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* 确保卡片高度一致 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.products .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
    /* 增强悬停效果 */
}

section.products .product-card img {
    width: 100%;
    height: 180px;
    /* 统一图片高度 */
    object-fit: cover;
    /* 保持图片比例，裁剪多余部分 */
    transition: transform 0.3s ease;
}

section.products .product-card:hover img {
    transform: scale(1.05);
    /* 悬停时轻微放大图片 */
}

section.products .card-content {
    padding: 25px;
    flex-grow: 1;
    /* 填充剩余空间，确保卡片底部对齐 */
    display: flex;
    flex-direction: column;
}

section.products .card-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    /* 标题下方加分割线，增强层次感 */
}

section.products .card-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    /* 让描述文字占满中间空间，按钮靠下 */
}

section.products .card-content .btn-link {
    margin-top: auto;
    /* 按钮自动靠下对齐 */
    align-self: flex-start;
    /* 按钮左对齐 */
}


/* 移动端（默认）：1列布局 */

section.products .products-grid {
    grid-template-columns: 1fr;
}


/* 小屏平板（576px - 767px）：2列布局 */

@media (min-width: 576px) and (max-width: 767px) {
    section.products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    section.products .product-card img {
        height: 160px;
        /* 适当降低图片高度 */
    }
}


/* 大屏平板（768px - 1023px）：2列布局（平衡显示效果） */

@media (min-width: 768px) and (max-width: 1023px) {
    section.products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    section.products .product-card img {
        height: 180px;
    }
}


/* 桌面设备（1024px - 1399px）：3列布局 */

@media (min-width: 1024px) and (max-width: 1399px) {
    section.products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}


/* 宽屏设备（1400px及以上）：3列布局，增加间距 */

@media (min-width: 1400px) {
    section.products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    section.products .product-card img {
        height: 200px;
        /* 宽屏增加图片高度，提升视觉比例 */
    }
    section.products .card-content {
        padding: 30px;
    }
    section.products .card-content h3 {
        font-size: 1.4rem;
    }
    section.products .card-content p {
        font-size: 1rem;
    }
}


/* 小屏移动端（<375px）：特殊优化 */

@media (max-width: 374px) {
    section.products .product-card img {
        height: 140px;
        /* 极小屏幕降低图片高度 */
    }
    section.products .card-content {
        padding: 20px;
    }
    section.products .card-content h3 {
        font-size: 1.1rem;
        /* 缩小标题字体 */
    }
}


/* 查看全部产品按钮优化 */

section.products .center-button {
    margin-top: 60px;
    /* 增加与产品网格的距离 */
}

section.products .center-button .btn-primary {
    min-width: 180px;
    /* 按钮最小宽度，确保文字不换行 */
    padding: 14px 30px;
    /* 增大按钮点击区域 */
}


/* 应用案例区域 - 响应式适配修改 */

section.cases {
    padding: 80px 20px;
    /* 增加左右内边距，避免内容贴边 */
    max-width: 1600px;
    /* 限制最大宽度 */
    margin: 0 auto;
    /* 居中显示 */
}


/* 案例网格基础样式 */

section.cases .cases-grid {
    display: grid;
    gap: 25px;
    /* 统一间距 */
    padding: 0 10px;
    /* 左右留余白 */
}


/* 案例卡片样式优化 */

section.cases .case-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 280px;
    /* 统一卡片高度 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

section.cases .case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    /* 增强悬停效果 */
}

section.cases .case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持图片比例，裁剪多余部分 */
    transition: transform 0.5s ease;
}

section.cases .case-card:hover img {
    transform: scale(1.1);
    /* 悬停时图片放大效果 */
}

section.cases .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

section.cases .case-card:hover .card-overlay {
    opacity: 1;
    /* 悬停时显示叠加层 */
}

section.cases .card-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* 标题增加文字阴影 */
}

section.cases .card-overlay p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 超出部分隐藏 */
}

section.cases .card-overlay .btn-secondary {
    align-self: flex-start;
    /* 按钮左对齐 */
    padding: 8px 18px;
    /* 调整按钮大小 */
    font-size: 0.9rem;
}


/* 查看更多案例按钮优化 */

section.cases .center-button {
    margin-top: 60px;
    /* 增加与案例网格的距离 */
}

section.cases .center-button .btn-primary {
    min-width: 180px;
    /* 按钮最小宽度，确保文字不换行 */
    padding: 14px 30px;
    /* 增大按钮点击区域 */
}


/* 移动端（默认）：1列布局 */

section.cases .cases-grid {
    grid-template-columns: 1fr;
}


/* 小屏平板（576px - 767px）：2列布局 */

@media (min-width: 576px) and (max-width: 767px) {
    section.cases .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    section.cases .case-card {
        height: 250px;
        /* 适当降低卡片高度 */
    }
}


/* 大屏平板（768px - 1023px）：2列布局（平衡显示效果） */

@media (min-width: 768px) and (max-width: 1023px) {
    section.cases .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    section.cases .case-card {
        height: 280px;
    }
}


/* 桌面设备（1024px及以上）：3列布局 */

@media (min-width: 1024px) {
    section.cases .cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}


/* 宽屏设备（1400px及以上）：3列布局，增加间距 */

@media (min-width: 1400px) {
    section.cases .cases-grid {
        gap: 40px;
    }
    section.cases .case-card {
        height: 300px;
        /* 宽屏增加卡片高度 */
    }
    section.cases .card-overlay h3 {
        font-size: 1.4rem;
    }
    section.cases .card-overlay p {
        font-size: 1rem;
    }
}


/* 小屏移动端（<375px）：特殊优化 */

@media (max-width: 374px) {
    section.cases .case-card {
        height: 220px;
        /* 极小屏幕降低卡片高度 */
    }
    section.cases .card-overlay {
        padding: 20px;
    }
    section.cases .card-overlay h3 {
        font-size: 1.1rem;
        /* 缩小标题字体 */
    }
    section.cases .card-overlay .btn-secondary {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}


/* 关于我们 */

.about {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: #32228b;
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 50%;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #32228b;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
}

.about-image {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 45%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* 联系我们 */

.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex-basis: 40%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(34, 139, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #32228b;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.2rem;
    color: #32228b;
    margin-bottom: 5px;
}

.info-text p {
    color: #666;
}

.contact-form {
    flex-basis: 60%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #32228b;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}


/* 页脚 */

.footer {
    background-color: #333;
    color: white;
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h3,
.footer-products h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul,
.footer-products ul,
.footer-contact ul {
    list-style: none;
}

.footer-links ul li,
.footer-products ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-products ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-products ul li a:hover {
    color: #32228b;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: #32228b;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #32228b;
}


/* 响应式设计 */

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    .navbar {
        padding: 15px 30px;
    }
    .navbar.scrolled {
        padding: 10px 30px;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
    .mobile-menu {
        display: block;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .advantages-grid,
    .products-grid,
    .cases-grid,
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .about {
        padding: 80px 0;
    }
    .about::after {
        display: none;
    }
    .about-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .about-image {
        position: static;
        transform: none;
        width: 100%;
    }
    .contact-content {
        flex-direction: column;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 响应式调整：桌面端显示传统导航 */

@media (min-width: 768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }
    .header {
        display: none;
        /* 桌面端隐藏移动端导航 */
    }
    .sidebar,
    .overlay {
        display: none;
        /* 桌面端隐藏侧边栏和遮罩层 */
    }
    .main-nav .nav-links {
        display: flex;
        gap: 25px;
    }
    .main-nav a {
        color: #333;
        font-size: 1rem;
    }
    .main-nav a.active {
        color: #32228b;
        font-weight: bold;
    }
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        min-width: 200px;
        display: none;
    }
    .dropdown {
        position: relative;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .main {
        margin-top: 70px;
        /* 适配桌面端导航高度 */
    }
}