﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
  /* 导航菜单样式优化 */
 /* 导航菜单样式优化 */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 在你的样式文件中添加 */
.logo {
    display: flex;
    align-items: center;
}

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

.site-logo {
    max-height: 55px;
    width: auto;
    margin-right: 10px;
}

.site-title {
    font-size: 1.3em;
    font-weight: bold;
}


/* 主题设置页面的预览样式 */
.logo-preview img {
    background: #f0f0f0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

  /* 修改这部分来适配 WordPress 菜单结构 */
.main-navigation {
    margin-left: auto; /* 让导航靠右 */
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #4a90e2;
}
/* 保持原有的电脑端菜单样式，只修改logo部分 */
.logo {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(45deg, #4a90e2, #50c878);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

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

/* 只添加弹窗相关样式，其他样式保持不变 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    text-align: center;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.qr-code {
    margin: 20px 0;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

.qr-code img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 移除之前添加的社交图标样式，保持原有的底部样式 */



/* 确保汉堡菜单在移动端正确显示 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        width: 30px;
        height: 25px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .hamburger div {
        width: 100%;
        height: 3px;
        background: #4a90e2;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 9px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -9px);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }

    .nav-menu li {
        margin: 10px 0;
    }
}@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 幻灯片样式 */
.slider {
    margin-top: 70px;
    height: 700px; /* 增加高度提升视觉效果 */
    position: relative;
    overflow: hidden;
    background: #000;
}
  .slide {
      position: absolute;
      width: 100%;
      height: 100%;
      transform: translateX(100%);
      transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: white;
      padding: 0 80px;
  }

  .slide.active {
      transform: translateX(0);
  }

 
.slide-content {
    width: 600px; /* 固定宽度 */
    min-height: 200px; /* 最小高度 */
    height: auto; /* 高度自适应内容 */
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .slide-content {
        width: 90%; /* 移动端使用百分比宽度 */
        min-height: 150px;
        margin: 0 auto;
    }
    
    .site-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.0em;
    }
}

.slide-content h2 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s forwards 0.5s;
}
.slide-content p {
    font-size: 1.4em;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s forwards 0.8s;
}

.slide-image {
    width: 400px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-30deg);
    transition: transform 0.5s ease;
}

.slide-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 动画效果 */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 导航按钮样式 */
.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.slider-nav-btn {
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.slider-nav-btn.active {
    background: #fff;
    width: 70px;
}

/* 服务板块样式 */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.service-item {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #f0f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: #4a90e2;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: #4a90e2;
    color: #fff;
}

.service-item h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.service-features li {
    color: #555;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-features li:before {
    content: "✓";
    color: #4a90e2;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.learn-more {
    display: inline-block;
    padding: 10px 25px;
    background: #4a90e2;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.learn-more:hover {
    background: #357abd;
    transform: translateY(-2px);
}

/* 案例展示样式 */
.cases {
    padding: 100px 0;
    background: #f8f9fa;
}

.cases-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 20px;
}

.case-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.case-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.case-overlay h3 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.case-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95em;
    line-height: 1.6;
}

.case-item:hover {
    transform: translateY(-10px);
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-item:hover .case-overlay {
    transform: translateY(0);
}

.case-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 15px;
    }
    
    .case-item img {
        height: 250px;
    }
    
    .case-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
    }
}

/* 底部样式 */
.site-footer {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    color: #fff;
    padding: 50px 0 0;
    position: relative;
    overflow: hidden;
}

/* 顶部渐变装饰线 */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #50c878, #e24a4a);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 0 10px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

/* 标题下方装饰线 */
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4a90e2;
}

.footer-section p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 底部链接样式 */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #4a90e2;
}

/* 联系信息样式 */
.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #999;
}

