/* 页脚部分样式 */
/* CSS Reset 和浏览器兼容性基础规则 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页脚容器 */
.footer {
    background-color: #121212;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 页脚主容器 */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* 页脚列 */
.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
}

/* 社区列特殊样式 */
.footer-column:first-child {
    flex: 0 0 220px;
    min-width: 200px;
}

/* 列标题 */
.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    white-space: nowrap;
    display: inline-block;
}

/* 社交图标容器 */
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

/* 社交图标 */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e1e1e;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
    transform: translateY(-2px);
}

.social-icon i {
    font-size: 18px;
}

/* 分隔线 */
.footer-divider {
    height: 1px;
    background-color: #333;
    margin: 20px 0;
}

/* 货币选择器 */
.footer-currency {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-currency:hover {
    color: #007bff;
}

.footer-currency i {
    font-size: 18px;
}

/* 暗夜模式切换 */
.footer-dark-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-dark-mode span {
    font-size: 14px;
}

/* 切换开关 */
.dark-mode-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.dark-mode-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.dark-mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.4s;
    border-radius: 24px;
}

.dark-mode-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.dark-mode-checkbox:checked + .dark-mode-slider {
    background-color: #007bff;
}

.dark-mode-checkbox:checked + .dark-mode-slider:before {
    transform: translateX(26px);
}

/* 页脚链接列表 */
.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* 页脚底部 */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 14px;
    color: #999;
}

