/* ============================================
   Footer Styles - 页脚样式
   ============================================ */

/* ============================================
   页脚样式 - V2 Studios风格
   ============================================ */
.main-footer {
  background: #000;
  color: #e0e0e0;
  padding: 0 0 24px;
  height: 80vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.footer-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  justify-content: space-between;
  box-sizing: border-box;
}

/* 顶部CTA区域 */
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  margin-top: 0;
  padding-top: 60px;
}

@media (min-width: 768px) {
  .footer-cta {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    margin-top: 0;
    padding-top: 60px;
    margin-bottom: 60px;
  }
  
  .footer-cta > * {
    grid-column: 1 / 13;
  }
}

.footer-cta-label {
  font-size: var(--font-size-xs);
  font-weight: 400;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .footer-cta-label {
    font-size: var(--font-size-sm);
    margin-bottom: 24px;
  }
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  text-decoration: none;
  font-size: 54px;
  font-weight: 700;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  line-height: 1.2;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-cta-link {
    font-size: 90px;
    font-weight: 800;
    gap: 32px;
  }
}

.footer-cta-link:hover {
  color: #fff;
}

.footer-cta-circle,
.footer-cta-circle-outer {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.footer-cta-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .footer-cta-arrow {
    width: 40px;
    height: 40px;
  }
}

.footer-cta-text {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cta-text-en {
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: translateY(0);
}

.footer-cta-text-zh {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(8px);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cta-link:hover .footer-cta-text-en {
  opacity: 0;
  transform: translateY(-8px);
  position: absolute;
  left: 0;
  top: 0;
}

.footer-cta-link:hover .footer-cta-text-zh {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* 分享链接 */
.footer-social-section {
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-social-section {
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
  }
  
  .footer-share-links {
    grid-column: 1 / 13;
  }
}

.footer-share-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #e0e0e0;
  font-size: var(--font-size-sm);
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  padding: 6px 0;
  transition: color 0.3s ease;
  margin: 0 12px;
}

.footer-share-btn:first-child {
  margin-left: 0;
}

.footer-share-btn:hover {
  color: #fff;
}

.footer-share-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .footer-share-btn {
    font-size: var(--font-size-base);
  }

  .footer-share-icon {
    width: 20px;
    height: 20px;
  }
}

.footer-share-label {
  line-height: 1;
}

.footer-dot-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  color: #e0e0e0;
  flex-shrink: 0;
}

/* 页脚二维码弹窗 */
.footer-qrcode-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.footer-qrcode-modal.is-open {
  display: flex;
}

.footer-qrcode-content {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  min-width: 260px;
}

.footer-qrcode-content h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
}

.footer-qrcode-content p {
  margin: 16px 0 0;
  color: #666;
  font-size: 14px;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
}

.footer-qrcode-content canvas,
.footer-qrcode-content img {
  display: block;
  margin: 0 auto;
}

.footer-qrcode-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.footer-qrcode-close:hover {
  color: #111;
}

/* 地址和联系方式区域 */
.footer-contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-contact-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    align-items: flex-start;
    margin-top: 0;
    margin-bottom: 50px;
  }
  
  .footer-contact-info {
    grid-column: 8 / 13;
    justify-self: end;
  }
}

.footer-address {
  font-style: normal;
  margin-bottom: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-address {
    text-align: left;
  }
}

.footer-address-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  line-height: var(--line-height-relaxed);
  transition: color 0.3s ease;
  white-space: normal;
  word-break: break-word;
  display: inline-block;
}

@media (min-width: 768px) {
  .footer-address-link {
    font-size: var(--font-size-base);
  }
}

.footer-address-link:hover {
  color: #fff;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 213px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-contact-info {
    gap: 16px;
    align-items: flex-start;
  }
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  transition: color 0.3s ease;
  position: relative;
}

@media (min-width: 768px) {
  .footer-contact-link {
    font-size: var(--font-size-base);
  }
}

.footer-contact-link:hover {
  color: #fff;
}

.footer-contact-icon {
  width: 14px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 底部版权栏 — 三栏布局 */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(224, 224, 224, 0.15);
  margin-top: 32px;
  gap: 12px;
}

@media (min-width: 768px) {
  .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
  }
}

@media (max-width: 767px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }

  .footer-legal-nav {
    justify-content: center;
  }
}