.contact-info i {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

/* 社交链接样式 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4a90e2;
    transform: translateY(-3px);
}

/* 版权区域样式 */
.footer-bottom {
    background: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 备案信息样式 */
.beian-info {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.beian-info a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.beian-info a:hover {
    color: #4a90e2;
}

.beian-info img {
    height: 16px;
    width: auto;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .beian-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* 更小屏幕的优化 */
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr; /* 单列布局 */
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 隐藏除"关于我们"外的其他板块 */
    .footer-section:not(:first-child) {
        display: none;
    }

    .footer-section:first-child {
        padding: 15px;
    }

    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
    }

    .beian-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 0;
        z-index: 1000;
    }

    .nav-menu.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu li {
        margin: 0;
        transform: translateX(-30px);
        opacity: 0;
    }

    .nav-menu.active li {
        animation: slideRight 0.3s ease forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }

    .nav-menu a {
        display: block;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: linear-gradient(45deg, rgba(74,144,226,0.1), rgba(80,200,120,0.1));
        padding-left: 35px;
        color: #4a90e2;
    }

    .hamburger {
        display: flex;
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .slider {
        height: 100vh;
        margin-top: 60px;
    }

    .slide {
        padding: 20px;
        justify-content: center;
        text-align: center;
        background-position: center;
    }

    .slide-content {
        max-width: 100%;
        padding: 25px;
        margin: 0 15px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
    }

    .slide-content h2 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .slide-content p {
        font-size: 1.1em;
        line-height: 1.4;
    }

    .slider-nav {
        bottom: 25px;
    }

    .slider-nav-btn {
        width: 30px;
        height: 4px;
    }

    .slider-nav-btn.active {
        width: 45px;
    }

    .slide {
        touch-action: pan-y pinch-zoom;
    }

    .section-title h2 {
        font-size: 2em;
    }

    .service-item {
        padding: 30px 20px;
    }

    .slide-image {
        display: none;
    }
}

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.8em;
    }

    .slide-content p {
        font-size: 1em;
    }

    .slider {
        height: 80vh;
    }
}

/* 新闻公告区域样式 */
.news-section {
    padding: 60px 0;
    background: #f8f9fa; /* 添加背景色区分 */
}

.news-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* 添加左右内边距 */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1.1em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* 减小卡片间距 */
    margin: 0 auto; /* 居中对齐 */
    max-width: 1100px; /* 限制最大宽度 */
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05); /* 减小阴影 */
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 15px; /* 减小内边距 */
}

.news-card-title {
    font-size: 1.1em; /* 减小标题字号 */
    margin: 0 0 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #4a90e2;
}

.news-card-excerpt {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #888;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.news-card-meta i {
    margin-right: 5px;
    font-size: 0.9em;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 40px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px; /* 移动端限制最大宽度 */
    }
    
    .section-title h2 {
        font-size: 1.8em;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    text-align: center;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.qr-code {
    margin: 20px 0;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

.qr-code img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 社交图标样式 */
.footer-social {
    margin: 20px 0;
    text-align: center;
}

.social-icon {
    display: inline-block;
    margin: 0 10px;
    font-size: 24px;
    color: #666;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #333;
}

.social-icon.wechat:hover {
    color: #7BB32E;
}

.social-icon.weibo:hover {
    color: #E6162D;
}

.social-icon.zhihu:hover {
    color: #0084FF;
}

/* 底部样式 - 保持原有的黑色样式 */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.social-links a {
    color: #fff;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4a90e2;
}

/* ... 其他原有的底部样式 ... */

/* 在文件末尾添加弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    text-align: center;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.qr-code {
    margin: 20px 0;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

.qr-code img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 0; /* 减小顶部内边距 */
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr); /* 改为两列 */
        gap: 25px; /* 减小间距 */
        padding: 0 15px;
        margin-bottom: 25px;
    }

    .footer-section {
        padding: 0;
    }

    .footer-section h3 {
        font-size: 1.2em; /* 减小标题大小 */
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .footer-section h3::after {
        width: 40px; /* 减小装饰线长度 */
    }

    .footer-section p {
        font-size: 0.9em;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .footer-links li {
        margin-bottom: 8px; /* 减小链接间距 */
    }

    .footer-links a {
        font-size: 0.9em;
    }

    .contact-info {
        margin-bottom: 10px;
    }

    .contact-info i {
        width: 25px; /* 减小图标尺寸 */
        height: 25px;
        font-size: 12px;
    }

    .social-links {
        gap: 10px;
        margin-top: 15px;
    }

    .social-links a {
        width: 35px; /* 减小社交图标尺寸 */
        height: 35px;
        font-size: 16px;
    }
}

/* 更小屏幕的优化 */
@media (max-width: 480px) {
    .site-footer {
        padding: 25px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr; /* 单列布局 */
        gap: 20px;
    }

    .footer-section {
        text-align: left; /* 保持左对齐 */
        padding: 0 10px;
    }

    .footer-section h3::after {
        left: 0; /* 装饰线保持左对齐 */
        transform: none;
    }

    .footer-bottom {
        padding: 15px 0;
        margin-top: 20px;
    }

    .beian-info {
        flex-direction: column;
        gap: 8px;
    }

    .beian-info a {
        justify-content: center;
        font-size: 12px;
    }

    .beian-info img {
        height: 14px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* 优化联系信息布局 */
    .contact-info {
        margin-bottom: 8px;
    }

    .contact-info span {
        font-size: 0.9em;
    }

    /* 优化社交链接布局 */
    .social-links {
        justify-content: flex-start; /* 左对齐 */
        margin-top: 12px;
    }

    .social-links a:first-child {
        margin-left: 0;
    }
}
