/* Footer 组件样式 */
.footer {
  background-color: #111827;
  color: #fff;
  padding: 0;
  margin-top: auto;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width-container);
  margin: 0 auto;
}

/* 主要内容区域 */
.footer-main {
  padding: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

/* 公司信息列 */
.footer-company {
  padding-right: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-brand {
  color: #E60012;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.footer-brand sup {
  font-size: 16px;
  vertical-align: super;
  margin-left: 2px;
}

.footer-desc {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

/* 联系信息 */
.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #d1d5db;
}

.footer-contact .contact-item i {
  color: #60a5fa;
  width: 16px;
  text-align: center;
}

.footer-contact .contact-item a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact .contact-item a:hover {
  color: #93c5fd;
}

/* 邮件订阅 */
.footer-newsletter {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
}

.footer-newsletter h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.newsletter-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.newsletter-form input::placeholder {
  color: #6b7280;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-btn {
  padding: 0.5rem 1.5rem;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background-color: #2563eb;
}

.newsletter-btn:disabled {
  background-color: #6b7280;
  cursor: not-allowed;
}

.newsletter-btn .btn-loading {
  display: none;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.unsubscribe-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
}

.unsubscribe-btn:hover {
  color: #d1d5db;
}

.newsletter-message {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.newsletter-message:not(.hidden) {
  opacity: 1;
}

.newsletter-message.success {
  background-color: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.newsletter-message.error {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* 验证码弹窗 */
.verification-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.verification-modal.hidden {
  display: none;
}

.verification-modal-content {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
}

.verification-modal-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.verification-modal-content > p {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.verification-code-display {
  background: linear-gradient(to right, #3b82f6, #2563eb);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  border: 2px solid #1e40af;
}

.verification-label {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.verification-code {
  font-size: 3rem;
  color: #fff;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

#verification-form input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

#verification-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.verification-tips {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.verification-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-cancel {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #374151;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background-color: #f3f4f6;
}

.btn-verify {
  flex: 1;
  padding: 0.5rem 1rem;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-verify:hover {
  background-color: #2563eb;
}

.btn-verify:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.verify-btn-loading {
  display: none;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

.verification-message {
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.verification-message:not(.hidden) {
  opacity: 1;
}

.verification-message.success {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.verification-message.error {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* 社交媒体 */
.footer-social {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
}

.footer-social h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-item {
  position: relative;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #374151;
  transition: all 0.2s;
  overflow: hidden;
}

.social-link:hover {
  background-color: #4b5563;
  transform: scale(1.1);
}

.social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 二维码弹窗 */
.qrcode-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  text-align: center;
}

.qrcode-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

.social-item:hover .qrcode-popup {
  opacity: 1;
  visibility: visible;
  margin-bottom: 15px;
}

.qrcode-popup img {
  width: 120px;
  height: 120px;
  display: block;
  border-radius: 4px;
}

.qrcode-popup span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

/* 导航列 */
.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

/* 关于我们部分 */
.footer-section:last-child {
  padding-top: 3.5rem;
  margin-top: 2rem;
  border-top: 1px solid #374151;
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: #93c5fd;
}

.footer-section a:hover::after {
  width: 100%;
}

/* 快速联系 */
.quick-contact {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #1f2937;
  border-radius: 0.5rem;
}

.quick-contact h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.quick-contact .hotline {
  display: block;
  color: #fbbf24;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.quick-contact .hotline:hover {
  color: #fcd34d;
}

.quick-contact .hotline::after {
  display: none;
}

.quick-contact p {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* 分割线 */
.footer-divider {
  border-top: 1px solid #374151;
  margin: 0;
}

/* 底部信息栏 */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left {
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-bottom-left .beian-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  display: inline;
}

.footer-bottom-left .beian-link:hover {
  color: #d1d5db;
}

.footer-bottom-left .beian-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.footer-bottom-left .beian-link:hover::after {
  width: 100%;
}

.footer-bottom-center a {
  font-size: 0.75rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-center a:hover {
  color: #9ca3af;
}

.footer-bottom-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom-right span {
  color: #4b5563;
}

.footer-bottom-right a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-right a:hover {
  color: #fff;
}

/* 响应式 */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-company {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 2rem 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-company {
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-desc {
    max-width: 100%;
  }
  
  .footer-contact .contact-item {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 语言切换 */
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.language-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

#current-language {
  color: #9ca3af;
  font-size: 0.875rem;
}

.language-toggle-text {
  color: #9ca3af;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.language-toggle-text:hover {
  color: #d1d5db;
}

/* 语言切换弹窗 */
.language-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-modal.hidden {
  display: none;
}

.language-modal-content {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
}

.language-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.language-modal-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.language-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.language-modal-close:hover {
  color: #4b5563;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-size: 0.875rem;
}

.language-item:hover {
  background-color: #f3f4f6;
}

.language-item.active {
  background-color: #eff6ff;
  border-color: #3b82f6;
  border-width: 2px;
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #2563eb;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.language-info {
  flex: 1;
}

.language-name {
  font-weight: 500;
  color: #1f2937;
  margin: 0;
}

.language-code {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  margin-top: 0.125rem;
}

.language-check {
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 768px) {
  .language-modal-content {
    margin: 1rem;
  }
}
