/* ============================================================
   天机局 - 法律页面专用样式 (legal.css)
   暗色宇宙主题，与新官网风格统一
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

/* ---------- 全局 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0B0A1E;
  color: #E0DCF5;
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 星空背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(55, 30, 120, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(30, 55, 120, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0B0A1E 0%, #0F0D2A 50%, #0B0A1E 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.6) 50%, transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.4) 50%, transparent),
    radial-gradient(1px 1px at 40% 20%, rgba(255, 215, 100, 0.5) 50%, transparent),
    radial-gradient(1px 1px at 55% 70%, rgba(255, 255, 255, 0.5) 50%, transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(255, 255, 255, 0.4) 50%, transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(255, 215, 100, 0.4) 50%, transparent),
    radial-gradient(1px 1px at 90% 85%, rgba(255, 255, 255, 0.5) 50%, transparent),
    radial-gradient(1px 1px at 15% 75%, rgba(255, 255, 255, 0.3) 50%, transparent),
    radial-gradient(1px 1px at 45% 90%, rgba(255, 255, 255, 0.4) 50%, transparent),
    radial-gradient(1px 1px at 65% 10%, rgba(255, 215, 100, 0.3) 50%, transparent);
  background-size: 100% 100%;
  z-index: -1;
  pointer-events: none;
}

a {
  color: #D4AF37;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: #F0CE6E;
  opacity: 0.9;
}

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #D4AF37, #F0CE6E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #E0DCF5;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu li a {
  color: #B0ACC8;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #D4AF37;
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: #D4AF37;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* ---------- 页面主体 ---------- */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.page-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #D4AF37;
  background: linear-gradient(135deg, #D4AF37, #F0CE6E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.page-header p {
  color: #807CA0;
  font-size: 0.95rem;
}

.page-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #C8C4E0;
}

.page-content p {
  margin-bottom: 1.2rem;
}

.page-content h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #E0DCF5;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid #D4AF37;
}

.page-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #D4AF37;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.page-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.page-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.8;
  color: #B0ACC8;
}

.page-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: #D4AF37;
  font-size: 0.8rem;
}

.page-content ul li strong {
  color: #E0DCF5;
  font-weight: 600;
}

.page-content a {
  color: #D4AF37;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 联系卡片 ---------- */
.contact-card {
  background: rgba(20, 18, 45, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #C8C4E0;
  font-size: 0.95rem;
}

.contact-info-item .icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- FAQ 列表 ---------- */
.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  background: rgba(20, 18, 45, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.faq-question {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: #E0DCF5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  user-select: none;
}

.faq-question::after {
  content: '▸';
  color: #D4AF37;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question::after {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.5rem 1rem;
  color: #B0ACC8;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- 表单 (delete-account.html) ---------- */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  background: rgba(20, 18, 45, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #D4AF37;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(11, 10, 30, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: #E0DCF5;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #B0ACC8;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 0.25rem;
  accent-color: #D4AF37;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary,
.form-submit {
  width: 100%;
  background: linear-gradient(135deg, #D4AF37, #F0CE6E);
  color: #0B0A1E;
}

.btn-primary:hover,
.form-submit:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

/* ---------- 底部 Footer ---------- */
.footer {
  background: rgba(11, 10, 30, 0.9);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 2.5rem 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #B0ACC8;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-divider {
  width: 60%;
  margin: 0 auto 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer-copyright {
  color: #807CA0;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  color: #605C80;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 10, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }

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

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    padding: 0.8rem 0;
  }

  .nav-menu li a::after {
    display: none;
  }

  main {
    padding: 2rem 1rem 3rem;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }

  .page-content h2 {
    font-size: 1.15rem;
  }

  .footer-links {
    gap: 1rem;
  }
}
