/* ========== Footer样式 ========== */
.site-footer {
  background: #222;
  color: #aaa;
  padding: 15px 20px;
  text-align: center;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  position: static;
  margin: 0;
  transform: none !important;
  transition: none !important;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
    /* 移动端最小点击区域 */
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
}

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

.footer-info {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-info p {
    margin: 5px 0;
}

.footer-link-dropdown select {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    background: #333;
    color: #fff;
    cursor: pointer;
    /* 移动端适配 */
    min-height: 44px;
}

.footer-copyright {
    line-height: 1.8;
}

.footer-copyright a {
    color: #aaa;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #fff;
}

/* 返回顶部按钮 */
.back-to-top,
.back-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #009245;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
}

.back-to-top:hover,
.back-top:hover {
    background: #00b853;
    transform: scale(1.1);
}

.back-to-top:active,
.back-top:active {
    transform: scale(0.95);
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px;
        font-size: 13px;
    }
    
    .footer-links {
        margin-bottom: 12px;
    }
    
    .footer-links a {
        margin: 0 6px;
        font-size: 13px;
    }
    
    .footer-info {
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .back-to-top,
    .back-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 25px 12px;
        font-size: 12px;
    }
    
    .footer-links {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        margin: 0 4px;
        font-size: 12px;
    }
    
    .footer-info {
        margin-bottom: 12px;
        font-size: 12px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
    
    .back-to-top,
    .back-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ========== 触摸设备优化 ========== */
@media (hover: none) and (pointer: coarse) {
    /* 移动端增大可点击区域 */
    .footer-links a,
    .back-to-top,
    .back-top {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 移除hover效果避免卡顿 */
    .back-to-top:hover,
    .back-top:hover {
        transform: none;
    }
    
    /* 优化触摸反馈 */
    .back-to-top:active,
    .back-top:active {
        opacity: 0.8;
    }
}