/* 左：版权 */
.footer-copyright {
  font-size: var(--font-size-xs);
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  color: rgba(224, 224, 224, 0.55);
  margin: 0;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer-copyright {
    font-size: var(--font-size-sm);
  }
}

/* 中：备案 + 举报 */
.footer-beian-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-beian-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  color: rgba(224, 224, 224, 0.35);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.25s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.footer-beian-item:hover {
  color: rgba(224, 224, 224, 0.75);
}

.footer-beian-dot {
  display: inline-block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(224, 224, 224, 0.2);
  flex-shrink: 0;
  margin: 0 2px;
}

/* 右：隐私政策 */
.footer-legal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.footer-legal-link {
  font-size: var(--font-size-xs);
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  color: rgba(224, 224, 224, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
  padding: 2px 6px;
}

@media (min-width: 768px) {
  .footer-legal-link {
    font-size: var(--font-size-sm);
  }
}

.footer-legal-link:hover {
  color: #fff;
}

/* 分隔符（用于隐私政策之间） */
.footer-legal-sep {
  color: rgba(224, 224, 224, 0.2);
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

.footer-gongan-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.footer-beian-gongan:hover .footer-gongan-icon {
  opacity: 1;
}

/* 举报弹窗 */
.footer-report-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.footer-report-modal.is-open {
  display: flex;
}

.footer-report-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.footer-report-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.footer-report-close:hover {
  color: #111;
}

.footer-report-content h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
}

.footer-report-desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: #888;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  line-height: 1.5;
}

.footer-report-field {
  margin-bottom: 16px;
}

.footer-report-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
}

.footer-report-required {
  color: #ef4444;
}

.footer-report-textarea,
.footer-report-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  color: #111;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
  resize: vertical;
}

.footer-report-textarea:focus,
.footer-report-input:focus {
  border-color: #111;
  background: #fff;
}

.footer-report-charcount {
  text-align: right;
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

.footer-report-upload {
  border: 1.5px dashed #d0d0d0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 13px;
  color: #888;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-report-upload:hover,
.footer-report-upload.is-dragging {
  border-color: #111;
  background: #f0f0f0;
}

.footer-report-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  line-height: 1.5;
}

.footer-report-msg--success {
  background: #d1fae5;
  color: #065f46;
}

.footer-report-msg--error {
  background: #fee2e2;
  color: #991b1b;
}

.footer-report-msg--info {
  background: #dbeafe;
  color: #1e40af;
}

.footer-report-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.footer-report-cancel {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  transition: all 0.2s ease;
}

.footer-report-cancel:hover {
  border-color: #999;
  color: #333;
}

.footer-report-submit {
  padding: 9px 24px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.footer-report-submit:hover {
  background: #333;
}

.footer-report-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* iPad 适配 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .main-footer {
    height: auto;
    min-height: 520px;
  }

  .footer-container {
    padding: 0 32px;
  }

  .footer-cta {
    padding-top: 48px;
    margin-bottom: 32px;
  }

  .footer-cta-link {
    font-size: 60px;
    font-weight: 800;
    gap: 20px;
  }

  .footer-cta-arrow {
    width: 32px;
    height: 32px;
  }

  .footer-social-section {
    margin-bottom: 32px;
  }

  .footer-contact-section {
    margin-bottom: 32px;
  }

  .footer-bottom {
    padding-top: 16px;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .footer-container {
    padding: 0 20px;
    height: auto;
    justify-content: flex-start;
  }

  .main-footer {
    height: auto;
    min-height: unset;
    max-height: none;
    overflow-y: hidden;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .footer-cta {
    padding-top: 40px;
    margin-bottom: 24px;
  }

  .footer-cta-link {
    font-size: 42px;
    font-weight: 700;
    gap: 16px;
    flex-wrap: wrap;
  }

  .footer-cta-text,
  .footer-cta-text-en,
  .footer-cta-text-zh {
    white-space: normal;
  }

  .footer-social-section {
    margin-bottom: 24px;
  }

  .footer-contact-section {
    margin-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 16px;
  }

  .main-footer {
    height: auto;
    min-height: unset;
    max-height: none;
    overflow-y: hidden;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .footer-cta {
    padding-top: 32px;
    margin-bottom: 20px;
  }

  .footer-cta-link {
    font-size: 34px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-cta-text,
  .footer-cta-text-en,
  .footer-cta-text-zh {
    white-space: normal;
  }

  .footer-cta-arrow {
    width: 20px;
    height: 20px;
  }
}