.footer-cookie {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-cookie:hover {
    color: #ffffff;
}

.footer-help-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e1e1e;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-help-button:hover {
    background-color: #007bff;
    transform: scale(1.1);
}

.footer-help-button i {
    font-size: 20px;
}

/* 响应式设计 */
/* 平板设备 */
@media (max-width: 1200px) {
    .footer-container {
        justify-content: space-around;
    }
    
    .footer-column {
        flex: 0 0 45%;
    }
    
    .footer-column:first-child {
        flex: 0 0 100%;
        order: -1;
    }
}

/* 手机设备横屏 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 15px 15px;
    }
    
    .footer-column {
        flex: 0 0 100%;
        padding: 0 10px;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-dark-mode {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 手机设备竖屏 */
@media (max-width: 480px) {
    .footer {
        padding: 20px 10px 10px;
    }
    
    .footer-column-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-links {
        gap: 8px 12px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-icon i {
        font-size: 16px;
    }
    
    .footer-copyright,
    .footer-cookie {
        font-size: 12px;
    }
    
    .footer-help-button {
        width: 36px;
        height: 36px;
    }
    
    .footer-help-button i {
        font-size: 18px;
    }
}

/* 浏览器兼容性增强 - 全面优化 */
/* 弹性布局兼容性 */
.footer-social-icons,
.footer-links,
.footer-bottom-content,
.footer-container,
.footer-dark-mode,
.footer-currency,
.social-icon,
.footer-help-button {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

/* Flexbox 属性兼容性 */
.footer-social-icons {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.footer-container {
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -o-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.footer-dark-mode {
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -o-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-items: center;
    -moz-align-items: center;
    -o-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.footer-currency {
    -webkit-align-items: center;
    -moz-align-items: center;
    -o-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.social-icon,
.footer-help-button {
    -webkit-align-items: center;
    -moz-align-items: center;
    -o-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -o-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.footer-bottom-content {
    -webkit-align-items: center;
    -moz-align-items: center;
    -o-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -o-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* 过渡效果全面兼容性 */
.social-icon,
.footer-currency,
.footer-links a,
.footer-cookie,
.footer-help-button {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.dark-mode-slider {
    -webkit-transition: 0.4s;
    -moz-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
}

.dark-mode-slider:before {
    -webkit-transition: 0.4s;
    -moz-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
}

/* 变形效果兼容性 */
.social-icon:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.footer-links a:hover {
    -webkit-transform: translateX(3px);
    -moz-transform: translateX(3px);
    -o-transform: translateX(3px);
    -ms-transform: translateX(3px);
    transform: translateX(3px);
}

.footer-help-button:hover {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

/* 边框圆角兼容性 */
.social-icon,
.footer-help-button {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
}

.dark-mode-slider {
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -o-border-radius: 24px;
    border-radius: 24px;
}

.dark-mode-slider:before {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
}

/* 媒体查询兼容性 */
@media screen and (max-width: 1200px) {
    .footer-container {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -o-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 0 20px;
    }
    
    .footer-column {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-column:first-child {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-links {
        gap: 10px 20px;
    }
}

@media screen and (max-width: 768px) {
    .footer-social-icons {
        -webkit-justify-content: center;
        -moz-justify-content: center;
        -o-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .footer-dark-mode {
        -webkit-justify-content: center;
        -moz-justify-content: center;
        -o-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .footer-bottom-content {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -o-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        gap: 10px 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-column {
        margin-bottom: 25px;
    }
}

/* 低版本IE支持 - 条件注释替代方案 */
/* IE 10-11 兼容性 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .main-content {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .left-section,
    .right-section {
        display: table-cell;
        width: 48%;
        vertical-align: top;
        min-height: 100vh;
    }
    
    .register-section {
        min-height: 400px;
        display: block;
    }
    
    /* IE 10-11 左侧区域兼容样式 - 删除重复声明 */
      
      .user-count {
          font-size: 3rem !important;
          margin-bottom: 5px !important;
      }
      
      .user-count-label {
          font-size: 1.8rem !important;
      }
      
      /* 徽章IE兼容样式 */
      .badges-section {
          display: block;
          margin: 15px 0;
      }
      
      .badge-item {
          display: block;
          background-color: #1e1e1e;
          padding: 20px 24px;
          border-radius: 10px;
          border: 1px solid #333333;
          margin-bottom: 15px;
      }
      
      .badge-item > span {
          display: inline-block;
          vertical-align: middle;
      }
      
      .badge-text {
          width: 60%;
          text-align: center;
      }
      
      .badge-number {
          font-size: 1.5rem !important;
      }
      
      /* IE 10-11 按钮容器兼容样式 */
      .buttons-container {
          display: block;
          margin-top: 15px;
          margin-bottom: 20px;
          width: 100%;
      }
      
      .buttons-container a {
          margin-bottom: 15px;
          display: block;
          width: 100%;
      }
      
      .action-button {
          display: block;
          width: 100%;
          padding: 22px 20px;
          border: none;
          border-radius: 50px;
          font-size: 18px;
          font-weight: bold;
          text-align: center;
          text-decoration: none;
          cursor: pointer;
      }
    
    .green-button {
        background-color: #4ade80;
        color: #000000;
    }
    
    .white-button {
        background-color: #ffffff;
        color: #000000;
    }
    
    /* IE响应式调整 */
      @media screen and (max-width: 768px) {
          /* 用户数量响应式 */
          .user-count {
              font-size: 2.5rem !important;
          }
          
          .user-count-label {
              font-size: 1.5rem !important;
          }
          
          /* 徽章IE响应式调整 */
          .badges-section {
              margin: 12px 0;
          }
          
          .badge-item {
              padding: 16px 20px;
              border-radius: 8px;
              margin-bottom: 12px;
          }
          
          .badge-icon {
              font-size: 1.3rem;
          }
          
          .badge-number {
              font-size: 1.3rem !important;
          }
          
          /* 按钮响应式 */
          .action-button {
              padding: 20px 18px;
              font-size: 17px;
          }
          
          .buttons-container {
              margin-top: 20px;
          }
          
          .buttons-container a {
              margin-bottom: 14px;
          }
      }
      
      @media screen and (max-width: 480px) {
          /* 用户数量响应式 */
          .user-count {
              font-size: 2rem !important;
          }
          
          .user-count-label {
              font-size: 1.3rem !important;
          }
          
          /* 徽章IE响应式调整 */
          .badges-section {
              margin: 10px 0;
          }
          
          .badge-item {
              padding: 14px 18px;
              border-radius: 8px;
              margin-bottom: 10px;
          }
          
          .badge-icon {
              font-size: 1.2rem;
          }
          
          .badge-number {
              font-size: 1.2rem !important;
          }
          
          /* 按钮响应式 */
          .action-button {
              padding: 18px 16px;
              font-size: 16px;
          }
          
          .buttons-container {
              margin-top: 15px;
          }
          
          .buttons-container a {
              margin-bottom: 12px;
          }
      }
    
    .footer-container {
        display: block;
        text-align: center;
    }
    
    .footer-column {
        display: inline-block;
        text-align: left;
        vertical-align: top;
        margin: 0 10px;
    }
    
    .footer-bottom-content {
        display: block;
        text-align: center;
    }
    
    .footer-copyright,
    .footer-cookie {
        display: inline-block;
        margin: 0 10px;
    }
    
    .footer-help-button {
        display: inline-block;
        margin-top: 10px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .social-icon:active,
    .footer-links a:active,
    .footer-help-button:active {
        opacity: 0.8;
        -webkit-transform: scale(0.95);
        -moz-transform: scale(0.95);
        -o-transform: scale(0.95);
        -ms-transform: scale(0.95);
        transform: scale(0.95);
    }
    
    .touch-active {
        opacity: 0.8;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .footer {
        border: 1px solid #ffffff;
    }
    
    .footer-divider {
        background-color: #ffffff;
    }
    
    .footer-links a {
        color: #ffffff;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        -moz-transition-duration: 0.01ms !important;
        -o-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}